/* ═══════════════════════════════════════════
   Afaq & Menahil — Nikkah Invitation Styles
   ═══════════════════════════════════════════ */

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

:root {
  --sage:        #7A8C6E;
  --sage-light:  #A8B89A;
  --sage-pale:   #D6E0CE;
  --sage-deep:   #4E5F44;
  --ivory:       #F7F3EC;
  --ivory-warm:  #EDE5D8;
  --gold:        #B8986A;
  --gold-light:  #D4B98A;
  --gold-deep:   #8C6D3F;
  --charcoal:    #2C2C2A;
  --stone:       #6B6560;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Tenor Sans', sans-serif;
  --font-arabic:  'Scheherazade New', 'Traditional Arabic', serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}


/* ════════════════════════════════════════════
   ENVELOPE SCENE
════════════════════════════════════════════ */

#envelope-scene {
  position: fixed; inset: 0; z-index: 800; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 38%, #F5EFE4 0%, #EAE0CE 100%);
}
#envelope-scene.hide { display: none; }

.env-stage {
  position: relative;
  width: min(460px, 90vw);
  display: flex; flex-direction: column; align-items: center;
}

/* ── Letter card — sits inside envelope, rises up through the opening ── */
.env-card-reveal {
  position: absolute;
  top: 30%; left: 9%; width: 82%; height: 55%;
  background: var(--ivory);
  border: 1px solid rgba(184,152,106,0.25);
  border-radius: 1px;
  z-index: 2;
  transform: translateY(30px) translateZ(0);
  opacity: 0;
  will-change: transform, opacity;
}
/* Card starts rising at 150ms — flap is already gone, gap is visible */
#envelope-scene.opening .env-card-reveal {
  animation: card-rise 0.75s 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes card-rise {
  0%   { transform: translateY(30px)  translateZ(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-75%)  translateZ(0); opacity: 1; }
}

/* ── Envelope body — rises and fades as card emerges ── */
.env-body {
  width: 100%;
  filter: drop-shadow(0 32px 64px rgba(42,30,12,0.2)) drop-shadow(0 8px 18px rgba(42,30,12,0.1));
  position: relative; z-index: 1;
  transition: transform 0.4s var(--ease);
  will-change: transform, opacity;
}
#envelope-scene.opening .env-body {
  filter: none;
  animation: env-drop 0.8s 0.22s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
@keyframes env-drop {
  to { transform: translateY(20px) translateZ(0); opacity: 0.3; }
}
.env-body:hover { transform: translateY(-4px); }
@media (hover: none) { .env-body:hover { transform: none; } }

.env-body svg { display: block; width: 100%; }

/* ── Flap — snaps open fast (seal breaking), decelerates as it swings back,
   fades from 55% onward so it's clearly visible for the swing but ghosts
   out before it merges awkwardly with the envelope body ── */
#env-flap {
  transform-origin: center 16.3%; /* hinge at y=50 in a 306-tall SVG */
  will-change: transform, opacity;
}
#envelope-scene.opening .env-body svg {
  perspective: 2400px;
  transform-style: preserve-3d;
}
#envelope-scene.opening #env-flap {
  animation: flap-open 0.36s 0s cubic-bezier(0.25, 0, 0.3, 1) forwards;
}
@keyframes flap-open {
  0%   { transform: rotateX(0deg);   opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: rotateX(-82deg); opacity: 0; }
}

/* ── Hint text ── */
.env-hint-wrap {
  margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: opacity 0.15s ease;
}
#envelope-scene.opening .env-hint-wrap { opacity: 0; pointer-events: none; }

.env-hint {
  font-family: var(--font-body); font-size: 0.67rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--stone); opacity: 0.55;
  animation: breathe 3s ease-in-out infinite;
}
.env-hint-line {
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  opacity: 0.45; animation: breathe 3s ease-in-out infinite 0.4s;
}
@keyframes breathe {
  0%,100% { opacity: 0.35; transform: translateY(0); }
  50%      { opacity: 0.7;  transform: translateY(-2px); }
}

/* ════════════════════════════════════════════
   TRANSITION OVERLAY
   Fades out while scaling up slightly — creates
   the perceptual illusion of expanding outward
   (matching the old clip-path circle direction)
   using only transform+opacity, fully GPU
   composited on iOS Safari and Android Chrome.
════════════════════════════════════════════ */
#env-overlay {
  position: fixed; inset: 0; z-index: 790;
  background: var(--ivory);
  transform: scale(1) translateZ(0);
  transform-origin: center center;
  will-change: transform, opacity;
  pointer-events: none;
}
#env-overlay.dismiss {
  animation: overlay-dismiss 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes overlay-dismiss {
  0%   { transform: scale(1)    translateZ(0); opacity: 1; }
  100% { transform: scale(1.08) translateZ(0); opacity: 0; }
}

