/* ============ VARIANT 4 — EASTERN ELEGANT (premium) ============ */

:root {
  --paper: #F6EFE3;
  --paper-2: #ECE0CB;
  --paper-3: #E5D5BA;
  --ivory: #FBF6EC;
  --gold: #A37947;
  --gold-deep: #7C5A35;
  --gold-light: #D4B485;
  --gold-bright: #C9A66B;
  --ink: #2C2014;
  --ink-soft: #5A4A35;
  --line: rgba(163, 121, 71, 0.4);
  --font-display: 'Italiana', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-script: 'Tangerine', cursive;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(at 50% 0%, rgba(212, 180, 133, 0.22), transparent 50%),
    radial-gradient(at 80% 100%, rgba(163, 121, 71, 0.12), transparent 60%);
}
img { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== DUST CANVAS ===== */
.dust {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* ===== INTRO ===== */
.intro {
  position: fixed; inset: 0;
  z-index: 10000;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-content {
  text-align: center;
  position: relative;
  padding: 0 24px;
}
.intro-medallion {
  color: var(--gold);
  display: flex; justify-content: center;
  margin-bottom: 24px;
}
.medallion-draw, .medallion-draw use { /* applied via SVG inline */ }

.intro-medallion svg { width: 180px; height: 180px; }
.intro-medallion path, .intro-medallion circle, .intro-medallion line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dDraw 1.2s var(--ease-out) 0.05s forwards;
}
@keyframes dDraw { to { stroke-dashoffset: 0; } }

.intro-letters { color: var(--ink); }
.il-mini {
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-deep);
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-out) 0.5s forwards;
  display: inline-block;
}
.il-names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.1;
  margin: 16px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 0.04em 0.14em;
}
/* Each name stays on one line — only break BETWEEN words */
.il-word {
  display: inline-flex;
  white-space: nowrap;
}
.il-names span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: lIn 0.6s var(--ease-out) forwards;
}
/* First name letters */
.il-word:first-child span:nth-child(1) { animation-delay: 0.85s; }
.il-word:first-child span:nth-child(2) { animation-delay: 0.90s; }
.il-word:first-child span:nth-child(3) { animation-delay: 0.95s; }
.il-word:first-child span:nth-child(4) { animation-delay: 1.00s; }
.il-word:first-child span:nth-child(5) { animation-delay: 1.05s; }
.il-word:first-child span:nth-child(6) { animation-delay: 1.10s; }
.il-word:first-child span:nth-child(7) { animation-delay: 1.15s; }
/* Ampersand */
.il-amp {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: lIn 0.6s var(--ease-out) 1.22s forwards;
  color: var(--gold);
  font-family: var(--font-script);
  font-size: 1.25em;
}
/* Second name letters */
.il-word:last-child span:nth-child(1) { animation-delay: 1.32s; }
.il-word:last-child span:nth-child(2) { animation-delay: 1.37s; }
.il-word:last-child span:nth-child(3) { animation-delay: 1.42s; }
.il-word:last-child span:nth-child(4) { animation-delay: 1.47s; }
.il-word:last-child span:nth-child(5) { animation-delay: 1.52s; }
.il-word:last-child span:nth-child(6) { animation-delay: 1.57s; }
.il-word:last-child span:nth-child(7) { animation-delay: 1.62s; }
@keyframes lIn { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ===== ORNAMENT DRAW (general SVG draw-on-reveal) ===== */
.draw-scroll path, .draw-scroll circle, .draw-scroll line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 2.4s var(--ease-out);
}
.in .draw-scroll path,
.in .draw-scroll circle,
.in .draw-scroll line,
.reveal.in .draw-scroll path,
.reveal.in .draw-scroll circle,
.reveal.in .draw-scroll line {
  stroke-dashoffset: 0;
}
/* If draw-scroll is inside a section that triggers via observer */
.draw-scroll.is-drawn path,
.draw-scroll.is-drawn circle,
.draw-scroll.is-drawn line {
  stroke-dashoffset: 0;
}

/* ===== FLOURISH ROWS ===== */
.flourish-row {
  display: flex; justify-content: center;
  color: var(--gold);
  margin: 18px 0;
}

.big-divider {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 80px 0;
  color: var(--gold);
  gap: 16px;
}
.bd-medallion {
  animation: spinSlow 60s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.2;
  color: var(--gold);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  background: rgba(251, 246, 236, 0.94);
  padding: 64px 56px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(60, 40, 20, 0.12);
}

