/* ==========================================================================
   Polish v3 — grand venue, site-wide finishing, mobile hardening.
   Loaded after polish-v2.css.
   ========================================================================== */

/* ---------- Global finishing ---------- */
html { scroll-padding-top: 72px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #16221a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #e5c888, #aa771c); border-radius: 10px; border: 2px solid #16221a; }
.navbar { padding-top: max(16px, env(safe-area-inset-top)); }
.navbar.scrolled { padding-top: max(10px, env(safe-area-inset-top)); }
img { -webkit-user-drag: none; }

/* Section eyebrow with flanking hairlines */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-header .section-tag::before,
.section-header .section-tag::after,
.rsvp-note .section-tag::before,
.rsvp-note .section-tag::after {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-medium));
}
.section-header .section-tag::after,
.rsvp-note .section-tag::after { transform: scaleX(-1); }
.section-title { font-size: clamp(2.3rem, 6vw, 3.8rem); }

/* ---------- Countdown showcase: spotlight + watermark ---------- */
.countdown-showcase-section { position: relative; }
.countdown-showcase-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("assets/hero-star.svg") center / contain no-repeat;
  opacity: 0.1;
  animation: heroStarSpin 160s linear infinite;
  pointer-events: none;
}
.countdown-showcase-section > .container { position: relative; z-index: 1; }

/* ---------- Invitation card section: spotlight ---------- */
.invitation-card-section { position: relative; }
.invitation-card-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(1000px, 100%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 62%);
  pointer-events: none;
}
.invitation-card-section > .container { position: relative; z-index: 1; }

/* ==========================================================================
   VENUE — grand emerald hall
   ========================================================================== */
.venue-section {
  position: relative;
  overflow: visible;
  padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse 60% 45% at 85% 0%, rgba(212, 175, 55, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(94, 114, 90, 0.3), transparent 70%),
    linear-gradient(180deg, #16221a 0%, #1f2e23 55%, #101a13 100%);
  color: #f4f0e8;
}
/* Scalloped dome crest rising into the section above */
.venue-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 23px;
  background: radial-gradient(circle 22px at 50% 100%, #16221a 97%, transparent 100%) 0 0 / 44px 23px repeat-x;
  pointer-events: none;
}
.venue-section::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 6%;
  width: min(760px, 100vw);
  aspect-ratio: 1;
  background: url("assets/hero-star.svg") center / contain no-repeat;
  opacity: 0.12;
  animation: heroStarSpin 180s linear infinite;
  transform-origin: center;
  pointer-events: none;
}
.venue-section .container { position: relative; z-index: 1; }

