/*
Theme Name: Jhon Carlo & Diane Joy Wedding
Theme URI: https://example.com/
Author: Converted from the React wedding site
Author URI: https://example.com/
Description: A romantic editorial one-page wedding theme for Jhon Carlo & Diane Joy (June 28, 2026, Kidapawan City). Three visual directions (Editorial, Cinematic, Botanical) switchable in the Customizer, with countdown, gallery lightbox, RSVP wizard, and a wishes wall.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jc-dj-wedding
*/

/* ============================================================
   The theme header above is required by WordPress.
   Everything below is the site's design system, unchanged from
   the original build. The hero background is referenced
   relatively (images/hero.webp) and resolves against this file
   at the theme root.
   ============================================================ */

/* ============ THEME TOKENS ============ */
/* Direction 1 — Romantic Editorial (default) */
:root[data-theme="editorial"] {
  --bg: #f6efe1;
  --bg-alt: #eee3cb;
  --surface: #fbf6ea;
  --ink: #2a1717;
  --ink-soft: #5a3a3a;
  --primary: #3d0000;       /* cabernet */
  --primary-soft: #734741;  /* cranberry */
  --accent: #b08a4a;        /* champagne gold */
  --rule: #d8c8a3;
  --moss: #586357;
  --pad-section: clamp(64px, 9vw, 128px);
}

/* Direction 2 — Moody Cinematic */
:root[data-theme="cinematic"] {
  --bg: #1a0808;
  --bg-alt: #280d08;
  --surface: #2a1010;
  --ink: #f1f2e6;
  --ink-soft: #c9b89f;
  --primary: #d4a85a;
  --primary-soft: #b08a4a;
  --accent: #f1f2e6;
  --rule: #5a3a3a;
  --moss: #8a9483;
  --pad-section: clamp(72px, 10vw, 144px);
}

/* Direction 3 — Garden Botanical */
:root[data-theme="botanical"] {
  --bg: #ede4cf;
  --bg-alt: #d9d2bd;
  --surface: #f4ecda;
  --ink: #1a1f17;
  --ink-soft: #4a5145;
  --primary: #2d3a2a;       /* deep moss */
  --primary-soft: #586357;
  --accent: #7d2233;        /* cranberry */
  --rule: #97a08c;
  --moss: #052102;
  --pad-section: clamp(64px, 9vw, 120px);
}

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; }
body {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 19px;
  line-height: 1.6;
  font-feature-settings: "liga", "dlig", "kern";
  transition: background-color 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ============ TYPE ============ */
.display {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.italic-script {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
}
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.label-script {
  font-family: 'Pinyon Script', 'Cormorant Garamond', cursive;
  font-weight: 400;
}

/* ============ LAYOUT ============ */
.shell {
  width: 100%;
  scroll-behavior: smooth;
}
section.snap {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--pad-section) clamp(20px, 6vw, 96px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.snap-scroll {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.snap-scroll::-webkit-scrollbar { width: 0; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 50%, transparent);
  transition: background-color 0.4s ease;
}
.nav-mono {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.nav-mono b { font-style: normal; font-weight: 400; color: var(--primary); }
.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
  align-items: center;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--primary);
}
.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--primary); color: var(--bg); }
.nav-cta-gift { border-color: var(--accent); color: var(--accent); }
.nav-cta-gift:hover { background: var(--accent); color: var(--bg); }
.nav-burger { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px; cursor: pointer;
  }
  .nav-burger span { width: 22px; height: 1px; background: var(--ink); }
  .nav-cta { padding: 8px 12px; font-size: 9.5px; }
}
@media (max-width: 420px) {
  .nav-cta { padding: 7px 9px; font-size: 8.5px; letter-spacing: 0.16em; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.closed { opacity: 0; visibility: hidden; pointer-events: none; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
}
.mobile-menu .close {
  position: absolute; top: 24px; right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ============ HERO ============ */
.hero {
  text-align: center;
  align-items: center;
}

/* Photographic hero — image-led cinematic background */
.hero.has-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f4ecda;
  padding-top: clamp(92px, 13vh, 150px);
  padding-bottom: clamp(36px, 6vh, 90px);
}
/* Invisible first-tap layer: covers the hero so the opening interaction
   starts the music (browsers block unmuted autoplay before a gesture). It
   lives inside the hero's stacking context, so the fixed nav stays clickable. */
.hero-audio-veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.hero.has-photo .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-photo-img {
  position: absolute; inset: 0;
  background-image: url('images/hero.webp');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
}
/* darkening gradient — bias top + edges so text is legible */
.hero-photo-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8,4,4,0.78) 0%,
      rgba(8,4,4,0.42) 28%,
      rgba(8,4,4,0.18) 55%,
      rgba(8,4,4,0.62) 88%,
      rgba(8,4,4,0.92) 100%);
}
.hero-photo-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%,
    transparent 0%,
    transparent 35%,
    rgba(8,4,4,0.55) 85%,
    rgba(8,4,4,0.85) 100%);
  mix-blend-mode: multiply;
}
/* subtle film grain */
.hero-photo-grain {
  position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.88 0 0 0 0 0.78 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Corner crop marks — small editorial detail */
.hero-photo-frame {
  position: absolute;
  inset: clamp(20px, 4vh, 44px) clamp(20px, 4vw, 56px);
  z-index: 2;
  pointer-events: none;
}
.hero-photo-frame .hpf {
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgba(244, 236, 218, 0.45);
  border-style: solid;
  border-width: 0;
}
.hero-photo-frame .tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-photo-frame .tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-photo-frame .bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-photo-frame .br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Photo caption / location tag — bottom-left */
.hero-photo-tag {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: clamp(28px, 5vw, 64px);
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(244, 236, 218, 0.7);
}
.hero-photo-tag .hpt-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #c7a35a;
  box-shadow: 0 0 0 3px rgba(199, 163, 90, 0.18);
}