/* Reduced motion — skip envelope entirely */
@media (prefers-reduced-motion: reduce) {
  #envelope-scene { display: none !important; }
  #env-overlay    { display: none !important; }
  nav { opacity: 1 !important; pointer-events: auto !important; }
}


/* ════════════════════════════════════════════
   MAIN SITE
════════════════════════════════════════════ */
#main-site { opacity: 1; }


/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 18px clamp(24px,6vw,80px);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 900; transition: background 0.4s, box-shadow 0.4s;
  opacity: 0; pointer-events: none;
}
nav.visible {
  opacity: 1; pointer-events: auto;
  transition: opacity 0.55s ease, background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(247,243,236,0.93);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--sage-pale);
}
.nav-brand {
  font-family: var(--font-display); font-size: 1.05rem;
  font-style: italic; font-weight: 400; color: var(--charcoal); text-decoration: none;
}
.nav-links { display: flex; gap: clamp(18px,3vw,36px); list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-size: 0.67rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--sage-deep); }
@media (max-width: 560px) { .nav-links { display: none; } }


/* ── Shared ── */
section { padding: clamp(72px,11vw,130px) clamp(24px,8vw,120px); position: relative; }

.section-label {
  font-family: var(--font-body); font-size: 0.67rem;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--sage);
  display: block; margin-bottom: 17px;
}
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.08;
  color: var(--charcoal); margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--sage-deep); }
.section-body {
  font-family: var(--font-body); font-size: clamp(0.88rem,1.6vw,1rem);
  line-height: 1.9; color: var(--stone); max-width: 520px;
}
.section-body--centered { max-width: 100%; margin: 0 auto; }

/* Swan rule */
.swan-rule {
  display: flex; align-items: center; gap: 18px;
  margin: 24px 0; color: var(--gold); opacity: 0.6;
}
.swan-rule-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light));
}
.swan-rule:last-of-type .swan-rule-line {
  background: linear-gradient(to left, transparent, var(--gold-light));
}
.swan-rule-icon { width: 56px; height: 38px; flex-shrink: 0; overflow: visible; }


/* ── Hero ── */
#hero {
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto 1fr;
  align-items: center; padding-top: clamp(80px,12vw,120px);
  text-align: center; overflow: hidden;
}

.hero-corner {
  position: absolute; opacity: 0.16; pointer-events: none;
  width: clamp(100px,16vw,210px); height: clamp(100px,16vw,210px);
}
.hero-corner.tl { top: 0; left: 0; }
.hero-corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.hero-corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.hero-corner.br { bottom: 0; right: 0; transform: scale(-1,-1); }

.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.1rem,2.8vw,1.65rem);
  color: var(--gold-deep); line-height: 1.9;
  direction: rtl; display: block;
  opacity: 0; animation: fade-up 1.0s 2.07s var(--ease) forwards;
  margin-bottom: 14px;
}
.hero-eyebrow {
  font-family: var(--font-body); font-size: clamp(0.6rem,1.4vw,0.73rem);
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--sage);
  opacity: 0; animation: fade-up 1.0s 2.22s var(--ease) forwards;
  margin-bottom: 24px;
}

.hero-names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fade-up 1.0s 2.37s var(--ease) forwards;
}
.hero-names em {
  font-style: italic;
  color: var(--sage-deep);
  display: block;
  line-height: 1;
}
.hero-name-block {
  display: block;
  margin-bottom: clamp(6px, 1.5vw, 14px);
}
.hero-lineage {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  font-style: italic;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.4;
}
.hero-amp {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}

.hero-meta {
  opacity: 0;
  animation: fade-up 1.0s 2.57s var(--ease) forwards;
  margin-top: clamp(22px,4vw,38px);
}
.hero-date {
  font-family: var(--font-display); font-size: clamp(0.95rem,2.4vw,1.4rem);
  font-weight: 400; color: var(--stone); letter-spacing: 0.1em;
}
.hero-nikkah {
  font-family: var(--font-body); font-size: clamp(0.6rem,1.4vw,0.74rem);
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage); margin-top: 8px;
}

.hero-scroll {
  grid-row: 3; align-self: end;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fade-up 1.0s 2.87s ease forwards;
}
.scroll-line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--sage-light), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 0.9; transform: scaleY(1.2); }
}
.scroll-label {
  font-family: var(--font-body); font-size: 0.58rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage-light);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Welcome ── */
