/* ── CUSTOM FONT ── */
@font-face {
  font-family: 'Quaylike';
  src: url('Quaylike.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { background: #fff; font-family: 'Jost', sans-serif; font-weight: 300; color: #2A1F0E; }

/* ════════════════════════════════════════
   LANDING — ENVELOPE + WAX SEAL
════════════════════════════════════════ */
#landing {
  position: fixed; inset: 0; z-index: 9999;
  cursor: pointer; overflow: hidden;
  background-color: #EDE8DF;
  background-image:
    linear-gradient(135deg, transparent 49.2%, rgba(180,160,120,.22) 49.2%, rgba(180,160,120,.22) 50.8%, transparent 50.8%),
    linear-gradient(45deg,  transparent 49.2%, rgba(180,160,120,.22) 49.2%, rgba(180,160,120,.22) 50.8%, transparent 50.8%);
}
#landing::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 52%;
  background: #E8E2D7;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .65s cubic-bezier(.4,0,.2,1), opacity .45s ease .25s;
  z-index: 2;
  border-bottom: 1px solid rgba(180,160,120,.28);
}
#landing::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 48%;
  background: #E4DDD2;
  clip-path: polygon(0 100%, 100% 100%, 50% 0%);
  z-index: 1;
  border-top: 1px solid rgba(180,160,120,.22);
}
#landing.opening::before {
  transform: perspective(800px) rotateX(-180deg);
  opacity: 0;
}
#landing.hide {
  opacity: 0; pointer-events: none;
  transition: opacity .55s ease .3s;
}

/* Seal */
.seal-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 250px; height: 250px;
  z-index: 10;
  transition: transform .32s ease, opacity .32s ease, filter .32s ease;
  filter: drop-shadow(0 8px 28px rgba(80,58,10,.32));
}
.seal-wrap:hover  { transform: translate(-50%,-50%) scale(1.05); }
.seal-wrap:active { transform: translate(-50%,-50%) scale(.96); }
#landing.opening .seal-wrap { transform: translate(-50%,-55%) scale(.82); opacity: 0; }
.seal-img { width: 250px; height: 250px; object-fit: contain; display: block; margin: auto; }
.seal-hint {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: .42em;
  color: rgba(140,110,60,.7); text-transform: uppercase; white-space: nowrap;
  animation: hintPulse 2.2s ease-in-out infinite;
}

/* ════════════════════════════════════════
   MAIN SITE
════════════════════════════════════════ */
#site { opacity: 0; transition: opacity 1s ease .5s; width: 100%; }
#site.show { opacity: 1; }

/* ════════════════════════════════════════
   HERO  — matches screenshot exactly
   Photo top / white card bottom (mobile)
   Photo left / card right (desktop ≥900px)
════════════════════════════════════════ */
.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;   /* ← mobile: stacked */
  background: #fff;
}

/* Photo */
.hero-photo {
  width: 100%;
  height: 44vh;
  min-height: 210px;
  max-height: 420px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f0e8;
}
.hero-photo-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  display: block;
}

/* White card */
.hero-card {
  flex: 1;
  background: #fff;
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 28px 48px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1),
              transform .9s cubic-bezier(.22,1,.36,1);
}

.hero-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Baroque ornament */
.hero-ornament {
  width: min(480px, 107vw);
  margin-top: -184px;
  margin-bottom: 4px;
  position: absolute;
  z-index: 0;
  animation: fadeDown .8s .2s cubic-bezier(.22,1,.36,1) both;

}
.hero-ornament img { width: 100%; height: auto; display: block; }

/* Label */
.label2 {
  font-family: 'Ariel', serif;
  font-size: 24px; letter-spacing: .44em;
  color: #9B8468; text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0; animation: fadeUp .8s .3s ease forwards;
}

.name-img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}



/* Names */
.names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-bottom: 4px;
  opacity: 0;
  animation: fadeUp .8s .45s ease forwards;
}
.name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(52px, 14vw, 30px);
  color: #C9841A;
  line-height: 1.1;
}
.amp {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 7vw, 52px);
  font-weight: 600; color: #8B7355; line-height: 1;
  opacity: 0; animation: fadeUp .8s .5s ease forwards;
}