/* Light-text overrides for the photographic hero */
.hero.has-photo .hero-eyebrow,
.hero.has-photo .hero-meta > span,
.hero.has-photo .cd-label {
  color: rgba(244, 236, 218, 0.78);
}
.hero.has-photo .hero-eyebrow::before,
.hero.has-photo .hero-eyebrow::after {
  background: rgba(244, 236, 218, 0.35);
}
.hero.has-photo .hero-name {
  color: #f6efe1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero.has-photo .hero-amp {
  color: #d9b876;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero.has-photo .hero-meta .dot {
  background: #d9b876;
}
.hero.has-photo .cd-cell {
  border-top-color: rgba(244, 236, 218, 0.28);
}
.hero.has-photo .cd-num {
  color: #f6efe1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

@media (max-width: 760px) {
  .hero-photo-img { background-position: 50% 32%; }
  .hero-photo-tag { font-size: 9px; letter-spacing: 0.22em; bottom: 20px; left: 20px; }
  .hero-photo-frame { inset: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-img { animation: none; }
}
.hero-amp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, min(12vw, 14vh), 180px);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin: -0.12em 0;
}
.hero-name {
  font-size: clamp(42px, min(9.5vw, 13vh), 150px);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: clamp(18px, 3.2vh, 48px);
  flex-wrap: wrap;
}
.hero-meta > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-meta .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(16px, 2.8vh, 44px);
  display: flex; gap: 12px; align-items: center; justify-content: center;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; height: 1px; width: 36px; background: var(--rule);
}

/* Countdown */
.countdown {
  margin-top: clamp(22px, 4vh, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 28px);
  max-width: 640px;
  width: 100%;
}
.cd-cell {
  text-align: center;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* Short / landscape viewports: keep the whole hero (incl. countdown) on screen */
@media (min-width: 761px) and (max-height: 720px) {
  .hero.has-photo { padding-top: clamp(80px, 11vh, 120px); padding-bottom: clamp(28px, 5vh, 60px); }
  .cd-num { font-size: clamp(30px, 7vh, 52px); }
  .cd-cell { padding-top: 12px; }
}

/* Section eyebrow header */
.section-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; color: var(--accent);
}
.section-head .rule {
  flex: 1; height: 1px; background: var(--rule);
}
.section-head .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ============ STORY ============ */
/* faint photographic silhouette behind the story */
.has-silhouette { position: relative; isolation: isolate; overflow: hidden; }
.has-silhouette > .section-head,
.has-silhouette > .section-title,
.has-silhouette > .story-grid { position: relative; z-index: 1; }
.story-silhouette {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: min(62%, 760px);
  z-index: 0;
  pointer-events: none;
}
.story-silhouette img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.16;
  filter: saturate(0.7) contrast(1.02);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 38%, #000 78%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 38%, #000 78%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
:root[data-theme="cinematic"] .story-silhouette img { opacity: 0.26; filter: saturate(0.6) contrast(1.05) brightness(0.9); }
:root[data-theme="botanical"] .story-silhouette img { opacity: 0.18; }
@media (max-width: 760px) {
  .story-silhouette { width: 100%; opacity: 0.7; }
  .story-silhouette img {
    object-position: center 22%;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent 100%);
  }
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
}
.story-grid p {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  margin-bottom: 1em;
  max-width: 62ch;
}
.story-col p:first-child:first-letter {
  font-size: 3em;
  float: left;
  line-height: 0.9;
  padding: 4px 10px 0 0;
  font-style: italic;
  color: var(--primary);
}
.story-side .stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.story-side .stat-row .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.story-side .stat-row .v {
  font-style: italic; font-size: 22px; color: var(--primary);
}
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* ============ SCHEDULE ============ */
.schedule-list {
  border-top: 1px solid var(--rule);
}
.event-row {
  display: grid;
  grid-template-columns: 120px 1fr 160px;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 0.3s ease, padding 0.3s ease;
  cursor: pointer;
}
.event-row:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.event-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.1;
}
.event-title em { color: var(--accent); }
.event-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 48ch;
}
.event-place {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .event-row { grid-template-columns: 1fr; gap: 8px; }
  .event-place { text-align: left; }
}

