/*
 * Garden Gala V2 — styles.css
 * Full stylesheet: Welcome screen, Myron theme (Bond/Casino),
 * AJ theme (Bridgerton/Garden), Shared RSVP, Footer, Admin dashboard.
 */

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  background: #0A0A0A;
  color: #F8F5EF;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* Page layers */
#welcome-screen { position: relative; z-index: 10; }
#theme-switcher  { position: fixed; top: 0; left: 0; right: 0; z-index: 8000; }
#main-content    { position: relative; z-index: 5; }
#admin-page      { position: relative; z-index: 20; }


/* ══════════════════════════════════════════════════
   WELCOME SCREEN
══════════════════════════════════════════════════ */
#welcome-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: #0d1a0f;
}

.ws-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/welcome-bg.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  filter: brightness(0.65) saturate(0.85);
  z-index: 0;
}

.ws-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,168,76,0.06) 0%, transparent 60%),
              linear-gradient(180deg, rgba(8,8,8,0.6) 0%, rgba(8,8,8,0.3) 50%, rgba(8,8,8,0.7) 100%);
  z-index: 1;
}

.ws-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  width: 100%;
  animation: wsFadeIn 1.2s ease forwards;
}

.ws-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.ws-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #F8F5EF;
  margin-bottom: 0.75rem;
}

.ws-subline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,245,239,0.5);
  margin-bottom: 3.5rem;
}

.ws-subline:has(+ .ws-subline) {
  margin-bottom: 0.2rem;
}

.ws-subline-location {
  white-space: nowrap;
}

/* ── Welcome cards ── */
.ws-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ws-card {
  border: 1px solid rgba(201,168,76,0.25);
  padding: 2.5rem 1.75rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  background: rgba(255,255,255,0.02);
}

.ws-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201,168,76,0);
  transition: background 0.3s;
}

.ws-card:hover {
  border-color: rgba(201,168,76,0.6);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.ws-card:hover::before {
  background: rgba(201,168,76,0.04);
}

.ws-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
  color: rgba(201,168,76,0.7);
}

.ws-card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #F8F5EF;
  margin-bottom: 0.4rem;
}

.ws-card-sub {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,245,239,0.45);
}

.ws-card-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(201, 168, 76, 0.55);
  color: #C9A84C;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.ws-card:hover .ws-card-cta {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.9);
}

.ws-card--aj .ws-card-cta {
  border-color: rgba(201, 168, 76, 0.55);
  color: #C9A84C;
}

/* Myron card — dark tones */
.ws-card--myron .ws-card-icon { color: #C9A84C; }

/* AJ card — warm pink/sage */
.ws-card--aj .ws-card-icon { color: #D4A5A5; }
.ws-card--aj:hover { border-color: rgba(212,165,165,0.5); }

.ws-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(248, 245, 239, 0.9);
  letter-spacing: 0.05em;
  text-align: center;
}

/* Welcome exit animation */
#welcome-screen.exiting {
  animation: wsExit 0.6s ease forwards;
}

@keyframes wsFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wsExit {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.02); }
}


/* ══════════════════════════════════════════════════
   THEME SWITCHER
══════════════════════════════════════════════════ */
#theme-switcher {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: background 0.4s;
}

#theme-switcher.active { display: flex; }

[data-theme="myron"] #theme-switcher {
  background: rgba(10,10,10,0.88);
}

[data-theme="aj"] #theme-switcher {
  background: rgba(251,247,242,0.92);
  border-bottom-color: rgba(184,134,11,0.2);
}

.switcher-home-btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.switcher-home-btn:hover {
  color: rgb(232, 201, 106);
}

[data-theme="aj"] .switcher-home-btn {
  color: rgba(139, 105, 20, 0.7);
}

[data-theme="aj"] .switcher-home-btn:hover {
  color: #8B4513;
}

.switcher-spacer {
  flex-shrink: 0;
  width: 80px;
  visibility: hidden;
}

#myron-gallery-wrapper { display: none; }
[data-theme="myron"] #myron-gallery-wrapper { display: block; }

.switcher-rsvp-btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(201,168,76,0.5);
  color: #C9A84C;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.switcher-rsvp-btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: #C9A84C;
}
[data-theme="aj"] .switcher-rsvp-btn {
  border-color: rgba(139,105,20,0.5);
  color: #8B6914;
}
[data-theme="aj"] .switcher-rsvp-btn:hover {
  background: rgba(139,105,20,0.1);
  border-color: #8B6914;
}

