/* ============================================================
   WHEN TIME SAID YES — style.css
============================================================= */

:root {
  --emerald: #0e4d3c;
  --emerald-deep: #062f24;
  --purple: #4a2c6d;
  --plum: #4b2248;
  --ruby: #8f1d3a;
  --brass: #b6905a;
  --gold: #d9b45c;
  --gold-light: #f2d99a;
  --amber: #d9a441;
  --paper: #f7efdd;
  --champagne: #f6eedb;
  --paper-shadow: #e6d8b8;
  --ink: #241a12;

  --font-display: "Cormorant Garamond", serif;
  --font-script: "Parisienne", cursive;
  --font-body: "Poppins", sans-serif;

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body.intro-locked { overflow: hidden; height: 100vh; }

/* Soft vignette across the whole viewport, always on */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(3,5,4,0.32) 100%);
  pointer-events: none;
  z-index: 998;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--emerald-deep); }
img { max-width: 100%; display: block; }

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1px solid var(--gold-light); color: var(--gold-light); }
.btn--ghost:hover { box-shadow: 0 0 24px rgba(242, 217, 154, 0.5); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--brass));
  color: var(--emerald-deep); font-weight: 600;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.5s ease;
}
.btn--gold:hover { box-shadow: 0 0 26px rgba(217, 180, 92, 0.65), 0 8px 24px rgba(217, 180, 92, 0.35); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mute-toggle {
  position: fixed; top: 1rem; right: 1rem; z-index: 1001;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--brass);
  background: rgba(6,10,8,0.55);
  color: var(--gold-light);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.mute-toggle:hover { transform: scale(1.08); box-shadow: 0 0 16px rgba(217,180,92,0.4); }

/* ============================================================
   CINEMATIC INTRO
============================================================= */
#introScreen { position: fixed; inset: 0; z-index: 100; background: #050807; overflow: hidden; }

.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 10vh; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 1.4s ease;
}
.scene.active { opacity: 1; pointer-events: auto; }

.scene__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #0a0a0a; }
.scene__bg--zoom { animation: slowZoom 14s ease-in-out infinite alternate; }
.scene__bg--push { animation: pushForward 6s var(--ease-soft) forwards, slowBreathe 8s ease-in-out 6s infinite; }
.scene__bg--rotate { animation: slowRotate 10s var(--ease-soft) forwards, gentleSway 9s ease-in-out 10s infinite; }
.scene__bg--soft { animation: slowZoom 16s ease-in-out infinite alternate; }

@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes pushForward { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes slowRotate { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.15) rotate(1.5deg); } }
@keyframes slowBreathe { 0%, 100% { transform: scale(1.18); } 50% { transform: scale(1.23); } }
@keyframes gentleSway { 0%, 100% { transform: scale(1.15) rotate(1.5deg); } 50% { transform: scale(1.17) rotate(-1deg); } }

.scene__overlay { position: absolute; inset: 0; pointer-events: none; }
.scene__overlay--dark { background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.75) 100%); }
.scene__overlay--soft { background: linear-gradient(180deg, rgba(14,77,60,0.15) 0%, rgba(5,8,7,0.7) 100%); }

.scene__glow {
  position: absolute; top: 38%; left: 50%;
  width: 40vw; height: 40vw; max-width: 320px; max-height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(242,217,154,0.35) 0%, rgba(242,217,154,0) 70%);
  animation: pulseGlow 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseGlow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.scene__burst {
  position: absolute; top: 45%; left: 50%; width: 10px; height: 10px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 60px 40px rgba(242,217,154,0.5);
  animation: burst 2.2s var(--ease-soft) forwards;
  pointer-events: none;
}
@keyframes burst {
  0% { box-shadow: 0 0 0 0 rgba(242,217,154,0.6); }
  60% { box-shadow: 0 0 120px 90px rgba(242,217,154,0.35); }
  100% { box-shadow: 0 0 60px 40px rgba(242,217,154,0.2); }
}

.scene__caption {
  position: relative; z-index: 2;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: var(--gold-light);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  max-width: 82%;
  animation: fadeInUp 1.8s ease 0.4s both;
}
.scene__caption--video { position: absolute; bottom: 8vh; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; animation: fadeInUp 1.6s ease 0.3s both; }

.scene__cta { position: relative; z-index: 2; animation: fadeInUp 1.5s ease 0.6s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.scene--4 { padding: 0; justify-content: center; }
.scene__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.scene__whiteout { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
.scene__whiteout.on { opacity: 1; }

.scene--5 { justify-content: center; }
.invite-card {
  position: relative; z-index: 2;
  max-width: min(70vw, 340px);
  max-height: 50vh;
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(242, 217, 154, 0.45), 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.6); opacity: 0;
  animation: inviteReveal 1.4s var(--ease-soft) forwards, cardFloat 5s ease-in-out 1.4s infinite;
  margin-bottom: 1.5rem;
}
@keyframes inviteReveal { to { transform: scale(1); opacity: 1; } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.015); } }