.venue-section .section-tag { color: #e5c888; letter-spacing: 6px; }
.venue-section .section-tag::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #e5c888); }
.venue-section .section-title {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.05;
  background: linear-gradient(180deg, #fffaf0 0%, #f3e5ab 60%, #d9b45a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.venue-subtitle { color: rgba(244, 240, 232, 0.7); font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; }
.venue-lead-text { color: rgba(244, 240, 232, 0.86); font-size: 1.05rem; line-height: 1.8; }
.venue-section .gold-ornament .line { background: linear-gradient(90deg, transparent, #e5c888, transparent); }
.venue-section .gold-ornament .star { color: #f3e5ab; }

.venue-wrapper { align-items: center; gap: clamp(32px, 6vw, 80px); }

/* Feature list → glass tiles */
.venue-features-list { display: grid; gap: 14px; margin-top: 28px; }
.venue-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(229, 200, 136, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease-lux), border-color 0.4s, background 0.4s;
}
.venue-feature:hover { transform: translateX(6px); border-color: rgba(229, 200, 136, 0.6); background: rgba(255, 255, 255, 0.09); }
.venue-feature .vf-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  color: #e5c888;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(229, 200, 136, 0.5);
}
.venue-feature strong { color: #fbf4de; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.8px; }
.venue-feature p { color: rgba(244, 240, 232, 0.7); font-size: 0.92rem; margin-top: 2px; }

.venue-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.venue-section .btn-outline-sage {
  color: #f3e5ab;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 200, 136, 0.6);
}
.venue-section .btn-outline-sage:hover { background: rgba(229, 200, 136, 0.14); color: #fff; }

/* Masjid photo in a Moorish arch with a double gold frame */
.venue-media-col { display: grid; gap: 28px; }
.masjid-real-card {
  position: relative;
  border: none;
  background: none;
  border-radius: 260px 260px 22px 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(229, 200, 136, 0.75),
    0 0 0 8px rgba(16, 26, 19, 1),
    0 0 0 9px rgba(229, 200, 136, 0.45),
    0 50px 90px -30px rgba(0, 0, 0, 0.8);
  margin: 10px;
}
.masjid-photo { width: 100%; height: clamp(340px, 42vw, 470px); object-fit: cover; object-position: 50% 30%; transition: transform 1.6s var(--ease-lux); }
.masjid-real-card:hover .masjid-photo { transform: scale(1.05); }
.masjid-real-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), transparent 30%, rgba(16, 26, 19, 0.75) 100%);
  pointer-events: none;
}
.masjid-caption-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 16px 20px;
  text-align: center;
  background: none;
  border: none;
  color: #f3e5ab;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Map: gold-framed, no fake window chrome */
.map-card-frame {
  border-radius: 20px;
  overflow: hidden;
  background: #101a13;
  border: 1px solid rgba(229, 200, 136, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.map-card-header {
  background: linear-gradient(180deg, #1f2e23, #16221a);
  border-bottom: 1px solid rgba(229, 200, 136, 0.3);
  padding: 12px 18px;
}
.map-dot { display: none; }
.map-location-title {
  color: #f3e5ab;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.map-location-title::before { content: '✦  '; color: #d4af37; }
.map-embed-container iframe { height: clamp(260px, 34vw, 340px); filter: saturate(0.85) contrast(1.03); display: block; }

/* ---------- RSVP + footer: a touch grander ---------- */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -35%);
  background: url("assets/hero-star.svg") center / contain no-repeat;
  opacity: 0.1;
  animation: heroStarSpin 200s linear infinite;
  pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }
.footer-names { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.arabic-subtext { font-size: clamp(1.5rem, 4vw, 2rem); }

/* ==========================================================================
   Mobile hardening
   ========================================================================== */
@media (max-width: 900px) {
  .venue-wrapper { grid-template-columns: 1fr; }
  .venue-media-col { order: -1; } /* show the masjid first on phones */
}
@media (max-width: 768px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section-header .section-tag::before,
  .section-header .section-tag::after { width: 20px; }
  .section-tag { letter-spacing: 4px; gap: 10px; }
  .venue-section { padding-top: 96px; }
  .masjid-real-card { border-radius: 180px 180px 18px 18px; margin: 8px; }
  .masjid-photo { height: 320px; }
  .venue-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .venue-feature { padding: 14px; }
  .venue-feature:hover { transform: none; }
  .map-embed-container iframe { height: 260px; }
  .btn, .btn-sm { min-height: 46px; }
  .hero-section .quran-verse { padding: 16px 14px; }
  .hero-section .arabic-quote { font-size: 1.25rem; line-height: 2; }
  .nav-links { max-height: calc(100vh - 80px); overflow-y: auto; }
}
@media (max-width: 380px) {
  .hero-section .couple-names { font-size: 2.7rem; }
  .countdown-box .box-digit-wrap { padding: 8px 4px; }
  .envelope-nav-btn span { font-size: 0.72rem; }
}
@media (hover: none) {
  .event-card:hover, .guide-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .venue-section::after, .countdown-showcase-section::before, .footer::before { animation: none; }
}

/* ==========================================================================
   Phone fixes (from real iPhone screenshots)
   ========================================================================== */
@media (max-width: 600px) {
  /* Vinyl peeked off-screen and its label was clipped; the Sound pill already controls music */
  .vinyl-record-widget { display: none !important; }
}
@media (max-width: 768px) {
  /* Names first, verse after: the couple should be on the first screen, not a wall of Arabic */
  .hero-container { display: flex; flex-direction: column; }
  .hero-container .bismillah-wrapper { order: 1; }
  .hero-container .invitation-lead   { order: 2; margin-top: 18px; }
  .hero-container .hero-meta         { order: 3; }
  .hero-container .countdown-container { order: 4; }
  .hero-container .hero-buttons      { order: 5; }
  .hero-container .quran-verse       { order: 6; margin-top: 34px; }
  .hero-container .scroll-indicator  { order: 7; }
  .hero-section .sub-greeting { letter-spacing: 3.5px; font-size: 0.7rem; }
  .hero-section .invitation-text { font-size: 1.05rem; }

  /* Nav: logo left, actions right, burger last */
  .nav-container { gap: 10px; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .mobile-toggle { order: 3; margin-right: -8px; }
}
@media (max-width: 480px) {
  .envelope-nav-btn { padding: 0; width: 42px; height: 42px; min-height: 42px; justify-content: center; border-radius: 50%; }
  .envelope-nav-btn span { font-size: 0; }
  .envelope-nav-btn .ico { width: 19px; height: 19px; margin: 0; }
  .audio-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .audio-btn .audio-btn-label { display: none; }
}
/* Use dynamic viewport units so iOS Safari's collapsing toolbar doesn't crop the envelope */
@supports (height: 100dvh) {
  .envelope-overlay { min-height: 100dvh; }
  .hero-section { min-height: 100dvh; }
}

/* Decorative watermarks must never widen the page (mobile browsers zoom out to fit overflow) */
html, body { overflow-x: hidden; max-width: 100%; }
.countdown-showcase-section,
.venue-section,
.invitation-card-section,
.rsvp-note-section,
.footer,
.hero-section { overflow-x: clip; }

/* Envelope front text: keep it inside the clear triangle so the fold lines never cut through it */
.envelope-calligraphy-seal { bottom: 12px; padding: 0 22px; }
.env-couple-name { font-size: clamp(1rem, 2.6vw, 1.25rem); letter-spacing: 1.2px; }
.env-date-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  letter-spacing: 2px;
  font-size: clamp(0.5rem, 1.5vw, 0.6rem);
  white-space: nowrap;
  max-width: 64%;
}
.env-date-stamp span + span { opacity: 0.8; letter-spacing: 3px; }
@media (max-width: 600px) {
  .env-couple-name { display: none; } /* names are already in the title directly above the envelope */
  .envelope-calligraphy-seal { bottom: 16px; }
  .env-date-stamp { font-size: 0.56rem; gap: 5px; }
}
@media (max-width: 360px) {
  .env-date-stamp { font-size: 0.5rem; letter-spacing: 1.2px; }
  .env-date-stamp span + span { letter-spacing: 2px; }
}

/* ==========================================================================
   Typography: no orphans, tidy stacking
   ========================================================================== */
h1, h2, h3, h4, .section-subtitle, .invitation-text, .bismillah-translation, .english-quote,
.sub-greeting, .venue-subtitle, .countdown-subtext, .rsvp-note-text, .flyer-caption,
.revealed-rsvp-note, .footer-dua, .copyright { text-wrap: balance; }
p, .venue-lead-text, .venue-feature p { text-wrap: pretty; }

@media (max-width: 768px) {
  /* Names: Fayyad / & / Sumayyah, centred, each on its own line */
  .hero-section .couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: clamp(3.1rem, 15vw, 4.4rem);
    line-height: 1.02;
  }
  .hero-section .name-ampersand { font-size: 0.85em; padding: 0; line-height: 1; margin: -0.08em 0; }

  .hero-section .invitation-text { max-width: 24ch; margin-left: auto; margin-right: auto; }

  /* Date + venue: two centred, identical blocks (icon above text) */
  .hero-meta { flex-direction: column; align-items: center; gap: 22px; margin: 26px 0; }
  .hero-meta .meta-divider { display: none; }
  .hero-meta .meta-item { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .hero-meta .meta-text strong { font-size: 1.05rem; }
  .hero-meta .meta-text small { display: block; margin-top: 2px; }

  .hero-section .quran-verse cite { letter-spacing: 1px; font-size: 0.74rem; }
  .section-subtitle, .venue-lead-text { max-width: 34ch; margin-left: auto; margin-right: auto; }
  .venue-lead-text { margin-left: 0; margin-right: 0; max-width: none; }
}

/* Longer lead-in line: allow a tidy two-line wrap on phones */
.hero-section .sub-greeting { max-width: 30ch; margin-left: auto; margin-right: auto; line-height: 1.8; }

/* ==========================================================================
   Bigger opened card + full-screen viewer
   ========================================================================== */
.envelope-wrapper.is-revealed .envelope {
  height: min(calc(100vh - 235px), 760px);
  width: min(94vw, calc(min(100vh - 235px, 760px) * 0.7139));
}
@supports (height: 100dvh) {
  .envelope-wrapper.is-revealed .envelope {
    height: min(calc(100dvh - 235px), 760px);
    width: min(94vw, calc(min(100dvh - 235px, 760px) * 0.7139));
  }
}
.envelope-wrapper.is-revealed .envelope-card { cursor: zoom-in; }
.revealed-buttons-row { grid-template-columns: repeat(4, 1fr); }
.revealed-buttons-row .revealed-rsvp-note { grid-column: 1 / -1; }
.revealed-buttons-row .btn-outline-sage,
.revealed-buttons-row .btn-ghost-gold,
.revealed-buttons-row .btn-refold-envelope { padding-left: 4px; padding-right: 4px; font-size: 0.72rem; gap: 5px; }
.revealed-card-actions { max-width: min(94vw, 470px); }
@media (max-width: 380px) { .revealed-buttons-row svg { display: none; } }

.iv {
  position: fixed;
  inset: 0;
  z-index: 21000;
  background: radial-gradient(ellipse at center, #1f2e23 0%, #0d150f 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  touch-action: none;
  overscroll-behavior: contain;
}
.iv[hidden] { display: none; }
.iv.iv-in { opacity: 1; }
body.iv-on { overflow: hidden; }
.iv-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.iv.iv-zoomed .iv-stage { cursor: grab; }
.iv-img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
@supports (height: 100dvh) { .iv-img { max-height: 100dvh; } }
.iv-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(229, 200, 136, 0.6);
  background: rgba(13, 21, 15, 0.7);
  color: #f3e5ab;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.iv-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.iv-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(243, 229, 171, 0.75);
  pointer-events: none;
  animation: ivHint 4s ease forwards;
}
@keyframes ivHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.flyer-card-frame .flyer-img { cursor: zoom-in; }


/* ==========================================================================
   Tap envelope -> card rises -> invitation opens up into the main page
   ========================================================================== */
.envelope-wrapper { transform-origin: 50% 45%; }
.envelope-wrapper.is-entering {
  transform: scale(2.4);
  opacity: 0;
  filter: blur(10px);
  transition: transform 1.15s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.9s ease 0.2s, filter 1s ease;
  pointer-events: none;
}
.envelope-overlay.opened {
  transform: none;           /* the zoom is on the card, not the whole overlay */
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.envelope-wrapper.is-revealed .envelope-card { cursor: default; }
.revealed-card-actions { display: none !important; }  /* the invitation advances on its own */

/* No action bar under the card any more, so let it use the room */
.envelope-wrapper.is-revealed .envelope { height: min(calc(100vh - 130px), 780px); width: min(94vw, calc(min(100vh - 130px, 780px) * 0.7139)); }
@supports (height: 100dvh) { .envelope-wrapper.is-revealed .envelope { height: min(calc(100dvh - 130px), 780px); width: min(94vw, calc(min(100dvh - 130px, 780px) * 0.7139)); } }


/* Opened card: height is capped by BOTH the screen height and the screen width, so the frame always keeps the flyer's 731x1024 shape (no cropping) */
.envelope-wrapper.is-revealed .envelope {
  --ch: min(calc(100vh - 130px), 780px, 131.6vw);
  height: var(--ch);
  width: calc(var(--ch) * 0.7139);
}
@supports (height: 100dvh) {
  .envelope-wrapper.is-revealed .envelope { --ch: min(calc(100dvh - 130px), 780px, 131.6vw); }
}

/* Hero order on every screen: names first, the verse after */
.hero-container { display: flex; flex-direction: column; }
.hero-container .bismillah-wrapper { order: 1; }
.hero-container .invitation-lead   { order: 2; margin-top: 18px; }
.hero-container .hero-meta         { order: 3; }
.hero-container .countdown-container { order: 4; }
.hero-container .hero-buttons      { order: 5; }
.hero-container .quran-verse       { order: 6; margin-top: 34px; margin-left: auto; margin-right: auto; }
.hero-container .scroll-indicator  { order: 7; }

@media (min-width: 769px) { .hero-section .sub-greeting { max-width: 52ch; letter-spacing: 5px; } }


/* The flyer is never shown in the envelope: tap -> flap opens -> straight into the site */
.envelope-card { opacity: 0 !important; visibility: hidden !important; }
.envelope-wrapper.is-entering {
  transform: scale(3.2);
  transition: transform 1.25s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.85s ease 0.3s, filter 1s ease 0.1s;
}

/* A leftover entrance animation (fill-mode: forwards) was pinning the transform, which blocked the zoom */
.envelope-wrapper.is-entering {
  animation: envFlyThrough 1.25s cubic-bezier(0.55, 0, 0.3, 1) forwards !important;
  transition: none !important;
}
@keyframes envFlyThrough {
  0%   { transform: scale(1);   opacity: 1; filter: blur(0); }
  55%  { opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; filter: blur(10px); }
}

.hero-buttons { flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   Arabic: Qur'anic text in Amiri Quran (mushaf-style), with room for the marks
   ========================================================================== */
.bismillah-arabic, .envelope-bismillah, .arabic-quote {
  font-family: 'Amiri Quran', 'Amiri', serif !important;
  letter-spacing: 0 !important;
}
.bismillah-arabic, .envelope-bismillah { line-height: 2 !important; padding-top: 0.15em; }
.arabic-quote { line-height: 2.3 !important; }
.arabic-subtext, .arabic-bg-calligraphy { line-height: 2 !important; }

/* ==========================================================================
   Event-day mode (eventday.js sets <html data-phase="...">)
   ========================================================================== */
.day-banner {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px auto 0;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid rgba(229, 200, 136, 0.7);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
  animation: dayGlow 3.2s ease-in-out infinite alternate;
}
.day-banner-k {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  line-height: 1;
  background: var(--gold-foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foilSweep 6s ease-in-out infinite;
}
.day-banner-s {
  font-family: var(--font-display);
  font-size: clamp(0.66rem, 1.8vw, 0.8rem);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f3e5ab;
  text-align: center;
}
@keyframes dayGlow { from { box-shadow: 0 0 24px rgba(212, 175, 55, 0.15); } to { box-shadow: 0 0 52px rgba(212, 175, 55, 0.4); } }
.hero-container .invitation-lead { order: 3; }
.hero-container .hero-meta { order: 4; }
.hero-container .countdown-container { order: 5; }
.hero-container .hero-buttons { order: 6; }
.hero-container .quran-verse { order: 7; }
.hero-container .scroll-indicator { order: 8; }

/* Once it has started: no countdowns, no calendar buttons, no RSVP note */
[data-phase="live"] .hero-section .countdown-container,
[data-phase="after"] .hero-section .countdown-container,
[data-phase="live"] #mainCountdownGrid,
[data-phase="after"] #mainCountdownGrid,
[data-phase="live"] #addToCalBtn,
[data-phase="after"] #addToCalBtn,
[data-phase="after"] .countdown-actions { display: none !important; }
[data-phase="today"] .rsvp-note-section,
[data-phase="live"] .rsvp-note-section,
[data-phase="after"] .rsvp-note-section { display: none; }
[data-phase="live"] .countdown-section-heading,
[data-phase="after"] .countdown-section-heading { font-family: var(--font-script); font-size: clamp(2.8rem, 8vw, 4rem); }

.phase-preview {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 30000;
  padding: 8px 16px;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font: 600 0.75rem/1 var(--font-sans);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .day-banner, .day-banner-k { animation: none; } }

/* Developer credit */
.dev-credit { margin-top: 10px; font-size: 0.72rem; letter-spacing: 1.2px; color: rgba(244, 240, 232, 0.5); }
.dev-credit a { color: #e5c888; border-bottom: 1px solid rgba(229, 200, 136, 0.35); padding-bottom: 1px; transition: color 0.3s, border-color 0.3s; }
.dev-credit a:hover { color: #fff3c9; border-color: #e5c888; }