/* ============ VENUE ============ */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 4vw, 48px);
}
.venue-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column;
}
.venue-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  margin-bottom: 4px;
}
.venue-card .tagit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.venue-card .addr {
  font-style: italic; color: var(--ink-soft); margin-bottom: 16px; max-width: 36ch; font-size: 17px;
}
.venue-map {
  flex: 1;
  min-height: 220px;
  border: 1px solid var(--rule);
  margin: 16px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.venue-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(0.95); }
.venue-photo { min-height: 280px; }
.venue-photo img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  filter: contrast(0.98) saturate(0.92);
}
.venue-photo { position: relative; }
.venue-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.venue-link:hover { opacity: 0.7; }
@media (max-width: 760px) { .venue-grid { grid-template-columns: 1fr; } }

/* ============ ACCOMMODATIONS ============ */
.accom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(24px, 4vw, 48px);
}
.accom-card {
  border: 1px solid var(--rule);
  padding: clamp(24px, 2.5vw, 32px);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.accom-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.accom-card .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent);
}
.accom-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; font-size: 26px; line-height: 1.1;
}
.accom-card .dist {
  font-size: 14px; color: var(--ink-soft); font-style: italic;
}
.accom-card .code {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--primary);
}
@media (max-width: 880px) { .accom-grid { grid-template-columns: 1fr; } }

/* ============ ENTOURAGE ============ */
.entourage-program {
  margin-top: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px) clamp(48px, 8vw, 120px);
  max-width: 1100px;
}
.ent-block { break-inside: avoid; }
.ent-block-full {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: clamp(8px, 1.5vw, 20px) 0;
}
.ent-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}
.ent-role::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 1px;
  background: var(--rule);
}
.ent-block-full .ent-role {
  font-size: 12px;
  letter-spacing: 0.42em;
  margin-bottom: 6px;
  padding-bottom: 0;
}
.ent-block-full .ent-role::after { display: none; }
.ent-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.ent-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--ink);
}
.ent-names > div { padding: 2px 0; }
.ent-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(40px, 6vw, 96px);
  max-width: 880px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--ink);
}
.ent-pair {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.ent-amp {
  font-family: 'Pinyon Script', 'Cormorant Garamond', cursive;
  font-style: normal;
  color: var(--accent);
  font-size: 1.6em;
  line-height: 0.8;
  font-weight: 400;
}
@media (max-width: 760px) {
  .entourage-program { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); }
  .ent-pairs { grid-template-columns: 1fr; }
}

/* Family blocks (parents / bearers) */
.ent-fam {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 880px;
  margin: clamp(20px, 2.5vw, 30px) auto 0;
}
.ent-fam.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}
.ent-fam-col { text-align: center; }
.ent-fam-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.ent-fam-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.5;
  color: var(--ink);
}
.ent-fam-names > div { padding: 1px 0; }

/* Principal sponsors — two grouped, multi-column lists */
.spon-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: 980px;
  margin: clamp(16px, 2vw, 24px) auto 0;
  text-align: left;
}
.spon-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.spon-names {
  list-style: none;
  margin: 0; padding: 0;
  columns: 2;
  column-gap: clamp(20px, 3vw, 40px);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink);
}
.spon-names li { break-inside: avoid; padding: 1px 0; }
@media (max-width: 760px) {
  .ent-fam { grid-template-columns: 1fr; gap: 28px; }
  .spon-cols { grid-template-columns: 1fr; gap: 32px; }
  .spon-names { columns: 2; }
}

/* ============ DRESS CODE ============ */
.dress-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(24px, 4vw, 48px);
}
.dress-wrap p {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 50ch;
}
.dress-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--primary);
  margin-bottom: 8px;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.swatch {
  aspect-ratio: 1 / 1.2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
  color: #f6efe1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}
.swatch::before {
  content: ''; position: absolute; top: 14px; left: 14px;
  width: 16px; height: 1px; background: rgba(246,239,225,0.6);
}
.swatch.do { background: #3d0000; }
.swatch.do2 { background: #586357; }
.swatch.do3 { background: #b08a4a; color: #1a0808; }
.swatch.do3::before { background: rgba(26,8,8,0.6); }
.swatch.no { background: #d9d2bd; color: #5a3a3a; opacity: 0.5; text-decoration: line-through; }
.swatch.no::before { background: rgba(90,58,58,0.6); }
@media (max-width: 760px) { .dress-wrap { grid-template-columns: 1fr; } }

/* attire inspiration gallery */
.attire-inspo { margin-top: clamp(36px, 5vw, 64px); }
.attire-inspo-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.attire-inspo-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--ink-soft);
  white-space: nowrap;
}
.attire-inspo-head .rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(120,70,80,0.45), rgba(120,70,80,0));
}
.attire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
.attire-card { margin: 0; }
.attire-card img {
  width: 100%;
  aspect-ratio: 3 / 4.4;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid rgba(120,70,80,0.28);
  filter: saturate(0.96);
}
.attire-card figcaption {
  margin-top: 10px;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .attire-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: clamp(24px, 4vw, 48px);
}
.g-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-alt);
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.g-tile.in { opacity: 1; transform: none; }
.g-tile svg { width: 100%; height: 100%; display: block; }
.g-tile img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transform: scale(var(--gs, 1.08)) translateY(var(--py, 0px));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
  will-change: transform;
}
.g-tile:hover { --gs: 1.16; }
.g-tile:hover img { filter: saturate(1.05) contrast(1.02); }
.g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 30%,
    color-mix(in oklab, var(--primary) 55%, transparent) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.g-tile:hover .g-overlay { opacity: 1; }
