/* ═══════════════════════════════════════════════════════════
   Noura & Abdelrahman — Katb Al-Kitab
   A letterpress invitation in emerald, ivory & gold
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "UthmanicHafs";
  src: url("fonts/UthmanicHafs.woff2") format("woff2"),
       url("fonts/UthmanicHafs.ttf") format("truetype");
  font-display: swap;
}

:root {
  --emerald-deep: #0b231d;
  --emerald: #103129;
  --emerald-soft: #1a4036;
  --ink: #1d3329;
  --ink-soft: #45594e;

  --gold: #b3893f;
  --gold-bright: #d4af6a;
  --gold-pale: #e9dcbb;
  --gold-whisper: rgba(179, 137, 63, 0.35);

  --ivory: #f7f2e7;
  --paper: #faf6ec;
  --paper-deep: #f1ead9;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", cursive;
  --arabic: "Amiri", serif;
  --quran: "Amiri Quran", "Amiri", serif;

  /* Islamic eight-point star lattice, whispered onto the paper */
  --star-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23b3893f' stroke-opacity='0.10' stroke-width='1'%3E%3Crect x='34' y='34' width='44' height='44'/%3E%3Crect x='34' y='34' width='44' height='44' transform='rotate(45 56 56)'/%3E%3Ccircle cx='56' cy='56' r='3.5'/%3E%3Cpath d='M0 56h22M90 56h22M56 0v22M56 90v22'/%3E%3C/g%3E%3C/svg%3E");
  --star-lattice-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23d4af6a' stroke-opacity='0.08' stroke-width='1'%3E%3Crect x='34' y='34' width='44' height='44'/%3E%3Crect x='34' y='34' width='44' height='44' transform='rotate(45 56 56)'/%3E%3Ccircle cx='56' cy='56' r='3.5'/%3E%3Cpath d='M0 56h22M90 56h22M56 0v22M56 90v22'/%3E%3C/g%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.floral {
  display: block;
  width: clamp(210px, 38vw, 300px);
  aspect-ratio: 360 / 80;
  margin: 0 auto;
  color: var(--gold);
}

.sprig {
  display: block;
  width: clamp(72px, 12vw, 96px);
  aspect-ratio: 120 / 96;
  margin: 0 auto 0.6rem;
  color: var(--gold);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.veiled { overflow: hidden; height: 100dvh; }

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

/* ═══════════════ THE VEIL ═══════════════ */

.veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.veil.lifted { pointer-events: none; }
.veil.gone { display: none; }

.veil-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    var(--star-lattice-light),
    linear-gradient(160deg, var(--emerald-soft) 0%, var(--emerald) 38%, var(--emerald-deep) 100%);
  transition: transform 1.9s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.veil-panel--left  { left: 0;  box-shadow: inset -1px 0 0 rgba(212, 175, 106, 0.25); }
.veil-panel--right { right: 0; box-shadow: inset  1px 0 0 rgba(212, 175, 106, 0.25); }

.veil.lifted .veil-panel--left  { transform: translateX(-101%); }
.veil.lifted .veil-panel--right { transform: translateX(101%); }

.veil-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 46rem;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.veil.lifted .veil-content { opacity: 0; transform: translateY(-1.25rem); }

/* staggered entrance */
.veil-content > * {
  opacity: 0;
  transform: translateY(0.9rem);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.veil-ornament--top    { animation-delay: 0.25s; }
.veil-bismillah        { animation-delay: 0.55s; }
.veil-script           { animation-delay: 0.95s; }
.veil-label            { animation-delay: 1.2s; }
.veil-script--of       { animation-delay: 1.45s; }
.veil-names            { animation-delay: 1.7s; }
.veil-floral           { animation-delay: 2.15s; }
.veil-button           { animation-delay: 2.45s; }

.veil-floral {
  display: block;
  width: clamp(200px, 34vw, 270px);
  aspect-ratio: 360 / 80;
  margin: 1.4rem auto 0;
  color: var(--gold-bright);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.veil-ornament {
  color: var(--gold-bright);
  display: flex;
  justify-content: center;
}
.veil-ornament svg { width: clamp(96px, 14vw, 130px); height: auto; }
.veil-ornament--top { margin-bottom: 2.2rem; }
.veil-ornament--bottom { margin-top: 2.4rem; }

.veil-bismillah {
  font-family: var(--quran);
  font-size: clamp(1.8rem, 7.8vw, 4rem);
  line-height: 1.6;
  color: var(--gold-pale);
  margin-bottom: 1.8rem;
}

.veil-script {
  font-family: var(--script);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  color: var(--gold-bright);
  line-height: 1.1;
}

.veil-script--of { margin-top: 1.1rem; }

.veil-label {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--ivory);
}

.veil-names {
  margin-top: 0.9rem;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}

.veil-name {
  font-size: clamp(1.55rem, 4.6vw + 0.4rem, 3.7rem);
  letter-spacing: 0.1em;
  color: var(--ivory);
  line-height: 1.12;
}

.veil-amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  color: var(--gold-bright);
  line-height: 1;
  margin: 0.18em 0;
}

.veil-button {
  margin-top: 1.9rem;
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.7vw, 0.95rem);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 1.05rem 2.6rem;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.45s ease, border-color 0.45s ease;
}