.corner {
  position: absolute;
  color: var(--gold);
  width: 48px; height: 48px;
}
.corner-tl { top: -8px; left: -8px; }
.corner-tr { top: -8px; right: -8px; transform: scaleX(-1); }
.corner-bl { bottom: -8px; left: -8px; transform: scaleY(-1); }
.corner-br { bottom: -8px; right: -8px; transform: scale(-1, -1); }
.corner svg path,
.corner svg circle,
.corner svg line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawCorner 1.4s var(--ease-out) 2.6s forwards;
}
@keyframes drawCorner { to { stroke-dashoffset: 0; } }

.invite-line {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  opacity: 0;
  animation: heroIn 0.7s var(--ease-out) 1.7s forwards;
}

.couple {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 140px);
  line-height: 1;
  color: var(--ink);
  margin: 4px 0;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0.08em;
  letter-spacing: 0.01em;
}
.couple .name {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.8s var(--ease-out) forwards;
  animation-delay: calc(1.9s + var(--d, 0s));
}
.couple .amp-script {
  font-family: var(--font-script);
  font-size: 1.4em;
  color: var(--gold);
  line-height: 0.5;
  opacity: 0;
  animation: heroIn 0.8s var(--ease-out) 2.2s forwards;
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.date-block {
  margin-top: 24px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroIn 0.7s var(--ease-out) 2.4s forwards;
}
.date-main {
  display: inline-flex; align-items: baseline;
  gap: clamp(14px, 1.8vw, 22px);
  font-family: var(--font-display);
  font-weight: 400;
}
.date-main .d-num {
  font-size: clamp(54px, 7vw, 80px);
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}
.date-main .d-month {
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.date-main .d-year {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.36em;
  color: var(--ink-soft);
}

.date-sub {
  display: inline-flex; align-items: center;
  gap: 16px;
}
.d-weekday {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.d-bullet {
  color: var(--gold);
  font-size: 7px;
  line-height: 1;
}
.d-time {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.city-line {
  margin: 14px 0 32px;
  display: flex; justify-content: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--gold-deep);
  text-transform: uppercase;
  opacity: 0;
  animation: heroIn 0.7s var(--ease-out) 2.6s forwards;
}

/* ===== COUNTDOWN ===== */
.countdown {
  margin-top: 16px;
  display: flex; justify-content: center;
  opacity: 0;
  animation: heroIn 0.8s var(--ease-out) 2.8s forwards;
}
.cd-frame {
  display: inline-flex; align-items: center;
  gap: 16px;
  padding: 24px 36px;
  border: 1px solid var(--line);
  background: var(--ivory);
  position: relative;
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.06);
}
.cd-frame::before,
.cd-frame::after {
  content: '◆';
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--gold);
  font-size: 10px;
}
.cd-frame::before { left: -5px; background: var(--ivory); padding: 0 2px; }
.cd-frame::after { right: -5px; background: var(--ivory); padding: 0 2px; }

.cd-item {
  display: flex; flex-direction: column; align-items: center;
  min-width: 68px;
}
.cd-item span {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cd-item i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-top: 8px;
}
.cd-div {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
}

/* ===== PHOTOS ===== */
.photos { padding: 16px 24px 80px; position: relative; z-index: 1; }
.photos-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.photo-card { display: flex; flex-direction: column; align-items: center; }
.photo-center { transform: translateY(-40px); }
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  padding: 18px;
  background: var(--ivory);
  box-shadow: 0 24px 60px rgba(60, 40, 20, 0.12);
}
.photo-frame-tall { aspect-ratio: 3/4; }
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.08) saturate(1.05);
  transition: transform 1.6s var(--ease-out), filter 0.8s ease;
}
.photo-frame:hover img { transform: scale(1.05); filter: sepia(0) saturate(1.1); }
.frame-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--gold);
  pointer-events: none;
}
.photo-cap {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  text-align: center;
}
.photo-cap em { font-style: italic; }
.photo-cap span {
  color: var(--gold-deep);
  font-family: var(--font-script);
  font-size: 1.6em;
  font-style: normal;
}