.g-num {
  position: absolute; left: 14px; bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.26em;
  color: #f6efe1;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.g-tile:hover .g-num { opacity: 1; transform: none; }
.g-tile .gcap {
  position: absolute; bottom: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bg);
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
}
.g-w4 { grid-column: span 4; }
.g-w6 { grid-column: span 6; }
.g-w8 { grid-column: span 8; }
.g-w12 { grid-column: span 12; }
.ar-32 { aspect-ratio: 3 / 2; }
.ar-34 { aspect-ratio: 3 / 4; }
.ar-11 { aspect-ratio: 1 / 1; }
.ar-52 { aspect-ratio: 5 / 2; }
@media (hover: none) {
  .g-num { opacity: 0.9; transform: none; }
  .g-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--primary) 38%, transparent) 100%);
  }
}
/* Gallery: mobile swipe carousel (coverflow) */
.gal-swipe-hint { display: none; }
.gal-dots { display: none; }
@media (max-width: 760px) {
  .gallery-grid.gallery-rail {
    display: flex;
    grid-template-columns: none;
    flex-flow: row nowrap;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 8px -20px 0;
    padding: 8px 0 12px;
    scrollbar-width: none;
    /* centering pads so first/last card can sit in the middle */
    scroll-padding: 0 13%;
  }
  .gallery-grid.gallery-rail::-webkit-scrollbar { display: none; }
  .gallery-grid.gallery-rail::before,
  .gallery-grid.gallery-rail::after {
    content: ""; flex: 0 0 13%;
  }
  .gallery-rail .g-tile {
    flex: 0 0 74%;
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 3 / 4 !important;
    scroll-snap-align: center;
    margin: 0 1.5%;
    border-radius: 14px;
    box-shadow: 0 18px 44px -22px rgba(40, 12, 18, 0.55);
    opacity: var(--cf-op, 1);
    transform: scale(var(--cf-scale, 1));
    transition: transform 0.18s ease-out, opacity 0.18s ease-out, box-shadow 0.4s ease;
  }
  .gallery-rail .g-tile.cf-active {
    box-shadow: 0 26px 60px -24px rgba(40, 12, 18, 0.7);
  }
  .gallery-rail .g-tile img {
    transform: none;
  }
  /* Elegant slow drift on the centred card */
  .gallery-rail .g-tile.cf-active img {
    animation: galKenburns 9s ease-in-out infinite alternate;
  }
  @keyframes galKenburns {
    from { transform: scale(1.02) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1.5%, -1.5%); }
  }
  .gallery-rail .g-num { opacity: 0.95; transform: none; }
  .gallery-rail .g-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 58%, color-mix(in oklab, var(--primary) 42%, transparent) 100%);
  }

  .gal-swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--ink-soft);
    margin: 4px 0 4px;
  }
  .gal-swipe-arrow { display: inline-block; animation: entSwipe 1.6s ease-in-out infinite; }

  .gal-dots {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
    margin-top: 16px;
  }
  .gal-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--rule); padding: 0; border: none;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .gal-dot.on { background: var(--primary); transform: scale(1.35); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-inner {
  background: transparent;
  width: auto;
  max-width: min(1100px, 100%);
  position: relative;
  display: flex;
}
.lb-inner svg { width: 100%; height: 100%; }
.lb-img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}
.lb-close {
  position: absolute; top: -36px; right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: #f1f2e6;
}
.lb-cap {
  position: absolute; bottom: -32px; left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; color: #f1f2e6;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; color: #f1f2e6;
  padding: 0 16px;
}
.lb-nav.prev { left: -64px; }
.lb-nav.next { right: -64px; }
@media (max-width: 760px) {
  .lb-nav.prev { left: -8px; } .lb-nav.next { right: -8px; }
}

/* ============ FAQ ============ */
.faq-list {
  border-top: 1px solid var(--rule);
  margin-top: clamp(24px, 4vw, 48px);
  max-width: 920px;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 300;
  color: var(--ink);
  transition: color 0.3s ease;
}
.faq-q:hover { color: var(--primary); }
.faq-q .plus {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 64ch;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 24px 0;
}
.faq-ask {
  max-width: 920px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.faq-ask-head {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--primary);
  margin-bottom: 20px;
}
.faq-ask-form { max-width: 560px; }
.faq-ask-done p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 52ch;
}

