*{box-sizing:border-box}
html{scroll-behavior:smooth}
:root{
  --ink:#263744;
  --dusty:#7892a8;
  --steel:#506b7c;
  --slate:#3f5667;
  --sage:#9aaa8d;
  --soft:#f8f7f2;
  --paper:#e9eee9;
  --white:#fffefa;
  --line:#c8d2d2;
}
body{
  margin:0;
  background:var(--soft);
  color:var(--ink);
  font-family:"DM Sans",sans-serif;
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden
}
.site-nav{
  position:fixed;
  z-index:20;
  top:0;
  left:0;
  width:100%;
  height:70px;
  padding:0 4vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(#263744d9,#26374400);
  color:white;
  transition:background .5s ease,backdrop-filter .5s ease
}
.monogram{
  font:1.4rem "Cormorant Garamond",serif;
  letter-spacing:.14em;
  color:white;
  text-decoration:none
}
.monogram span{font-style:italic}
.site-nav nav{display:flex;gap:28px}
.site-nav nav a{
  color:white;
  text-decoration:none;
  font-size:.62rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  opacity:.9;
  transition:opacity .25s ease,transform .25s ease
}
.site-nav nav a:hover{opacity:1;transform:translateY(-1px)}

.hero{
  height:100svh;
  min-height:650px;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:white;
  text-align:center
}
.hero-image{
  position:absolute;
  inset:0;
  background:url("assets/northern-ireland-landscape.jpg") center/cover no-repeat;
  transform:scale(1.015);
  animation:heroBreath 14s ease-in-out infinite alternate
}
.hero-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,#26374455 0%,#26374418 40%,#263744c9 100%)
}
.hero-content{
  position:relative;
  z-index:2;
  padding:70px 20px 30px;
  animation:heroContentIn 1.3s cubic-bezier(.2,.75,.2,1) both
}
.kicker{
  margin:0 0 15px;
  font-size:.62rem;
  letter-spacing:.27em;
  text-transform:uppercase
}
.hero h1{
  margin:0;
  font:400 clamp(4.5rem,10vw,8.5rem)/.8 "Cormorant Garamond",serif;
  letter-spacing:.035em
}
.hero h1 i{
  display:block;
  font-size:.42em;
  line-height:1.1;
  text-transform:lowercase
}
.fine-rule{width:60px;border-top:1px solid #ffffff99;margin:35px auto 18px}
.hero-date{margin:0;font:1.45rem "Cormorant Garamond",serif}
.hero-place{
  margin:3px 0 0;
  font-size:.6rem;
  letter-spacing:.25em;
  text-transform:uppercase
}
.countdown{display:flex;justify-content:center;gap:20px;margin:27px 0 0}
.countdown div{min-width:52px}
.countdown strong{display:block;font:1.9rem/1 "Cormorant Garamond",serif;font-weight:500}
.countdown span{font-size:.5rem;letter-spacing:.14em;text-transform:uppercase;opacity:.8}
.scroll-cue{
  display:inline-block;
  margin-top:35px;
  color:white;
  text-decoration:none;
  font-size:.6rem;
  letter-spacing:.15em;
  text-transform:uppercase
}
.scroll-cue span{
  display:block;
  font-size:1.15rem;
  margin-top:4px;
  animation:float 1.8s ease-in-out infinite
}
.hero-suit{
  position:absolute;
  z-index:1;
  font:8rem "Cormorant Garamond",serif;
  opacity:.1
}
.suit-left{left:7%;top:28%}
.suit-right{right:8%;bottom:20%}

section{padding:105px 9vw}
.welcome{text-align:center;max-width:880px;margin:auto}
.tiny-suits{
  font-size:.95rem;
  letter-spacing:.42em;
  color:var(--steel);
  opacity:.65;
  margin-bottom:22px
}
.welcome h2,.details h2,.mystery h2,.belfast-teaser h2,.rsvp h2,.moments h2{
  margin:0 0 20px;
  font:500 clamp(2.8rem,5.3vw,5rem)/.92 "Cormorant Garamond",serif
}
.intro-copy{max-width:590px;margin:auto;font-size:1rem}

/* Refined 3D photo wheel */
.moments{
  padding-top:28px;
  padding-bottom:105px;
  background:var(--soft);
  overflow:hidden
}
.moments-heading{
  max-width:1100px;
  margin:0 auto 25px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px
}
.moments-heading h2{
  font-size:clamp(2.4rem,4.5vw,4rem);
  margin-bottom:0
}
.moments-note{
  max-width:330px;
  margin:0 0 3px;
  font-size:.78rem;
  color:var(--steel)
}
.moment-stage{
  position:relative;
  max-width:1280px;
  height:390px;
  margin:auto;
  padding:0 50px;
  display:flex;
  align-items:center;
  justify-content:center;
  perspective:1400px;
  perspective-origin:50% 48%;
  cursor:grab;
  touch-action:pan-y;
  isolation:isolate
}
.moment-stage::before,
.moment-stage::after{
  content:"";
  position:absolute;
  z-index:6;
  top:0;
  bottom:0;
  width:15%;
  pointer-events:none
}
.moment-stage::before{
  left:0;
  background:linear-gradient(90deg,var(--soft) 4%,rgba(248,247,242,.9) 32%,rgba(248,247,242,0) 100%)
}
.moment-stage::after{
  right:0;
  background:linear-gradient(270deg,var(--soft) 4%,rgba(248,247,242,.9) 32%,rgba(248,247,242,0) 100%)
}
.moment-stage.is-dragging{cursor:grabbing}
.moment-wheel{
  position:relative;
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  transform:translateZ(-20px);
  user-select:none
}
.moment-card{
  position:absolute;
  left:50%;
  top:50%;
  width:auto;
  height:310px;
  margin:-155px 0 0 0;
  padding:0;
  transform-style:preserve-3d;
  will-change:transform,opacity,filter;
  transition:
    transform .72s cubic-bezier(.16,.72,.2,1),
    opacity .62s ease,
    filter .62s ease;
  pointer-events:none
}
.moment-card::after{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(38,55,68,.08);
  opacity:0;
  transform:translateZ(1px);
  transition:opacity .55s ease;
  pointer-events:none
}
.moment-card.is-active::after{opacity:1}
.moment-photo{
  width:100%;
  height:100%;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  border-radius:2px;
  box-shadow:0 18px 45px rgba(38,55,68,.12);
  transform:translateZ(0);
  transition:box-shadow .7s ease
}
.moment-card.is-active .moment-photo{
  box-shadow:0 26px 60px rgba(38,55,68,.18)
}
.moment-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none
}
.moment-arrow{
  position:absolute;
  z-index:10;
  top:50%;
  margin-top:-18px;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:50%;
  background:rgba(248,247,242,.86);
  backdrop-filter:blur(8px);
  color:var(--slate);
  font-size:1rem;
  cursor:pointer;
  transition:background .25s ease,border-color .25s ease,transform .25s ease,box-shadow .25s ease
}
.moment-arrow:hover{
  background:rgba(255,255,255,.98);
  border-color:var(--dusty);
  transform:scale(1.07);
  box-shadow:0 8px 24px rgba(38,55,68,.12)
}
.moment-arrow:active{transform:scale(.96)}
.moment-arrow.prev{left:9px}
.moment-arrow.next{right:9px}
.moment-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:12px
}
.moment-dots button{
  width:6px;
  height:6px;
  border:0;
  border-radius:50%;
  padding:0;
  background:#c5cfcc;
  cursor:pointer;
  transition:transform .3s ease,background .3s ease
}
.moment-dots button.active{
  background:var(--steel);
  transform:scale(1.45)
}