#welcome { background: var(--ivory-warm); text-align: center; }
#welcome::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-pale), transparent);
}
.welcome-inner { max-width: 700px; margin: 0 auto; }

.swan-pair {
  width: clamp(260px, 55vw, 420px);
  margin: 0 auto 36px;
  display: block;
}
.swan-pair--small {
  width: clamp(160px, 35vw, 240px);
  margin: 0 auto 22px;
}

.quran-verse {
  font-family: var(--font-display); font-size: clamp(1.1rem,2.8vw,1.55rem);
  font-style: italic; font-weight: 400; color: var(--sage-deep); line-height: 1.65;
  margin: 18px 0 7px;
}
.quran-ref {
  font-family: var(--font-body); font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); opacity: 0.68; margin-bottom: 22px;
}
.welcome-body {
  font-family: var(--font-body); font-size: clamp(0.88rem,1.6vw,1rem);
  line-height: 1.9; color: var(--stone);
}


/* ── Details ── */
#details { background: var(--ivory); }
.details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: clamp(24px,4vw,44px); margin-top: 48px;
}
.detail-card { border-top: 1px solid var(--sage-pale); padding-top: 26px; position: relative; }
.detail-card::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 30px; height: 1px; background: var(--gold);
}
.detail-time {
  font-family: var(--font-body); font-size: 0.67rem;
  letter-spacing: 0.27em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px;
}
.detail-event {
  font-family: var(--font-display); font-size: clamp(1.2rem,2.4vw,1.6rem);
  font-weight: 400; color: var(--charcoal); margin-bottom: 9px; line-height: 1.15;
}
.detail-text {
  font-family: var(--font-body); font-size: 0.85rem; line-height: 1.75; color: var(--stone);
}


/* ── Geometric Band ── */
#geometric-band {
  background: var(--sage-deep);
  padding: clamp(30px,5vw,46px) clamp(24px,8vw,120px);
  display: flex; align-items: center; justify-content: center;
  gap: 22px; overflow: hidden; position: relative;
}
#geometric-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='rgba(168,184,154,0.1)' stroke-width='0.5'%3E%3Cpolygon points='20,2 25,10 34,10 28,17 31,26 20,21 9,26 12,17 6,10 15,10'/%3E%3Ccircle cx='20' cy='20' r='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.geo-line {
  flex: 1; height: 1px; z-index: 2;
  background: linear-gradient(to right, transparent, rgba(214,224,206,0.3));
}
.geo-line:last-child { background: linear-gradient(to left, transparent, rgba(214,224,206,0.3)); }
.geo-text {
  font-family: var(--font-arabic); font-size: clamp(1.1rem,2.8vw,1.65rem);
  color: var(--ivory); opacity: 0.9; text-align: center; z-index: 2;
  line-height: 1.9; direction: rtl;
}
.geo-text small {
  display: block; font-size: 0.68em; opacity: 0.6;
  font-family: var(--font-body); letter-spacing: 0.05em; direction: ltr;
}


/* ── Venue ── */
#venue { background: var(--sage-deep); color: var(--ivory); }
#venue .section-label { color: rgba(214,224,206,0.6); }
#venue .section-title { color: var(--ivory); }
#venue .section-title em { color: var(--sage-pale); }
#venue .section-body { color: rgba(247,243,236,0.7); }
.venue-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px,6vw,80px); align-items: start;
}
@media (max-width: 700px) { .venue-layout { grid-template-columns: 1fr; } }
.venue-map-placeholder {
  border: 1px solid rgba(214,224,206,0.2); border-radius: 3px; aspect-ratio: 4/3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: rgba(0,0,0,0.15); text-align: center; padding: 24px;
}
.venue-map-placeholder p {
  font-family: var(--font-body); font-size: 0.73rem;
  letter-spacing: 0.14em; color: var(--sage-pale); opacity: 0.6;
}
.map-note { font-size: 0.62rem !important; opacity: 0.4 !important; margin-top: 6px; }
.venue-detail-row { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.venue-detail-item { border-left: 1.5px solid rgba(168,184,154,0.28); padding-left: 17px; }
.venue-detail-item strong {
  display: block; font-family: var(--font-body); font-size: 0.63rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(214,224,206,0.58); margin-bottom: 4px;
}
.venue-detail-item span {
  font-family: var(--font-display); font-size: 1.06rem;
  color: var(--ivory); font-weight: 400; line-height: 1.55;
}
.venue-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 26px;
  font-family: var(--font-body); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-pale);
  text-decoration: none; border-bottom: 1px solid rgba(168,184,154,0.32);
  padding-bottom: 3px; transition: color 0.3s, border-color 0.3s;
}
.venue-link:hover { color: var(--ivory); border-color: rgba(247,243,236,0.65); }


