/* Thilanya & Manul: one coordinated vintage stationery system. */
.vintage-invitation {
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --paper-material: url('images/aged-paper.webp');
  --floral-lining: url('images/floral-envelope-lining.webp');
  font-size: 19px; background: var(--paper); color: var(--forest);
}
.vintage-invitation .hero {
  background: var(--paper); padding: 125px 110px 150px;
  isolation: isolate; min-height: 100svh;
}
.vintage-invitation .hero::before {
  inset: 0; border: solid transparent; border-width: 140px 90px;
  border-image: url('images/vintage-lace-border.png') 240 150 / 140px 90px / 0 stretch;
  outline: 0; background: none;
}
.vintage-invitation .hero::after,
.vintage-invitation .hero-floral,
.vintage-invitation .hero-wave,
.vintage-invitation .wave-divider,
.vintage-invitation .footer-floral { display: none; }
.vintage-invitation .hero-content { max-width: 650px; width: 100%; }
.vintage-monogram { width: 132px; height: 132px; object-fit: contain; margin: 0 auto 22px; }
.vintage-invitation .hero-eyebrow { font-size: 1.15rem; font-weight: 400; line-height: 1.6; letter-spacing: .025em; text-transform: none; margin-bottom: 24px; }
.vintage-invitation .hero-names { display: flex; flex-direction: column; font-size: clamp(4rem, 8vw, 6.3rem); line-height: 1.08; }
.vintage-invitation .hero-ampersand { font: italic .3em var(--font-heading); padding: 16px 0 6px; }
.vintage-invitation .hero-divider { margin: 22px auto; width: min(280px, 100%); }
.vintage-invitation .hero-date { font-size: clamp(1.35rem, 4vw, 1.9rem); font-weight: 400; letter-spacing: .15em; margin-bottom: 12px; }
.vintage-invitation .hero-tagline { font-size: .85rem; letter-spacing: .17em; font-weight: 400; margin-bottom: 24px; }
.vintage-doves { width: min(460px, 100%); height: auto; margin: 8px auto 28px; }
.vintage-invitation .countdown { max-width: 100%; border: 0; border-block: 1px solid var(--sand); background: none; backdrop-filter: none; box-shadow: none; border-radius: 0; padding: 18px 20px; margin-bottom: 32px; }
.vintage-invitation .countdown-num { font-size: 2rem; }
.vintage-invitation .hero-cta { border-radius: 0; background: none; color: var(--brown); border: 1px solid var(--caramel); outline: 1px solid #90603855; outline-offset: 4px; padding: 13px 36px; box-shadow: none; }
.vintage-invitation .hero-cta:hover { background: var(--brown); color: var(--paper); }
.vintage-invitation .hero .scroll-hint { position: relative; inset: auto; transform: none; animation: none; margin-top: 32px; gap: 6px; flex-shrink: 0; }
.vintage-invitation .scroll-hint svg { width: 22px; }
.vintage-invitation .scroll-hint span { font-size: .7rem; font-weight: 400; letter-spacing: .18em; }
.vintage-invitation .section-title { font-style: italic; }
.vintage-invitation .section-label { font-size: .75rem; letter-spacing: .3em; }
.vintage-invitation .details-section > .container::before { content: '❦'; display: block; text-align: center; color: var(--caramel); font-size: 42px; margin-bottom: 20px; }
.vintage-invitation .details-grid { gap: 0; border-block: 1px solid var(--sand); padding-block: 10px; margin-top: 48px; }
.vintage-invitation .detail-card { border: 0; border-right: 1px solid var(--sand); border-radius: 0; background: none; padding: 28px 20px 34px; box-shadow: none; }
.vintage-invitation .detail-card:last-child { border-right: 0; }
.vintage-invitation .detail-card:hover { transform: none; box-shadow: none; }
.vintage-invitation .detail-card__icon { width: 90px; height: 90px; margin-bottom: 15px; }
.vintage-invitation .detail-card__title { font-size: .8rem; }
.vintage-invitation .dress-code { background: none; border: 0; justify-content: center; text-align: center; margin-top: 35px; padding: 20px; }
.vintage-invitation .dress-code__body { font-size: 1.4rem; font-style: italic; }
.vintage-invitation .dress-code::before, .vintage-invitation .dress-code::after { content: '❧'; align-self: center; color: var(--caramel); font-size: 32px; }
.vintage-invitation .dress-code::after { transform: rotate(180deg); }
.directions-illustration { width: min(340px, 100%); margin: 28px auto 30px; }
.directions-illustration img { width: 100%; height: auto; mix-blend-mode: multiply; }
.directions-link { display: table; margin: 0 auto 20px; border: 1px solid var(--caramel); border-radius: 100px; padding: 14px 40px; text-align: center; text-transform: uppercase; font-size: .8rem; letter-spacing: .18em; }
.directions-link:hover { background: var(--brown); color: var(--paper); }
.directions-map { margin: 0 auto 32px; }
.directions-map summary { width: fit-content; margin: auto; padding: 8px 16px; color: var(--text-mid); cursor: pointer; }
.directions-map[open] summary { margin-bottom: 24px; }
.vintage-invitation .rsvp-section { background: #233b2f; border-block: 6px double var(--sand); padding: 70px 24px; }
.vintage-invitation .rsvp-section > .container { max-width: 900px; border: 1px solid #cfb99b66; outline: 1px solid #cfb99b44; outline-offset: 7px; padding: 45px clamp(18px, 5vw, 65px); }
.reply-ornament { text-align: center; font-size: 48px; line-height: 1; margin-bottom: 24px; color: var(--sand); }
.vintage-invitation .rsvp-section .section-title { font: 4rem var(--font-cursive); }
.vintage-invitation .form-input, .vintage-invitation .form-textarea, .vintage-invitation .attend-btn, .vintage-invitation .guests-selector { border-radius: 0; }
.vintage-invitation .submit-btn { border-radius: 0; outline: 1px solid var(--sand); outline-offset: 4px; }
.vintage-invitation .footer { background: var(--paper); padding-block: 65px 40px; }
.footer-crest { width: 125px; height: 125px; margin: 0 auto 20px; object-fit: contain; }
.vintage-invitation .footer-names, .vintage-invitation .footer-date, .vintage-invitation .footer-tagline, .vintage-invitation .footer-nav a, .vintage-invitation .footer-legal { color: var(--brown); }
.replay-invitation { margin: 24px auto 12px; color: var(--caramel); font: italic 1rem var(--font-heading); text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 680px) {
  .vintage-invitation .details-grid { grid-template-columns: 1fr; }
  .vintage-invitation .detail-card { border-right: 0; border-bottom: 1px solid var(--sand); }
  .vintage-invitation .detail-card:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .vintage-invitation .hero { padding: 100px 60px 100px; }
  .vintage-invitation .hero::before { border-width: 90px 38px; border-image-width: 90px 38px; }
  .vintage-invitation .hero-names { font-size: clamp(3.3rem, 12vw, 5rem); }
  .vintage-invitation .hero-eyebrow { font-size: 1rem; }
  .vintage-monogram { width: 110px; height: 110px; }
  .vintage-invitation .countdown { padding: 14px 0; gap: 5px; }
  .vintage-invitation .countdown-unit { min-width: 30px; }
  .vintage-invitation .countdown-num { font-size: 1.65rem; }
  .vintage-invitation .countdown-label { font-size: .55rem; letter-spacing: .07em; }
  .vintage-invitation .countdown-sep { font-size: 1.1rem; }
  .vintage-invitation .hero-cta { padding-inline: 24px; font-size: .72rem; }
  .vintage-invitation .dress-code { flex-direction: row; padding-inline: 0; gap: 12px; }
  .vintage-invitation .dress-code__body { font-size: 1.2rem; }
  .vintage-invitation .rsvp-section { padding: 50px 18px; }

}
@media (prefers-reduced-motion: reduce) {
  .vintage-invitation .reveal-up { opacity: 1; transform: none; transition: none; }
  body.invitation-ready .hero .hero-content > * { animation: none; }
}

/* All scenes share one tall canvas; only opacity and stationery transforms move. */
.opening { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 45% 35%, #806b5b, #4c3e35); color: #e0d8bf; }
.opening[hidden], .opening [hidden] { display: none !important; }
.cinema-stage { position: relative; isolation: isolate; height: 100svh; height: 100dvh; width: 100%; overflow: hidden; background: #292a21; box-shadow: none; container-type: inline-size; }
.cinema-stage::after { content: ''; position: absolute; z-index: 8; inset: 0; pointer-events: none; box-shadow: inset 0 0 65px #13160f65; background: url('images/aged-paper.webp') center / cover; mix-blend-mode: soft-light; opacity: .13; }
.cinema-botanicals, .cinema-scene { position: absolute; inset: 0; }
.cinema-botanicals { background: linear-gradient(#16180f20, #16180f30), url('images/antique-calla-lilies.jpg') center / cover; }
.cinema-scene { opacity: 0; text-align: center; pointer-events: none; }
.cinema-scene p { margin: 0; font-weight: 400; }
.cinema-stage .script { font-family: 'Great Vibes', cursive; font-weight: 400; }
.cinema-announcement { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: min(5%, 2.4dvh); gap: 1.3%; }
.cinema-announcement .script { font-size: min(15cqw, 7.2dvh); line-height: 1.35; }
.cinema-connector { font: min(6.3cqw, 3.024dvh) 'Cormorant Garamond', Georgia, serif; }
.cinema-names { background: transparent; }
.cinema-romantic-art { position: absolute; inset: 36% 0 0; background: none; }
.cinema-romantic-art::after { display: none; }
.cinema-romantic-art img { position: absolute; top: 28%; left: 50%; width: min(100%, 48dvh); transform: translateX(-50%); filter: sepia(1) brightness(1.6); opacity: .62; }
.cinema-name-copy { position: relative; padding-top: min(17%, 8.16dvh); }
.cinema-name-copy .script { font-size: min(15cqw, 7.2dvh); line-height: 1.24; }
.cinema-name-copy .cinema-ampersand { font-size: min(9cqw, 4.32dvh); line-height: .95; }
.cinema-fine { font: italic min(3.4cqw, 1.632dvh) / 1.6 'Cormorant Garamond', Georgia, serif; }
.cinema-name-copy .cinema-fine { margin-top: min(6%, 2.88dvh); }
.cinema-date { background: linear-gradient(130deg, #292a21f5, #454234ed), url('images/aged-paper.webp') center / cover; }
.cinema-date > p:not(.cinema-location) { position: absolute; left: 0; width: 100%; font: italic 300 min(22cqw, 10.56dvh) / 1 'Cormorant Garamond', Georgia, serif; }
.cinema-date > p:nth-child(1) { top: 13%; }
.cinema-date > p:nth-child(2) { top: 40%; }
.cinema-date > p:nth-child(3) { top: 67%; }
.cinema-location { position: absolute; bottom: 9%; width: 100%; }
.cinema-crest { position: absolute; top: 23%; left: 50%; width: min(76%, 36.5dvh); height: 53%; transform: translateX(-50%); }
.cinema-crest svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px #171b16); }
.cinema-initials { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; font-size: min(27cqw, 12.96dvh); }
.cinema-initials span:first-child { transform: translate(12%, -14%); }
.cinema-initials span:last-child { transform: translate(-14%, 15%); }
.cinema-envelope-top { position: absolute; inset: 0; z-index: 5; will-change: transform; pointer-events: none; }
.cinema-flap { position: absolute; inset: 0 0 39%; clip-path: polygon(0 0,100% 0,100% 68%,50% 100%,0 68%); background: linear-gradient(150deg, #4a4739, #3d3b30 80%); filter: drop-shadow(0 4px 2px #13130e); }
.cinema-flap::before, .cinema-envelope-bottom::after { content: ''; position: absolute; inset: 0; background: url('images/aged-paper.webp') center / cover; opacity: .12; mix-blend-mode: multiply; }
.cinema-seal { position: absolute; width: min(48%, 23.04dvh); top: 53%; left: 50%; transform: translateX(-50%); filter: grayscale(1) sepia(.35) brightness(3.4) contrast(.7) drop-shadow(1px 5px 3px #14130d99); }
.cinema-envelope-bottom { position: absolute; z-index: 4; inset: 0; background: linear-gradient(28deg, #3b392d, #454234 50%, #3f3c30); will-change: transform; }
.cinema-envelope-bottom::before { content: ''; position: absolute; inset: 39% 0 0; background: linear-gradient(149deg, transparent 49.8%, #24251b55 50%, transparent 50.3%), linear-gradient(211deg, transparent 49.8%, #24251b55 50%, transparent 50.3%); }
.cinema-open { position: absolute; z-index: 10; inset: 0; width: 100%; height: 100%; color: #e0d8bf; background: none; border: 0; cursor: pointer; }
.cinema-open span { position: absolute; left: 0; bottom: 12%; width: 100%; font: italic min(4cqw, 1.92dvh) 'Cormorant Garamond', Georgia, serif; letter-spacing: .04em; }
.cinema-skip { position: absolute; z-index: 12; top: max(18px, env(safe-area-inset-top)); right: 5%; padding: 8px 0; font: 12px 'Cormorant Garamond', Georgia, serif; color: #e0d8bf; background: none; border: 0; text-decoration: underline; text-underline-offset: 5px; }
.opening button:focus-visible { outline: 2px solid #e0d8bf; outline-offset: -4px; }
.cinema-stage .music-toggle { position: absolute; z-index: 13; left: 5%; right: auto; bottom: auto; top: max(18px, env(safe-area-inset-top)); width: 30px; height: 30px; background: none; color: #e0d8bf; border: 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .opening *, .opening *::after { transition: none !important; animation: none !important; } }

/* Quiet closing copy and controls; the invitation dissolves into the landing page. */
.opening[data-state="exiting"] button { pointer-events: none; }

/* Responsive landing stationery: full device width and undistorted floral edges. */
.vintage-invitation .hero {
  width: 100%;
  min-height: 100svh;
  aspect-ratio: auto;
  padding: clamp(58px, 8svh, 96px) clamp(32px, 7vw, 110px);
  container-type: normal;
}
.vintage-invitation .hero::before {
  border-width: clamp(48px, 6svh, 72px) clamp(24px, 3.75svh, 45px);
  border-image: url('images/vintage-lace-border.png') 240 150 / 1 / 0 round;
}
.vintage-invitation .hero-content {
  max-width: 880px;
  container-type: inline-size;
}
.vintage-invitation .hero .vintage-monogram {
  width: clamp(64px, 10svh, 110px); height: auto;
  margin-bottom: clamp(14px, 2svh, 24px);
}
.vintage-invitation .hero-eyebrow {
  font-size: clamp(.85rem, 4cqw, 1.1rem);
  margin-bottom: clamp(14px, 2svh, 24px);
}
.vintage-invitation .hero-names {
  font-size: clamp(3rem, min(23cqw, 9svh), 5.5rem);
  margin-bottom: clamp(12px, 1.8svh, 22px); padding-top: .12em;
}
.vintage-invitation .hero-ampersand { padding-block: 10px 4px; }
.vintage-invitation .hero-divider { margin-block: clamp(12px, 2svh, 22px); }
.vintage-invitation .hero-date { font-size: clamp(1.1rem, 5cqw, 1.65rem); margin-bottom: 10px; }
.vintage-invitation .hero-tagline { font-size: clamp(.65rem, 2.8cqw, .85rem); margin-bottom: clamp(14px, 2svh, 24px); }
.vintage-invitation .hero .vintage-doves {
  width: min(100%, 380px); margin-block: 4px clamp(16px, 2.5svh, 28px);
}
.vintage-invitation .hero .countdown {
  padding: 12px 0; margin-bottom: clamp(20px, 3svh, 32px);
  gap: clamp(6px, 2cqw, 18px);
}
.vintage-invitation .hero .countdown-unit { min-width: 0; }
.vintage-invitation .hero .countdown-num { font-size: clamp(1.2rem, 6cqw, 1.9rem); }
.vintage-invitation .hero .countdown-label { font-size: clamp(.5rem, 2cqw, .65rem); letter-spacing: .07em; }
.vintage-invitation .hero .countdown-sep { font-size: 1.2rem; }
.vintage-invitation .hero .hero-cta { padding: 12px 32px; font-size: .75rem; }
.vintage-invitation .hero .scroll-hint { margin-top: clamp(20px, 3svh, 32px); }
@media (min-width: 900px) {
  .vintage-invitation .hero-names { flex-direction: row; align-items: center; gap: 28px; }
  .vintage-invitation .hero-ampersand { padding: 0; font-size: .45em; }
}

/* Keep the entire floral frame visible on arrival, including short screens. */
.vintage-invitation .hero {
  height: 100svh;
  min-height: 0;
  --hero-gutter: clamp(32px, 7vw, 110px);
  padding: clamp(48px, 7svh, 80px) var(--hero-gutter);
}
.vintage-invitation .hero::before { inset: 6px; }
.hero-fit {
  position: absolute;
  top: 50%; left: 50%;
  width: calc(100% - 2 * var(--hero-gutter));
  max-width: 880px;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -50%) scale(var(--hero-fit-scale, 1));
  transform-origin: center;
}
.vintage-invitation .hero .scroll-hint { margin-top: clamp(14px, 2svh, 24px); }