.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.particle { position: absolute; bottom: -5%; opacity: 0; animation-name: floatUp; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
  10% { opacity: 1; } 90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(var(--drift, 20px)) rotate(30deg); }
}
.particle--dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 8px 2px rgba(242,217,154,0.7); }
.particle--glyph { font-size: 1.1rem; }
.particle--petal { bottom: auto; top: -8%; font-size: 1.3rem; animation-name: petalFall; }
@keyframes petalFall {
  0% { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
  10% { opacity: 1; } 90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(115vh) translateX(var(--drift, 30px)) rotate(220deg); }
}

/* ============================================================
   MAIN SITE
============================================================= */
#mainSite[hidden] { display: none; }

#ambientCanvas { position: fixed; inset: 0; z-index: 999; pointer-events: none; mix-blend-mode: screen; opacity: 0.5; }

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(247, 239, 221, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brass);
}
.nav__logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--ruby); text-decoration: none; }
.nav__links {
  list-style: none; display: none; gap: 2rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--brass); flex-direction: column;
}
.nav__links.open { display: flex; }
.nav__links a { text-decoration: none; color: var(--ink); font-size: 0.95rem; letter-spacing: 0.03em; }
.nav__links a:hover { color: var(--ruby); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-soft);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__toggle { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--emerald-deep); display: block; }
@media (min-width: 720px) {
  .nav__links { position: static; display: flex; flex-direction: row; background: none; border: none; padding: 0; }
  .nav__toggle { display: none; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(217,180,92,0.14) 0%, transparent 55%),
    linear-gradient(160deg, var(--plum) 0%, var(--emerald-deep) 55%, #050807 100%);
  border-top: 1px solid rgba(182,144,90,0.5);
  border-bottom: 1px solid rgba(182,144,90,0.5);
  color: var(--paper);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.hero__rays {
  position: absolute; inset: -20%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(217,180,92,0.10) 15deg, transparent 40deg, transparent 180deg, rgba(217,180,92,0.08) 200deg, transparent 230deg);
  animation: raySwing 40s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes raySwing { to { transform: rotate(360deg); } }
.hero__hourglass {
  position: absolute; top: 50%; left: 50%;
  height: 68vh; max-height: 480px;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--gold); stroke-width: 1.7;
  opacity: 0.19; pointer-events: none;
  transition: transform 0.1s linear;
}
.hero__eyebrow { position: relative; z-index: 1; font-family: var(--font-script); font-size: 1.4rem; color: var(--gold-light); margin-bottom: 1rem; }
.hero__names { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.hero__name { font-size: clamp(2.6rem, 9vw, 4.8rem); font-weight: 600; color: var(--paper); }
.hero__amp { font-family: var(--font-script); color: var(--gold); font-size: clamp(2rem, 6vw, 3rem); }
.hero__date { position: relative; z-index: 1; margin-top: 1rem; letter-spacing: 0.08em; color: var(--gold-light); }

.countdown { position: relative; z-index: 1; display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.06); border: 1px solid var(--brass); border-radius: 10px; padding: 0.72rem 0.9rem; min-width: 58px; }
.countdown__unit span { font-family: var(--font-display); font-size: 1.62rem; color: var(--gold-light); font-weight: 600; }
.countdown__unit label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); opacity: 0.8; margin-top: 0.2rem; }

.hero__scroll-hint { position: relative; z-index: 1; margin-top: 3rem; }
.hero__scroll-hint span { display: block; width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

section { max-width: 960px; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; position: relative; }
section h2 { font-size: 2.2rem; margin-bottom: 2.5rem; }

.divider { max-width: 260px; margin: 0 auto; padding: 0.5rem 0; }
.divider svg { width: 100%; height: 28px; }
.divider svg path { fill: none; stroke: var(--amber); stroke-width: 1.5; opacity: 0.6; }

.paper-card {
  position: relative; background: var(--paper);
  padding: 3rem 2rem; max-width: 640px; margin: 0 auto;
  box-shadow: 0 2px 0 var(--paper-shadow), 0 10px 0 -2px var(--paper-shadow), 0 24px 40px rgba(36, 26, 18, 0.18);
  clip-path: polygon(
    0% 2%, 4% 0%, 12% 1%, 20% 0%, 30% 1%, 40% 0%, 50% 1%, 60% 0%, 70% 1%, 80% 0%, 90% 1%, 100% 0%,
    100% 98%, 92% 100%, 82% 99%, 72% 100%, 62% 99%, 52% 100%, 42% 99%, 32% 100%, 22% 99%, 12% 100%, 4% 99%, 0% 100%
  );
}
.paper-card--framed {
  border: 1px solid rgba(182,144,90,0.55);
  background-image: radial-gradient(rgba(182,144,90,0.14) 1px, transparent 1.4px);
  background-size: 13px 13px;
}
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--amber); opacity: 0.7; }
.corner--tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner--tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner--bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner--br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.story__line { font-family: var(--font-display); font-size: 1.3rem; color: var(--emerald-deep); margin-bottom: 0.6rem; }
.story__line--script { font-family: var(--font-script); font-size: 2rem; color: var(--ruby); margin-top: 1rem; }