.veil-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.veil-button:hover, .veil-button:focus-visible {
  color: var(--emerald-deep);
  border-color: var(--gold-bright);
}
.veil-button:hover::before, .veil-button:focus-visible::before { transform: scaleX(1); }
.veil-button span { position: relative; }

/* ═══════════════ SHARED ═══════════════ */

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.hero-divider, .verse-divider, .footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.line {
  display: block;
  width: clamp(48px, 8vw, 88px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.diamond {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ═══════════════ HERO ═══════════════ */

.invitation {
  background:
    radial-gradient(ellipse 130% 90% at 18% 8%, rgba(233, 220, 187, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 130% 90% at 85% 92%, rgba(233, 220, 187, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--paper) 55%, var(--paper-deep) 100%);
}

.hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-flora {
  position: absolute;
  width: clamp(190px, 40vw, 520px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.hero-flora--tr { top: clamp(-30px, -2vw, -10px); right: clamp(-60px, -5vw, -20px); }
.hero-flora--bl { bottom: clamp(-30px, -2vw, -10px); left: clamp(-60px, -5vw, -20px); }

.hero-frame {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.8rem, 6vw, 5rem);
  max-width: 56rem;
}

.hero-bismillah {
  font-family: var(--quran);
  font-size: clamp(1.7rem, 7.4vw, 3.6rem);
  line-height: 1.6;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.hero-verse {
  margin-bottom: 2.6rem;
}

.hero-verse-arabic {
  font-family: "UthmanicHafs", var(--quran);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.9;
  color: var(--emerald);
}

.nowrap { white-space: nowrap; }

.hero-verse-translation {
  margin-top: 0.6rem;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.9vw, 1rem);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hero-intro {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 2.8rem;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-name {
  font-weight: 300;
  font-size: clamp(1.9rem, 7.2vw, 5.2rem);
  letter-spacing: 0.1em;
  line-height: 1.05;
  color: var(--emerald);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-surname {
  font-size: 0.42em;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  font-weight: 500;
  color: var(--gold);
  margin-top: 0.55em;
}

.hero-amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  color: var(--gold-bright);
  line-height: 1;
  margin: 0.5rem 0;
}

.hero-arabic {
  font-family: var(--arabic);
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  color: var(--ink-soft);
  margin-top: 2.4rem;
}

.hero-invite {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 2.4rem;
}

.hero-invite em {
  font-style: italic;
  color: var(--emerald);
}

.hero-frame .floral { margin: 2rem auto; }

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.8rem);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--emerald);
}

.hero-date-bar {
  width: 1px;
  height: 1.6em;
  background: var(--gold);
}

.hero-hijri {
  margin-top: 1.1rem;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.08em;
  color: var(--gold);
}

.hero-venue {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--ink-soft);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: drip 2.6s ease-in-out infinite;
}

@keyframes drip {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════ DETAILS ═══════════════ */

.details {
  padding: 0 1.25rem clamp(4rem, 8vw, 6.5rem);
  max-width: 62rem;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

.section-title::before, .section-title::after {
  content: "";
  flex: 0 1 110px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-whisper));
}
.section-title::after { background: linear-gradient(to left, transparent, var(--gold-whisper)); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.detail--center {
  border-left: 1px solid var(--gold-whisper);
  border-right: 1px solid var(--gold-whisper);
  padding: 0 1.5rem;
}

.detail-arabic {
  font-family: var(--arabic);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.detail-label {
  font-weight: 500;
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.detail-value {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--emerald);
}

.detail-maps {
  margin-top: 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.7rem;
}

.detail-map-sep { color: var(--gold-whisper); }

.detail-map {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-whisper);
  padding-bottom: 0.3rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.detail-map:hover { color: var(--emerald); border-color: var(--emerald); }

/* ═══════════════ ATTIRE ═══════════════ */

.attire {
  padding: 0 1.25rem clamp(4.5rem, 9vw, 7rem);
  display: grid;
  place-items: center;
}

.attire-inner {
  text-align: center;
  max-width: 34rem;
  width: 100%;
  border: 1px solid var(--gold-whisper);
  outline: 1px solid rgba(179, 137, 63, 0.15);
  outline-offset: 5px;
  padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(255, 253, 247, 0.4);
}

.attire-arabic {
  font-family: var(--arabic);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.attire-label {
  font-weight: 500;
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.attire-value {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--emerald);
}

.attire-note {
  margin-top: 1rem;
  font-style: italic;
  font-size: clamp(0.98rem, 2.1vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ═══════════════ THE EVENING ═══════════════ */

.evening {
  padding: 0 1.25rem clamp(4.5rem, 9vw, 7rem);
  max-width: 44rem;
  margin: 0 auto;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.8rem, 6vw, 4rem);
  text-align: center;
}

.timeline::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  bottom: -0.5rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-whisper) 12%, var(--gold-whisper) 88%, transparent);
}

.moment { position: relative; }

.moment-time {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 400;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.moment-time span {
  display: block;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.moment-marker {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  background: var(--paper);
  transform: rotate(45deg);
  margin: 1.1rem auto;
}

.moment-title {
  font-weight: 500;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.moment-desc {
  margin-top: 0.55rem;
  font-style: italic;
  font-size: clamp(0.98rem, 2.1vw, 1.15rem);
  color: var(--ink-soft);
}

/* ═══════════════ SAVE THE DATE ═══════════════ */

.calendar {
  padding: 0 1.25rem clamp(4.5rem, 9vw, 7rem);
  display: grid;
  place-items: center;
}

.calendar-inner {
  text-align: center;
  width: 100%;
  max-width: 46rem;
  border-top: 1px solid var(--gold-whisper);
  padding-top: clamp(3rem, 6vw, 4.2rem);
}

.calendar-script {
  font-family: var(--script);
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  color: var(--emerald);
  line-height: 1.1;
}

.calendar-sub {
  margin-top: 1rem;
  font-style: italic;
  font-size: clamp(0.98rem, 2.1vw, 1.18rem);
  color: var(--ink-soft);
}

.calendar-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.cal-btn {
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--emerald);
  border: 1px solid var(--gold);
  padding: 0.95rem 1.6rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.4s ease;
}

.cal-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.cal-btn:hover, .cal-btn:focus-visible { color: var(--emerald-deep); }
.cal-btn:hover::before, .cal-btn:focus-visible::before { transform: scaleY(1); }

/* ── Countdown ── */

.countdown {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.countdown-title {
  font-family: var(--script);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--gold);
  margin-bottom: 2rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3.5vw, 2.4rem);
}

.count { display: flex; flex-direction: column; gap: 0.55rem; min-width: 3.2em; }

.count-num {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 300;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.count-label {
  font-size: clamp(0.66rem, 1.4vw, 0.76rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.count-sep {
  color: var(--gold);
  font-size: 0.8rem;
  transform: translateY(-0.7rem);
}

/* ═══════════════ RSVP ═══════════════ */

.rsvp {
  padding: 0 1.25rem clamp(5rem, 10vw, 8rem);
  display: grid;
  place-items: center;
}

.rsvp-inner {
  text-align: center;
  width: 100%;
  max-width: 40rem;
  border-top: 1px solid var(--gold-whisper);
  border-bottom: 1px solid var(--gold-whisper);
  padding: clamp(3rem, 6vw, 4.2rem) clamp(1.4rem, 6vw, 4.5rem);
}

.rsvp-script {
  font-family: var(--script);
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  color: var(--emerald);
  line-height: 1.1;
}

.rsvp-deadline {
  margin-top: 1rem;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
}

/* ── The form ── */

.rsvp-form {
  margin-top: 2.8rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.honey { display: none; }

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

.field { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }

.field-row { display: flex; gap: 1.5rem; }

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field label em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.field input,
.field select,
.field textarea {
  font-family: var(--serif);
  font-size: max(16px, 1.05rem);
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid var(--gold-whisper);
  border-radius: 0;
  padding: 0.85rem 1rem;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { resize: vertical; min-height: 5.5rem; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b3893f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(69, 89, 78, 0.45); font-style: italic; font-weight: 400; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fffdf7;
}

/* attendance choice */

.attend {
  border: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 3.5rem);
  padding: 0.6rem 0 0.2rem;
}

.attend-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.attend-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attend-mark {
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.attend-option input:checked + .attend-mark {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold);
}

.attend-option input:focus-visible + .attend-mark {
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--emerald);
}

.attend-text {
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}

.attend-option input:checked ~ .attend-text { color: var(--emerald); }

.rsvp-error {
  font-style: italic;
  text-align: center;
  color: #8c3b2e;
}

.rsvp-error a { color: var(--gold); }

/* success state */

.rsvp-success { padding: 1.5rem 0 0.5rem; }

.rsvp-success-script {
  font-family: var(--script);
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  color: var(--emerald);
}

.rsvp-success-note {
  margin-top: 1.1rem;
  font-style: italic;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.rsvp-button {
  display: inline-block;
  margin-top: 0.4rem;
  align-self: center;
  font-size: clamp(0.8rem, 1.7vw, 0.92rem);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--serif);
  cursor: pointer;
  color: var(--paper);
  background: linear-gradient(135deg, var(--emerald-soft), var(--emerald-deep));
  border: 1px solid var(--emerald);
  padding: 1.1rem 2.8rem;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  transition: color 0.45s ease, opacity 0.3s ease;
}

.rsvp-button:disabled { opacity: 0.55; cursor: wait; }

.rsvp-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.rsvp-button:hover, .rsvp-button:focus-visible { color: var(--emerald-deep); }
.rsvp-button:hover::before, .rsvp-button:focus-visible::before { transform: scaleX(1); }
.rsvp-button span { position: relative; }

/* ═══════════════ FOOTER ═══════════════ */

.footer {
  text-align: center;
  padding: 0 1.25rem clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.footer-flora {
  position: absolute;
  bottom: clamp(-50px, -3vw, -16px);
  right: clamp(-70px, -6vw, -24px);
  width: clamp(180px, 30vw, 380px);
  height: auto;
  opacity: 0.4;
  transform: scaleX(-1);
  pointer-events: none;
  user-select: none;
}

.footer > *:not(.footer-flora) { position: relative; z-index: 1; }

.footer-divider { margin-bottom: 2.6rem; }

.footer-arabic {
  font-family: var(--quran);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.footer-note {
  font-style: italic;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-monogram {
  margin-top: 2.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold);
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 720px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .detail--center {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--gold-whisper);
    border-bottom: 1px solid var(--gold-whisper);
    padding: 3rem 0;
  }
  .corner { width: 38px; }

  .field-row { flex-direction: column; gap: 1.5rem; }

  .section-title { gap: 0.9rem; }
  .section-title::before, .section-title::after { flex: 0 1 36px; }

  .countdown-grid { gap: 0.55rem; }
  .count { min-width: 0; flex: 0 1 auto; }
  .count-num { font-size: 1.9rem; }
  .count-label { font-size: 0.6rem; letter-spacing: 0.16em; text-indent: 0.16em; }
  .count-sep { font-size: 0.6rem; transform: translateY(-0.5rem); }

  .calendar-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .cal-btn { justify-content: center; }

  .rsvp-button { align-self: stretch; text-align: center; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .veil-content > * { animation-duration: 0.01s; animation-delay: 0s; }
  .veil-panel { transition-duration: 0.01s; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-hint span { animation: none; }
}
