/* Palette sampled from Website/Inspiration/Color palette.PNG */
:root {
  --navy: #172b49;
  --blue: #7993ac;
  --gold: #af8440;
  --champagne: #dbc7ac;
  --ivory: #f3ecdd;
  --ink: #172b49;
  --muted: #50617a;
  --foil: linear-gradient(115deg, #8c6a2f 0%, #c9a05a 22%, #f3dfa6 40%, #b88d45 58%, #e6c987 78%, #8c6a2f 100%);
  --linen:
    radial-gradient(ellipse at 12% 8%, rgba(255, 255, 255, .42), transparent 46%),
    radial-gradient(ellipse at 90% 86%, rgba(139, 108, 66, .08), transparent 48%),
    repeating-linear-gradient(7deg, rgba(111, 90, 62, .012) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, #f6f0e4, #eee4d3);
  --ease: cubic-bezier(.77, 0, .18, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: #f1e9da;
  background-image: var(--linen);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.script { font-family: "Pinyon Script", cursive; font-weight: 400; }
.caps { font-family: "Cinzel", serif; letter-spacing: .32em; text-transform: uppercase; font-size: 13px; }
/* Embroidered invitation doors, inspired by the wedding sample */
.gate {
  position: fixed;
  z-index: 60;
  inset: 0;
  overflow: hidden;
  perspective: 2200px;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.gate.gone { display: none; }
.gate.resetting, .gate.resetting * { transition: none !important; }
.gate.open { opacity: 0; visibility: hidden; pointer-events: none; }
.door-scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.door-panel { position: absolute; top: 0; bottom: 0; width: 50.1%; background-repeat: no-repeat; background-size: 200% 100%; transform-style: preserve-3d; backface-visibility: hidden; transition: transform 2s var(--ease), box-shadow 1.6s ease; }
.door-left { left: 0; z-index: 2; background-image: url("images/invitation-doors-desktop.jpg"); background-position: left center; transform-origin: left center; box-shadow: inset -1px 0 rgba(91,68,42,.3), inset -18px 0 28px -24px rgba(38,35,29,.42); }
.door-right { right: 0; z-index: 1; background-image: url("images/invitation-doors-desktop.jpg"); background-position: right center; transform-origin: right center; box-shadow: inset 1px 0 rgba(91,68,42,.3), inset 18px 0 28px -24px rgba(38,35,29,.42); }
.door-seam { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(94,73,51,.45); box-shadow: 0 0 5px rgba(45,35,25,.18); transition: opacity .35s ease; }
.door-seal { position: absolute; z-index: 5; top: 50%; left: 50%; display: grid; place-items: center; width: clamp(112px, 11vw, 132px); aspect-ratio: 1; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%,-50%); transition: transform .35s ease, opacity .3s ease; }
.door-seal img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: center; animation: wax-seal-pulse 2.8s ease-in-out infinite; }
@keyframes wax-seal-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 3px rgba(67, 37, 28, .15)); }
  50% { transform: scale(1.055); filter: drop-shadow(0 4px 8px rgba(67, 37, 28, .25)); }
}
.door-seal:hover, .door-seal:focus-visible { transform: translate(-50%,-50%) scale(1.045); outline: none; }
.door-seal:focus-visible { outline: 2px solid var(--navy); outline-offset: 5px; }
.door-prompt { position: absolute; z-index: 4; top: calc(50% + clamp(70px, 8vw, 80px)); left: 50%; color: var(--navy); font-size: 10px; letter-spacing: .18em; text-shadow: 0 1px 7px rgba(255,251,240,.9); transform: translateX(-50%); transition: opacity .35s ease; white-space: nowrap; }
.gate.opening .door-left { transform: rotateY(-108deg); box-shadow: inset -1px 0 rgba(91,68,42,.3), inset -38px 0 36px -24px rgba(38,35,29,.62); }
.gate.opening .door-right { transform: rotateY(108deg); box-shadow: inset 1px 0 rgba(91,68,42,.3), inset 38px 0 36px -24px rgba(38,35,29,.62); }
.gate.opening .door-seam, .gate.opening .door-prompt, .gate.opening .door-seal { opacity: 0; }
.gate.opening .door-seal { transform: translate(-50%,-50%) scale(.7); }
.gate.opening .door-seal img { animation: none; }
.gate-language { position: absolute; z-index: 5; top: 22px; right: clamp(16px, 3vw, 40px); padding: 5px 8px; background: rgba(248,244,235,.55); }