.switcher-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex: 1;
  justify-content: center;
}

[data-theme="myron"] .switcher-inner { color: rgba(248,245,239,0.6); }
[data-theme="aj"] .switcher-inner    { color: rgba(61,46,36,0.6); }

.switcher-btn {
  background: none;
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.3rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

[data-theme="myron"] .switcher-btn {
  color: #C9A84C;
}

[data-theme="aj"] .switcher-btn {
  color: #8B6914;
  border-color: rgba(139,105,20,0.35);
}

.switcher-btn:hover {
  background: rgba(201,168,76,0.1);
}

.switcher-active-label {
  font-weight: 500;
}

[data-theme="myron"] .switcher-active-label { color: #E8C96A; }
[data-theme="aj"] .switcher-active-label    { color: #8B4513; }

.switcher-arrow {
  opacity: 0.5;
}


/* ══════════════════════════════════════════════════
   MAIN CONTENT — SHOW/HIDE
══════════════════════════════════════════════════ */
#main-content { display: none; }
#main-content.active { display: block; }

#myron-theme { display: none; }
#aj-theme    { display: none; }

[data-theme="myron"] #myron-theme { display: block; }
[data-theme="aj"]    #aj-theme    { display: block; }


/* ══════════════════════════════════════════════════
   MYRON'S THEME — JAMES BOND / CASINO DE MONTE-CARLO
══════════════════════════════════════════════════ */

/* ── Shared Myron utilities ── */
.myron-section { position: relative; overflow: hidden; background: #0a0a0a; }

.myron-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/singapore_nettle.jpg');
  background-attachment: fixed;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  filter: grayscale(0%) brightness(0.50) contrast(1.05);
  z-index: 0;
}

/* iOS-safe fixed background for Myron theme — mobile only.
   Uses position:fixed (which iOS honors) instead of background-attachment:fixed (which iOS ignores). */
.myron-fixed-bg {
  display: none;
}

.myron-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.myron-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.myron-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 1.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

.myron-section-label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C9A84C;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.myron-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}

.gold-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  margin: 1.75rem auto;
}

.gold-rule-wide {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  margin: 2rem auto;
}

/* ── MYRON HERO ── */
#myron-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}


#myron-hero .myron-overlay {
  background: linear-gradient(rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.15) 50%, rgba(5,5,5,0.40) 100%);
}

#myron-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.myron-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.myron-hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 2rem;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  /* 'both' ensures from-state (opacity:0) covers the delay period */
  animation: fadeUp 0.9s ease both 0.3s;
}

.myron-hero-title {
  font-family: 'Jost', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  color: #F8F5EF;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.myron-hero-title .word-wrap {
  display: block;
  overflow: hidden;
}

.myron-hero-title .word-inner {
  display: block;
  animation: slideUpWord 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.myron-hero-title .word-inner:nth-child(1) { animation-delay: 0.5s; }
.myron-hero-title .word-wrap:nth-child(2) .word-inner { animation-delay: 0.75s; }

.myron-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.625rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(248,245,239,0.65);
  letter-spacing: 0.06em;
  animation: fadeUp 0.9s ease both 1.1s;
}

.myron-countdown {
  font-size: 1.125rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-top: 2.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  animation: fadeUp 0.9s ease both 1.4s;
}

/* ── MYRON INVITATION (Dossier) ── */
#myron-inv-wrapper {
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 3rem 2rem;
  position: relative;
}

#myron-inv-wrapper .myron-overlay {
  background: linear-gradient(rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.15) 50%, rgba(5,5,5,0.40) 100%);
}

#myron-inv-inner {
  position: relative !important;
  transform: none !important;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem;
  z-index: 3;
}

.myron-inv-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
}

.myron-dossier {
  border: 1px solid rgba(201,168,76,0.3);
  padding: 3.5rem 3rem;
  position: relative;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.myron-dossier::before,
.myron-dossier::after {
  content: '◆';
  position: absolute;
  color: #C9A84C;
  font-size: 0.5rem;
  opacity: 0.6;
}

.myron-dossier::before { top: 1rem; left: 1rem; }
.myron-dossier::after  { bottom: 1rem; right: 1rem; }

.dossier-stamp {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  border: 2px solid rgba(201,168,76,0.4);
  color: rgba(201,168,76,0.45);
  font-size: 0.5rem;
  letter-spacing: 0.45em;
  padding: 0.18rem 0.5rem;
  transform: rotate(-12deg);
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

.dossier-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(201,168,76,0.5);
  margin: 0 auto 1.5rem;
}

.myron-inv-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  font-family: 'Jost', sans-serif;
  text-align: center;
  margin-bottom: 1.25rem;
}

