/* ============================================
   THI & VŨ — Wedding RSVP Website
   Art direction: Cinematic Intimacy
   ============================================ */

:root {
  /* Type Scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3.5rem, 1rem + 8vw, 10rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Colors — Refined warm palette */
  --color-bg: #FAFAF7;
  --color-surface: #F5F1EB;
  --color-surface-dark: #141210;
  --color-text: #1E1B18;
  --color-text-muted: #8A857D;
  --color-text-faint: #B0AAA0;
  --color-text-inverse: #FAF9F6;
  --color-accent: #A07D3A;
  --color-accent-hover: #8A6B30;
  --color-accent-light: rgba(160, 125, 58, 0.1);
  --color-green: #2D4A3E;
  --color-divider: #E5E0D8;
  --color-border: #D4CCBE;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 27, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 27, 24, 0.08);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  z-index: 200;
  transition: none;
}
@media (max-width: 768px) {
  .scroll-progress { display: none; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}

.nav--scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-3) var(--space-8);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav--scrolled .nav__logo { color: var(--color-text); }

.nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition-interactive), opacity var(--transition-interactive);
}
.nav__links a:hover { color: rgba(255,255,255,1); }
.nav--scrolled .nav__links a { color: var(--color-text-muted); }
.nav--scrolled .nav__links a:hover { color: var(--color-text); }

/* RSVP highlight in nav */
.nav__links a.nav__rsvp {
  border: 1px solid rgba(255,255,255,0.45);
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  letter-spacing: 0.2em;
  transition: color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}
.nav__links a.nav__rsvp:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.nav--scrolled .nav__links a.nav__rsvp {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.nav--scrolled .nav__links a.nav__rsvp:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Mobile nav */
.nav__menu-btn {
  display: none;
  color: rgba(255,255,255,0.9);
  padding: var(--space-2);
}
.nav--scrolled .nav__menu-btn { color: var(--color-text); }
.nav__close { display: none; }

@media (max-width: 768px) {
  .nav { padding: var(--space-4) var(--space-4); }
  .nav--scrolled { padding: var(--space-3) var(--space-4); }
  .nav__menu-btn { display: block; }
  .nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #FAFAF7;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-10);
    z-index: 200;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    color: var(--color-text) !important;
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
  }
  .nav__links a.nav__rsvp {
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
    margin-top: var(--space-2);
  }
  .nav__links a.nav__rsvp:hover {
    background: var(--color-accent);
    color: #fff !important;
  }
  .nav__close {
    display: block;
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    color: var(--color-text);
    padding: var(--space-2);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100svh;           /* fixed to small viewport — no resize when address bar toggles */
  min-height: 100svh;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-surface-dark);
}
@supports not (height: 100svh) {
  .hero { height: 100vh; min-height: 100vh; max-height: 100vh; }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (min-width: 769px) {
  .hero__media img {
    object-position: center 45%;
    will-change: transform;
    transform: scale(1.25) translate(-4%, 0%);
  }
  .hero {
    justify-content: flex-start;
  }
}
@media (min-width: 1280px) {
  .hero__media img {
    object-position: center center;
    transform: scale(1.2) translate(-4%, 2.7074%);
  }
}
@media (min-width: 1920px) {
  .hero__media img {
    transform: scale(1.15) translate(-4%, 2.7074%);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 16, 0.15) 0%,
    rgba(20, 18, 16, 0.05) 35%,
    rgba(20, 18, 16, 0.4) 70%,
    rgba(20, 18, 16, 0.75) 100%
  );
}
@media (min-width: 769px) {
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(20, 18, 16, 0.55) 0%,
      rgba(20, 18, 16, 0.15) 40%,
      rgba(20, 18, 16, 0.05) 60%,
      rgba(20, 18, 16, 0.2) 100%
    );
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 var(--space-8) clamp(var(--space-16), 12vh, var(--space-32));
  opacity: 0;
}
/* Hero text positioning — 5 breakpoint-specific rules to keep
   "Vũ & Thi" just above the couple's heads at every desktop width */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero__content {
    padding: 5vh var(--space-8) 0;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__content {
    padding: 7vh var(--space-8) 0;
  }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .hero__content {
    padding: 14vh var(--space-8) 0;
  }
}
@media (min-width: 1440px) and (max-width: 1679px) {
  .hero__content {
    padding: 16vh var(--space-8) 0;
  }
}
@media (min-width: 1680px) {
  .hero__content {
    padding: 18vh var(--space-8) 0;
  }
}