/* ===== SECTIONS ===== */
.sec-head {
  text-align: center;
  margin-bottom: 64px;
  color: var(--gold);
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  color: var(--ink);
  margin: 16px 0 8px;
  letter-spacing: 0.01em;
}
.sec-head h2 em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--gold-deep);
  font-size: 1.2em;
  margin-left: 0.08em;
}
.sec-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ===== INVITATION ===== */
.invitation {
  padding: 40px 0 100px;
  position: relative; z-index: 1;
}
.invite-card {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  background:
    radial-gradient(at 50% 0%, rgba(212, 180, 133, 0.18), transparent 60%),
    var(--ivory);
  border: 1px solid var(--line);
  padding: 72px 64px 64px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(60, 40, 20, 0.1);
}
.invite-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
  opacity: 0.55;
}
.invite-corner {
  position: absolute;
  color: var(--gold);
  width: 44px; height: 44px;
  z-index: 2;
}
.invite-corner-tl { top: -2px; left: -2px; }
.invite-corner-tr { top: -2px; right: -2px; transform: scaleX(-1); }
.invite-corner-bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.invite-corner-br { bottom: -2px; right: -2px; transform: scale(-1, -1); }

.invite-medallion-top {
  display: flex; justify-content: center;
  color: var(--gold);
  margin-bottom: 8px;
}
.invite-greeting {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 4px 0 16px;
}
.invite-flourish-top, .invite-flourish-bot { margin: 12px 0; }

.invite-text {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 20px auto 28px;
  max-width: 480px;
  text-align: center;
}
.invite-text p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 38ch;
  text-wrap: balance;
  margin: 0 auto;
}
.invite-text p.invite-lead {
  font-size: 24px;
  color: var(--ink);
  max-width: 32ch;
}
.invite-text em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--gold-deep);
  font-size: 1.5em;
  vertical-align: -0.1em;
  line-height: 0.5;
  margin: 0 0.05em;
}

.invite-signature {
  margin-top: 12px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
}
.sig-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}
.sig-names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.sig-amp {
  font-family: var(--font-script);
  font-size: 1.4em;
  color: var(--gold);
  vertical-align: -0.05em;
  line-height: 0.5;
  margin: 0 0.05em;
}

/* ===== CONTINUOUS ANIMATIONS (only cheap ones, GPU-only) ===== */

/* Hero name shimmer — cheap (background-position only) — combined with entrance */
@keyframes nameShimmer {
  0%   { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}
.couple .name {
  background-image: linear-gradient(
    100deg,
    var(--ink) 0%,
    var(--ink) 42%,
    var(--gold-deep) 50%,
    var(--ink) 58%,
    var(--ink) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    heroIn 0.8s var(--ease-out) forwards,
    nameShimmer 10s linear infinite;
  animation-delay: calc(1.9s + var(--d, 0s)), 3.5s;
}

/* Date numbers gentle scale-breath (transform only, GPU-cheap) */
@keyframes dateBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
.date-block .d-num {
  display: inline-block;
  animation: dateBreath 5s ease-in-out infinite 3.5s;
  transform-origin: center bottom;
}

/* Invite card subtle float — only one element, only when on-screen */
@keyframes inviteFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -6px, 0); }
}
.invite-card.in {
  animation: inviteFloat 9s ease-in-out infinite 1s;
}

/* Pause animations when section isn't in view (saves CPU/GPU) */
.invite-card { animation-play-state: paused; }
.invite-card.in { animation-play-state: running; }

/* ===== LOCATION ===== */
.location { padding: 80px 0 100px; position: relative; z-index: 1; }
.loc-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  max-width: 1080px; margin: 0 auto;
  align-items: stretch;
}
.loc-info {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 48px 40px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 30px 70px rgba(60, 40, 20, 0.08);
}
.info-corner {
  position: absolute;
  color: var(--gold);
  width: 40px; height: 40px;
}
.info-corner-tl { top: -2px; left: -2px; }
.info-corner-br { bottom: -2px; right: -2px; transform: scale(-1, -1); }

