﻿/* ── VARIABILE ── */
:root {
  --gold: #c9a84c;
  --gold-light: rgba(201,168,76,0.15);
  --gold-border: rgba(201,168,76,0.3);
  --dark: #0b0e17;
  --dark-2: #111520;
  --dark-3: #1a1f2e;
  --dark-card: rgba(255,255,255,0.04);
  --text: #e8e0d0;
  --text-muted: rgba(232,224,208,0.55);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
  --radius: 16px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SPLASH ── */

/* Base canvas — pure black */
#spl {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0a;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  /* Exit: cinematic zoom-out + fade */
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1),
              transform 1s cubic-bezier(0.4,0,0.2,1);
}
#spl.spl-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
}

/* Animated golden radial pulse — two layers breathing at different speeds */
.spl-bg-pulse {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(201,168,76,0.13) 0%,
    rgba(201,168,76,0.04) 40%,
    transparent 70%);
}
.spl-bg-pulse--1 { animation: splGoldPulse 4s ease-in-out infinite; }
.spl-bg-pulse--2 {
  background: radial-gradient(ellipse 35% 30% at 50% 50%,
    rgba(201,168,76,0.09) 0%,
    transparent 55%);
  animation: splGoldPulse 6.5s ease-in-out 2s infinite;
}
@keyframes splGoldPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.18); }
}

/* Particle container */
#spl-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}

/* Central composition */
.spl-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 560px; width: 100%;
}

/* Double hairline with ◆ diamond — lines expand outward from center */
.spl-diamond-rule {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px; width: 100%;
}
.spl-diamond-rule--bottom { margin: 28px auto 0; }

.spl-diamond-line--left {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  transform-origin: right center;
  animation: lineExpandLeft 1.4s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}
.spl-diamond-line--right {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left center;
  animation: lineExpandRight 1.4s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}
@keyframes lineExpandLeft  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lineExpandRight { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.spl-diamond-gem {
  font-size: 9px; color: var(--gold);
  margin: 0 14px; flex-shrink: 0;
  animation: splFadeUp 0.7s ease 0.2s both;
}

/* Eyebrow: letter-spacing expands 0 → 0.5em */
.spl-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 400;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: eyebrowReveal 1.2s cubic-bezier(0.4,0,0.2,1) 0.7s both;
}
@keyframes eyebrowReveal {
  from { opacity: 0; letter-spacing: 0.1em; }
  to   { opacity: 1; letter-spacing: 0.5em; }
}

/* Title: clip-path reveal sweeping up from bottom */
.spl-name {
  font-family: var(--font-serif);
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 300; line-height: 1.1;
  color: #ffffff;
  margin-bottom: 16px;
  clip-path: inset(100% 0 0 0);
  animation: titleClipReveal 1s cubic-bezier(0.16,1,0.3,1) 1.2s both;
}
@keyframes titleClipReveal {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0% 0 0 0); }
}

/* Date line fades in */
.spl-date {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 300;
  color: rgba(232,224,208,0.65);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  animation: splFadeUp 0.9s ease 1.9s both;
}

/* Gold underline draws left to right */
.spl-date-underline {
  width: 0; height: 1px;
  background: var(--gold);
  margin: 0 auto;
  animation: underlineDraw 0.8s ease-out 2.5s both;
}
@keyframes underlineDraw {
  from { width: 0; }
  to   { width: 64px; }
}

/* Shared upward fade */
@keyframes splFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA button */
.spl-btn {
  margin-top: 44px; z-index: 10; padding: 13px 36px; border-radius: 40px;
  border: 1px solid rgba(201,168,76,0.65); background: transparent;
  color: #c9a84c; font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;

}
.spl-btn:hover { background: rgba(201,168,76,0.15); border-color: #c9a84c; }
@keyframes splFadeIn { from { opacity:0; transform: translateX(-50%) translateY(6px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes splHintBreath {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.7; }
}

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 48px;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(11,14,23,0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gold-border);
}
.site-nav__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav__brand {
  font-family: var(--font-serif);
  font-size: 18px; color: var(--gold);
  letter-spacing: 1px;
}
.site-nav__links { display: flex; gap: 32px; }
.site-nav__links a {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color var(--transition);
}
.site-nav__links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .site-nav { padding: 14px 20px; }
  .site-nav__brand { font-size: 14px; }
  .site-nav__links { gap: 16px; }
  .site-nav__links a { font-size: 10px; letter-spacing: 1px; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1.0); }

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(11,14,23,0.55) 0%,
    rgba(11,14,23,0.35) 40%,
    rgba(11,14,23,0.75) 100%
  );
}

.hero__content {
  position: relative; z-index: 2;
  padding: 120px 24px 80px;
  max-width: 720px;
  animation: heroIn 1.4s ease 0.2s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}

.hero__divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 24px;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 300; line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}

.hero__meta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,0.65);
  letter-spacing: 1px; margin-bottom: 40px;
}
.hero__meta-dot { color: var(--gold); font-size: 8px; }

.hero__actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px; border-radius: 40px;
  font-family: var(--font-sans); font-size: 13px;
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), #e8c84a);
  color: #0b0e17;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── SECTIONS ── */
.section {
  max-width: 960px; margin: 0 auto;
  padding: 80px 24px;
}

.section__header {
  text-align: center; margin-bottom: 48px;
}
.section__tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  position: relative;
}
.section__tag::before,
.section__tag::after {
  content: '—';
  margin: 0 8px;
  opacity: 0.5;
}
.section__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300; color: var(--text);
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── COUNTDOWN ── */
#countdown-section { border-top: 1px solid var(--gold-border); }