/* ── RSVP ── */
#rsvp { background: var(--ivory); text-align: center; }
#rsvp::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-pale), transparent);
}
.rsvp-form-wrap { max-width: 560px; margin: 46px auto 0; }
.rsvp-form-label {
  font-family: var(--font-body); font-size: 0.67rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-deep);
  margin-bottom: 10px; text-align: left; display: block;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 7px; text-align: left; margin-bottom: 20px; }
.field-group label {
  font-family: var(--font-body); font-size: 0.67rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-deep);
}
.field-group input, .field-group select, .field-group textarea {
  font-family: var(--font-body); font-size: 0.93rem; color: var(--charcoal);
  background: transparent; border: none; border-bottom: 1px solid var(--sage-pale);
  padding: 10px 2px; outline: none; transition: border-color 0.3s; width: 100%;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.field-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A8C6E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; padding-right: 22px;
}
.field-group textarea { resize: vertical; min-height: 86px; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-bottom-color: var(--sage); }
.attendance-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--sage-pale); border-radius: 2px; overflow: hidden; margin-bottom: 22px;
}
.attendance-btn {
  padding: 14px 12px; font-family: var(--font-body); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; border: none; background: transparent; color: var(--stone);
  transition: background 0.25s, color 0.25s;
}
.attendance-btn.active { background: var(--sage-deep); color: var(--ivory); }
.attendance-btn:first-child { border-right: 1px solid var(--sage-pale); }
.guest-count-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; margin-bottom: 4px;
  border-bottom: 1px solid var(--sage-pale);
}
.guest-count-label {
  font-family: var(--font-body); font-size: 0.67rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-deep);
}
.guest-count-controls {
  display: flex; align-items: center; gap: 4px;
}
.count-btn {
  width: 32px; height: 32px; border: 1px solid var(--sage-pale);
  background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s, border-color 0.2s;
}
.count-btn:hover { background: var(--sage-pale); border-color: var(--sage); }
.count-display {
  font-family: var(--font-display); font-size: 1.5rem;
  width: 44px; text-align: center; color: var(--charcoal);
}
.attending-only { display: none; }
.attending-only.show { display: block; }
.rsvp-message-field { margin-top: 28px; }
.btn-submit {
  width: 100%; padding: 18px; background: var(--sage-deep); color: var(--ivory);
  border: none; font-family: var(--font-body); font-size: 0.73rem;
  letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  border-radius: 1px; margin-top: 8px;
  transition: background 0.3s, transform 0.15s; position: relative; overflow: hidden;
}
.btn-submit::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.07); transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit:hover { background: var(--charcoal); }
.btn-submit:active { transform: scale(0.99); }
.rsvp-deadline {
  font-family: var(--font-body); font-size: 0.7rem;
  letter-spacing: 0.15em; color: var(--sage-light); margin-top: 16px;
}
.rsvp-success { display: none; padding: 52px 24px; text-align: center; }
.rsvp-success.show { display: block; }
.rsvp-success .success-verse {
  font-family: var(--font-display); font-size: 1rem;
  font-style: italic; color: var(--gold-deep); opacity: 0.75;
}
.rsvp-success h3 {
  font-family: var(--font-display); font-size: clamp(1.7rem,4vw,2.4rem);
  font-weight: 400; font-style: italic; color: var(--sage-deep); margin: 14px 0 10px;
}
.rsvp-success p { font-family: var(--font-body); font-size: 0.9rem; color: var(--stone); line-height: 1.8; }


/* ── Footer ── */
footer {
  background: var(--charcoal); color: var(--ivory); text-align: center;
  padding: clamp(52px,8vw,90px) clamp(24px,6vw,80px);
}
.footer-swan { margin: 0 auto 22px; width: 140px; height: 70px; display: block; }
.footer-names {
  font-family: var(--font-display); font-size: clamp(1.8rem,5vw,2.7rem);
  font-style: italic; font-weight: 400; color: var(--sage-pale);
  opacity: 0.5; margin-bottom: 16px;
}
footer p {
  font-family: var(--font-body); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247,243,236,0.28); line-height: 2.1;
}
.footer-credit { margin-top: 12px; font-size: 0.6rem !important; opacity: 0.4; }


/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ── RSVP phone-gate additions ── */
.rsvp-error {
  color: #c0392b;
  font-family: var(--font-body);
  font-size: 0.82rem;
  margin: -8px 0 12px;
  min-height: 1.2em;
  line-height: 1.5;
}
.rsvp-greeting {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  margin-bottom: 24px;
}
.rsvp-max-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 4px 0 16px;
  opacity: 0.8;
}
