
:root {
  --font-display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --font-body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", serif;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.intro-locked {
  height: 100vh;
  overflow: hidden;
}

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

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

a {
  color: inherit;
}

main {
  overflow: clip;
  background: var(--ivory);
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 104px 0;
  position: relative;
}

.eyebrow {
  display: inline-block;
  color: var(--mauve);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading {
  margin: 0 auto 50px;
  max-width: 680px;
  text-align: center;
}

.section-heading h2,
.welcome-copy h2,
.venue-inner h2,
.dress-copy h2,
.gift-copy h2,
.closing-section h2 {
  margin: 13px 0 18px;
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 7vw, 4.55rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.ornament {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 23px auto 0;
  width: 108px;
}

.ornament::before,
.ornament::after {
  background: color-mix(in srgb, var(--champagne) 70%, transparent);
  content: "";
  height: 1px;
  width: 43px;
}

.ornament i {
  border: 1px solid var(--champagne);
  height: 7px;
  transform: rotate(45deg);
  width: 7px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.75,.25,1), transform 0.9s cubic-bezier(.2,.75,.25,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Opening and hero */
.hero {
  align-items: center;
  background: var(--plum);
  color: var(--ivory);
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero.is-closed {
  cursor: pointer;
}

.hero-video,
.hero-veil {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-video {
  filter: saturate(.68) contrast(.9) brightness(.72);
  transform: scale(1.025);
  transition: filter 1.8s ease, transform 8s ease;
  z-index: -3;
}

.is-open .hero-video {
  filter: saturate(.6) contrast(.9) brightness(.58);
  transform: scale(1.08);
}

.hero-veil {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--plum) 22%, transparent),
    color-mix(in srgb, var(--plum) 43%, transparent) 58%,
    color-mix(in srgb, var(--plum) 76%, transparent)
  );
  z-index: -2;
}

.hero-geometry {
  inset: 21px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-geometry::before,
.hero-geometry::after {
  border-color: color-mix(in srgb, var(--ivory) 34%, transparent);
  border-style: solid;
  content: "";
  inset: 0;
  position: absolute;
}

.hero-geometry::before {
  border-width: 1px;
  clip-path: polygon(0 0, 35% 0, 35% 1px, 65% 1px, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% calc(100% - 1px), 35% calc(100% - 1px), 35% 100%, 0 100%);
}

.hero-geometry::after {
  border-width: 0 1px;
  inset: 12px 0;
}

.hero-geometry i {
  border: 1px solid color-mix(in srgb, var(--ivory) 23%, transparent);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  height: 48%;
  left: 50%;
  max-width: 690px;
  position: absolute;
  top: 4%;
  transform: translateX(-50%);
  width: 72%;
}

.hero-geometry i + i {
  height: 44%;
  opacity: .45;
  top: 8%;
  width: 64%;
}

.opening-mark {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 19px;
  inset: 0;
  justify-content: center;
  opacity: 1;
  position: absolute;
  transition: opacity .7s ease, transform .9s ease, visibility .7s;
  visibility: visible;
  z-index: 3;
}

.is-open .opening-mark {
  opacity: 0;
  transform: scale(.96);
  visibility: hidden;
}

.opening-mono {
  align-items: center;
  display: flex;
  font-family: var(--font-display);
  font-size: 3.45rem;
  font-style: italic;
  font-weight: 400;
  gap: 18px;
  letter-spacing: -.04em;
  line-height: 1;
}

.opening-mono i {
  background: color-mix(in srgb, var(--ivory) 65%, transparent);
  height: 52px;
  transform: rotate(28deg);
  width: 1px;
}

.opening-label {
  font-size: .64rem;
  font-weight: 650;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.opening-ripple {
  border: 1px solid color-mix(in srgb, var(--ivory) 52%, transparent);
  border-radius: 50%;
  height: 31px;
  margin-top: 6px;
  position: relative;
  width: 31px;
}

.opening-ripple::before,
.opening-ripple::after {
  border: 1px solid color-mix(in srgb, var(--ivory) 35%, transparent);
  border-radius: inherit;
  content: "";
  inset: -1px;
  position: absolute;
  animation: pulse-ring 2.4s ease-out infinite;
}

.opening-ripple::after {
  animation-delay: .8s;
}

@keyframes pulse-ring {
  70%, 100% { opacity: 0; transform: scale(2.05); }
}

.music-toggle {
  align-items: center;
  backdrop-filter: blur(7px);
  background: color-mix(in srgb, var(--plum) 36%, transparent);
  border: 1px solid color-mix(in srgb, var(--ivory) 42%, transparent);
  border-radius: 999px;
  color: var(--ivory);
  cursor: pointer;
  display: flex;
  font-size: .61rem;
  font-weight: 650;
  gap: 9px;
  letter-spacing: .16em;
  padding: 9px 14px 9px 12px;
  position: fixed;
  right: 17px;
  text-transform: uppercase;
  top: 17px;
  transition: background .25s ease, border-color .25s ease;
  z-index: 50;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  background: color-mix(in srgb, var(--plum) 78%, transparent);
  border-color: color-mix(in srgb, var(--ivory) 85%, transparent);
  outline: none;
}

.music-bars {
  align-items: center;
  display: flex;
  gap: 2px;
  height: 15px;
}

.music-bars i {
  background: currentColor;
  border-radius: 2px;
  display: block;
  height: 5px;
  opacity: .8;
  width: 1px;
}

.music-toggle.is-playing .music-bars i {
  animation: music-bar .8s ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-bars i:nth-child(2) { animation-delay: -.45s; }
.music-toggle.is-playing .music-bars i:nth-child(3) { animation-delay: -.25s; }

@keyframes music-bar {
  to { height: 15px; }
}

.hero-content {
  margin: auto;
  max-width: 860px;
  opacity: 0;
  padding: 118px 34px 90px;
  text-align: center;
  transform: translateY(25px);
  visibility: hidden;
  pointer-events: none;
  width: 100%;
}

.hero.is-closed .hero-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

.hero.is-open .hero-content {
  visibility: visible;
  pointer-events: auto;
  transform: none;

  animation:
    hero-content-reveal
    1.1s
    cubic-bezier(.2, .7, .2, 1)
    7s
    both;
}

@keyframes hero-content-reveal {
  0% {
    opacity: 0;
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 2px;
}

.translation {
  font-family: var(--font-display);
  font-size: .75rem;
  font-style: italic;
  letter-spacing: .03em;
  margin: 0;
  opacity: .78;
}

.hero-divider {
  align-items: center;
  display: flex;
  gap: 13px;
  justify-content: center;
  margin: 19px auto;
}

.hero-divider::before,
.hero-divider::after {
  background: color-mix(in srgb, var(--plum) 45%, transparent);
  content: "";
  height: 1px;
  width: 34px;
}

.hero-divider span {
  color: var(--mauve);
  font-size: .62rem;
}

.hero-welcome {
  font-size: .58rem;
  font-weight: 600;
  white-space: pre-line;
  letter-spacing: .16em;
  margin: 0 0 26px;
  text-transform: uppercase;
}

.couple-names {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.couple-names h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .79;
  margin: 0 0 17px;
  text-wrap: balance;
}

.couple-names h1 span {
  display: block;
  font-size: 1.06em;
}

.couple-names p {
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .2em;
  margin: 0 0 3px;
  opacity: .75;
  text-transform: uppercase;
}

.couple-names small {
  display: block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-style: italic;
  line-height: 1.35;
  opacity: .85;
}

.name-ampersand {
  color: var(--champagne);
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.hero-invitation {
  font-family: var(--font-display);
  font-size: .92rem;
  line-height: 1.55;
  margin: 28px auto 6px;
  max-width: 500px;
}

.hero-closing {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
  margin: 0;
  opacity: .8;
  text-transform: uppercase;
}

.scroll-cue {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 30px auto 0;
  text-decoration: none;
  width: fit-content;
}

.scroll-cue span {
  font-size: .52rem;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.scroll-cue i {
  background: color-mix(in srgb, var(--ivory) 58%, transparent);
  height: 27px;
  overflow: hidden;
  position: relative;
  width: 1px;
}

.scroll-cue i::after {
  animation: scroll-line 2s ease-in-out infinite;
  background: var(--ivory);
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: -10px;
  width: 1px;
}

@keyframes scroll-line { to { transform: translateY(38px); } }

/* Welcome */
.welcome-section {
  background:
    radial-gradient(
      circle at 85% 25%,
      color-mix(in srgb, var(--lavender) 18%, transparent),
      transparent 27%
    ),
    var(--ivory);
}

.welcome-section::before,
.welcome-section::after {
  border: 1px solid color-mix(in srgb, var(--mauve) 18%, transparent);
  border-radius: 50%;
  content: "";
  height: 230px;
  left: -160px;
  position: absolute;
  top: 20px;
  width: 230px;
}

.welcome-section::after {
  height: 190px;
  left: auto;
  right: -130px;
  top: auto;
  bottom: 34px;
  width: 190px;
}

.welcome-shell {
  align-items: center;
  display: grid;
  gap: 52px;
  max-width: 920px;
}

.arch-emblem {
  align-items: center;
  aspect-ratio: .78;
  background: var(--lilac);
  border: 1px solid color-mix(in srgb, var(--plum) 18%, transparent);
  border-radius: 50% 50% 5px 5px / 34% 34% 5px 5px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 285px;
  position: relative;
  width: 76%;
}

.arch-emblem::before {
  border: 1px solid color-mix(in srgb, var(--champagne) 65%, transparent);
  border-radius: inherit;
  content: "";
  inset: 12px;
  position: absolute;
}

.arch-emblem::after {
  background: color-mix(in srgb, var(--plum) 20%, transparent);
  content: "";
  height: 1px;
  position: absolute;
  transform: rotate(-45deg);
  width: 53%;
}

.arch-emblem span {
  color: var(--plum);
  font-family: var(--font-arabic);
  font-size: 4.4rem;
  position: relative;
  z-index: 2;
}

.arch-emblem i {
  border: 1px solid color-mix(in srgb, var(--plum) 32%, transparent);
  height: 48px;
  position: absolute;
  transform: rotate(45deg);
  width: 48px;
}

.welcome-copy {
  text-align: center;
}

.welcome-copy p {
  color: color-mix(in srgb, var(--plum) 72%, var(--ivory));
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 570px;
}

.signature,
.closing-names {
  color: var(--mauve);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  margin-top: 26px;
}

.signature span,
.closing-names span {
  color: var(--champagne);
  font-size: .85em;
  margin: 0 5px;
}

/* Scratch */
.scratch-section {
  background: var(--lilac);
}

.scratch-section::before {
  background-image:
    linear-gradient(
      30deg,
      transparent 49.5%,
      color-mix(in srgb, var(--plum) 3.5%, transparent) 50%,
      transparent 50.5%
    ),
    linear-gradient(
      150deg,
      transparent 49.5%,
      color-mix(in srgb, var(--plum) 3.5%, transparent) 50%,
      transparent 50.5%
    );
  background-size: 42px 72px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  position: absolute;
}

.scratch-wrap {
  aspect-ratio: 1.6;
  background: var(--ivory);
  border: 1px solid color-mix(in srgb, var(--plum) 15%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--plum) 10%, transparent);
  margin: 0 auto;
  max-width: 650px;
  overflow: hidden;
  position: relative;
}

.scratch-wrap::before,
.scratch-wrap::after {
  border: 1px solid color-mix(in srgb, var(--champagne) 52%, transparent);
  content: "";
  height: 60px;
  position: absolute;
  transform: rotate(45deg);
  width: 60px;
  z-index: 1;
}

.scratch-wrap::before { left: -31px; top: -31px; }
.scratch-wrap::after { bottom: -31px; right: -31px; }

.date-reveal {
  align-items: center;
  color: var(--plum);
  display: flex;
  flex-direction: column;
  height: 100%;
  inset: 0;
  justify-content: center;
  padding: 25px;
  position: absolute;
  text-align: center;
}

.date-reveal::before {
  border: 1px solid color-mix(in srgb, var(--mauve) 18%, transparent);
  border-radius: 50% 50% 4px 4px / 33% 33% 4px 4px;
  content: "";
  inset: 24px 21%;
  position: absolute;
}

.date-reveal > * {
  position: relative;
  z-index: 1;
}

.date-kicker {
  color: var(--mauve);
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .23em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.date-reveal strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
}

.date-reveal span:not(.date-kicker) {
  font-family: var(--font-display);
  font-size: .9rem;
  font-style: italic;
  margin-top: 7px;
}

.date-reveal span:last-child {
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: .63rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .2em;
  margin-top: 6px;
}

.scratch-canvas {
  cursor: crosshair;
  height: 100%;
  inset: 0;
  position: absolute;
  touch-action: none;
  transition: opacity .7s ease, transform .8s ease;
  width: 100%;
  z-index: 3;
}

.scratch-canvas:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}

.scratch-wrap.is-revealed {
  animation: date-celebrate .85s cubic-bezier(.2,.8,.2,1);
}

@keyframes date-celebrate {
  40% {
    box-shadow: 0 28px 90px color-mix(in srgb, var(--mauve) 30%, transparent);
    transform: scale(1.02);
  }
}

.scratch-note {
  color: color-mix(in srgb, var(--plum) 64%, var(--ivory));
  font-family: var(--font-display);
  font-size: .9rem;
  font-style: italic;
  margin: 22px auto 0;
  text-align: center;
}

.petal-shower {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 100;
}

.petal-shower i {
  animation: petal-fall var(--petal-duration) var(--petal-delay) cubic-bezier(.25,.65,.45,.95) forwards;
  background: var(--lavender);
  border-radius: 90% 10% 70% 30%;
  height: 13px;
  left: var(--petal-x);
  opacity: 0;
  position: absolute;
  top: -25px;
  transform: rotate(20deg);
  width: 8px;
}

.petal-shower i:nth-child(3n) { background: var(--champagne); height: 9px; width: 9px; }
.petal-shower i:nth-child(4n) { background: var(--mauve); transform: rotate(70deg); }

@keyframes petal-fall {
  8% { opacity: .85; }
  100% { opacity: .15; transform: translate(var(--petal-drift), 110vh) rotate(620deg); }
}

/* Gallery */
.gallery-section {
  background: var(--ivory);
}

.gallery-frame {
  aspect-ratio: 4 / 5;
  background: var(--lilac);
  margin: 0 auto;
  max-height: 720px;
  max-width: 920px;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.gallery-slide {
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.035);
  transition: opacity 1.1s ease, transform 5.8s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.gallery-slide img {
  filter: saturate(.78) sepia(.05);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-slide::after {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--plum) 66%, transparent),
    transparent 37%
  );
  content: "";
  inset: 0;
  position: absolute;
}

.gallery-slide figcaption {
  bottom: 29px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-style: italic;
  left: 29px;
  letter-spacing: .01em;
  position: absolute;
  z-index: 2;
}

.gallery-corner {
  border-color: color-mix(in srgb, var(--ivory) 76%, transparent);
  border-style: solid;
  height: 36px;
  position: absolute;
  width: 36px;
  z-index: 3;
}

.gallery-corner-a { border-width: 1px 0 0 1px; left: 17px; top: 17px; }
.gallery-corner-b { border-width: 0 1px 1px 0; bottom: 17px; right: 17px; }

.gallery-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 24px;
}

.gallery-dots button {
  background: transparent;
  border: 1px solid var(--mauve);
  border-radius: 50%;
  cursor: pointer;
  height: 7px;
  padding: 0;
  transition: background .25s, transform .25s;
  width: 7px;
}

.gallery-dots button.is-active {
  background: var(--plum);
  transform: scale(1.35);
}

/* Countdown */
.countdown-section {
  background: var(--plum);
  color: var(--ivory);
}

.countdown-section::before,
.countdown-section::after {
  border: 1px solid color-mix(in srgb, var(--ivory) 11%, transparent);
  content: "";
  height: 380px;
  position: absolute;
  transform: rotate(45deg);
  width: 380px;
}

.countdown-section::before { left: -260px; top: -150px; }
.countdown-section::after { bottom: -240px; right: -240px; }

.countdown-section .eyebrow { color: var(--lavender); }
.countdown-section .section-heading h2 { color: var(--ivory); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 15px auto 0;
  max-width: 850px;
}

.countdown div {
  border-bottom: 0 solid color-mix(in srgb, var(--ivory) 17%, transparent);
  padding: 22px 10px;
  text-align: center;
}

.countdown div:nth-child(odd) {
  border-right: 0 solid color-mix(in srgb, var(--ivory) 17%, transparent);
}
.countdown div:nth-child(n+3) { border-bottom: 0; }

.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 12vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1;
}

.countdown span {
  display: block;
  font-size: .58rem;
  font-weight: 650;
  letter-spacing: .22em;
  margin-top: 7px;
  opacity: .68;
  text-transform: uppercase;
}

/* Program */
.program-section {
  background: color-mix(in srgb, var(--lilac) 55%, var(--ivory));
}

.timeline {
  margin: 0 auto;
  max-width: 830px;
  position: relative;
}

.timeline::before {
  background: color-mix(in srgb, var(--mauve) 32%, transparent);
  bottom: 28px;
  content: "";
  left: 20px;
  position: absolute;
  top: 28px;
  width: 1px;
}

.timeline article {
  align-items: start;
  display: grid;
  gap: 8px 17px;
  grid-template-columns: 40px 72px 1fr;
  padding: 22px 0;
  position: relative;
}

.timeline-index {
  align-items: center;
  background: color-mix(in srgb, var(--lilac) 55%, var(--ivory));
  border: 1px solid var(--champagne);
  border-radius: 50%;
  color: var(--champagne);
  display: flex;
  font-size: .49rem;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  letter-spacing: .1em;
  width: 40px;
  z-index: 1;
}

.timeline time {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding-top: 9px;
  text-transform: uppercase;
}

.timeline h3,
.event-list h3,
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  margin: 3px 0 8px;
}

.timeline p {
  color: color-mix(in srgb, var(--plum) 64%, var(--ivory));
  font-family: var(--font-display);
  font-size: .85rem;
  font-style: italic;
  margin: 0;
}

/* Venue */
.venue-section {
  background: var(--ivory);
  padding-left: 20px;
  padding-right: 20px;
}

.venue-arch {
  align-items: center;
  background: var(--plum);
  border-radius: 48% 48% 4px 4px / 20% 20% 4px 4px;
  color: var(--ivory);
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 980px;
  min-height: 560px;
  overflow: hidden;
  padding: 74px 26px 60px;
  position: relative;
}

.venue-arch::before,
.venue-arch::after {
  border: 1px solid color-mix(in srgb, var(--ivory) 16%, transparent);
  border-radius: inherit;
  content: "";
  inset: 13px;
  position: absolute;
}

.venue-arch::after {
  border-color: color-mix(in srgb, var(--champagne) 24%, transparent);
  inset: 26px;
}

.venue-inner {
  max-width: 630px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.venue-inner .eyebrow { color: var(--lavender); }
.venue-mark { color: var(--champagne); display: block; font-size: 1.1rem; margin: 24px 0; }
.venue-inner h2 { color: var(--ivory); font-size: clamp(3rem, 10vw, 5.4rem); }

.venue-inner p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.7;
  margin: 20px auto 31px;
  max-width: 480px;
  opacity: .78;
}

.primary-button {
  align-items: center;
  background: var(--plum);
  border: 1px solid var(--plum);
  border-radius: 0;
  color: var(--ivory);
  cursor: pointer;
  display: inline-flex;
  font-size: .62rem;
  font-weight: 700;
  gap: 24px;
  justify-content: center;
  letter-spacing: .16em;
  min-height: 50px;
  padding: 13px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s;
}

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

.primary-button.light {
  background: transparent;
  border-color: color-mix(in srgb, var(--ivory) 56%, transparent);
}

.primary-button.light:hover {
  background: var(--ivory);
  color: var(--plum);
}

/* Dress code */
.dress-section {
  background: var(--lilac);
}

.dress-shell {
  align-items: center;
  display: grid;
  gap: 45px;
  max-width: 960px;
}

.dress-copy {
  text-align: center;
}

.dress-copy p {
  color: color-mix(in srgb, var(--plum) 72%, var(--ivory));
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}

.palette {
  display: flex;
  justify-content: center;
}

.palette i {
  border: 4px solid var(--lilac);
  border-radius: 50%;
  box-shadow: 0 3px 15px color-mix(in srgb, var(--plum) 13%, transparent);
  display: block;
  height: 65px;
  margin-left: -10px;
  transition: transform .3s ease;
  width: 65px;
}

.palette i:first-child { margin-left: 0; }
.palette i:hover { transform: translateY(-7px); z-index: 2; }

/* Events */
.events-section {
  background: var(--ivory);
}

.event-list {
  border-top: 1px solid color-mix(in srgb, var(--plum) 17%, transparent);
  margin: 0 auto;
  max-width: 940px;
}

.event-list article {
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--plum) 17%, transparent);
  display: grid;
  gap: 6px 15px;
  grid-template-columns: 35px 1fr;
  padding: 23px 0;
  transition: padding .35s ease;
}