.details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9vw;
  background:var(--steel);
  color:var(--white)
}
.detail-copy{padding-top:3px}
.detail-copy p{margin:0 0 22px}
.detail-copy span{
  display:block;
  margin-bottom:1px;
  font-size:.58rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.68
}
.mystery{
  display:grid;
  grid-template-columns:220px 1fr;
  align-items:center;
  gap:8vw;
  background:var(--paper)
}
.card-back{
  width:190px;
  height:275px;
  margin:auto;
  background:var(--slate);
  border:9px solid #f7f8f4;
  outline:1px solid var(--slate);
  border-radius:10px;
  box-shadow:0 15px 36px #26374422;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:12px;
  color:#fff;
  transform:rotate(-3deg)
}
.card-pattern{
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  font:2.8rem/1 "Cormorant Garamond",serif;
  border:1px solid #ffffff55;
  margin:4px
}
.card-pattern small{
  display:block;
  width:100%;
  margin:0;
  font-size:1rem;
  line-height:1;
  text-align:center;
  transform:none
}
.card-corner{font:1rem "Cormorant Garamond"}
.card-corner.bottom{align-self:flex-end;transform:rotate(180deg)}
.mystery-copy p:not(.kicker){max-width:500px}
.mini-suits{margin-top:22px;letter-spacing:.42em;color:var(--steel);opacity:.7}
.belfast-teaser{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:6vw;
  align-items:center
}
.teaser-image{
  height:410px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(38,55,68,.12)
}
.teaser-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 1.2s cubic-bezier(.2,.7,.2,1)
}
.belfast-teaser.visible .teaser-image img{transform:scale(1.025)}
.teaser-copy{max-width:510px}
.teaser-copy p{max-width:490px}
.coming-soon{font:1.2rem "Cormorant Garamond",serif;color:var(--steel)}
.rsvp{text-align:center;background:var(--soft)}
.rsvp p:not(.kicker){margin:0 auto;max-width:480px}
footer{
  padding:22px 5vw;
  background:var(--slate);
  color:#d8e0e2;
  display:flex;
  justify-content:space-between;
  font-size:.58rem;
  letter-spacing:.11em;
  text-transform:uppercase
}
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .9s ease,transform 1s cubic-bezier(.2,.7,.2,1)
}
.reveal.visible{opacity:1;transform:none}