.myron-inv-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 2;
  color: rgba(248,245,239,0.8);
  text-align: center;
  letter-spacing: 0.04em;
}

.myron-inv-text .inv-gold {
  color: #E8C96A;
  font-style: italic;
}

.myron-inv-text .inv-name {
  display: block;
  font-size: 1.4em;
  font-weight: 700;
  color: #F8F5EF;
  letter-spacing: 0.05em;
  margin: 0.25rem 0;
  font-style: normal;
  font-family: 'Playfair Display', serif;
}

/* ── MYRON GALLERY ── */
#myron-gallery {
  padding: 0;
  background: #0A0A0A;
}


#myron-gallery .myron-overlay {
  background: linear-gradient(rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.15) 50%, rgba(5,5,5,0.40) 100%);
}

.myron-gallery-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.myron-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.myron-photo-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  will-change: transform;
}

/* Only hide photos when JS is active — prevents permanent invisibility
   on mobile where GSAP is disabled */
.js-ready .myron-photo-item {
  opacity: 0;
  transform: translateY(50px);
}

/* Applied by IntersectionObserver on mobile (GSAP disabled).
   On desktop GSAP overrides these via inline style. */
.myron-photo-item.revealed {
  opacity: 1;
  transform: translateY(0) rotate(var(--rotate, 0deg));
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Slight rotation for dossier feel */
.myron-photo-item:nth-child(1) { --rotate: -1.5deg; }
.myron-photo-item:nth-child(2) { --rotate: 0.8deg; }
.myron-photo-item:nth-child(3) { --rotate: -0.5deg; }
.myron-photo-item:nth-child(4) { --rotate: 1.2deg; }
.myron-photo-item:nth-child(5) { --rotate: -0.9deg; }
.myron-photo-item:nth-child(6) { --rotate: 0.6deg; }

.myron-photo-item.revealed { transform: rotate(var(--rotate)) translateY(0); }
.myron-photo-item:not(.revealed) { transform: rotate(0deg) translateY(50px); }

.myron-photo-item:hover {
  z-index: 5;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  transform: rotate(0deg) scale(1.03) !important;
  border-color: rgba(201,168,76,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  background: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 2;
  padding: 1rem;
  text-align: center;
}

.photo-placeholder-icon {
  font-size: 2rem;
  color: rgba(201,168,76,0.25);
}

.photo-placeholder-label {
  font-size: 0.65rem;
  color: rgba(201,168,76,0.5);
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.photo-placeholder-dims {
  font-size: 0.55rem;
  color: rgba(248,245,239,0.2);
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.1em;
}

.myron-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.myron-photo-img.loaded { opacity: 1; }

/* ── Landscape photo row (photo-3) ── */
.myron-photo-landscape-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0 2rem;
}

.myron-photo-landscape {
  width: 100%;
  max-width: 860px;
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
}

.myron-photo-landscape .myron-photo-img {
  position: relative;
  inset: unset;
  width: 100%;
  height: auto;
  object-fit: contain;
  min-height: unset;
}

.myron-photo-landscape:hover .myron-photo-img {
  transform: scale(1.02);
}

/* ── MYRON EVENT DETAILS ── */

#myron-details .myron-overlay {
  background: linear-gradient(rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.15) 50%, rgba(5,5,5,0.40) 100%);
}

.myron-briefing {
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(4px);
  padding: 2.5rem;
  position: relative;
}

.myron-briefing::before {
  content: 'EVENT DETAILS';
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  background: #141414;
  padding: 0 0.75rem;
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: rgba(201,168,76,0.5);
  font-family: 'Jost', sans-serif;
}

.myron-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.myron-detail-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  border-right: 1px solid rgba(201,168,76,0.1);
}

.myron-detail-item:nth-child(even)  { border-right: none; }
.myron-detail-item:nth-last-child(-n+2) { border-bottom: none; }

.myron-detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #C9A84C;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.myron-detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #F8F5EF;
  line-height: 1.6;
}

.myron-detail-value a {
  color: #E8C96A;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,201,106,0.3);
  transition: border-color 0.2s;
}

.myron-detail-value a:hover { border-color: #E8C96A; }

/* ── MYRON ENTERTAINMENT ── */

#myron-entertainment .myron-overlay {
  background: linear-gradient(rgba(5,5,5,0.35) 0%, rgba(5,5,5,0.15) 50%, rgba(5,5,5,0.40) 100%);
}