.event-list article:hover { padding-left: 8px; padding-right: 8px; }

.event-list article > span {
  color: var(--champagne);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.event-list h3 { font-size: 1.55rem; margin: 0; }

.event-list p {
  font-size: .61rem;
  font-weight: 650;
  grid-column: 2;
  letter-spacing: .1em;
  margin: 0;
  text-transform: uppercase;
}

.event-list small {
  color: color-mix(in srgb, var(--plum) 62%, var(--ivory));
  font-family: var(--font-display);
  font-size: .85rem;
  font-style: italic;
  grid-column: 2;
}

/* Gifts */
.gifts-section {
  align-items: center;
  background: var(--plum);
  color: var(--ivory);
  display: flex;
  justify-content: center;
  min-height: 560px;
  overflow: hidden;
  text-align: center;
}

.gift-bloom {
  height: 470px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 470px;
}

.gift-bloom::before,
.gift-bloom::after,
.gift-bloom i {
  border: 1px solid color-mix(in srgb, var(--ivory) 11%, transparent);
  border-radius: 50% 50% 0 50%;
  content: "";
  height: 46%;
  left: 27%;
  position: absolute;
  top: 4%;
  transform: rotate(45deg);
  transform-origin: 50% 100%;
  width: 46%;
}

.gift-bloom::after { transform: rotate(117deg); }
.gift-bloom i:nth-child(1) { transform: rotate(189deg); }
.gift-bloom i:nth-child(2) { transform: rotate(261deg); }
.gift-bloom i:nth-child(3) { border-radius: 50%; height: 42%; left: 29%; top: 29%; width: 42%; }

.gift-copy {
  max-width: 680px;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.gift-copy .eyebrow { color: var(--lavender); }
.gift-copy h2 { color: var(--ivory); }

.gift-copy p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.8;
  margin: 26px auto 0;
  opacity: .78;
}

/* RSVP */
.rsvp-section {
  background:
    radial-gradient(
      circle at 20% 20%,
      color-mix(in srgb, var(--lavender) 22%, transparent),
      transparent 25%
    ),
    var(--ivory);
}

.rsvp-shell {
  max-width: 880px;
}

.rsvp-form {
  display: grid;
  gap: 24px 28px;
}

.rsvp-form label {
  display: block;
}

.rsvp-form label > span {
  display: block;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .17em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--plum) 32%, transparent);
  border-radius: 0;
  color: var(--plum);
  outline: none;
  padding: 9px 0 12px;
  transition: border-color .25s;
  width: 100%;
}