.info-row {
  display: flex; flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:first-child { padding-top: 0; }
.info-key {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.info-val {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}

.btn-ornate {
  margin-top: 28px;
  align-self: center;
  display: inline-block;
  padding: 18px 44px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--gold);
  position: relative;
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
  z-index: 0;
}
.btn-ornate::before,
.btn-ornate::after {
  content: '◆';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: var(--gold);
  font-size: 9px;
  z-index: 2;
  transition: color 0.4s ease;
}
.btn-ornate::before { left: 14px; }
.btn-ornate::after { right: 14px; }
.btn-ornate span { position: relative; z-index: 2; transition: color 0.4s ease; }
.btn-ornate:hover {
  background: var(--gold);
  border-color: var(--gold-deep);
}
.btn-ornate:hover span,
.btn-ornate:hover::before,
.btn-ornate:hover::after { color: var(--ivory); }

.loc-map { display: flex; }
.map-frame {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--ivory);
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: 0 30px 70px rgba(60, 40, 20, 0.08);
}
.map-frame::before,
.map-frame::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
}
.map-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.map-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.map-frame iframe {
  width: 100%; height: 100%;
  border: none;
  filter: sepia(0.3) hue-rotate(-10deg) saturate(0.7) brightness(1.05);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 80px 24px 60px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.footer-medallion {
  color: var(--gold);
  display: flex; justify-content: center;
  margin-bottom: 24px;
  animation: spinSlow 80s linear infinite;
}
.f-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 8px 0;
}
.f-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  color: var(--ink);
  margin: 16px 0 8px;
}
.f-amp {
  font-family: var(--font-script);
  font-size: 1.3em;
  color: var(--gold);
  line-height: 0.5;
}
.f-date {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.footer-flourish { margin-top: 32px; }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .hero { padding: 50px 16px 60px; }
  .hero-content { padding: 44px 24px; }
  .corner { width: 36px; height: 36px; }
  .corner svg { width: 36px; height: 36px; }

  .invite-line { font-size: 16px; }
  .city-line { font-size: 12px; gap: 10px; letter-spacing: 0.25em; margin: 10px 0 28px; }
  .date-block { gap: 10px; }
  .date-main { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .date-main .d-num { font-size: 52px; }
  .date-main .d-month { font-size: 20px; letter-spacing: 0.28em; }
  .date-main .d-year { font-size: 17px; letter-spacing: 0.32em; }
  .date-sub { gap: 12px; }
  .d-time { font-size: 20px; }

  .cd-frame { gap: 8px; padding: 16px 22px; flex-wrap: wrap; justify-content: center; }
  .cd-item { min-width: 60px; }
  .cd-item span { font-size: 34px; }
  .cd-item i { font-size: 11px; letter-spacing: 0.14em; }
  .cd-div { display: none; }

  .big-divider { padding: 48px 0; }
  .bd-medallion svg { width: 64px; height: 64px; }
  .big-divider > svg { width: 240px; }

  .photos { padding: 8px 16px 56px; }
  .photos-grid {
    display: flex; flex-direction: column; align-items: center;
    gap: 28px; max-width: 480px;
  }
  /* Quote photo goes last → caption becomes a graceful closing line */
  .photo-card:nth-child(1) { order: 1; }
  .photo-card:nth-child(3) { order: 2; }
  .photo-center { order: 3; transform: none; }
  .photo-card { width: 100%; }
  .photo-frame, .photo-frame-tall { aspect-ratio: 4/5; }
  .photo-cap {
    font-size: 19px;
    margin-top: 28px;
    padding: 0 12px;
    line-height: 1.5;
  }

  .sec-head { margin-bottom: 40px; }
  .sec-head h2 em { font-size: 1.1em; }

  .invitation { padding: 24px 0 60px; }
  .invite-card { padding: 56px 28px 44px; }
  .invite-corner { width: 36px; height: 36px; }
  .invite-corner svg { width: 36px; height: 36px; }
  .invite-text { gap: 18px; }
  .invite-text p { font-size: 18px; line-height: 1.5; }
  .invite-text p.invite-lead { font-size: 20px; }
  .sig-line { font-size: 15px; }

  .location { padding: 40px 0 60px; }
  .loc-block { grid-template-columns: 1fr; gap: 28px; }
  .loc-info { padding: 40px 28px; }
  .info-val { font-size: 17px; }
  .map-frame { padding: 8px; }

  .footer { padding: 56px 16px 40px; }
  .footer-medallion svg { width: 80px; height: 80px; }
  .footer-flourish svg { width: 260px; }
}

@media (max-width: 480px) {
  .hero { padding: 28px 10px 36px; min-height: auto; }
  .hero-content { padding: 26px 16px; }
  .corner { width: 22px; height: 22px; }
  .corner svg { width: 22px; height: 22px; }
  .corner-tl, .corner-tr { top: -2px; }
  .corner-bl, .corner-br { bottom: -2px; }
  .corner-tl, .corner-bl { left: -2px; }
  .corner-tr, .corner-br { right: -2px; }

  .intro-medallion svg { width: 110px; height: 110px; }
  .il-names { font-size: clamp(30px, 9vw, 50px); }
  .il-mini { font-size: 10px; letter-spacing: 0.3em; }

  .invite-line { font-size: 13px; letter-spacing: 0.02em; margin-bottom: 6px; }
  .flourish-row { margin: 10px 0; }
  .flourish-row svg { width: 200px; height: 22px; }

  /* Stack names vertically — proper invitation feel */
  .couple {
    flex-direction: column;
    gap: 0;
    font-size: clamp(40px, 13vw, 60px);
    line-height: 0.95;
    margin: 6px 0;
  }
  .couple .amp-script {
    font-size: 1em;
    margin: -4px 0;
    line-height: 0.5;
  }

  .date-block { gap: 6px; margin-top: 18px; }
  .date-main { gap: 10px; flex-wrap: nowrap; }
  .date-main .d-num { font-size: 42px; }
  .date-main .d-month { font-size: 13px; letter-spacing: 0.2em; }
  .date-main .d-year { font-size: 11px; letter-spacing: 0.24em; }
  .date-sub { gap: 10px; }
  .d-weekday { font-size: 12px; }
  .d-time { font-size: 16px; letter-spacing: 0.06em; }
  .city-line { font-size: 10px; letter-spacing: 0.18em; gap: 6px; margin: 6px 0 18px; }

  .cd-frame { padding: 11px 12px; gap: 2px; }
  .cd-item { min-width: 46px; }
  .cd-item span { font-size: 24px; }
  .cd-item i { font-size: 9px; letter-spacing: 0.1em; margin-top: 5px; }

  .big-divider { padding: 28px 0; gap: 8px; }
  .bd-medallion svg { width: 46px; height: 46px; }
  .big-divider > svg { width: 200px; height: 26px; }

  .photos { padding: 8px 12px 32px; }
  .photos-grid { gap: 20px; max-width: 300px; }
  .photo-cap { font-size: 16px; margin-top: 22px; padding: 0 8px; }

  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: clamp(30px, 9vw, 44px); margin: 12px 0 6px; }
  .sec-sub { font-size: 14px; }

  .invitation { padding: 16px 0 32px; }
  .invite-card { padding: 34px 16px 26px; }
  .invite-card::before { inset: 8px; }
  .invite-corner { width: 24px; height: 24px; }
  .invite-corner svg { width: 24px; height: 24px; }
  .invite-greeting { font-size: 10px; letter-spacing: 0.28em; margin: 4px 0 12px; }
  .invite-text { gap: 14px; margin: 12px auto 16px; max-width: 100%; }
  .invite-text p { font-size: 15px; line-height: 1.55; max-width: 26ch; }
  .invite-text p.invite-lead { font-size: 17px; max-width: 24ch; }
  .invite-text em { font-size: 1.3em; }
  .sig-line { font-size: 13px; }
  .sig-names { font-size: 22px; }

  .location { padding: 28px 0 40px; }
  .loc-info { padding: 24px 16px; }
  .info-row { padding: 14px 0; }
  .info-key { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 4px; }
  .info-val { font-size: 15px; line-height: 1.45; }
  .btn-ornate { padding: 12px 26px; letter-spacing: 0.2em; font-size: 11px; margin-top: 20px; }
  .info-corner { width: 28px; height: 28px; }
  .info-corner svg { width: 28px; height: 28px; }

  .map-frame { aspect-ratio: 1/1; padding: 8px; }
  .map-frame::before, .map-frame::after { width: 20px; height: 20px; }

  .footer { padding: 36px 12px 28px; }
  .footer-medallion svg { width: 56px; height: 56px; }
  .footer-medallion { margin-bottom: 16px; }
  .f-line { font-size: 13px; letter-spacing: 0.18em; }
  .f-name { font-size: 30px; margin: 10px 0 4px; }
  .f-date { font-size: 10px; letter-spacing: 0.22em; }
  .footer-flourish svg { width: 200px; height: 26px; }
  .footer-flourish { margin-top: 18px; }
}

/* Very small phones — iPhone SE, older Android, etc. */
@media (max-width: 360px) {
  .hero-content { padding: 22px 12px; }
  .couple { font-size: clamp(36px, 12vw, 52px); }
  .date-main { gap: 8px; }
  .date-main .d-num { font-size: 36px; }
  .date-main .d-month { font-size: 12px; }
  .date-main .d-year { font-size: 10px; }
  .cd-item { min-width: 42px; }
  .cd-item span { font-size: 22px; }
  .invite-card { padding: 28px 14px 22px; }
  .invite-text p { font-size: 14px; max-width: 24ch; }
  .invite-text p.invite-lead { font-size: 16px; max-width: 22ch; }
  .loc-info { padding: 22px 14px; }
}

/* Disable hero tilt and heavy hover effects on touch */
@media (hover: none), (pointer: coarse) {
  .hero-content { transform: none !important; }
  .photo-frame:hover img { transform: none; filter: sepia(0.08) saturate(1.05); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .dust { display: none; }
}