.hero__date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.35em;
  padding-right: 0.35em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero__names {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 0.95;
  margin-bottom: var(--space-4);
}

.hero__venue {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  overflow: hidden;
}
.hero__scroll::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================
   REVEAL ANIMATIONS (GSAP will control these)
   ============================================ */
.reveal { opacity: 0; }
.reveal-image { clip-path: inset(0 100% 0 0); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-6);
  position: relative;
}

.section--cream { background: var(--color-bg); }
.section--surface { background: var(--color-surface); }
.section--dark {
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  max-width: none;
}
.section__label--center {
  text-align: center;
  padding-right: 0.3em;
}
.section__title--center {
  text-align: center;
}
.section--dark .section__label { color: var(--color-accent); }

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-10);
}
.section--dark .section__title { color: #fff; }

/* ============================================
   FULL-BLEED PHOTO BREAKS
   ============================================ */
.photo-break {
  width: 100%;
  height: clamp(40vh, 50vw, 70vh);
  overflow: hidden;
  position: relative;
}
.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (min-width: 769px) {
  .photo-break img { will-change: transform; }
}
.photo-break--quote {
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-break__quote {
  position: absolute;
  z-index: 2;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  text-align: center;
  max-width: 600px;
  padding: var(--space-8);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.photo-break__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.35);
  z-index: 1;
}

/* Duo photo break — side-by-side portraits */
.photo-break--duo {
  display: flex;
  height: clamp(50vh, 60vw, 85vh);
  gap: 4px;
}
.photo-break__panel {
  flex: 1;
  overflow: hidden;
}
.photo-break__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
@media (max-width: 768px) {
  .photo-break--duo {
    flex-direction: column;
    height: auto;
    gap: 4px;
  }
  .photo-break__panel {
    flex: none;
    height: 75vh;
  }
}

/* ============================================
   OUR STORY
   ============================================ */
.story {
  max-width: var(--content-default);
  margin: 0 auto;
}

.story__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  margin-bottom: clamp(var(--space-12), 8vw, var(--space-24));
}

.story__block--reverse .story__text { order: 2; }
.story__block--reverse .story__image { order: 1; }

.story__text p {
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.story__text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  float: left;
  line-height: 0.85;
  padding-right: 0.1em;
  color: var(--color-accent);
  font-weight: 300;
  font-style: italic;
}

.story__image {
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.story__image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center center;
}
/* Ensure landscape images show both subjects */
.story__block--reverse .story__image img {
  object-position: 30% center;
}

@media (max-width: 768px) {
  .story__block {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .story__block--reverse .story__text { order: 1; }
  .story__block--reverse .story__image { order: -1; }
  .story__image { order: -1 !important; }
}

/* ============================================
   EVENT DETAILS & TIMELINE
   ============================================ */
.celebration {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.celebration__date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.4em;
  padding-right: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-12);
}

.timeline {
  text-align: left;
  margin-bottom: var(--space-12);
}

.timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  position: relative;
}

.timeline__item::after {
  content: '';
  position: absolute;
  left: 80px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.timeline__item:last-child::after { display: none; }

.timeline__time {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  padding-top: 4px;
  text-align: right;
}

.timeline__detail h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  margin-bottom: var(--space-1);
}

.timeline__detail p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* Venue info */
.venue-box {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.venue-box__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  margin-bottom: var(--space-3);
}

.venue-box p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--space-4);
}

.venue-box a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}
.venue-box a:hover { text-decoration: underline; }

/* ============================================
   DRESS CODE
   ============================================ */
.dresscode-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-12);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Color palette */
.palette {
  display: flex;
  justify-content: center;
  gap: clamp(var(--space-4), 2vw, var(--space-6));
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.palette__swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.palette__circle {
  width: clamp(48px, 6vw, 72px);
  height: clamp(48px, 6vw, 72px);
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  transition: transform var(--transition-interactive);
}
.palette__swatch:hover .palette__circle { transform: scale(1.1); }

.palette__name {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
}

/* Dresscode sections */
.dresscode-section {
  margin-bottom: var(--space-16);
}

.dresscode-section__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.3em;
  padding-right: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Horizontal scroll gallery for dresscode */
.dresscode-gallery {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--space-4) var(--space-4);
  margin: 0 calc(-1 * var(--space-6));
}
.dresscode-gallery::-webkit-scrollbar { display: none; }