.rsvp-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--mauve) 50%), linear-gradient(135deg, var(--mauve) 50%, transparent 50%);
  background-position: calc(100% - 6px) 50%, 100% 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 20px;
}

.rsvp-form textarea { resize: vertical; }

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus { border-color: var(--plum); }

.rsvp-form ::placeholder {
  color: color-mix(in srgb, var(--plum) 48%, var(--ivory));
  opacity: 1;
}

.form-wide { grid-column: 1 / -1; }

.form-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  margin-top: 12px;
  text-align: center;
}

.form-footer p {
  font-family: var(--font-display);
  font-size: .92rem;
  font-style: italic;
  margin: 0;
}

.form-footer small {
  color: color-mix(in srgb, var(--plum) 62%, var(--ivory));
  display: block;
  font-size: .67rem;
  margin-top: 2px;
}

.rsvp-success {
  margin: 0 auto;
  max-width: 610px;
  padding: 45px 25px;
  text-align: center;
}

.rsvp-success > span { color: var(--champagne); }
.rsvp-success h3 { font-size: 2.5rem; margin: 15px 0; }
.rsvp-success p {
  color: color-mix(in srgb, var(--plum) 68%, var(--ivory));
  font-family: var(--font-display);
}

.text-button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--plum);
  cursor: pointer;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 0;
  text-transform: uppercase;
}