/* Separator */
.sep {
  width: min(280px, 68vw); height: 1px;
  background: linear-gradient(to right, transparent, #C9A84C, transparent);
  margin: 18px auto;
  opacity: 0; animation: fadeUp .8s .62s ease forwards;
}
.sep.short { width: min(160px, 42vw); margin: 16px auto; }

/* Date */
.date {
  font-family: 'Cinzel', serif;
  font-size: clamp(12px, 3.2vw, 16px);
  font-weight: 600; letter-spacing: .16em;
  color: #C9841A; margin-bottom: 8px;
  opacity: 0; animation: fadeUp .8s .74s ease forwards;
}

/* Time */
.time {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 5.5vw, 34px);
  font-weight: 700; letter-spacing: .12em;
  color: #8B7355;
  opacity: 0; animation: fadeUp .8s .86s ease forwards;
}

/* RSVP */
.rsvp {
  display: inline-block; margin-top: 22px;
  font-family: 'Cinzel', serif;
  font-size: 12px; font-weight: 700; letter-spacing: .4em;
  color: #8B7355; text-decoration: none;
  border-bottom: 1.5px solid #C9A84C; padding-bottom: 3px;
  opacity: 0; animation: fadeUp .8s 1s ease forwards;
  transition: color .2s, border-color .2s;
}
.rsvp:hover { color: #C9841A; border-color: #C9841A; }

/* Scroll cue */
.scroll-cue {
  margin-top: 28px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  opacity: 0; animation: fadeUp .8s 1.2s ease forwards;
}
.scroll-cue span { font-size: 9px; letter-spacing: .32em; color: #9B8468; text-transform: uppercase; }
.scroll-bar { width: 1px; height: 32px; background: linear-gradient(to bottom, #C9A84C, transparent); animation: scrollPulse 2s 2s infinite; }

/* Large screens — still column, just bigger photo */
@media (min-width: 900px) {
  .hero-photo {
    height: 45vh;
    max-height: 600px;
  }
  .name {
    font-size: clamp(52px, 8vw, 90px);
  }
}

/* ════════════════════════════════════════
   DETAILS BAND
════════════════════════════════════════ */
.details-band {
  width: 100%; background: #F5EDD8;
  border-top: 1px solid rgba(201,168,76,.3);
  border-bottom: 1px solid rgba(201,168,76,.3);
  display: flex; align-items: stretch; flex-wrap: wrap;
}
.db-col { flex: 1; min-width: 130px; padding: 38px 22px; text-align: center; border-right: 1px solid rgba(201,168,76,.22); }
.db-col:last-child { border-right: none; }
@media (max-width: 640px) {
  .db-col { flex: 50%; border-bottom: 1px solid rgba(201,168,76,.18); }
  .db-col:nth-child(2) { border-right: none; }
}
.dl { font-family: 'Cinzel', serif; font-size: 8.5px; letter-spacing: .44em; color: #C9A84C; text-transform: uppercase; margin-bottom: 10px; }
.dv { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px,3vw,30px); font-weight: 400; color: #2A1F0E; line-height: 1.25; }
.dv.small   { font-size: clamp(16px,2.5vw,24px); }
.dv.smaller { font-size: clamp(13px,1.8vw,18px); }
.ds { font-size: 11px; color: #9B8468; margin-top: 5px; }
.dm { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: .28em; color: #C9A84C; text-transform: uppercase; margin-top: 3px; }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
.sec { width: 100%; padding: 68px 120px; border-bottom: 1px solid rgba(201,168,76,.18); }
@media (max-width: 768px) { .sec { padding: 52px 44px; } }
@media (max-width: 480px) { .sec { padding: 44px 22px; } }
.sec-inner { max-width: 780px; margin: 0 auto; }
.sec-label { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: .46em; color: #C9A84C; text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.sec-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,4vw,48px); font-weight: 300; font-style: italic; color: #2A1F0E; text-align: center; margin-bottom: 42px; line-height: 1.2; }

.quote-sec { background: #FDFAF3; padding: 56px 44px; text-align: center; }
.qt { font-family: 'Cormorant Garamond', serif; font-size: clamp(16px,2.4vw,24px); font-weight: 300; font-style: italic; color: #2A1F0E; max-width: 600px; margin: 0 auto; line-height: 1.85; }
.qt::before { content: '\201C'; color: #C9A84C; font-size: 2.2em; line-height: 0; vertical-align: -.44em; margin-right: 3px; }
.qt::after  { content: '\201D'; color: #C9A84C; font-size: 2.2em; line-height: 0; vertical-align: -.44em; margin-left:  3px; }

.prog-sec { background: #F5EDD8; }
.prog-list { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.prog-item { display: flex; align-items: flex-start; gap: 22px; }
.prog-time { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .12em; color: #C9A84C; min-width: 60px; padding-top: 3px; text-align: right; }
.prog-vline { width: 1px; background: rgba(201,168,76,.3); flex-shrink: 0; align-self: stretch; min-height: 40px; }
.prog-body strong { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; color: #2A1F0E; display: block; }
.prog-body span { font-size: 12px; color: #9B8468; }

.cd-sec { background: #FDFAF3; text-align: center; }
.cd-wrap { display: flex; justify-content: center; gap: clamp(16px,4vw,52px); flex-wrap: wrap; margin-top: 34px; }
.cd-block { text-align: center; min-width: 56px; }
.cd-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px,7vw,66px); font-weight: 300; color: #2A1F0E; display: block; line-height: 1; }
.cd-lbl { font-family: 'Cinzel', serif; font-size: 8px; letter-spacing: .34em; color: #C9A84C; text-transform: uppercase; margin-top: 5px; }
.cd-dot { font-family: 'Cormorant Garamond', serif; font-size: 44px; color: rgba(201,168,76,.3); align-self: flex-start; padding-top: 6px; line-height: 1; }

.map-sec { background: #F5EDD8; text-align: center; }
.map-frame { width: 100%; max-width: 800px; height: 340px; border: 1px solid rgba(201,168,76,.3); display: block; margin: 28px auto 0; filter: sepia(10%) contrast(1.05); }
.map-addr { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.map-addr svg { width: 13px; height: 13px; stroke: #C9A84C; fill: none; stroke-width: 1.6; }
.map-addr span { font-size: 11px; letter-spacing: .2em; color: #9B8468; text-transform: uppercase; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer { width: 100%; padding: 56px 40px 60px; text-align: center; background: #FDFAF3; border-top: 1px solid rgba(201,168,76,.22); }
.footer-mono { font-family: 'Cormorant Garamond', serif; font-size: 50px; font-style: italic; font-weight: 300; color: #C9A84C; display: block; margin-bottom: 12px; }
.footer-names { font-size: 11px; letter-spacing: .26em; color: #9B8468; text-transform: uppercase; }
.fdvdr { display: flex; align-items: center; gap: 12px; max-width: 260px; margin: 16px auto; }
.fdvdr-l { flex: 1; height: .5px; background: linear-gradient(to right, transparent, rgba(201,168,76,.4), transparent); }
.fdvdr-d { width: 6px; height: 6px; background: #C9A84C; transform: rotate(45deg); }
.footer-sub { font-size: 9.5px; letter-spacing: .18em; color: #C9A84C; text-transform: uppercase; opacity: .6; }
.footer-love { font-size: 10px; letter-spacing: .14em; color: rgba(201,168,76,.4); text-transform: uppercase; margin-top: 14px; }

/* ════════════════════════════════════════
   UTILITIES
════════════════════════════════════════ */
.rev { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.rev.on { opacity: 1; transform: none; }

/* Scroll reveal */
.rev {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1),
              transform .8s cubic-bezier(.22,1,.36,1);
}
.rev.on {
  opacity: 1;
  transform: translateY(0);
}

/*
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
*/

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger children inside .prog-list and .cd-wrap */
.prog-list .prog-item:nth-child(1) { transition-delay: .05s; }
.prog-list .prog-item:nth-child(2) { transition-delay: .15s; }
.prog-list .prog-item:nth-child(3) { transition-delay: .25s; }
.prog-list .prog-item:nth-child(4) { transition-delay: .35s; }

.cd-wrap .cd-block:nth-child(1) { transition-delay: .05s; }
.cd-wrap .cd-block:nth-child(2) { transition-delay: .15s; }
.cd-wrap .cd-block:nth-child(3) { transition-delay: .25s; }
.cd-wrap .cd-block:nth-child(4) { transition-delay: .35s; }

.db-col:nth-child(1) { transition-delay: .05s; }
.db-col:nth-child(2) { transition-delay: .12s; }
.db-col:nth-child(3) { transition-delay: .19s; }
.db-col:nth-child(4) { transition-delay: .26s; }

@keyframes hintPulse   { 0%,100%{opacity:.4;} 50%{opacity:1;} }
@keyframes fadeUp      { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
@keyframes scrollPulse { 0%,100%{opacity:.25;} 50%{opacity:1;} }