.dresscode-gallery__item {
  flex: 0 0 auto;
  width: clamp(160px, 25vw, 220px);
  scroll-snap-align: start;
}

.dresscode-gallery__item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease-out);
}
.dresscode-gallery__item:hover img { transform: scale(1.03); }

.dresscode-gallery__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-2);
}

/* Dresscode split layout */
.dresscode-section--split {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
@media (min-width: 769px) {
  .dresscode-section--split {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-10);
  }
  .dresscode-section__left {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
  }
  .dresscode-section--split .dresscode-gallery {
    flex: 1;
    margin: 0;
  }
  .dresscode-section--split .dresscode-section__heading {
    text-align: left;
  }
}

/* Dresscode tips */
.dresscode-tip {
  max-width: 560px;
  margin: var(--space-4) 0 0;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border-left: 2px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* ============================================
   ACCOMMODATION
   ============================================ */
.stay-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.stay-group {
  margin-bottom: var(--space-12);
}

.stay-group__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.stay-group__desc {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.hotels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

.hotel-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.hotel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hotel-card--venue {
  background: linear-gradient(135deg, #2D4A3E 0%, #3D5E50 100%);
  color: #fff;
  border-color: transparent;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hotel-card--venue .hotel-card__info { padding: var(--space-4) 0; }

.hotel-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.hotel-card__location {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.hotel-card--venue .hotel-card__location { color: rgba(255,255,255,0.5); }

.hotel-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.hotel-card--venue .hotel-card__desc { color: rgba(255,255,255,0.75); }

.hotel-card__price {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.hotel-card--venue .hotel-card__price { color: rgba(255,255,255,0.9); }

.hotel-card__link {
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
}
.hotel-card__link:hover { text-decoration: underline; }
.hotel-card--venue .hotel-card__link { color: #E8D5C8; }

@media (max-width: 768px) {
  .hotel-card--venue {
    grid-template-columns: 1fr;
  }
}

/* Practical note */
.practical-note {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.practical-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   FILMS
   ============================================ */
.films-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .films-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.films-grid__item {
  display: flex;
  flex-direction: column;
}

/* Stacked films layout */
.films-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 720px;
  margin: 0 auto;
}
.films-stack__item {
  display: flex;
  flex-direction: column;
}
.film-hero__desc {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  text-align: center;
  max-width: 520px;
  margin: 0 auto var(--space-6);
  line-height: 1.7;
}

.film-hero__desc a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.film-hero__desc a:hover {
  color: #fff;
}

.film-hero__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  margin-bottom: var(--space-3);
}

#teaserPlayer {
  aspect-ratio: 9/16;
}

#btsPlayer {
  aspect-ratio: 4/3;
}

.film-hero__player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s var(--ease-out);
}

.film-hero__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.film-hero__player.playing img {
  opacity: 0;
  pointer-events: none;
}

.film-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.2);
}
.film-hero__player:hover .film-hero__play {
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%) scale(1.05);
}
.film-hero__player.playing .film-hero__play {
  opacity: 0;
  pointer-events: none;
}
.film-hero__player.ig-loaded iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: var(--radius-sm);
}

.film-hero__caption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}



/* ============================================
   GALLERY — EDITORIAL PHOTO STORY
   ============================================ */
.gallery {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.gallery-row {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.gallery-row--full {
  grid-template-columns: 1fr;
}
.gallery-row--duo {
  grid-template-columns: 1fr 1fr;
}
.gallery-row--trio {
  grid-template-columns: 1fr 1fr 1fr;
}
.gallery-row--asymmetric {
  grid-template-columns: 2fr 1fr;
}
.gallery-row--asymmetric-r {
  grid-template-columns: 1fr 2fr;
}
.gallery-row--60-40 {
  grid-template-columns: 3fr 2fr;
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.03); }

.gallery__item--landscape img { aspect-ratio: 16/9; }
.gallery__item--portrait img { aspect-ratio: 3/4; }
.gallery__item--square img { aspect-ratio: 1; }
.gallery__item--wide img { aspect-ratio: 21/9; }
.gallery__item--cinematic img { aspect-ratio: 2.35/1; }

/* Video items in gallery */
.gallery__item--video { cursor: default; }

/* Instagram embed items in gallery */
.gallery__item--ig-embed {
  cursor: pointer;
  position: relative;
}
.gallery__item--ig-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ig-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.gallery__item--ig-embed:hover .ig-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}
.gallery__item--ig-embed.ig-loaded {
  cursor: default;
  overflow: hidden;
}
.gallery__item--ig-embed.ig-loaded img,
.gallery__item--ig-embed.ig-loaded .ig-play-btn {
  display: none;
}
.gallery__item--ig-embed.ig-loaded iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.gallery__item--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery__item--video img { display: none; }