@keyframes heroBreath{
  from{transform:scale(1.015)}
  to{transform:scale(1.055)}
}
@keyframes heroContentIn{
  from{opacity:0;transform:translateY(20px) scale(.985)}
  to{opacity:1;transform:none}
}
@keyframes float{
  50%{transform:translateY(5px)}
}

@media(max-width:900px){
  .moment-stage{height:360px}
  .moment-card{width:auto;height:285px;margin:-142.5px 0 0 0}
}
@media(max-width:750px){
  .site-nav nav{display:none}
  .hero h1{font-size:clamp(4rem,17vw,6.4rem)}
  .countdown{gap:8px}
  .countdown div{min-width:46px}
  .countdown strong{font-size:1.6rem}
  section{padding:78px 24px}
  .moments{padding-top:10px;padding-bottom:78px}
  .moments-heading{display:block;margin-bottom:10px}
  .moments-note{margin-top:10px}
  .moment-stage{
    height:320px;
    padding:0 20px;
    perspective:1100px
  }
  .moment-card{
    width:auto;
    height:255px;
    margin:-127.5px 0 0 0
  }
  .moment-stage::before,
  .moment-stage::after{width:22%}
  .moment-arrow.prev{left:2px}
  .moment-arrow.next{right:2px}
  .details,.mystery,.belfast-teaser{
    grid-template-columns:1fr;
    gap:30px
  }
  .card-back{margin:0 auto}
  .teaser-image{height:290px}
  footer{flex-direction:column;gap:7px;text-align:center}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-image{animation:none}
  .scroll-cue span{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
  .teaser-image img{transition:none}
  .moment-card{transition:none}
}


/* Aspect-ratio-aware wheel cards: the image height is fixed while its natural
   width is preserved. JS uses the resulting width when calculating spacing. */
.moment-card{
  left:50%;
  top:50%;
  width:max-content;
}
.moment-photo{
  width:max-content;
  min-width:1px;
  height:100%;
  aspect-ratio:auto;
}
.moment-photo img{
  width:auto;
  height:100%;
  max-width:none;
  object-fit:contain;
}


/* The wheel is intentionally passive: it advances automatically. */
.moment-stage{
  cursor:default;
  touch-action:auto;
}
.moment-card{
  pointer-events:none;
}
.moment-arrow{
  display:none;
}
.moment-dots{
  gap:7px;
  margin-top:14px;
}
.moment-dots button{
  display:none;
}
.moment-dots span{
  width:5px;
  height:5px;
  display:block;
  border-radius:50%;
  background:#c5cfcc;
  opacity:.55;
  transition:transform .6s ease,opacity .6s ease;
}
.moment-dots span.active{
  transform:scale(1.5);
  opacity:1;
}


/* v1.8 wheel geometry */
.moment-stage{
  width:100vw;
  max-width:none;
  margin-left:calc(50% - 50vw);
  padding:0;
  height:390px;
  overflow:hidden;
  cursor:default;
  touch-action:auto;
  perspective:1500px;
  perspective-origin:50% 48%;
}
.moment-stage::before,
.moment-stage::after{
  z-index:20;
  width:18vw;
  max-width:260px;
}
.moment-stage::before{
  left:0;
  background:linear-gradient(90deg,
    var(--soft) 0%,
    rgba(248,247,242,.92) 20%,
    rgba(248,247,242,.55) 48%,
    rgba(248,247,242,0) 100%);
}
.moment-stage::after{
  right:0;
  background:linear-gradient(270deg,
    var(--soft) 0%,
    rgba(248,247,242,.92) 20%,
    rgba(248,247,242,.55) 48%,
    rgba(248,247,242,0) 100%);
}
.moment-wheel{
  width:100%;
  height:100%;
  overflow:visible;
}
.moment-card{
  left:50%;
  top:50%;
  width:max-content;
  height:310px;
  margin-top:-155px;
  margin-right:0;
  padding:0;
  transform-origin:50% 50%;
  transition:
    transform .82s cubic-bezier(.2,.72,.18,1),
    opacity .62s ease,
    filter .62s ease;
}
.moment-photo{
  width:max-content;
  height:100%;
}
.moment-photo img{
  width:auto;
  height:100%;
  max-width:none;
  object-fit:contain;
}
.moment-arrow{display:none}
.moment-dots{
  position:relative;
  z-index:30;
  gap:7px;
  margin-top:14px;
}
.moment-dots button{display:none}
.moment-dots span{
  width:5px;
  height:5px;
  display:block;
  border-radius:50%;
  background:#c5cfcc;
  opacity:.45;
  transition:transform .6s ease,opacity .6s ease;
}
.moment-dots span.active{
  transform:scale(1.5);
  opacity:1;
}

@media(max-width:750px){
  .moment-stage{
    height:320px;
    padding:0;
  }
  .moment-stage::before,
  .moment-stage::after{
    width:24vw;
  }
  .moment-card{
    height:255px;
    margin-top:-127.5px;
  }
}