/* Navigation */
body.locked .nav { transform: translateY(-100%); }
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background .5s, box-shadow .5s, transform .6s var(--ease);
}
.nav.solid {
  background: rgba(244, 238, 226, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(175, 132, 64, .35);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav .logo { width: 48px; filter: brightness(0) saturate(100%) invert(14%) sepia(29%) saturate(1530%) hue-rotate(177deg) brightness(91%) contrast(93%); }
.nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin-left: auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nav a { text-decoration: none; transition: color .3s; }
.nav a:hover { color: var(--gold); }
.nav .rsvp-link { border: 1px solid var(--gold); padding: 4px 14px; }
@media (max-width: 1000px) {
  .nav-inner { gap: 10px; }
  .nav ul { gap: 10px; }
  .nav .caps { font-size: 10px; letter-spacing: .08em; }
  .nav .rsvp-link { padding: 4px 8px; }
  .nav-language { margin-left: 0; }
}
.language-switch { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; font-family: "Cinzel", serif; font-size: 11px; letter-spacing: .08em; pointer-events: auto; }
.language-switch button { padding: 4px 5px; border: 0; background: transparent; color: var(--navy); cursor: pointer; font: inherit; opacity: .62; transition: color .25s, opacity .25s; }
.language-switch button[aria-pressed="true"] { color: var(--gold); opacity: 1; }
.language-switch button:hover, .language-switch button:focus-visible { color: var(--gold); opacity: 1; }
.language-switch span { color: var(--gold); opacity: .65; }
.nav-language { margin-left: 4px; }

/* Hero */
.hero {
  --portrait-width: min(52vw, 480px);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 94px 16px 28px;
  text-align: center;
  overflow: hidden;
}
.hero-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vh, 44px);
}
.hero-names { position: relative; z-index: 5; isolation: isolate; margin-bottom: 0; color: var(--navy); font-size: clamp(56px, 8vw, 96px); line-height: 1.08; }
.hero-names:focus { outline: none; }
.hero-names > span { display: inline-block; }
.hero-ampersand { margin: 0 .08em; color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: .84em; font-style: italic; font-weight: 400; line-height: 1; vertical-align: -.02em; }
.hero-art { position: relative; z-index: 1; display: block; width: 100vw; height: min(55vh, 480px); margin-top: 0; }
.hero-column { position: absolute; top: 50%; display: block; width: calc(100vw - min(64vw, 600px)); height: min(78vh, 700px); background-image: url("images/element-column.png"); background-size: auto 100%; background-repeat: no-repeat; background-position: center; opacity: .94; mix-blend-mode: multiply; }
.hero-column.left { left: 0; clip-path: inset(0 0 0 50%); transform: translate(-50%, -50%); }
.hero-column.right { right: 0; clip-path: inset(0 50% 0 0); transform: translate(50%, -50%); }
.arch {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--portrait-width);
  height: 100%;
  margin: 0;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  background:
    radial-gradient(ellipse at 58% 22%, rgba(255, 255, 255, .52), transparent 34%),
    radial-gradient(ellipse at 20% 68%, rgba(214, 203, 178, .24), transparent 44%),
    linear-gradient(180deg, #9fb4c7 0%, #c9d1ce 42%, #e9e0cf 100%);
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--gold), 0 0 0 13px var(--ivory), 0 0 0 14px rgba(175, 132, 64, .5), 0 30px 60px rgba(23, 43, 73, .18);
}
.hero-backdrop { position: absolute; z-index: 0; left: 50%; bottom: -4%; width: 122%; max-width: none; transform: translateX(-50%); opacity: .28; filter: saturate(.72); mix-blend-mode: multiply; animation: backdrop-drift 24s ease-in-out infinite alternate; }
.hero-portrait { position: absolute; z-index: 1; left: 50%; bottom: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center bottom; transform: translateX(-50%); animation: portrait-breathe 8s ease-in-out infinite; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 58%, rgba(248, 221, 163, .55), transparent 58%); opacity: 0; }
.hero-tracery { position: absolute; z-index: 2; left: 50%; top: -20px; width: calc(var(--portrait-width) + 40px); height: calc(100% + 40px); transform: translateX(-50%); overflow: visible; pointer-events: none; }
.hero-tracery path { fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-flower { position: absolute; z-index: 3; bottom: -11%; width: clamp(180px, 30vw, 390px); pointer-events: none; transform-origin: 50% 90%; }
.hero-flower-left { right: calc(50% + var(--portrait-width) / 2 - 100px); scale: -1 1; rotate: -8deg; }
.hero-flower-right { left: calc(50% + var(--portrait-width) / 2 - 100px); rotate: -8deg; }
.hero-finale { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.hero-date { color: var(--navy); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .05em; }
.replay-invitation { border: 0; border-bottom: 1px solid rgba(175, 132, 64, .45); background: transparent; color: var(--muted); font: inherit; font-size: 16px; padding: 3px 8px; cursor: pointer; }
.replay-invitation:hover { color: var(--navy); border-color: var(--gold); }
.replay-invitation:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
body:not(.invitation-revealed) .hero-names > span,
body:not(.invitation-revealed) .hero-flower,
body:not(.invitation-revealed) .hero-finale { opacity: 0; }
body:not(.invitation-revealed) .hero-tracery path { stroke-dashoffset: 1; }
body:not(.invitation-revealed) .hero-art { transform: translateY(35px) scale(.86); opacity: .3; }
.invitation-revealed .hero-art { animation: invitation-scene 2.4s cubic-bezier(.16, 1, .3, 1) both; }
.invitation-revealed .hero-names > span { animation: invitation-name 1.6s cubic-bezier(.16, 1, .3, 1) .35s both; }
.invitation-revealed .hero-names > span:nth-child(2) { animation-delay: .65s; }
.invitation-revealed .hero-names > span:nth-child(3) { animation-delay: .85s; }
.invitation-revealed .hero-flower { animation: invitation-bloom 2.6s cubic-bezier(.16, 1, .3, 1) .65s both; }
.invitation-revealed .hero-flower-right { animation-delay: .95s; }
.invitation-revealed .hero-tracery path { animation: invitation-trace 2.8s ease-in-out .25s both; }
.invitation-revealed .hero-glow { animation: invitation-light 4.5s ease-out both; }
.invitation-revealed .hero-finale { animation: invitation-name 1.4s ease-out 1.7s both; }
@keyframes invitation-scene { from { transform: translateY(35px) scale(.86); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes invitation-name { from { opacity: 0; translate: 0 18px; filter: blur(7px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes invitation-bloom { from { opacity: 0; transform: translateY(70px) rotate(18deg) scale(.55); } to { opacity: 1; transform: none; } }
@keyframes invitation-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes invitation-light { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { opacity: .25; transform: scale(1.3); } }
@keyframes backdrop-drift { from { transform: translateX(-52%) scale(1); } to { transform: translateX(-48%) scale(1.035); } }
@keyframes portrait-breathe { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
.hero-details { position: relative; max-width: none; overflow: hidden; padding: clamp(64px, 9vw, 112px) 18px clamp(70px, 10vw, 124px); text-align: center; background: linear-gradient(180deg, rgba(223, 207, 180, .2), rgba(243, 236, 221, 0) 76%); border-top: 1px solid rgba(175, 132, 64, .18); }
.hero-details .date,
.hero-details .place { color: #a9823f; background: linear-gradient(108deg, #8e682d 4%, #c5a15d 34%, #fff1c4 49%, #c5a15d 64%, #8e682d 94%); background-size: 220% 100%; background-position: 100% 50%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gold-letter-glint 9s ease-in-out infinite; }
.hero-details .date { font-size: clamp(25px, 3.4vw, 34px); font-weight: 500; letter-spacing: .17em; margin-bottom: 8px; }
.hero-details .place { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; font-weight: 600; animation-delay: 1.2s; }
@keyframes gold-letter-glint { 0%, 16% { background-position: 100% 50%; } 54%, 100% { background-position: 0% 50%; } }
html[lang="hu"] .hero-details .date,
html[lang="hu"] #timeline > .kicker { text-transform: none; letter-spacing: .08em; }
.details-hydrangea { width: min(320px, 42vw); margin: 4px auto 10px; opacity: .72; animation: botanical-drift 10s ease-in-out infinite; }
.details-ivy { position: absolute; top: 50%; width: clamp(110px, 14vw, 180px); height: auto; opacity: .34; pointer-events: none; animation: ivy-drift 12s ease-in-out infinite alternate; }
.details-ivy-left { left: -50px; transform: translateY(-50%) rotate(-14deg); }
.details-ivy-right { right: -50px; transform: translateY(-50%) scaleX(-1) rotate(-14deg); }
@keyframes botanical-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes ivy-drift { from { translate: 0 -6px; } to { translate: 0 6px; } }
.scroll-cue {
  margin-top: 14px;
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* Sections */
.section {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 68px 16px;
  text-align: center;
}
.section.band { max-width: none; background-color: #efe8da; background-image: var(--linen); }
.section.band > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.title { font-size: clamp(58px, 9vw, 92px); line-height: 1.1; color: var(--navy); }
.clear-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(56px, 7vw, 74px); font-weight: 600; letter-spacing: .04em; line-height: 1.08; }
.kicker { color: var(--gold); margin-bottom: 4px; }
.divider { width: min(230px, 52vw); margin: 8px auto 16px; opacity: .62; }
.divider { animation: divider-sway 12s ease-in-out infinite alternate; }
@keyframes divider-sway { from { rotate: -1deg; } to { rotate: 1deg; } }
.lead { max-width: 620px; margin: 0 auto 32px; color: var(--muted); font-style: italic; }

/* Countdown */
.countdown-layout { display: grid; grid-template-columns: minmax(330px, 390px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 38px); max-width: 1160px; margin: 0 auto; }
.portrait-side { display: block; width: 100%; height: 320px; object-fit: contain; opacity: .94; filter: saturate(.86); mix-blend-mode: multiply; animation: side-portrait-float 9s ease-in-out infinite; }
@keyframes side-portrait-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.countdown-layout > .portrait-side { height: 390px; animation: countdown-portrait-float 9s ease-in-out infinite; }
@keyframes countdown-portrait-float { 0%, 100% { transform: translateY(0) scale(1.12); } 50% { transform: translateY(-7px) scale(1.14); } }
.countdown-copy { min-width: 0; }
.countdown-copy .title { line-height: 1.2; padding-bottom: .08em; }
.countdown-copy .kicker { margin-top: 10px; margin-bottom: 4px; line-height: 1.8; }
.countdown { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.countdown div { padding: 6px clamp(8px, 1.5vw, 18px); }
.countdown div + div { border-left: 1px solid rgba(175, 132, 64, .6); }
.countdown span { display: block; font-size: clamp(46px, 8vw, 78px); line-height: 1.1; color: var(--navy); font-weight: 400; }
.countdown small { color: var(--gold); }

/* Venue */
.venue-list { display: grid; gap: 18px; max-width: 1020px; margin: 0 auto; }
.venue-stop { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 3vw, 38px); align-items: center; text-align: left; padding: 12px 0; }
.venue-art { position: relative; width: 100%; height: min(42vw, 450px); min-height: 330px; overflow: hidden; border: 1px solid rgba(175, 132, 64, .82); border-radius: 48% 48% 2px 2px / 22% 22% 2px 2px; background: var(--ivory); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px rgba(175, 132, 64, .62), 0 22px 48px rgba(23, 43, 73, .09); }
.venue-art { animation: framed-art-drift 11s ease-in-out infinite; }
@keyframes framed-art-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.venue-art::before { content: ""; position: absolute; z-index: 2; inset: 10px; border: 1px solid rgba(175, 132, 64, .55); border-radius: inherit; pointer-events: none; }
.venue-art img { position: absolute; left: 50%; bottom: 0; width: min(100%, 560px); height: auto; max-width: none; transform: translateX(-50%) scale(1.1); transform-origin: center bottom; mix-blend-mode: multiply; }
.dinner-art img { bottom: -54px; width: min(100%, 560px); transform: translateX(-50%); }
.venue-stop-reverse { grid-template-columns: .95fr 1.05fr; }
.venue-stop h3 { color: var(--navy); font-size: clamp(42px, 4.2vw, 54px); line-height: 1.1; }
.venue-stop .kicker { margin: 0 0 4px; }
.venue-stop p:not(.kicker) { font-size: 22px; }
.venue-stop .venue-note { color: var(--muted); font-style: italic; margin-top: 8px; }
.venue-stop-reverse > .venue-art { order: 2; }
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding-bottom: 3px; color: var(--gold); border-bottom: 1px solid rgba(175, 132, 64, .62); font-family: "Cinzel", serif; font-size: 11px; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transition: color .25s, border-color .25s; }
.map-link::after { content: "↗"; font-size: 16px; line-height: 1; }
.map-link:hover { color: var(--navy); border-color: var(--navy); }

/* Timeline */
.timeline-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 390px); align-items: center; gap: clamp(32px, 6vw, 76px); max-width: 1000px; margin: 8px auto 0; text-align: left; }
.timeline { list-style: none; max-width: 620px; margin: 0; text-align: left; }
.timeline-layout > .portrait-side { height: 440px; animation: timeline-portrait-float 9s ease-in-out infinite; }
@keyframes timeline-portrait-float { 0%, 100% { transform: translateY(0) scale(1.14); } 50% { transform: translateY(-7px) scale(1.16); } }
.timeline li { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; column-gap: 12px; min-height: 66px; padding: 8px 0 8px 32px; border-left: 1px solid rgba(175, 132, 64, .65); opacity: 0; transform: translateX(-12px); transition: opacity .75s ease, transform .75s var(--ease); }
.timeline.in li { opacity: 1; transform: none; }
.timeline.in li:nth-child(2) { transition-delay: .07s; }
.timeline.in li:nth-child(3) { transition-delay: .14s; }
.timeline.in li:nth-child(4) { transition-delay: .21s; }
.timeline.in li:nth-child(5) { transition-delay: .28s; }
.timeline.in li:nth-child(6) { transition-delay: .35s; }
.timeline.in li:nth-child(7) { transition-delay: .42s; }
.timeline.in li:nth-child(8) { transition-delay: .49s; }
.timeline li:last-child { border-left-color: transparent; }
.timeline-dot { position: absolute; left: -7px; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #efe5d4; animation: timeline-pulse 3.4s ease-in-out infinite; }
@keyframes timeline-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(239, 229, 212, .7), 0 0 0 5px rgba(175, 132, 64, .08); } 50% { box-shadow: 0 0 0 7px rgba(239, 229, 212, .92), 0 0 16px 7px rgba(175, 132, 64, .18); } }
.timeline li:nth-child(2) .timeline-dot { animation-delay: .32s; }
.timeline li:nth-child(3) .timeline-dot { animation-delay: .64s; }
.timeline li:nth-child(4) .timeline-dot { animation-delay: .96s; }
.timeline li:nth-child(5) .timeline-dot { animation-delay: 1.28s; }
.timeline li:nth-child(6) .timeline-dot { animation-delay: 1.6s; }
.timeline li:nth-child(7) .timeline-dot { animation-delay: 1.92s; }
.timeline li:nth-child(8) .timeline-dot { animation-delay: 2.24s; }
.timeline li time { color: var(--gold); font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.timeline h3 { color: var(--navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.05; }

/* Dress code */
.dress-code-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; max-width: 980px; margin: 0 auto; text-align: left; }
.dress-illustration { position: relative; width: 100%; height: min(42vw, 420px); min-height: 340px; overflow: hidden; }
.dress-illustration > img { position: absolute; left: 50%; bottom: 0; width: min(100%, 540px); height: auto; max-width: none; transform: translateX(-50%) scale(1.16); transform-origin: center bottom; mix-blend-mode: multiply; }
.dress-code-content > div { max-width: 380px; }
.dress-code-label { color: var(--gold); font-size: clamp(17px, 2vw, 21px); line-height: 1.8; margin-bottom: 12px; }
.palette-block { max-width: 880px; margin: 34px auto 0; }
.palette-block h3 { color: var(--navy); font-size: clamp(38px, 5vw, 52px); line-height: 1.1; margin-bottom: 22px; }
.palette-swatches { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; max-width: 820px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(175, 132, 64, .55); border-radius: 5px; box-shadow: 0 12px 28px rgba(23, 43, 73, .07); }
.palette-swatches::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.4) 49%, transparent 63%); background-size: 220% 100%; animation: palette-sheen 11s ease-in-out infinite; pointer-events: none; }
@keyframes palette-sheen { 0%, 20% { background-position: 140% 0; } 70%, 100% { background-position: -130% 0; } }
.palette-swatches figure { display: grid; justify-items: center; gap: 0; min-width: 0; }
.swatch { display: block; width: 100%; height: 56px; border-right: 1px solid rgba(255,255,255,.34); }
.swatch.champagne { background: #dfc8aa; }
.swatch.ivory { background: #f4efe4; outline: 1px solid rgba(175, 132, 64, .38); outline-offset: -1px; }
.swatch.french-blue { background: #829bb4; }
.swatch.gold { background: #c39a52; }
.swatch.navy { background: #20324f; }
.palette-swatches figcaption { width: 100%; padding: 12px 4px; color: var(--muted); background: rgba(255,255,255,.4); font-family: "Cinzel", serif; font-size: 10px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.palette-swatches figure + figure figcaption { border-left: 1px solid rgba(175, 132, 64, .18); }

/* Q&A */
.qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 760px);
  margin: 0 auto;
  gap: 0;
  text-align: left;
}
.faq details { border-bottom: 1px solid rgba(175, 132, 64, .45); padding: 20px 0; }
.faq summary {
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; color: var(--muted); }

/* RSVP */
.rsvp-card {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  background-color: var(--ivory);
  background-image: var(--linen);
  outline: 1px solid var(--gold);
  outline-offset: -14px;
  box-shadow: 0 30px 70px rgba(35, 50, 76, .14);
  animation: card-settle 8s ease-in-out infinite;
}
.rsvp-note {
  max-width: 850px;
  margin: 18px auto 30px;
  padding: 16px 24px;
  border-top: 1px solid rgba(176, 139, 73, .42);
  border-bottom: 1px solid rgba(176, 139, 73, .42);
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.35;
  text-align: center;
}
.rsvp-note p { margin: 5px 0; }
.rsvp-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
@keyframes card-settle { 0%, 100% { box-shadow: 0 30px 70px rgba(35, 50, 76, .14); } 50% { box-shadow: 0 34px 76px rgba(35, 50, 76, .17); } }
.rsvp-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: start; gap: clamp(24px, 4vw, 52px); }
.rsvp-illustration { position: sticky; top: 108px; align-self: start; }
.rsvp-illustration img { width: 100%; max-width: 520px; max-height: 760px; object-fit: contain; mix-blend-mode: multiply; filter: saturate(.88); }
.rsvp-form { display: grid; gap: 20px; min-width: 0; text-align: left; position: relative; }
.rsvp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.rsvp-form .rsvp-field, .rsvp-form legend { display: block; font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.rsvp-form .rsvp-field { display: grid; gap: 5px; }
.rsvp-form legend { margin-bottom: 9px; }
.rsvp-form input:not([type="radio"]):not([type="checkbox"]), .rsvp-form select, .rsvp-form textarea {
  font: inherit;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--blue);
  background: transparent;
  color: var(--navy);
  outline: none;
  transition: border-color .3s;
}
.rsvp-form input:not([type="radio"]):not([type="checkbox"]):focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--gold); }
.rsvp-form textarea { min-height: 90px; resize: vertical; }
.rsvp-form .rsvp-options { display: grid; gap: 9px; }
.rsvp-form .rsvp-choice { display: flex; align-items: flex-start; gap: 12px; color: var(--navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; line-height: 1.35; letter-spacing: 0; text-transform: none; cursor: pointer; }
.rsvp-form .rsvp-choice input[type="radio"], .rsvp-form .rsvp-choice input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--gold); }
.rsvp-form .rsvp-field small { color: var(--muted); font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.rsvp-form .rsvp-companion-fields { display: grid; gap: 18px; padding: 16px 0 0 22px; border-left: 1px solid rgba(175, 132, 64, .45); }
.rsvp-form .rsvp-companion-fields[hidden] { display: none; }
.rsvp-form .rsvp-diet .rsvp-field { margin-top: 10px; }
.rsvp-form button {
  justify-self: center;
  margin-top: 10px;
  font-family: "Cinzel", serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 16px 46px;
  border: 0;
  background: var(--navy);
  color: var(--champagne);
  cursor: pointer;
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  transition: background .4s;
}
.rsvp-form button:hover { background: #2e4163; }
.rsvp-form button:disabled { opacity: .6; cursor: wait; }
.rsvp-status { text-align: center; min-height: 1.6em; color: var(--muted); font-style: italic; }

.foot { padding: 70px 16px 50px; text-align: center; }
.foot .ivy { width: min(300px, 62vw); margin: 0 auto 16px; opacity: .72; }
.foot .logo { width: 90px; margin: 0 auto 10px; }
.foot .names { font-size: 46px; color: var(--navy); }

/* Offscreen ornament animations pause to keep scrolling light. */
.motion-target { animation-play-state: paused; }
.motion-target.motion-active { animation-play-state: running; }
.palette-swatches.motion-target::after { animation-play-state: paused; }
.palette-swatches.motion-target.motion-active::after { animation-play-state: running; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1.4s ease, transform 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  body { font-size: 18px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .countdown-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
  .countdown-layout > .portrait-side { height: 320px; }
  .countdown div { padding: 6px 10px; }
  .venue-stop, .dress-code-content, .qa-grid { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .venue-art { height: min(68vw, 360px); min-height: 280px; }
  .venue-art img { width: min(100%, 460px); }
  .venue-stop-reverse > .venue-art { order: 0; }
  .dress-illustration { height: 340px; min-height: 320px; }
  .dress-illustration > img { width: min(100%, 480px); }
  .venue-list { gap: 16px; }
  .dress-code-content > div { margin: 0 auto; }
  .timeline-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }
  .timeline-layout > .portrait-side { height: 320px; }
  .timeline h3 { font-size: clamp(20px, 4vw, 24px); }
  .hero { --portrait-width: min(62vw, 430px); padding: 92px 16px 24px; }
  .hero-names { font-size: clamp(54px, 10vw, 82px); }
  .hero-art { width: 100vw; height: min(50vh, 400px); }
  .arch { height: 100%; }
  .hero-flower-left { right: calc(50% + var(--portrait-width) / 2 - 66px); }
  .hero-flower-right { left: calc(50% + var(--portrait-width) / 2 - 66px); }
  .hero-column { width: calc(100vw - min(62vw, 430px)); height: 138%; }
  .details-ivy { width: clamp(110px, 20vw, 170px); opacity: .34; }
  .palette-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .swatch { height: 44px; }
  .hero .place { font-size: 21px; }
  .scroll-cue { margin-top: 10px; height: 24px; }
  .nav-inner { gap: 8px; padding: 8px 10px; }
  .nav .logo { width: 36px; }
  .nav ul { gap: 8px; }
  .nav .caps { font-size: 9px; letter-spacing: .1em; }
  .language-switch { gap: 1px; font-size: 10px; }
  .nav-language { margin-left: 0; }
  .language-switch button { padding: 4px 3px; }
  .door-left, .door-right { background-image: url("images/invitation-doors-mobile.jpg"); }
}

@media (max-width: 1000px) {
  .countdown-layout { grid-template-columns: 310px minmax(0, 1fr); gap: 20px; }
  .countdown-layout > .portrait-side { height: 360px; }
  .countdown-copy .title { font-size: clamp(54px, 7.2vw, 68px); }
  .countdown span { font-size: clamp(42px, 6.2vw, 58px); }
}

@media (max-width: 800px) {
  .countdown-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .countdown-layout > .portrait-side { height: 300px; }
  .countdown-copy .title { font-size: clamp(42px, 7.2vw, 58px); }
  .rsvp-layout { grid-template-columns: 1fr; gap: 10px; }
  .rsvp-illustration { position: relative; top: auto; height: 420px; }
  .rsvp-illustration img { width: min(92vw, 480px); height: 100%; margin: 0 auto; }
}

@media (max-width: 480px) {
  .countdown-layout { grid-template-columns: 1fr; gap: 8px; }
  .countdown-layout > .portrait-side { width: min(86vw, 340px); height: 300px; margin: 0 auto; animation: side-portrait-float 9s ease-in-out infinite; }
  .timeline-layout { grid-template-columns: 1fr; }
  .timeline-layout > .portrait-side { width: min(86vw, 330px); height: 290px; margin: -4px auto 0; animation: side-portrait-float 9s ease-in-out infinite; }
  .timeline li { min-height: 88px; }
  .rsvp-card { padding: 22px 18px; }
  .rsvp-illustration { height: 340px; }
  .rsvp-form { gap: 16px; }
  .hero { --portrait-width: min(76vw, 330px); min-height: 100svh; padding-top: 78px; }
  .hero-art { height: min(44svh, 352px); }
  .hero-stage { gap: 30px; }
  .hero-names { font-size: clamp(44px, 12vw, 56px); white-space: nowrap; }
  .hero-flower { width: 180px; bottom: -8%; }
  .hero-column { width: calc(100vw - min(60vw, 320px)); }
  .hero-column { height: 140%; }
  .palette-swatches figcaption { font-size: 8px; letter-spacing: .05em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
  .door-panel { transition-duration: .48s !important; }
  .gate { transition: opacity .42s ease, visibility 0s linear .42s !important; }
  html { scroll-behavior: auto; }
}