/* Closing */
.closing-section {
  align-items: flex-end;
  background: var(--plum);
  color: var(--ivory);
  display: flex;
  justify-content: center;
  min-height: 620px;
  overflow: hidden;
  padding: 40px 20px 0;
  position: relative;
}

.closing-section::before {
  background-image:
    linear-gradient(
      30deg,
      transparent 49.5%,
      color-mix(in srgb, var(--ivory) 3%, transparent) 50%,
      transparent 50.5%
    ),
    linear-gradient(
      150deg,
      transparent 49.5%,
      color-mix(in srgb, var(--ivory) 3%, transparent) 50%,
      transparent 50.5%
    );
  background-size: 40px 69px;
  content: "";
  inset: 0;
  position: absolute;
}

.closing-arch {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--ivory) 22%, transparent);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 790px;
  min-height: 610px;
  padding: 80px 27px 55px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.closing-arch::before {
  border: 1px solid color-mix(in srgb, var(--champagne) 27%, transparent);
  border-bottom: 0;
  border-radius: inherit;
  content: "";
  inset: 13px 13px 0;
  position: absolute;
}

.closing-arch > * { position: relative; z-index: 1; }

.closing-arch .bismillah {
  direction: rtl;
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  max-width: 650px;
}

.closing-arch > p:not(.bismillah) {
  font-family: var(--font-display);
  font-size: .86rem;
  font-style: italic;
  line-height: 1.7;
  margin: 12px auto;
  max-width: 520px;
  opacity: .72;
}

