/* ============================================================
   Đám cưới Trí + Thoa — Stylesheet (static build)
   Burgundy-on-cream invitation aesthetic
   ============================================================ */

:root {
  --bg: #f4ebdc;
  --bg-soft: #efe3cc;
  --bg-card: #fbf6ec;
  --ink: #1f1a14;
  --ink-soft: #4b3f30;
  --accent: #6b1f2a;
  --accent-soft: #8c3742;
  --gold: #a8946b;
  --rule: rgba(31, 26, 20, 0.16);
  --rule-soft: rgba(31, 26, 20, 0.08);

  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body: "Be Vietnam Pro", "Inter", system-ui, sans-serif;
  --font-han: "Ma Shan Zheng", "Noto Serif TC", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(31, 26, 20, 0.06);
  --shadow-md: 0 8px 30px rgba(107, 31, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(31, 26, 20, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(107, 31, 42, 0.025) 1px, transparent 1px),
    radial-gradient(rgba(31, 26, 20, 0.018) 1px, transparent 1px);
  background-size:
    3px 3px,
    7px 7px;
  background-position:
    0 0,
    1px 2px;
  opacity: 0.6;
  z-index: 1;
  mix-blend-mode: multiply;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.container-narrow {
  width: min(720px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.section {
  padding-block: clamp(80px, 12vh, 160px);
  position: relative;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display-xl {
  font-size: clamp(56px, 11vw, 144px);
}
.display-lg {
  font-size: clamp(40px, 7vw, 88px);
}
.display-md {
  font-size: clamp(28px, 4vw, 48px);
}
.display-italic {
  font-style: italic;
  font-weight: 400;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}
.reveal-delay-4 {
  transition-delay: 0.48s;
}

/* ---------- image-slot placeholder (static stand-in) ---------- */
.img-slot {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: rgba(0, 0, 0, 0.55);
  font: 13px/1.3 var(--font-body);
  overflow: hidden;
}
.img-slot::before {
  content: attr(data-placeholder);
  max-width: 90%;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.img-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.img-slot:has(img)::before {
  content: none;
}
/* parent uses position: relative implicitly via .frame containers below */

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
  transition: padding 0.3s ease;
}
.nav.scrolled {
  padding: 12px 32px;
  box-shadow: 0 1px 0 var(--rule-soft);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.nav__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--accent);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after {
  transform: scaleX(1);
}
@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
  .nav {
    padding: 14px 18px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 110px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero__copy {
  position: relative;
  z-index: 3;
}
.hero__hy {
  color: var(--accent);
  line-height: 1;
  opacity: 0.9;
  margin-bottom: 24px;
}
.hero__sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero__names {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.hero__names .name {
  display: block;
  font-style: italic;
}
.hero__names .amp {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-size: 0.55em;
  margin: 0.12em 0;
  font-weight: 400;
}
.hero__date {
  margin-top: 36px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.hero__date-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__date-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--accent);
}
.hero__visual {
  position: relative;
  aspect-ratio: 3/4;
  z-index: 2;
}
.hero__photo-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__photo-frame .img-slot > img {
  object-position: 55% center;
}
.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
  z-index: 2;
}
.hero__stamp {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.15;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
  z-index: 4;
}
.hero__stamp small {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual {
    width: 100%;
    aspect-ratio: 4/5;
    max-width: 420px;
    margin-inline: auto;
  }
  .hero__hy img {
    height: 64px !important;
  }
  .hero__hy {
    margin-bottom: 12px;
  }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  background: var(--bg-soft);
  padding-block: 80px;
  position: relative;
}
.countdown__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.countdown__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.countdown__cell {
  text-align: center;
  border-left: 1px solid var(--rule);
  padding-inline: 16px;
}
.countdown__cell:first-child {
  border-left: 0;
  padding-left: 0;
}
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}
.countdown__date {
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}
@media (max-width: 880px) {
  .countdown__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .countdown__date {
    text-align: center;
  }
}

/* ============================================================
   COUPLE
   ============================================================ */
.couple {
  position: relative;
}
.couple__head {
  text-align: center;
  margin-bottom: 80px;
}
.couple__hy {
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
}
.couple__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-style: italic;
  font-weight: 400;
}
.couple__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}
.person {
  text-align: center;
}
.person__photo {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.person__photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
  z-index: 2;
}
.person__role {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.person__name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 16px;
}
.person__parents {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.person__parents .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
  margin-bottom: 4px;
}
.couple__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40%;
  height: 100%;
  gap: 16px;
}
.couple__divider .line {
  width: 1px;
  flex: 1;
  background: var(--rule);
  min-height: 80px;
}
.couple__divider-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
@media (max-width: 880px) {
  .couple__divider-logo {
    width: 64px;
    height: 64px;
  }
}
@media (max-width: 880px) {
  .couple__grid {
    grid-template-columns: 1fr;
  }
  .couple__divider {
    flex-direction: row;
    padding-top: 0;
  }
  .couple__divider .line {
    width: auto;
    height: 1px;
    min-width: 80px;
    min-height: 0;
    flex: 1;
  }
}

/* ============================================================
   EVENTS
   ============================================================ */
.events {
  background: var(--bg-soft);
  position: relative;
}
.events__head {
  text-align: center;
  margin-bottom: 72px;
}
.events__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 40px 32px;
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.event-card__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.event-card__name {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  margin-bottom: 8px;
  color: var(--accent);
}
.event-card__sub {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.event-card__date {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 16px;
  border-block: 1px solid var(--rule);
  margin-bottom: 20px;
}
.event-card__day {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
}
.event-card__monthyear {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}
.event-card__lunar {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 16px;
}
.event-card__time {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.event-card__time strong {
  color: var(--ink);
  font-weight: 600;
}
.event-card__place {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.event-card__place strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}
@media (max-width: 880px) {
  .events__list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  position: relative;
}
.gallery__head {
  text-align: center;
  margin-bottom: 64px;
}
/* ---------- Journey video ---------- */
.journey {
  position: relative;
}
.journey__head {
  text-align: center;
  margin-bottom: 48px;
}
.journey__video {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.journey__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.album__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.album__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.album__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.album__item:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.album__item:hover img {
  transform: scale(1.05);
}
@media (max-width: 880px) {
  .album__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open {
  display: flex;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox__close {
  top: 20px;
  right: 20px;
  font-size: 28px;
}
.lightbox__nav--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) {
  .lightbox__close,
  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .lightbox__nav--prev {
    left: 8px;
  }
  .lightbox__nav--next {
    right: 8px;
  }
}

/* ============================================================
   MAP
   ============================================================ */
.map {
  background: var(--bg-soft);
}
.map__head {
  text-align: center;
  margin-bottom: 56px;
}
.map__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.map__tab {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s;
}
.map__tab:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.map__tab.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.map__panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 32px;
}
.map__info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}
.map__info .meta {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}
.map__info .meta strong {
  color: var(--ink);
}
.map__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.map__cta:hover {
  background: var(--accent);
  color: var(--bg);
}
.map__frame {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) sepia(0.1);
}
@media (max-width: 880px) {
  .map__panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* ============================================================
   GIFT
   ============================================================ */
.gift {
  position: relative;
}
.gift__head {
  text-align: center;
  margin-bottom: 56px;
}
.gift__poem {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-inline: auto;
  margin-top: 24px;
  line-height: 1.6;
}
.gift__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}
.bank-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 32px;
  position: relative;
}
.bank-card__role {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.bank-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--ink);
}
.bank-card__rows {
  display: grid;
  gap: 14px;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 12px;
}
.bank-row:last-child {
  border-bottom: 0;
}
.bank-row .k {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bank-row .vw {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bank-row .v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.bank-row button {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.bank-row button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.bank-row button.copied {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
@media (max-width: 720px) {
  .gift__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  background: var(--accent);
  color: var(--bg);
  position: relative;
}
.rsvp__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.rsvp__copy h2 {
  color: var(--bg);
  font-style: italic;
  margin-bottom: 16px;
}
.rsvp__copy .eyebrow {
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.rsvp__copy p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.7;
  max-width: 380px;
}
.rsvp__hy {
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1;
}
.rsvp__form {
  background: var(--bg-card);
  color: var(--ink);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.rsvp__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rsvp__field.full {
  grid-column: 1 / -1;
}
.rsvp__field label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rsvp__field input,
.rsvp__field select,
.rsvp__field textarea {
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.rsvp__field textarea {
  resize: vertical;
  min-height: 60px;
}
.rsvp__field input:focus,
.rsvp__field select:focus,
.rsvp__field textarea:focus {
  border-bottom-color: var(--accent);
}
.rsvp__submit {
  grid-column: 1 / -1;
  margin-top: 16px;
  background: var(--accent);
  color: var(--bg-card);
  border: 0;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.rsvp__submit:hover {
  background: var(--ink);
}
.rsvp__sent {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  padding: 40px;
}
@media (max-width: 880px) {
  .rsvp__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rsvp__form {
    padding: 24px;
  }
  .rsvp__form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding-block: 80px;
  background: var(--bg);
  position: relative;
}
.footer__hy {
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.footer__names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer__date {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer__credit {
  margin-top: 32px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  opacity: 0.6;
}

/* ============================================================
   Flourish separator
   ============================================================ */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--accent);
  margin-block: 20px;
}
.flourish .line {
  flex: 0 0 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.flourish .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ============================================================
   ALBUM INVITE
   ============================================================ */
.album-invite {
  position: relative;
  overflow: hidden;
}
.album-invite__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.album-invite__copy {
  position: relative;
  z-index: 2;
}
.album-invite__title {
  margin: 20px 0 28px;
}
.album-invite__rule {
  width: 80px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  margin-bottom: 24px;
}
.album-invite__text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.album-invite__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.album-invite__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.album-invite__cta > * {
  position: relative;
  z-index: 1;
}
.album-invite__cta:hover {
  color: var(--bg-card);
}
.album-invite__cta:hover::before {
  transform: translateY(0);
}
.album-invite__cta .arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  transition: transform 0.3s;
}
.album-invite__cta:hover .arrow {
  transform: translateX(6px);
}

.album-invite__visual {
  position: relative;
  aspect-ratio: 5/4;
}
.album-invite__stack {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polaroid {
  position: absolute;
  background: var(--bg-card);
  padding: 14px 14px 56px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 58%;
}
.polaroid__photo {
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.polaroid__caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
}

.polaroid--1 {
  z-index: 3;
  transform: translate(0, 0) rotate(-3deg);
}
.polaroid--2 {
  z-index: 2;
  transform: translate(28%, 6%) rotate(6deg);
}
.polaroid--3 {
  z-index: 1;
  transform: translate(-28%, 4%) rotate(-9deg);
}
.album-invite__visual:hover .polaroid--1 {
  transform: translate(0, -8px) rotate(-2deg);
}
.album-invite__visual:hover .polaroid--2 {
  transform: translate(32%, 2%) rotate(8deg);
}
.album-invite__visual:hover .polaroid--3 {
  transform: translate(-32%, 0%) rotate(-11deg);
}
@media (max-width: 880px) {
  .album-invite__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .album-invite__visual {
    aspect-ratio: 4/3;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .polaroid {
    width: 52%;
  }
}

/* ============================================================
   PETALS RAIN
   ============================================================ */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  color: var(--accent);
}
.petal-fall {
  position: absolute;
  top: -40px;
  display: block;
  animation: petal-fall linear infinite;
  will-change: transform;
}
.petal-sway {
  display: block;
  animation: petal-sway ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes petal-fall {
  0% {
    transform: translate(0, -10vh) rotate(0deg);
  }
  100% {
    transform: translate(var(--drift), 110vh) rotate(var(--rot));
  }
}
@keyframes petal-sway {
  0% {
    transform: translateX(-12px);
  }
  100% {
    transform: translateX(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .petal-fall,
  .petal-sway {
    animation: none;
  }
  .petals {
    display: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   HAMBURGER (hidden on desktop)
   ============================================================ */
.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink, #2a1d12);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
   MOBILE STICKY CTA (hidden on desktop)
   ============================================================ */
.mobile-cta {
  display: none;
}
.mobile-cta__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.mobile-cta__btn:active {
  transform: scale(0.97);
}
.mobile-cta__btn--primary {
  background: var(--burgundy, #6b2c2c);
  color: #fff;
}
.mobile-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--burgundy, #6b2c2c);
  border-color: var(--burgundy, #6b2c2c);
}

/* ============================================================
   CALENDAR MODAL
   ============================================================ */
.cal-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.72);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1100;
  padding: 0;
}
.cal-modal.open {
  display: flex;
}
.cal-modal__panel {
  background: var(--paper, #fbf6ec);
  width: 100%;
  max-width: 520px;
  border-radius: 20px 20px 0 0;
  padding: 28px 22px 32px;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.cal-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink, #2a1d12);
}
.cal-modal__title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--burgundy, #6b2c2c);
}
.cal-modal__sub {
  margin: 0 0 18px;
  color: var(--ink-soft, #6b5b48);
  font-size: 14px;
}
.cal-modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink, #2a1d12);
  font-size: 15px;
  gap: 10px;
}
.cal-item:active {
  background: var(--bg-soft);
}
.cal-item__name {
  font-weight: 500;
}
.cal-item__date {
  color: var(--ink-soft, #6b5b48);
  font-size: 13px;
}
.cal-item__icon {
  color: var(--burgundy, #6b2c2c);
  font-size: 18px;
}

@media (min-width: 641px) {
  .cal-modal {
    align-items: center;
  }
  .cal-modal__panel {
    border-radius: 16px;
    max-width: 440px;
  }
}

/* ============================================================
   MOBILE (≤ 640px) — focused refactor
   ============================================================ */
@media (max-width: 640px) {
  /* Nav */
  .nav {
    padding: 10px 16px;
    height: 56px;
  }
  .nav__brand {
    font-size: 14px;
  }
  .nav__links {
    position: fixed;
    inset: 56px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper, #fbf6ec);
    border-bottom: 1px solid var(--rule);
    padding: 12px 0;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 90;
    display: flex;
  }
  .nav__links.open {
    transform: translateY(0);
  }
  .nav__links a {
    padding: 14px 22px;
    font-size: 16px;
    border-bottom: 1px solid var(--rule);
  }
  .nav__links a:last-child {
    border-bottom: 0;
  }
  .nav__burger {
    display: flex;
  }

  /* Hero — single screen */
  .hero {
    min-height: calc(100vh - 56px);
    padding-top: 24px;
    padding-bottom: 32px;
    display: flex;
    align-items: center;
  }
  .hero__inner {
    grid-template-columns: 1fr !important;
    gap: 18px;
    text-align: center;
  }
  .hero__copy {
    order: 1;
  }
  .hero__visual {
    order: 2;
  }
  .hero__hy .hy-img {
    height: 64px !important;
  }
  .hero__names {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.05;
  }
  .hero__sub {
    font-size: 13px;
    letter-spacing: 0.18em;
  }
  .hero__date {
    justify-content: center;
    font-size: 14px;
  }
  .hero__visual {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-width: 78vw;
    margin-inline: auto;
  }
  .hero__stamp {
    display: none;
  }

  /* Section spacing */
  .section {
    padding: 56px 0;
  }
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .display-lg {
    font-size: clamp(30px, 8vw, 44px);
  }

  /* Couple */
  .couple__divider {
    margin: 8px 0;
  }

  /* Events — stack with action buttons */
  .events__grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .event-card {
    padding: 22px 18px;
  }
  .event-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  .event-card__action {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid var(--burgundy, #6b2c2c);
    background: transparent;
    color: var(--burgundy, #6b2c2c);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }
  .event-card__action--filled {
    background: var(--burgundy, #6b2c2c);
    color: #fff;
  }

  /* Album */
  .album__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Journey video */
  .journey__video {
    border-radius: 12px;
  }

  /* Map → accordion */
  .map__tabs {
    display: none !important;
  }
  .map__panel {
    display: contents;
  }
  .map__accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .map__acc-item {
    border: 1px solid var(--rule);
    background: var(--bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
  }
  .map__acc-head {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink, #2a1d12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-height: 56px;
  }
  .map__acc-head::after {
    content: "+";
    font-size: 22px;
    color: var(--burgundy, #6b2c2c);
    transition: transform 0.2s ease;
  }
  .map__acc-item.open .map__acc-head::after {
    content: "−";
  }
  .map__acc-body {
    display: none;
    padding: 0 18px 18px;
  }
  .map__acc-item.open .map__acc-body {
    display: block;
  }
  .map__acc-iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 8px;
    margin-bottom: 12px;
  }
  .map__acc-addr {
    color: var(--ink-soft, #6b5b48);
    font-size: 14px;
    margin-bottom: 8px;
  }
  .map__acc-times div {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .map__acc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 18px;
    background: var(--burgundy, #6b2c2c);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    min-height: 44px;
  }
  /* Hide the original single-panel map UI on mobile (replaced by accordion) */
  .map__panel {
    display: none;
  }
  .map__accordion {
    display: flex;
  }

  /* Bank cards */
  .bank-card {
    padding: 22px 18px;
  }
  .bank-card__num {
    font-size: 22px;
    letter-spacing: 0.04em;
  }
  .bank-card__copy {
    min-height: 44px;
    padding: 8px 16px;
  }

  /* RSVP form */
  .rsvp__form-grid {
    grid-template-columns: 1fr !important;
  }
  .rsvp__submit {
    min-height: 48px;
    width: 100%;
  }
  input,
  select,
  textarea {
    font-size: 16px !important; /* prevent iOS auto-zoom */
  }

  /* Mobile sticky CTA */
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
    z-index: 80;
    transform: translateY(140%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border-radius: 999px;
  }
  .mobile-cta.show {
    transform: translateY(0);
  }

  /* Body padding so sticky CTA doesn't cover footer */
  body {
    padding-bottom: 84px;
  }

  /* Lightbox tweaks */
  .lightbox__counter {
    bottom: 12px;
  }
}

/* Show accordion only on mobile, hide on desktop */
.map__accordion {
  display: none;
}