.myron-ent-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(248,245,239,0.7);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.myron-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.casino-img-wrapper {
  width: 100%;
  border: 1px solid rgba(201,168,76,0.4);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}

.casino-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.casino-img:hover {
  transform: scale(1.03);
}

.casino-img-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  width: 100%;
}


.myron-pill {
  border: 1px solid rgba(201,168,76,0.7);
  padding: 0.65rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E8C96A;
  background: rgba(201,168,76,0.12);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  box-shadow: 0 0 12px rgba(201,168,76,0.15);
}


/* ══════════════════════════════════════════════════
   AJ'S THEME — BRIDGERTON GARDEN GALA
══════════════════════════════════════════════════ */

/* ── Shared AJ utilities ── */
.aj-section { position: relative; overflow: hidden; background: #FBF7F2; }

.aj-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.aj-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.aj-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.aj-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #8B6914;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aj-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139,105,20,0.35), transparent);
}

/* ── AJ HERO ── */
#aj-hero {
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: transparent;
}

.aj-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) saturate(1.1);
  z-index: 0;
}

#aj-hero .aj-overlay {
  background: linear-gradient(180deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.52) 40%,
    rgba(0,0,0,0.78) 100%);
}

.aj-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.aj-hero-eyebrow {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #FFE8CC;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  opacity: 1;
  margin-bottom: 0.75rem;
  animation: fadeUp 1s ease both 0.3s;
}

#aj-hero { overflow: visible; }

.aj-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 1.05;
  color: #FFFFFF;
  text-shadow: 0 3px 15px rgba(0,0,0,0.85), 0 0 50px rgba(0,0,0,0.5);
  overflow: visible;
  padding-bottom: 0.15em;
}

.aj-hero-title .word-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}

.aj-hero-title .word-inner {
  display: block;
  animation: slideUpWord 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.aj-hero-title .word-wrap:nth-child(1) .word-inner { animation-delay: 0.5s; }
.aj-hero-title .word-wrap:nth-child(2) .word-inner { animation-delay: 0.75s; }
.aj-hero-title .word-wrap:nth-child(3) .word-inner { animation-delay: 0.9s; }

.aj-hero-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
  margin-top: 1.25rem;
  animation: fadeUp 1s ease both 1.2s;
}

.aj-countdown {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,235,180,0.95);
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
  margin-top: 2.5rem;
  animation: fadeUp 1s ease both 1.5s;
}

.aj-gold-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  margin: 1.5rem auto;
  animation: fadeIn 1s ease both 1.1s;
}

/* ── AJ INVITATION ── */
#aj-invitation {
  background: #F5EFE8;
}

#aj-invitation .aj-bg {
  background-image: url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=1600&q=80');
  filter: brightness(0.92) saturate(0.85);
  opacity: 0.15;
  inset: 0;
}

#aj-invitation .aj-overlay {
  background: rgba(245,239,232,0.88);
}

.aj-inv-card {
  background: #FAF6EF;
  border: 1.5px solid rgba(184,134,11,0.3);
  padding: 3.5rem 3rem;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 40px rgba(61,46,36,0.08);
}

.aj-inv-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184,134,11,0.18);
  pointer-events: none;
}

/* Corner ornaments */
.aj-corner {
  position: absolute;
  color: rgba(184,134,11,0.45);
  font-size: 1rem;
  line-height: 1;
  display: block;
}

.aj-corner--tl { top: 3px;  left: 3px; }
.aj-corner--tr { top: 3px;  right: 3px; transform: scaleX(-1); }
.aj-corner--bl { bottom: 3px; left: 3px; transform: scaleY(-1); }
.aj-corner--br { bottom: 3px; right: 3px; transform: scale(-1); }

.aj-inv-eyebrow {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: #8B5E3C;
  margin-bottom: 0.75rem;
}

.aj-inv-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem auto;
  max-width: 280px;
}

.aj-inv-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.35), transparent);
}

.aj-inv-rule-flower {
  color: rgba(184,134,11,0.45);
  font-size: 0.7rem;
}

.aj-inv-text {
  font-family: 'Lora', serif;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 2;
  color: rgba(61,46,36,0.8);
  letter-spacing: 0.02em;
}

.aj-inv-text .aj-gold { color: #8B6914; font-style: italic; }
.aj-inv-text .aj-large {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.35em;
  font-weight: 700;
  color: #3D2E24;
  margin: 0.2rem 0;
  font-style: normal;
}

/* ── AJ EVENT DETAILS ── */
#aj-details {
  background: #F5EFE8;
}