.ornament.light::before,
.ornament.light::after {
  background: color-mix(in srgb, var(--ivory) 32%, transparent);
}
.ornament.light i { border-color: var(--champagne); }
.closing-section h2 { color: var(--ivory); font-size: clamp(2.6rem, 9vw, 5rem); margin-top: 30px; }
.closing-names { color: var(--lavender); margin-top: 10px; }

.closing-arch small {
  font-size: .56rem;
  font-weight: 650;
  letter-spacing: .19em;
  margin-top: 25px;
  opacity: .67;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .section-pad { padding: 132px 0; }
  .section-shell { width: min(1120px, calc(100% - 80px)); }
  .hero-geometry { inset: 28px; }
  .hero-content { padding-left: 55px; padding-right: 55px; }
  .couple-names { grid-template-columns: 1fr auto 1fr; gap: 27px; }
  .couple-names h1 { font-size: clamp(4.25rem, 8vw, 6.5rem); }
  .name-ampersand { font-size: 2.6rem; }
  .hero-invitation { margin-top: 38px; }
  .welcome-shell { grid-template-columns: .78fr 1.22fr; gap: 80px; }
  .welcome-copy { text-align: left; }
  .welcome-copy p { margin-left: 0; }
  .arch-emblem { max-width: 320px; width: 100%; }
  .gallery-frame { aspect-ratio: 16 / 10; }
  .gallery-slide figcaption { bottom: 40px; left: 43px; }
  .countdown { grid-template-columns: repeat(4, 1fr); }
  .countdown div,
  .countdown div:nth-child(odd) {
    border-bottom: 0;
    border-right: 0 solid color-mix(in srgb, var(--ivory) 17%, transparent);
  }
  .countdown div:last-child { border-right: 0; }
  .timeline article { grid-template-columns: 50px 115px 1fr; gap: 26px; padding: 27px 0; }
  .timeline::before { left: 25px; }
  .timeline-index { height: 50px; width: 50px; }
  .timeline time { padding-top: 13px; }
  .timeline h3 { font-size: 1.85rem; }
  .venue-arch { border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; min-height: 670px; }
  .dress-shell { grid-template-columns: 1.25fr .75fr; gap: 70px; }
  .dress-copy { text-align: left; }
  .palette { justify-content: flex-end; }
  .event-list article { grid-template-columns: 55px 1.1fr 1fr .9fr; padding: 29px 0; }
  .event-list p, .event-list small { grid-column: auto; }
  .event-list h3 { font-size: 1.8rem; }
  .rsvp-form { grid-template-columns: repeat(2, 1fr); }
  .form-footer { flex-direction: row; text-align: left; }
  .closing-section { padding-left: 55px; padding-right: 55px; }
}