/* Pull quote between gallery rows */
.gallery-quote {
  text-align: center;
  padding: var(--space-12) var(--space-8);
}
.gallery-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .gallery-row--trio,
  .gallery-row--asymmetric,
  .gallery-row--asymmetric-r,
  .gallery-row--60-40 { grid-template-columns: 1fr; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 16, 0.96);
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.lightbox.open { display: flex; opacity: 1; }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xl);
  padding: var(--space-2);
  transition: color var(--transition-interactive);
}
.lightbox__close:hover { color: #fff; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  padding: var(--space-4);
  transition: color var(--transition-interactive);
}
.lightbox__nav:hover { color: rgba(255,255,255,0.9); }
.lightbox__nav--prev { left: var(--space-4); }
.lightbox__nav--next { right: var(--space-4); }

/* ============================================
   RSVP
   ============================================ */
.rsvp-note {
  max-width: 520px;
  margin: 0 auto var(--space-10);
  padding: 1.6em 2em;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-style: italic;
  color: var(--color-text);
  text-align: center;
  line-height: 1.9;
  border-top: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  letter-spacing: 0.01em;
}
.rsvp-note b {
  color: var(--color-accent);
  font-weight: 600;
}

.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-8);
}

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.section--dark .form-group label {
  color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive);
}
.section--dark .form-group input,
.section--dark .form-group textarea {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.15);
}
.section--dark .form-group input::placeholder,
.section--dark .form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-2);
}
.form-group textarea:focus {
  border-color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.section--dark .form-group textarea {
  border-color: rgba(255,255,255,0.15);
}
.section--dark .form-group textarea:focus {
  border-color: var(--color-accent);
}

/* Radio buttons as cards */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.radio-group--quad {
  grid-template-columns: 1fr 1fr;
}

.radio-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.radio-option:hover {
  border-color: var(--color-accent);
}
.radio-option input { display: none; }
.radio-option span {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.section--dark .radio-option span {
  color: rgba(255,255,255,0.8);
}
.radio-option input:checked + span { color: var(--color-accent); }
.radio-option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}
.section--dark .radio-option {
  border-color: rgba(255,255,255,0.15);
}
.section--dark .radio-option:hover {
  border-color: var(--color-accent);
}
.section--dark .radio-option:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(160, 125, 58, 0.15);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}
.section--dark .form-note {
  color: rgba(255,255,255,0.3);
}

.btn-submit {
  display: block;
  width: 100%;
  padding: var(--space-4) var(--space-8);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.btn-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }

.rsvp-success {
  display: none;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.rsvp-success.show { display: block; }
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  margin-bottom: var(--space-4);
}
.rsvp-success p {
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto;
}

.rsvp-deadline {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.1em;
}
.section--dark .rsvp-deadline {
  color: rgba(255,255,255,0.35);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: var(--space-20) var(--space-6) var(--space-10);
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.footer__names {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  margin-bottom: var(--space-3);
}

.footer__date {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-10);
}

.footer__quote {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: rgba(255,255,255,0.25);
  max-width: 440px;
  margin: 0 auto var(--space-16);
}

.footer__made {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.1em;
}

/* ============================================
   B&W PHOTO PAIR
   ============================================ */
.bw-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.bw-pair img {
  width: 100%;
  height: clamp(200px, 28vw, 380px);
  object-fit: cover;
  object-position: top;
  filter: grayscale(100%) contrast(1.05);
}

@media (max-width: 640px) {
  .bw-pair { grid-template-columns: 1fr; }
  .bw-pair img { height: 220px; }
}