#aj-details .aj-bg {
  background-image: url('https://images.unsplash.com/photo-1518621736915-f3b1c41bfd00?w=1600&q=80');
  filter: brightness(0.9) saturate(0.9);
  opacity: 0.12;
  inset: 0;
}

#aj-details .aj-overlay {
  background: rgba(245,239,232,0.9);
}

.aj-garden-card {
  background: #FAF6EF;
  border: 1.5px solid rgba(184,134,11,0.25);
  padding: 2.5rem;
  position: relative;
}

.aj-garden-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184,134,11,0.12);
  pointer-events: none;
}

.aj-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.aj-detail-item {
  border-left: 2px solid rgba(184,134,11,0.25);
  padding-left: 1.25rem;
}

.aj-detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8B6914;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.aj-detail-value {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: #3D2E24;
  line-height: 1.55;
}

.aj-detail-value a {
  color: #8B5E3C;
  border-bottom: 1px solid rgba(139,94,60,0.3);
  transition: border-color 0.2s;
}

.aj-detail-value a:hover { border-color: #8B5E3C; }

.aj-details-note {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184,134,11,0.15);
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(61,46,36,0.55);
  text-align: center;
  line-height: 1.7;
}

/* ── AJ ENTERTAINMENT ── */
#aj-entertainment {
  background: #F0E8DC;
}

#aj-entertainment .aj-bg {
  background-image: url('https://images.unsplash.com/photo-1487530811015-780780dda23c?w=1600&q=80');
  filter: brightness(0.92) saturate(1.05);
  opacity: 0.15;
  inset: 0;
}

#aj-entertainment .aj-overlay {
  background: rgba(240,232,220,0.9);
}

.aj-ent-body {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(61,46,36,0.65);
  margin-bottom: 2rem;
  line-height: 1.9;
}

.aj-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

#aj-entertainment .aj-ent-body {
  text-align: center;
}

#aj-entertainment .aj-pills {
  justify-content: center;
}

.aj-pill {
  border: 1px solid rgba(184,134,11,0.55);
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B6914;
  background: rgba(184,134,11,0.1);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(184,134,11,0.12);
}


/* ══════════════════════════════════════════════════
   SHARED RSVP SECTION
══════════════════════════════════════════════════ */
#rsvp-section {
  position: relative;
  z-index: 10;
  transition: background 0.4s, color 0.4s;
}

[data-theme="myron"] #rsvp-section {
  background: #141414;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  color: #F8F5EF;
}

[data-theme="aj"] #rsvp-section {
  background: #FAF6EF;
  border-top: 2px solid rgba(184,134,11,0.2);
  border-bottom: 2px solid rgba(184,134,11,0.2);
  color: #3D2E24;
}

.rsvp-inner {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.rsvp-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

[data-theme="myron"] .rsvp-section-label {
  color: #C9A84C;
}

[data-theme="myron"] .rsvp-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}

[data-theme="aj"] .rsvp-section-label {
  color: #8B6914;
}

[data-theme="aj"] .rsvp-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139,105,20,0.3), transparent);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-group label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
}