@media (min-width: 1000px) {
  .hero-content { padding-top: 112px; }
  .couple-names h1 { font-size: 6.25rem; }
  .hero-welcome { margin-bottom: 38px; }
  .palette i { height: 78px; width: 78px; }
}

@media (max-height: 750px) and (min-width: 700px) {
  .hero-content { padding-bottom: 50px; padding-top: 75px; transform: scale(.88) translateY(20px); }
  .is-open .hero-content { transform: scale(.88); }
  .hero-invitation { margin-top: 24px; }
  .scroll-cue { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero.is-open .hero-content {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
}

.hero-video,
.is-open .hero-video {
  filter: none;
}

.hero-veil {
  background: transparent;
}

/* Readability for a light intro image/video */
.hero-content {
  color: var(--plum);
  text-shadow:
    0 1px 2px color-mix(in srgb, var(--ivory) 90%, transparent),
    0 4px 18px color-mix(in srgb, var(--ivory) 65%, transparent);
}

/* Hero decorative lines */
.hero-divider::before,
.hero-divider::after {
  background: color-mix(in srgb, var(--plum) 50%, transparent);
}

.hero-geometry::before,
.hero-geometry::after {
  border-color: color-mix(in srgb, var(--plum) 20%, transparent);
}

.hero-geometry i {
  border-color: color-mix(in srgb, var(--champagne) 34%, transparent);
}

/* Opening-screen decorations */
.opening-mono i {
  background: color-mix(in srgb, var(--plum) 55%, transparent);
}

/* Scroll indicator */
.scroll-cue i {
  background: color-mix(in srgb, var(--plum) 45%, transparent);
}

.scroll-cue i::after {
  background: var(--plum);
}

/* Prevent hero text from appearing before the invitation is opened */
.hero.is-closed .hero-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hero.is-open .hero-content {
  visibility: visible !important;
}

.hero {
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   NAQSH PREVIEW UI
========================= */

.naqsh-demo-badge {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 9998;

  padding: 8px 13px;
  border-radius: 999px;

  background: rgba(20, 20, 20, 0.72);
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  pointer-events: none;
}


/* FLOATING CTA */

.naqsh-preview-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;

  border: none;
  border-radius: 999px;

  padding: 14px 21px;

  background: #111;
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;

  cursor: pointer;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.naqsh-preview-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}


/* MODAL */

.naqsh-cta-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.naqsh-cta-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.naqsh-cta-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}


/* MODAL CARD */

.naqsh-cta-card {
  position: relative;
  z-index: 1;

  width: min(390px, 100%);
  padding: 38px 28px 28px;

  border-radius: 22px;

  background: #f8f5ef;
  color: #171717;

  text-align: center;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);

  transform: translateY(15px) scale(0.97);

  transition: transform 0.3s ease;
}