/* ============ RSVP ============ */
.rsvp-card {
  max-width: 720px;
  margin: clamp(24px, 4vw, 48px) auto 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 56px);
}
.steps-rail {
  display: flex; gap: 8px;
  margin-bottom: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
}
.step-pip {
  flex: 1;
  height: 2px;
  background: var(--rule);
  position: relative;
}
.step-pip.done, .step-pip.active { background: var(--primary); }
.step-pip span {
  position: absolute; left: 0; top: 8px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.step-pip.active span, .step-pip.done span { color: var(--primary); }

.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-size: 17px;
  font-family: 'Cormorant Garamond', serif;
  transition: border-color 0.2s ease;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
}
.field textarea { min-height: 100px; resize: vertical; font-style: italic; }
.field.error input, .field.error select { border-color: var(--accent); }
.field .err {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; color: var(--accent);
  margin-top: 6px; text-transform: uppercase;
}

.faq-ask-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; color: var(--accent);
  margin: 4px 0 0;
}

.btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.btn-primary {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  padding: 14px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.btn-ghost:hover { color: var(--ink); }

.radio-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.radio-tile {
  border: 1px solid var(--rule);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg);
}
.radio-tile:hover { border-color: var(--primary); }
.radio-tile.selected {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 8%, var(--bg));
}
.radio-tile .rt-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; line-height: 1.1;
}
.radio-tile .rt-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 4px;
}

.guest-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
}
.guest-row .remove {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.22em; color: var(--ink-soft);
  padding-bottom: 14px;
}
.add-guest {
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary);
  padding: 8px 0;
}

.success-card {
  text-align: center; padding: 24px 0;
}
.success-card .seal {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 80px;
  color: var(--accent);
  margin: 0 auto 16px;
  line-height: 1;
}
.success-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  margin-bottom: 16px;
}
.success-card p { color: var(--ink-soft); margin-bottom: 8px; }

/* ============ GUESTBOOK ============ */
.gb-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 4vw, 48px);
}
.gb-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 32px);
  align-self: start;
  position: sticky; top: 100px;
}
.gb-wall {
  columns: 2 280px;
  column-gap: 16px;
}
.gb-note {
  break-inside: avoid;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
  animation: noteIn 0.6s ease;
}
@keyframes noteIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gb-note .by {
  display: block;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
.gb-empty {
  padding: 22px 24px;
  border: 1px dashed var(--rule);
  border-left: 2px solid var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .gb-wrap { grid-template-columns: 1fr; }
  .gb-form { position: static; }
  .gb-wall { columns: 1; }
}
/* Well-Wishes (merged into RSVP) */
.well-wishes {
  max-width: 980px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
}
.ww-head { text-align: center; margin-bottom: clamp(8px, 2vw, 20px); }
.ww-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.ww-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--ink);
  margin-top: 10px;
}
.ww-title em { font-style: italic; color: var(--primary); }

/* ============ GIFTS + WELL-WISHES (merged) ============ */
.give-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 52px);
  align-items: start;
}
.give-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.gift-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(22px, 3vw, 34px);
  position: sticky; top: 100px;
}
.gift-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 clamp(18px, 2.5vw, 26px);
}
.gift-note em { font-style: italic; color: var(--primary); }
.gift-qr {
  margin: 0 auto;
  max-width: 320px;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 14px;
}
.gift-qr img { display: block; width: 100%; height: auto; }
.gift-qr-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
}
.gift-qr-btn img { transition: opacity 0.25s ease; }
.gift-qr-zoom {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 14, 12, 0.82);
  color: #f4ece0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gift-qr-btn:hover .gift-qr-zoom,
.gift-qr-btn:focus-visible .gift-qr-zoom { opacity: 1; }
@media (hover: none) {
  .gift-qr-zoom { opacity: 1; }  /* always show the affordance on touch devices */
}