[data-theme="myron"] .field-group label { color: #C9A84C; }
[data-theme="aj"]    .field-group label { color: #8B6914; }

.field-group input,
.field-group textarea,
.field-group select {
  padding: 0.8rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}

[data-theme="myron"] .field-group input,
[data-theme="myron"] .field-group textarea,
[data-theme="myron"] .field-group select {
  background: rgba(248,245,239,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  color: #F8F5EF;
}

[data-theme="myron"] .field-group input::placeholder,
[data-theme="myron"] .field-group textarea::placeholder { color: rgba(248,245,239,0.25); }

[data-theme="myron"] .field-group input:focus,
[data-theme="myron"] .field-group textarea:focus {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.05);
}

[data-theme="aj"] .field-group input,
[data-theme="aj"] .field-group textarea,
[data-theme="aj"] .field-group select {
  background: #FBF7F2;
  border: 1.5px solid rgba(184,134,11,0.25);
  color: #3D2E24;
}

[data-theme="aj"] .field-group input::placeholder,
[data-theme="aj"] .field-group textarea::placeholder { color: rgba(61,46,36,0.3); }

[data-theme="aj"] .field-group input:focus,
[data-theme="aj"] .field-group textarea:focus {
  border-color: #C9A84C;
}

.field-group textarea { min-height: 100px; resize: vertical; }

/* Toggle group */
.toggle-group {
  display: flex;
  margin-top: 0.4rem;
}

.toggle-group input[type="radio"] { display: none; }

.toggle-group label {
  flex: 1;
  text-align: center;
  padding: 0.8rem;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.2s;
}

[data-theme="myron"] .toggle-group label {
  border: 1px solid rgba(201,168,76,0.25);
  color: rgba(248,245,239,0.5);
}

[data-theme="myron"] .toggle-group label:first-of-type { border-right: none; }

[data-theme="myron"] .toggle-group input[type="radio"]:checked + label {
  background: #C9A84C;
  color: #0A0A0A;
  border-color: #C9A84C;
}

[data-theme="aj"] .toggle-group label {
  border: 1.5px solid rgba(184,134,11,0.25);
  color: rgba(61,46,36,0.45);
}

[data-theme="aj"] .toggle-group label:first-of-type { border-right: none; }

[data-theme="aj"] .toggle-group input[type="radio"]:checked + label {
  background: #C9A84C;
  color: #FAF6EF;
  border-color: #C9A84C;
}

#guests-row { display: none; }
#guests-row.visible { display: grid; }

/* Submit button */
.submit-btn {
  border: none;
  padding: 1rem 3rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}

[data-theme="myron"] .submit-btn {
  background: #C9A84C;
  color: #0A0A0A;
}

[data-theme="myron"] .submit-btn:hover { background: #E8C96A; transform: translateY(-1px); }

[data-theme="aj"] .submit-btn {
  background: #8B5E3C;
  color: #FAF6EF;
}

[data-theme="aj"] .submit-btn:hover { background: #A0714A; transform: translateY(-1px); }

.submit-btn:active { transform: translateY(0) !important; }

.rsvp-switch-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: rgb(201, 168, 76);
}

.rsvp-switch-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgb(201, 168, 76);
}

[data-theme="aj"] .rsvp-switch-btn {
  border-color: rgba(61, 46, 36, 0.4);
  color: rgb(61, 46, 36);
}

[data-theme="aj"] .rsvp-switch-btn:hover {
  background: rgba(61, 46, 36, 0.08);
  border-color: rgb(61, 46, 36);
}

/* Confirmation message */
.rsvp-confirmation {
  display: none;
  text-align: center;
  padding: 3rem;
}

.rsvp-confirmation.visible { display: block; }

[data-theme="myron"] .rsvp-confirmation {
  border: 1px solid rgba(201,168,76,0.3);
}

[data-theme="aj"] .rsvp-confirmation {
  border: 1.5px solid rgba(184,134,11,0.25);
  background: rgba(201,168,76,0.04);
}

.rsvp-confirmation h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

[data-theme="myron"] .rsvp-confirmation h3 { color: #E8C96A; }
[data-theme="aj"]    .rsvp-confirmation h3 { color: #8B5E3C; }

.rsvp-confirmation p {
  font-size: 1.05rem;
  line-height: 1.7;
}

[data-theme="myron"] .rsvp-confirmation p { font-family: 'Cormorant Garamond', serif; font-style: italic; color: rgba(248,245,239,0.7); }
[data-theme="aj"]    .rsvp-confirmation p { font-family: 'Lora', serif; font-style: italic; color: rgba(61,46,36,0.65); }


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
#site-footer {
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  transition: background 0.4s, color 0.4s;
}

[data-theme="myron"] #site-footer {
  background: #0A0A0A;
  color: rgba(248,245,239,0.55);
}

[data-theme="aj"] #site-footer {
  background: #EFE5D8;
  color: rgba(61,46,36,0.55);
}

#site-footer::before {
  content: '';
  display: block;
  width: 200px;
  height: 1px;
  margin: 0 auto 2rem;
}

[data-theme="myron"] #site-footer::before {
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
}

[data-theme="aj"] #site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.4), transparent);
}

#site-footer p {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  line-height: 2;
}

[data-theme="myron"] #site-footer a { color: #C9A84C; }
[data-theme="aj"]    #site-footer a { color: #8B5E3C; }

.footer-tagline {
  cursor: default;
  user-select: none;
}

[data-theme="myron"] .footer-tagline { color: rgba(248,245,239,0.25); }
[data-theme="aj"]    .footer-tagline { color: rgba(61,46,36,0.3); }


/* ══════════════════════════════════════════════════
   REVEAL ANIMATIONS
   Progressive enhancement: opacity:0 only applied
   when JS has loaded (.js-ready on <html>).
   Without JS (or if JS fails) every element is
   visible at opacity:1 — content always readable.
══════════════════════════════════════════════════ */