.naqsh-cta-modal.is-open .naqsh-cta-card {
  transform: translateY(0) scale(1);
}


.naqsh-cta-close {
  position: absolute;
  top: 12px;
  right: 15px;

  width: 34px;
  height: 34px;

  border: none;
  background: transparent;

  color: #222;
  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}


.naqsh-cta-eyebrow {
  display: block;
  margin-bottom: 12px;

  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.22em;
}


.naqsh-cta-card h3 {
  margin: 0 0 12px;

  font-size: 28px;
  font-weight: 500;
}


.naqsh-cta-card p {
  margin: 0 auto 25px;

  max-width: 310px;

  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.65;

  color: #666;
}


/* INSTAGRAM BUTTON */

.naqsh-instagram-btn {
  display: block;

  padding: 14px 20px;
  

  border-radius: 999px;

  background: #111;
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;

  text-decoration: none;

  transition: transform 0.2s ease;
}

.naqsh-instagram-btn:hover {
  transform: translateY(-1px);
}


/* MOBILE */

@media (max-width: 600px) {
  .naqsh-demo-badge {
    top: 12px;
    left: 12px;

    padding: 7px 11px;

    font-size: 9px;
  }

  .naqsh-preview-cta {
    right: 14px;
    bottom: 14px;

    padding: 13px 18px;

    font-size: 12px;
  }

  .naqsh-cta-card {
    padding: 36px 22px 24px;
  }
}