.timeline { display: grid; gap: 2rem; margin-top: 1rem; }
.timeline__item { display: flex; gap: 1.2rem; align-items: flex-start; text-align: left; }
.timeline__marker {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brass));
  color: var(--emerald-deep); font-size: 1.25rem;
  box-shadow: 0 0 0 4px var(--paper), 0 0 18px rgba(217,180,92,0.5);
}
.timeline__card {
  background: var(--paper); border: 1px solid var(--brass); border-left: 3px solid var(--ruby);
  padding: 1.2rem 1.4rem; flex: 1;
  box-shadow: 0 8px 20px rgba(36,26,18,0.12);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}
.timeline__item:hover .timeline__card { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(217,180,92,0.28); }
.timeline__card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.timeline__time { color: var(--ruby); font-size: 0.9rem; }
.timeline__venue { color: var(--emerald-deep); font-size: 0.9rem; opacity: 0.8; }

.gallery__grid { columns: 2; column-gap: 1.1rem; }
@media (min-width: 640px) { .gallery__grid { columns: 3; } }
.gallery__item {
  width: 100%; margin-bottom: 1.2rem; cursor: zoom-in;
  background: var(--champagne);
  padding: 8px 8px 10px;
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(36,26,18,0.25);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
  break-inside: avoid;
}
.gallery__item__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; display: block; }
.gallery__item__caption {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--emerald-deep);
  text-align: center;
  margin-top: 0.4rem;
}
/* Individual tilt per photo for a handcrafted scrapbook feel (each within +/-2deg) */
.gallery__item:nth-child(1) { transform: rotate(-2deg); }
.gallery__item:nth-child(2) { transform: rotate(1.4deg); }
.gallery__item:nth-child(3) { transform: rotate(-1deg); }
.gallery__item:nth-child(4) { transform: rotate(2deg); }
.gallery__item:nth-child(5) { transform: rotate(-1.6deg); }
.gallery__item:nth-child(6) { transform: rotate(1deg); }
.gallery__item:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 16px 34px rgba(36,26,18,0.35); }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6,10,8,0.92); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: var(--gold-light); font-size: 2.2rem; line-height: 1; cursor: pointer; }

.rsvp__form { display: flex; flex-direction: column; gap: 1.1rem; text-align: left; }
.rsvp__form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--emerald-deep); }
.rsvp__form input, .rsvp__form select, .rsvp__form textarea {
  font-family: var(--font-body); padding: 0.75rem; border: 1px solid var(--brass);
  border-radius: 6px; background: #fff; font-size: 0.95rem; color: var(--ink);
}
.rsvp__form textarea { resize: vertical; }
.rsvp__form .btn { align-self: center; margin-top: 0.5rem; }
.rsvp__success { color: var(--emerald-deep); font-family: var(--font-display); font-size: 1.3rem; }
.rsvp__success-sub { font-family: var(--font-body); font-size: 0.95rem; margin-top: 0.4rem; color: var(--ruby); }

.footer {
  text-align: center; padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--emerald-deep) 0%, var(--plum) 55%, #030504 100%);
  border-top: 1px solid rgba(182,144,90,0.5);
  color: var(--paper);
}
.footer__ik { font-size: 1.6rem; color: var(--amber); margin-bottom: 0.5rem; }
.footer__names { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); }
.footer__tagline { font-family: var(--font-script); font-size: 1.6rem; color: var(--ruby); margin-top: 0.4rem; }
.footer__sub { font-size: 0.85rem; opacity: 0.85; margin-top: 0.6rem; letter-spacing: 0.03em; }
.footer__spark { margin-top: 1rem; color: var(--amber); font-size: 1rem; opacity: 0.8; }

/* ============================================================
   ACCESSIBILITY / PERFORMANCE
============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene__bg, .scene__glow, .scene__burst, .btn, .reveal,
  .hero__scroll-hint span, .gallery__item, .particle, .invite-card,
  .hero__rays, #ambientCanvas {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/*====================================
  NAVIGATION LOGO
====================================*/

.nav__logo{
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
}

.logo-circle{
    width:70px;
    height:70px;
    border:1.6px solid rgba(212,175,55,.75);
    border-radius:50%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(6px);
    transition:all .35s ease;
    box-shadow:0 0 10px rgba(212,175,55,.12), inset 0 0 8px rgba(255,255,255,.05);
    overflow:hidden;
}

.logo-letter{
    font-family:"Cinzel", serif;
    font-size:15px;
    font-weight:600;
    color:#D4AF37;
    line-height:.9;
}

.logo-divider{
    font-family:"Cormorant Garamond", serif;
    font-size:11px;
    color:#D4AF37;
    line-height:.8;
    margin:0;
}
.brand-watermark {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 1001;
  font-family: var(--font-script);
  font-size: 0.95rem;
  color: var(--gold-light);
  background: rgba(6,10,8,0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(217,180,92,0.4);
  text-decoration: none;
  backdrop-filter: blur(3px);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.brand-watermark:hover { opacity: 1; transform: translateY(-2px); }