/* Base: always visible — no-JS fallback */
.reveal {
  opacity: 1;
  transform: none;
}

/* Hidden only when JS is confirmed active */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Revealed state — !important beats .js-ready specificity */
.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Non-.js-ready fallback (also covers .visible added without .js-ready) */
.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }


/* ══════════════════════════════════════════════════
   ADMIN STYLES  (preserved exactly from V1)
══════════════════════════════════════════════════ */
#admin-page { display: none; }
#admin-page.active { display: block; min-height: 100vh; background: #0A0A0A; color: #F8F5EF; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  border: 1px solid rgba(201,168,76,0.3);
  padding: 3rem;
  width: 100%;
  max-width: 380px;
  background: #141414;
  text-align: center;
}

.login-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: #E8C96A;
  margin-bottom: 0.5rem;
}

.login-card p {
  font-size: 0.75rem;
  color: rgba(248,245,239,0.5);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.login-card input {
  width: 100%;
  background: rgba(248,245,239,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  color: #F8F5EF;
  padding: 0.75rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.2em;
}

.login-card input:focus { border-color: #C9A84C; }

.login-error {
  color: #E24B4A;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  display: none;
}

.admin-login-btn {
  background: #C9A84C;
  color: #0A0A0A;
  border: none;
  padding: 0.8rem 3rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.admin-login-btn:hover { background: #E8C96A; }

.admin-dashboard { display: none; }
.admin-dashboard.active { display: block; }

.admin-header {
  background: #0A0A0A;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #E8C96A;
  letter-spacing: 0.1em;
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
}

.admin-nav button {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  color: rgba(248,245,239,0.65);
  padding: 0.4rem 0.9rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-nav button:hover { border-color: #C9A84C; color: #C9A84C; }

.admin-body { padding: 2rem; max-width: 1200px; margin: 0 auto; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: #141414;
  border: 1px solid rgba(201,168,76,0.15);
  padding: 1.25rem;
  text-align: center;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: #E8C96A;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,245,239,0.5);
}

.admin-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: #E8C96A;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.admin-tools input[type="text"] {
  background: rgba(248,245,239,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  color: #F8F5EF;
  padding: 0.5rem 0.9rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  outline: none;
  min-width: 220px;
}

.admin-tools input:focus { border-color: #C9A84C; }

.admin-tools select {
  background: #141414;
  border: 1px solid rgba(201,168,76,0.25);
  color: #F8F5EF;
  padding: 0.5rem 0.9rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.btn-sm {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: #C9A84C;
  padding: 0.45rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover { background: #C9A84C; color: #0A0A0A; }
.btn-gold { background: #C9A84C; color: #0A0A0A; border-color: #C9A84C; }
.btn-gold:hover { background: #E8C96A; }
.btn-red { border-color: rgba(226,75,74,0.4); color: #E24B4A; }
.btn-red:hover { background: rgba(226,75,74,0.15); }

.guest-table-wrap { overflow-x: auto; margin-bottom: 2.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 700px;
}

thead tr { border-bottom: 1px solid rgba(201,168,76,0.3); }

th {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 400;
}

td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(248,245,239,0.06);
  color: rgba(248,245,239,0.65);
  vertical-align: middle;
}

tr:hover td { background: rgba(201,168,76,0.03); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-pending  { border: 1px solid rgba(248,245,239,0.2); color: rgba(248,245,239,0.65); }
.badge-attending { border: 1px solid rgba(100,200,120,0.4); color: #64C878; background: rgba(100,200,120,0.08); }
.badge-declined  { border: 1px solid rgba(226,75,74,0.4); color: #E24B4A; background: rgba(226,75,74,0.08); }

.add-guest-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.add-guest-form input {
  background: rgba(248,245,239,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  color: #F8F5EF;
  padding: 0.5rem 0.9rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  outline: none;
}

.add-guest-form input:focus { border-color: #C9A84C; }

.csv-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.csv-upload-row input[type="file"] {
  font-size: 0.75rem;
  color: rgba(248,245,239,0.5);
}

.admin-panels { display: flex; flex-direction: column; gap: 3rem; }

td select {
  background: #141414;
  border: 1px solid rgba(201,168,76,0.2);
  color: #F8F5EF;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  font-family: 'Jost', sans-serif;
  outline: none;
  cursor: pointer;
}


/* ══════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUpWord {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.9; }
}

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


/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Welcome screen */
  .ws-headline { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .ws-tagline { font-size: 1.15rem; letter-spacing: 0.03em; }
  .ws-cards { grid-template-columns: 1fr; gap: 1rem; }
  .ws-card { padding: 2rem 1.25rem; }

  /* Theme switcher */
  .switcher-inner { font-size: 0.58rem; letter-spacing: 0.12em; }
  .switcher-btn { padding: 0.25rem 0.75rem; font-size: 0.58rem; }
  .switcher-home-btn { font-size: 0.6rem; padding: 0.4rem 0.5rem; letter-spacing: 0.12em; }
  .switcher-spacer { width: 60px; }

  /* Myron hero */
  #myron-hero { padding: 5rem 1.5rem 3.5rem; }
  .myron-hero-title { font-size: clamp(3.5rem, 15vw, 5rem); }

  /* Myron gallery — disable rotation and parallax on mobile */
  .myron-photo-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .myron-photo-item { transform: none !important; }
  .myron-photo-item.revealed { transform: none !important; }
  /* Show the dedicated fixed background only on mobile */
  [data-theme="myron"] .myron-fixed-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/singapore_nettle.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0a0a0a;
    filter: brightness(0.50) contrast(1.05);
    z-index: 0;
    pointer-events: none;
  }

  /* Hide per-section absolute backgrounds — fixed bg replaces them on mobile */
  [data-theme="myron"] .myron-bg {
    display: none;
  }

  /* Sections must be transparent so the fixed bg shows through */
  [data-theme="myron"] .myron-section {
    background: transparent;
  }

  /* Content sits above the fixed background */
  [data-theme="myron"] .myron-content {
    position: relative;
    z-index: 2;
  }

  .myron-bg {
    animation: none !important;
    transform: none !important;
  }
  .aj-bg   { animation: none !important; transform: none !important; }

  /* Details grids */
  .myron-details-grid { grid-template-columns: 1fr; }
  .myron-detail-item { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); }
  .myron-detail-item:last-child { border-bottom: none; }
  .aj-details-grid { grid-template-columns: 1fr; }

  /* Myron content */
  .myron-content { padding: 3.5rem 1.25rem; }
  .myron-dossier { padding: 2.5rem 1.5rem; }
  .myron-briefing { padding: 1.75rem 1.25rem; }

  /* AJ sections */
  .aj-content { padding: 3.5rem 1.25rem; }
  .aj-inv-card { padding: 2.5rem 1.5rem; }
  .aj-garden-card { padding: 1.75rem 1.25rem; }

  /* AJ hero */
  .aj-hero-title { font-size: clamp(3rem, 13vw, 4.5rem); }

  /* RSVP */
  .rsvp-inner { padding: 3.5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }

  .field-group input,
  .field-group textarea {
    font-size: 1rem; /* Prevent iOS zoom */
    padding: 0.9rem 1rem;
  }

  .toggle-group label { padding: 0.9rem 0.5rem; font-size: 0.65rem; }

  /* Footer */
  #site-footer { padding: 2.5rem 1.25rem; }

  /* Admin */
  .login-card { padding: 2rem 1.25rem; }
  .admin-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .admin-nav { flex-wrap: wrap; }
  .admin-body { padding: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-num { font-size: 2.2rem; }
  .add-guest-form { grid-template-columns: 1fr; }
  .admin-tools { flex-direction: column; align-items: stretch; }
  .admin-tools input[type="text"],
  .admin-tools select { width: 100%; min-width: unset; }
}

@media (max-width: 480px) {
  .myron-photo-grid { grid-template-columns: 1fr; }
  .myron-hero-title { font-size: 3.2rem; }
  .aj-hero-title { font-size: 2.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}


/* ══════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION — Accessibility fallback.
   If animations are disabled, force every element
   that could be stuck at opacity:0 to be visible.
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Hero CSS animations */
  .myron-hero-eyebrow,
  .myron-hero-sub,
  .myron-countdown,
  .aj-hero-eyebrow,
  .aj-hero-sub,
  .aj-countdown,
  .aj-gold-rule {
    animation: none !important;
    opacity: 1 !important;
  }

  /* Title slide animations */
  .word-inner {
    animation: none !important;
    transform: none !important;
  }

  /* Scroll reveal */
  .js-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Photo items */
  .js-ready .myron-photo-item {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Welcome screen content */
  .ws-content {
    animation: none !important;
    opacity: 1 !important;
  }

  /* GSAP-animated photo items */
  .myron-photo-item.revealed {
    opacity: 1 !important;
    transform: rotate(var(--rotate, 0deg)) !important;
  }
}