/* QR zoom modal — full-screen, large, scan-friendly */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(20px, 6vw, 56px);
  background: rgba(18, 12, 10, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
  cursor: zoom-out;
}
.qr-modal-card {
  margin: 0;
  background: #fff;
  padding: clamp(14px, 3vw, 22px);
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
  max-width: min(86vw, 460px);
  width: 100%;
}
.qr-modal-card img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}
.qr-modal-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5d4a;
}
.qr-modal-close {
  order: -1;
  align-self: center;
  border: 1px solid rgba(244, 236, 224, 0.4);
  background: transparent;
  color: #f4ece0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.qr-modal-close:hover { background: rgba(244, 236, 224, 0.12); }
.gift-hint {
  margin-top: 14px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wish-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 48ch;
}
.give-layout .gb-form { position: static; }
.give-layout + .gb-wall {
  margin-top: clamp(32px, 4.5vw, 60px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .give-layout { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 34px); }
  .gift-card { position: static; }
  .gift-qr { max-width: 240px; }
}

/* Gifts on phones: compress the gift card so the QR and the "Leave a
   Blessing" heading land in view together right after tapping "Gifts".
   Scoped to #gifts so no other section is affected. */
@media (max-width: 540px) {
  #gifts { padding-top: clamp(68px, 15vw, 92px); padding-bottom: clamp(40px, 9vw, 64px); }
  #gifts .section-head { margin-bottom: 18px; }
  #gifts .section-title { font-size: clamp(26px, 7.6vw, 34px); line-height: 1.08; }
  #gifts .give-layout { margin-top: 20px; gap: 20px; }
  #gifts .give-eyebrow { margin-bottom: 9px; }
  #gifts .gift-card { padding: 18px 16px; }
  #gifts .gift-note { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
  #gifts .gift-qr { max-width: 168px; padding: 9px; }
  #gifts .gift-hint { margin-top: 9px; font-size: 8.5px; }
  #gifts .wish-intro { font-size: 14.5px; margin-bottom: 12px; }
}

/* ============ PLAYLIST ============ */
.pl-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 4vw, 48px);
  align-items: start;
}
.pl-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 32px);
}
.pl-list {
  border-top: 1px solid var(--rule);
}
.pl-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  animation: noteIn 0.4s ease;
}
.pl-row .pn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--accent);
}
.pl-row .pt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 400; line-height: 1.2;
}
.pl-row .pa {
  font-style: italic; color: var(--ink-soft); font-size: 14px;
}
.pl-row .pby {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 760px) { .pl-wrap { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.site-foot {
  padding: 64px clamp(20px, 5vw, 64px) 32px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.site-foot .mono {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--primary);
}
.site-foot .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ============ DECOR ============ */
.deco-leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  color: var(--moss);
}
.deco-leaf svg { display: block; }
:root[data-theme="botanical"] .deco-leaf { opacity: 0.9; }
:root[data-theme="cinematic"] .deco-leaf { opacity: 0.35; }

/* Initial cap monogram */
.monogram {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 72px);
  color: var(--accent);
  line-height: 1;
  display: inline-block;
}

/* Direction-specific tweaks */
:root[data-theme="cinematic"] .hero-name { letter-spacing: -0.03em; }
:root[data-theme="cinematic"] .section-title em { color: var(--primary); }
:root[data-theme="cinematic"] .swatch.do3 { background: var(--primary); color: var(--bg); }
:root[data-theme="cinematic"] .accom-card,
:root[data-theme="cinematic"] .venue-card,
:root[data-theme="cinematic"] .rsvp-card,
:root[data-theme="cinematic"] .gb-form,
:root[data-theme="cinematic"] .gift-card,
:root[data-theme="cinematic"] .pl-form {
  background: var(--surface);
}
:root[data-theme="cinematic"] .nav-cta {
  border-color: var(--primary); color: var(--primary);
}
:root[data-theme="cinematic"] .nav-cta:hover { background: var(--primary); color: var(--bg); }
:root[data-theme="cinematic"] .nav-cta-gift { border-color: var(--accent); color: var(--accent); }
:root[data-theme="cinematic"] .nav-cta-gift:hover { background: var(--accent); color: var(--bg); }

:root[data-theme="botanical"] .hero-amp { color: var(--accent); font-weight: 400; }
:root[data-theme="botanical"] .section-title em { color: var(--accent); font-style: italic; }