.naqsh-demo-badge {
    display: none;
    
}


/* ==================== WEDSMINT OVERLAY ==================== */
.wedsmint-demo-badge {
  position: fixed !important;
  top: 18px !important;
  left: 18px !important;
  z-index: 99999 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(20, 20, 20, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  display: block !important;
}

.wedsmint-preview-cta {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 99999 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 22px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  display: block !important;
}

.wedsmint-preview-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
}

.wedsmint-cta-modal {
  opacity: 0 !important;
  visibility: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.wedsmint-cta-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
}

.wedsmint-cta-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.wedsmint-cta-card {
  position: relative !important;
  z-index: 1 !important;
  background: #ffffff !important;
  color: #111111 !important;
  padding: 36px 28px 28px !important;
  border-radius: 20px !important;
  max-width: 420px !important;
  width: 100% !important;
  text-align: center !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
  transform: translateY(15px) scale(0.97) !important;
  transition: transform 0.3s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.wedsmint-cta-modal.is-open .wedsmint-cta-card {
  transform: translateY(0) scale(1) !important;
}

.wedsmint-cta-close {
  position: absolute !important;
  top: 12px !important;
  right: 15px !important;
  width: 34px !important;
  height: 34px !important;
  border: none !important;
  background: transparent !important;
  color: #222222 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.wedsmint-cta-eyebrow {
  display: block !important;
  margin-bottom: 12px !important;
  font-family: Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  color: #888888 !important;
}

.wedsmint-cta-card h3 {
  margin: 0 0 12px !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  color: #111111 !important;
}

.wedsmint-cta-card p {
  margin: 0 auto 25px !important;
  max-width: 310px !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #666666 !important;
}

.wedsmint-instagram-btn {
  display: block !important;
  padding: 14px 20px !important;
  border-radius: 999px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform 0.2s ease !important;
}

.wedsmint-instagram-btn:hover {
  transform: translateY(-1px) !important;
}