.countdown-grid {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.countdown-item {
  text-align: center;
  background: var(--dark-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 28px 36px; min-width: 100px;
}
.countdown-number {
  font-family: var(--font-serif);
  font-size: 52px; font-weight: 300;
  color: var(--gold); line-height: 1;
}
.countdown-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-top: 8px;
}
.countdown-event-date { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

/* ── STORY / DESPRE ── */
.story-text {
  font-size: 16px; line-height: 2; font-weight: 300;
  color: var(--text-muted); text-align: center;
  max-width: 680px; margin: 0 auto 48px;
  font-family: var(--font-serif); font-style: italic;
}

/* ── DETAILS GRID ── */
.details-grid {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.detail-card {
  background: var(--dark-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 28px 32px; text-align: center;
  min-width: 160px; flex: 1; max-width: 240px;
}
.detail-card__icon { color: var(--gold); font-size: 10px; margin-bottom: 12px; }
.detail-card__label {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.detail-card__value {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 300; color: var(--text);
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-bento-item {
  position: relative; aspect-ratio: 1; overflow: hidden;
}
.gallery-bento-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-bento-item:hover img { transform: scale(1.06); }
.gallery-bento-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,14,23,0.4), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.gallery-bento-item:hover .gallery-bento-item__overlay { opacity: 1; }

/* ── ACCORDION (second gallery) ── */
.gallery-accordion {
  display: flex; height: 260px; gap: 4px; border-radius: var(--radius); overflow: hidden;
}
.accordion-item {
  position: relative; flex: 1;
  overflow: hidden; cursor: pointer;
  transition: flex 0.5s ease;
}
.accordion-item.active { flex: 3; }
.accordion-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.accordion-item.active img { transform: scale(1.03); }
.accordion-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,14,23,0.6) 0%, transparent 60%);
}

/* ── LOCATION ── */
.location-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .location-wrap { grid-template-columns: 1fr 1fr; }
}
.location-card {
  background: var(--dark-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.location-card__badge {
  display: inline-block;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); padding: 6px 14px;
  border: 1px solid var(--gold-border);
  border-radius: 20px; width: fit-content;
}
.location-card__name {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 300; color: var(--text);
}
.location-card__detail { font-size: 14px; color: var(--gold); }
.location-card__address { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.location-map {
  border-radius: var(--radius); overflow: hidden;
  min-height: 280px; border: 1px solid var(--gold-border);
}
.location-map iframe { width: 100%; height: 100%; min-height: 280px; display: block; border: none; }

/* ── RSVP ── */
.rsvp-card {
  background: var(--dark-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 48px 32px; text-align: center;
  max-width: 560px; margin: 0 auto;
}
.rsvp-text { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }
.rsvp-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn--rsvp-yes {
  background: linear-gradient(135deg, var(--gold), #e8c84a);
  color: #0b0e17; padding: 14px 28px; border-radius: 40px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; transition: all var(--transition); display: flex; align-items: center; gap: 8px;
}
.btn--rsvp-yes:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.btn--rsvp-no {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted); padding: 14px 28px; border-radius: 40px;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; transition: all var(--transition); display: flex; align-items: center; gap: 8px;
}
.btn--rsvp-no:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }

/* ── FOOTER ── */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--gold-border);
}
.footer__line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 24px;
}
.footer__organizer {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 300; color: var(--text);
  margin-bottom: 8px;
}
.footer__signature { font-size: 12px; color: var(--text-muted); }

/* ── PARTICLES (JS-generated) — gold sparks: thin rectangles falling & spinning */
.spl-pt {
  position: absolute;
  width: 2px; height: 8px;
  background: linear-gradient(180deg, var(--gold), rgba(201,168,76,0.3));
  border-radius: 1px;
  opacity: 0;
  transform-origin: center center;
  animation: goldSpark var(--d, 6s) var(--dl, 0s) ease-in infinite;
}
@keyframes goldSpark {
  0%   { opacity: 0;   transform: translateY(-20px) rotate(var(--r, 0deg)); }
  8%   { opacity: 0.8; }
  60%  { opacity: 0.5; }
  100% {
    opacity: 0;
    transform: translateY(var(--h, 110vh)) rotate(calc(var(--r, 0deg) + 380deg));
  }
}

@media (max-width: 640px) {
  .section { padding: 60px 16px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .rsvp-buttons { flex-direction: column; align-items: center; }
  .countdown-item { padding: 20px 24px; min-width: 80px; }
  .countdown-number { font-size: 40px; }
}

/* safe-area footer — iOS Safari toolbar + home indicator */
.footer, footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 768px) {
  .footer, footer { padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* ── LUX-NAV ── */
.lux-nav {
  width: 100%;
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.lux-nav::-webkit-scrollbar { display: none; }
.lux-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 76px;
  white-space: nowrap;
}
.lux-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 20px;
  text-decoration: none;
  color: rgba(201,168,76,0.55);
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.lux-nav__item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}
.lux-nav__item:hover,
.lux-nav__item.lux-active { color: rgba(201,168,76,1); }
.lux-nav__item:hover svg { transform: translateY(-2px); }
.lux-nav__sep {
  width: 1px;
  height: 20px;
  background: rgba(201,168,76,0.2);
  flex-shrink: 0;
  align-self: center;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 480px) {
  .lux-nav__item { padding: 12px 13px; font-size: 0.52rem; letter-spacing: 1.5px; }
  .lux-nav__item svg { width: 20px; height: 20px; }
}


/* Logo footer responsive */
.ppv-footer-logo { height: 44px !important; }
@media (max-width: 600px) { .ppv-footer-logo { height: 64px !important; } }