/* Floral SVG decoration positioning */
.floral-corner {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
  color: var(--moss);
}
:root[data-theme="cinematic"] .floral-corner { opacity: 0.4; color: var(--primary); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ============ MUSIC PLAYER ============ */
.music-pill {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  bottom: calc(clamp(16px, 2.2vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 14px;
  background: rgba(20, 14, 12, 0.82);
  color: #f6efe1;
  border: 1px solid rgba(246, 239, 225, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.music-pill:hover {
  transform: translateY(-1px);
  background: rgba(20, 14, 12, 0.92);
  border-color: var(--accent);
}
.music-pill:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176,138,74,0.25);
}
.music-pill.pulse::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  opacity: 0.55;
  animation: music-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes music-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.18); opacity: 0;    }
}
.music-eq {
  display: inline-flex; align-items: flex-end; gap: 2px;
  height: 14px;
}
.music-eq span {
  display: block;
  width: 2px;
  background: #f6efe1;
  height: 4px;
  border-radius: 1px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.music-eq span.on {
  opacity: 1;
  animation: eq-bounce 0.9s ease-in-out infinite;
}
.music-eq span.on:nth-child(2) { animation-delay: 0.15s; }
.music-eq span.on:nth-child(3) { animation-delay: 0.30s; }
.music-eq span.on:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq-bounce {
  0%, 100% { height: 4px; }
  50%      { height: 13px; }
}
.music-label { line-height: 1; padding-top: 1px; }
@media (max-width: 540px) {
  .music-pill { padding: 9px 12px; font-size: 9.5px; gap: 8px; }
  .music-eq { height: 12px; }
}

/* Transparent first-interaction gate — covers the whole screen (the hero is
   what's visible on load) so the very first tap/click/scroll is guaranteed to
   reach it and start the music. Removes itself immediately after. */
.music-gate {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* One-time invitation so guests know to tap (audio can't start on its own) */
.music-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(74px, 11vh, 104px);
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(20, 14, 12, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(176, 138, 74, 0.45);
  color: #f4ece0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  animation: music-hint-in 0.6s ease both, music-hint-float 3.2s ease-in-out 0.6s infinite;
}
.music-hint-note {
  font-size: 15px;
  color: var(--accent);
  animation: music-hint-bob 1.6s ease-in-out infinite;
}
@keyframes music-hint-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes music-hint-float {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -4px); }
}
@keyframes music-hint-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@media (max-width: 540px) {
  .music-hint { font-size: 10px; padding: 10px 16px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-hint { animation: music-hint-in 0.6s ease both; }
  .music-hint-note { animation: none; }
}

/* Full-viewport first-tap gate. Shown on EVERY device until the music starts.
   A swipe-scroll is not a tap, and mobile browsers only grant audio permission
   on a real tap/click — so we give guests one unmistakable thing to tap. The
   layer is mostly transparent (the hero shows through) but dims slightly so the
   prompt reads. Any tap/click anywhere, or a desktop scroll, starts the music
   and dismisses the gate. */
.music-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(96px, 18vh, 200px);
  margin: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(120% 90% at 50% 100%, rgba(12, 8, 7, 0.30) 0%, rgba(12, 8, 7, 0.10) 45%, rgba(12, 8, 7, 0) 75%);
  animation: music-gate-fade 0.5s ease both;
}
@keyframes music-gate-fade { from { opacity: 0; } to { opacity: 1; } }
.music-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(20, 14, 12, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(176, 138, 74, 0.55);
  color: #f4ece0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  animation: music-gate-float 3.2s ease-in-out 0.4s infinite;
}
@keyframes music-gate-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.music-gate .music-hint-note { font-size: 16px; color: var(--accent); }
@media (max-width: 540px) {
  .music-gate { padding-bottom: clamp(120px, 24vh, 220px); }
  .music-gate-pill { font-size: 11px; padding: 13px 22px; letter-spacing: 0.12em; }
}
@media (prefers-reduced-motion: reduce) {
  .music-gate-pill { animation: none; }
}


/* ============ MOBILE TUNING ============ */

/* Soften snap on small screens — sections often exceed the viewport on phones,
   and mandatory snap traps the user mid-section. Proximity = smoother. */
@media (max-width: 760px) {
  section.snap {
    min-height: auto;
    padding: clamp(80px, 14vw, 120px) 20px clamp(56px, 10vw, 96px);
    justify-content: flex-start;
  }
  section.hero { min-height: 100dvh; justify-content: center; }
}

/* Nav: lift the burger touch target, breathe the bar */
@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav-burger { padding: 10px; }
  .nav-burger span { width: 24px; }
}

/* Mobile menu: roomier links, safe-area aware */
.mobile-menu { padding-top: env(safe-area-inset-top, 0px); }
@media (max-width: 540px) {
  .mobile-menu a { font-size: 24px; padding: 10px 0; }
  .mobile-menu .close { top: 18px; right: 18px; }
}

/* Hero: tighten meta + eyebrow wrap on narrow screens */
@media (max-width: 540px) {
  .hero-eyebrow::before, .hero-eyebrow::after { width: 20px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.26em; gap: 8px; }
  .hero-meta { gap: 14px; }
  .hero-meta > span { font-size: 10.5px; letter-spacing: 0.24em; }
  .hero-amp { margin: -0.05em 0; }
  .countdown { gap: 10px; max-width: 100%; }
  .cd-label { font-size: 8.5px; letter-spacing: 0.22em; }
}

/* Section title: never overflow narrow screens */
@media (max-width: 540px) {
  .section-title {
    font-size: clamp(36px, 11vw, 56px);
    max-width: 100%;
    text-wrap: balance;
  }
  .section-head { margin-bottom: 32px; gap: 12px; }
  .section-head .num, .section-head .label { font-size: 10px; letter-spacing: 0.22em; }
}

/* Story: stat rows shouldn't crowd at the bottom of a tall first column */
@media (max-width: 760px) {
  .story-side { margin-top: 12px; }
}

/* Schedule rows on mobile: time as a small chip above title */
@media (max-width: 760px) {
  .event-row { padding: 20px 0; gap: 6px; }
  .event-row:hover { padding-left: 0; padding-right: 0; }
  .event-time { font-size: 12px; }
  .event-title { font-size: clamp(22px, 6.5vw, 30px); }
  .event-desc { font-size: 15px; }
  .event-place { font-size: 10.5px; margin-top: 4px; }
}

/* Venue cards: tighten padding, shorter photo so two stack neatly above the fold */
@media (max-width: 760px) {
  .venue-card { padding: 22px; }
  .venue-card h3 { font-size: 26px; }
  .venue-map, .venue-photo { min-height: 220px; margin: 14px 0; }
  .venue-card .addr { font-size: 16px; }
}

/* Entourage: mobile becomes a horizontal swipe carousel of name cards */
.ent-swipe-hint { display: none; }
.ent-dots { display: none; }
@media (max-width: 760px) {
  .entourage-program {
    grid-template-columns: none;
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 20px;
    margin: 8px -20px 0;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }
  .entourage-program::-webkit-scrollbar { display: none; }
  .entourage-program > .ent-block {
    flex: 0 0 84%;
    scroll-snap-align: center;
    background: var(--surface);
    border: 1px solid var(--rule);
    margin: 0;
    padding: 28px 22px;
    min-height: 340px;
    max-height: 74vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .entourage-program > .ent-block::-webkit-scrollbar { display: none; }
  .entourage-program > .ent-block { scrollbar-width: none; }
  .entourage-program .ent-role::after { left: 50%; transform: translateX(-50%); }
  .entourage-program .spon-cols { grid-template-columns: 1fr; gap: 22px; }
  .entourage-program .spon-names { columns: 2; max-height: 42vh; overflow-y: auto; scrollbar-width: none; }
  .entourage-program .spon-names::-webkit-scrollbar { display: none; }
  .entourage-program .spon-head { text-align: center; }
  .entourage-program .ent-fam { grid-template-columns: 1fr; gap: 18px; margin-top: 16px; }
  .ent-role { margin-bottom: 12px; padding-bottom: 10px; }
  /* Entourage heading: graceful blur-rise reveal on scroll-in */
  .ent-title {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(7px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s ease;
  }
  .ent-title.reveal-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .ent-names { font-size: 20px; }

  .ent-swipe-hint {
    display: flex; align-items: center; gap: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--ink-soft);
    margin: 2px 0 16px;
  }
  .ent-swipe-arrow {
    display: inline-block;
    animation: entSwipe 1.6s ease-in-out infinite;
  }
  @keyframes entSwipe {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
  }
  .ent-dots {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 9px;
    margin-top: 20px;
  }
  .ent-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--rule);
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .ent-dot.on { background: var(--primary); transform: scale(1.35); }
}

/* Dress code: stack swatches into a clean 3-column grid on phones */
@media (max-width: 540px) {
  .swatch-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .swatch { font-size: 9px; padding: 14px 6px; }
}

/* Gallery: slightly larger captions and 2-up at all phone widths */
@media (max-width: 540px) {
  .gallery-grid { gap: 12px; }
  .gcap { font-size: 8.5px; padding: 6px 8px; }
}

/* RSVP: full-width radio tiles + roomier inputs (easier for older fingers) */
@media (max-width: 540px) {
  /* Expand the card to nearly the full screen width — pull it past the
     section's 20px side padding so it sits in a slim ~10px gutter. */
  .rsvp-card { padding: 24px 16px; margin-inline: -10px; }
  .radio-row { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea {
    padding: 14px; font-size: 17px;
  }
  .steps-rail { font-size: 8.5px; letter-spacing: 0.18em; gap: 6px; }
  .step-pip span { font-size: 9px; left: 0; right: 0; text-align: center; }
  .step-pip .pip-l { display: none; }
  .btn-primary, .btn-ghost { padding: 14px 22px; font-size: 10.5px; }
}

/* Playlist row + guestbook form */
@media (max-width: 540px) {
  .pl-row { grid-template-columns: 22px 1fr; }
  .pl-row .pby { grid-column: 2; margin-top: 2px; }
  .pl-row .pt { font-size: 18px; }
}

/* FAQ: tighter question rows */
@media (max-width: 540px) {
  .faq-q { font-size: 19px; padding: 18px 0; }
  .faq-a { font-size: 16px; }
}

/* Footer */
@media (max-width: 540px) {
  .site-foot { padding: 56px 20px 80px; }
  .site-foot .meta { font-size: 9px; letter-spacing: 0.22em; }
}

/* Music pill: tuck it tighter on phones so it doesn't fight the page */
@media (max-width: 540px) {
  .music-pill {
    padding: 10px 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

/* Tweaks panel: never let it dominate the mobile viewport */
@media (max-width: 540px) {
  .tweaks-panel { max-width: calc(100vw - 24px) !important; }
}


/* ============================================================
   WordPress port — overlay visibility.
   In the original React build, the lightbox and QR modal were
   conditionally rendered (mounted only when open). The PHP port
   keeps them in the DOM and toggles the [hidden] attribute, but
   their base rule sets display:flex, which would override the
   browser default for [hidden]. Restore it explicitly.
   ============================================================ */
.lightbox[hidden],
.qr-modal[hidden],
.music-gate[hidden] { display: none !important; }
