/* ==========================================================================
   Arjun & Isha — "Written in the stars"
   ========================================================================== */

/* Fonts (bundled locally — works offline) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/allura-latin-400-normal.woff2") format("woff2"); }

:root {
  --night: #0e1430;
  --night-2: #151c43;
  --night-3: #1d2556;
  --ink: #1a2046;
  --ink-soft: #4a4d6a;
  --muted: #77738a;
  --cream: #faf4ed;
  --cream-2: #f6eee6;
  --blush: #f6eff2;
  --lav: #efe6f3;
  --lav-2: #e2d3ec;
  --wish: #f3ebf3;
  --gold: #c7a066;
  --gold-2: #e5cb9d;
  --gold-3: #a8834c;
  --star: #fff7e6;
  --line: rgba(26, 32, 70, .16);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;

  --ease: cubic-bezier(.2, .75, .12, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; font-weight: 300; }
::selection { background: var(--gold-2); color: var(--night); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}
.display em { font-weight: 400; }
.display--md { font-size: clamp(2rem, 3.4vw, 3rem); }
.display--sm { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.display--light { color: var(--cream); }

.caps {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 2;
  margin: 0;
}
.caps--light { color: rgba(250, 244, 237, .86); }
.caps--strong { color: var(--cream); font-weight: 500; }

.eyebrow-script {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--ink-soft);
  margin: 0;
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow-script--sm { font-size: 1.3rem; }

.tiny-star { width: 12px; height: 12px; fill: var(--gold); flex: none; animation: twinkle 3.2s ease-in-out infinite; }
.tiny-star--lead { width: 14px; height: 14px; margin-right: .7em; vertical-align: .15em; display: inline-block; }

.rule { display: block; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity: .7; }

/* --------------------------------------------------------------------------
   Reveal system
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(8px);
  transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s), filter 1.2s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

.reveal-lines > span { display: block; overflow: hidden; padding: .06em .1em .14em 0; margin-bottom: -.12em; }
.reveal-lines .rl-in {
  display: inline-block;
  transform: translate3d(0, 115%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.4s var(--ease) calc(var(--i, 0) * .12s);
}
.reveal-lines.is-in .rl-in { transform: none; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; pointer-events: all; }
.loader__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; transition: opacity .8s; }
.loader__curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: radial-gradient(120% 140% at 50% 100%, var(--night-2), var(--night)); z-index: 0; transition: transform 1.3s var(--ease-io); }
.loader__curtain--top { top: 0; }
.loader__curtain--bottom { bottom: 0; background: radial-gradient(120% 140% at 50% 0%, var(--night-2), var(--night)); }
.loader__inner { position: relative; z-index: 2; text-align: center; transition: opacity .7s, transform 1s var(--ease); }
.loader__mono { width: 150px; height: 86px; overflow: visible; }
.loader__letter { font-family: var(--serif); font-size: 62px; font-weight: 300; fill: transparent; stroke: var(--gold-2); stroke-width: .7; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 2.2s var(--ease) forwards, fillIn 1s ease 1.4s forwards; }
.loader__letter + line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 64; stroke-dashoffset: 64; animation: draw 1.4s var(--ease) .4s forwards; }
.loader__line { margin: 18px 0 22px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: rgba(250, 244, 237, .72); letter-spacing: .02em; }
.loader__dots i { font-style: normal; animation: dot 1.4s infinite; opacity: 0; }
.loader__dots i:nth-child(2) { animation-delay: .2s; }
.loader__dots i:nth-child(3) { animation-delay: .4s; }
.loader__progress { width: 160px; height: 1px; margin: 0 auto; background: rgba(229, 203, 157, .18); overflow: hidden; }
.loader__progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, transparent, var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.loader.is-done { pointer-events: none; }
.loader.is-done .loader__inner { opacity: 0; transform: scale(.92); }
.loader.is-done .loader__stars { opacity: 0; }
.loader.is-done .loader__curtain--top { transform: translateY(-101%); transition-delay: .35s; }
.loader.is-done .loader__curtain--bottom { transform: translateY(101%); transition-delay: .35s; }
.loader.is-gone { display: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--gold-2); } }
@keyframes dot { 0%, 100% { opacity: 0; } 40% { opacity: 1; } }

/* --------------------------------------------------------------------------
   Cursor, grain, progress
   -------------------------------------------------------------------------- */
/* Custom cursor: above every layer (opening screen, lightbox, film, toast), with a dark outline so it
   reads on the cream sections as well as the night ones */
.cursor { position: fixed; left: 0; top: 0; z-index: 10100; pointer-events: none; opacity: 0; transition: opacity .4s; }
.has-cursor .cursor { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate3d(-100px, -100px, 0); will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--gold-2); box-shadow: 0 0 0 1.5px rgba(14, 20, 48, .75), 0 0 10px rgba(229, 203, 157, .9); }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(199, 160, 102, .95); box-shadow: 0 0 0 1px rgba(14, 20, 48, .35), inset 0 0 0 1px rgba(14, 20, 48, .25); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s; }
.cursor.is-hover .cursor__ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(229, 203, 157, .16); border-color: var(--gold-2); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor.is-text { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor .slide { cursor: none; }
  /* typing: the normal text cursor, so the caret position is clear */
  .has-cursor input, .has-cursor textarea { cursor: text; }
  .has-cursor select { cursor: pointer; }
}
.sparkle-trail, .burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8999; }

.grain {
  position: fixed; inset: -50%; z-index: 8000; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2), #fff); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(229, 203, 157, .8); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--gutter);
  color: var(--cream);
  transition: padding .6s var(--ease), background-color .6s, transform .7s var(--ease), box-shadow .6s;
  transform: translateY(-120%);
}
.is-ready .header { transform: none; transition-delay: 0s, 0s, .9s, 0s; }
.header.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(14, 20, 48, .92); /* near-solid: page text no longer shows through the bar */
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(229, 203, 157, .14), 0 20px 40px -30px rgba(0, 0, 0, .6);
}
.header.is-hidden { transform: translateY(-110%); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; font-weight: 300; letter-spacing: .04em; line-height: 1; }
.logo i { width: 1px; height: 26px; background: linear-gradient(transparent, var(--gold-2), transparent); }
.logo span { transition: transform .5s var(--ease), color .4s; }
.logo:hover span:first-child { transform: translateX(-3px); color: var(--gold-2); }
.logo:hover span:last-child { transform: translateX(3px); color: var(--gold-2); }

.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; position: relative; padding: 6px 0; opacity: .88; transition: opacity .3s, color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover, .nav a.is-active { opacity: 1; color: var(--gold-2); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.sound { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 8px 0; }
.sound b { font-weight: 400; color: var(--gold-2); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 2px; transition: height .3s; }
.sound.is-on .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound.is-on .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.burger { display: none; width: 40px; height: 40px; position: relative; z-index: 1300; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1px; background: var(--cream); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; left: 15px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; left: 9px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 1050; background: radial-gradient(120% 80% at 80% 0%, var(--night-3), var(--night) 60%);
  display: flex; flex-direction: column; justify-content: center; padding: 0 32px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path 1s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu__nav { position: relative; display: flex; flex-direction: column; gap: 6px; }
.menu__nav a { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.4rem, 11vw, 3.6rem); color: var(--cream); line-height: 1.15; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease); display: flex; align-items: baseline; gap: 16px; }
.menu__nav a em { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--gold-2); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .38s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .46s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .54s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .62s; }
.menu__foot { position: absolute; bottom: 36px; left: 32px; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(250, 244, 237, .5); }

/* --------------------------------------------------------------------------
   Waves
   -------------------------------------------------------------------------- */
.wave { position: absolute; left: 0; width: 200%; height: clamp(60px, 9vw, 130px); pointer-events: none; z-index: 5; animation: waveDrift 38s linear infinite; }
.wave path { fill: currentColor; }
.wave path.back { fill: none; stroke: var(--gold-2); stroke-width: 1; opacity: .75; vector-effect: non-scaling-stroke; }
.wave--hero { bottom: -1px; color: var(--cream); }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; animation-duration: 46s; animation-direction: reverse; }
.wave--cream { color: var(--cream); }
.wave--blush { color: var(--blush); }
.wave--lav { color: var(--lav); }
.wave--wish { color: var(--wish); }
@keyframes waveDrift { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: linear-gradient(180deg, #0f1528 0%, #111726 60%, #121a32 100%); color: var(--cream); isolation: isolate; }
.hero__media { position: absolute; left: -3%; right: -3%; bottom: -6%; height: max(52vw, 80%); z-index: 0; will-change: transform; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%); mask-image: linear-gradient(180deg, transparent 0%, #000 9%); }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 74% 42%;
  transform: scale(1.16) translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 2.8s var(--ease);
  filter: saturate(1.04) contrast(1.03);
}
.is-ready .hero__img { transform: scale(1.04) translate3d(var(--mx, 0), var(--my, 0), 0); transition: transform 3.4s var(--ease); }
.is-ready.hero-settled .hero__img { transition: none; }
.hero__stars, .dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__stars { mix-blend-mode: screen; }
.dust { z-index: 3; mix-blend-mode: screen; }
.hero__moonglow { position: absolute; z-index: 1; width: 46vw; height: 46vw; right: 6vw; top: -6vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 205, .22), rgba(255, 236, 205, 0) 62%); mix-blend-mode: screen; animation: glow 7s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 50% { opacity: .55; transform: scale(1.06); } }
.silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 3s ease 1.2s; }
.is-ready .silk { opacity: .8; }
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 14, 36, .9) 0%, rgba(10, 14, 36, .66) 28%, rgba(10, 14, 36, .18) 52%, transparent 66%),
    linear-gradient(180deg, rgba(10, 14, 36, .55) 0%, transparent 18%, transparent 70%, rgba(10, 14, 36, .45) 100%);
}
.hero__content { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gutter) 120px; max-width: 760px; }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.9rem, 6.1vw, 6.4rem); line-height: .98; letter-spacing: -.018em; color: #f8f1e7; text-shadow: 0 4px 40px rgba(5, 8, 25, .5); }
.hero__title .line { display: block; white-space: nowrap; }
.hero__title em { font-weight: 300; }
.hero__title .word { display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0) rotate(2deg); filter: blur(12px); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.4s var(--ease); transition-delay: calc(.55s + var(--i, 0) * .1s); }
.is-ready .hero__title .word { opacity: 1; transform: none; filter: none; }
.hero__ornament { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .25em; width: 1.3em; position: relative; top: -.08em; opacity: 0; transition: opacity 1.5s ease 1.4s; }
.is-ready .hero__ornament { opacity: 1; }
.hero__ornament i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.hero__ornament svg { width: .32em; height: .32em; fill: var(--star); filter: drop-shadow(0 0 6px #ffe7b9); animation: twinkle 2.6s ease-in-out infinite; }

.hero__names { display: flex; align-items: center; gap: 22px; margin-top: clamp(22px, 3vw, 36px); max-width: 520px; opacity: 0; transform: translateY(18px); transition: opacity 1.4s var(--ease) 1.3s, transform 1.4s var(--ease) 1.3s; }
.is-ready .hero__names { opacity: 1; transform: none; }
.hero__names p { margin: 0; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.hero__couple { font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.35rem); letter-spacing: .34em; text-transform: uppercase; padding-left: .34em; white-space: nowrap; }
.hero__date { font-family: var(--sans); font-size: 11px; letter-spacing: .36em; padding-left: .36em; color: rgba(250, 244, 237, .78); text-transform: uppercase; }

.enter { position: relative; margin-top: clamp(28px, 4vw, 48px); width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; opacity: 0; transform: scale(.8); transition: opacity 1.2s var(--ease) 1.6s, transform 1.4s var(--ease) 1.6s; }
.is-ready .enter { opacity: 1; transform: none; }
.enter__ring { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); animation: spin 26s linear infinite; overflow: visible; }
.enter__ring text { font-family: var(--sans); font-size: 6.6px; letter-spacing: .32em; text-transform: uppercase; fill: rgba(229, 203, 157, .75); }
.enter__core {
  width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(229, 203, 157, .55);
  background: radial-gradient(circle at 50% 30%, rgba(255, 240, 215, .08), rgba(14, 20, 48, .35));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; text-align: center; line-height: 1.7;
  transition: background-color .5s, border-color .5s, box-shadow .6s;
  position: relative; overflow: hidden;
}
.enter__core::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(229, 203, 157, .55) 85%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 64px, #000 65px); mask: radial-gradient(circle, transparent 64px, #000 65px); animation: sweep 4s linear infinite; }
.enter:hover .enter__core { border-color: var(--gold-2); box-shadow: 0 0 50px rgba(229, 203, 157, .3), inset 0 0 30px rgba(229, 203, 157, .12); }
.enter__star { width: 10px; height: 10px; fill: var(--gold-2); }
/* the arrow points down (the button scrolls to the next section) and gently bobs */
.enter__arrow { width: 18px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.2; transform: rotate(90deg); animation: enterBob 2.2s ease-in-out infinite; }
.enter:hover .enter__arrow { animation-duration: 1.1s; }
@keyframes enterBob { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(5px); } }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --a: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue { position: absolute; z-index: 6; left: 50%; bottom: clamp(80px, 11vw, 150px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--sans); font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: rgba(250, 244, 237, .7); opacity: 0; transition: opacity 1s 2.2s; }
.is-ready .scroll-cue { opacity: 1; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(rgba(229, 203, 157, .0), var(--gold-2)); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* --------------------------------------------------------------------------
   COUNTDOWN
   -------------------------------------------------------------------------- */
.countdown { position: relative; background: var(--cream); padding: clamp(30px, 4vw, 60px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.countdown__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 30px; min-height: 260px; }
.countdown .display { grid-column: 1 / -1; font-style: italic; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit__path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.orbit__path--2 { stroke-dasharray: 2 7 !important; opacity: .3; }
.orbit__planet { fill: var(--ink); }
.orbit__planet--sm { fill: var(--gold-3); }
.orbit__planet--gold { fill: url(#none); fill: #d8bb8a; filter: drop-shadow(0 0 4px rgba(216, 187, 138, .9)); }

.timer { grid-column: 2; display: flex; align-items: flex-start; gap: clamp(14px, 2.6vw, 34px); padding-top: 8px; }
.timer__unit { text-align: center; min-width: clamp(64px, 8vw, 110px); }
.timer__num { position: relative; height: 1.05em; overflow: hidden; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.05; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.timer__num span { display: block; }
/* each digit rolls in its own clipped slot, so a changing digit never overlaps the others */
.timer__num > .d { display: inline-block; position: relative; height: 1.05em; overflow: hidden; vertical-align: top; }
.timer__num span.out { position: absolute; left: 0; right: 0; top: 0; animation: numOut .45s var(--ease-io) forwards; }
.timer__num span.in { animation: numIn .45s var(--ease-io) both; }
@keyframes numOut { to { transform: translateY(-100%); opacity: 0; } }
@keyframes numIn { from { transform: translateY(100%); opacity: 0; } }
.timer__unit > span { display: block; margin-top: 14px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.timer__sep { width: 1px; height: clamp(46px, 5vw, 70px); margin-top: .7em; background: linear-gradient(transparent, rgba(199, 160, 102, .55), transparent); }

.destiny { grid-column: 3; justify-self: end; display: flex; align-items: flex-end; gap: 20px; padding-bottom: 6px; }
.destiny p { margin: 0 0 50px; font-family: var(--sans); font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-3); line-height: 2; }
.destiny b { font-weight: 400; color: var(--gold); }

.moon {
  border-radius: 50%; position: relative; flex: none;
  background:
    radial-gradient(circle at 30% 34%, rgba(110, 112, 140, .45) 0 7%, transparent 8%),
    radial-gradient(circle at 62% 58%, rgba(110, 112, 140, .4) 0 9%, transparent 10%),
    radial-gradient(circle at 48% 24%, rgba(110, 112, 140, .28) 0 5%, transparent 6%),
    radial-gradient(circle at 70% 30%, rgba(110, 112, 140, .3) 0 4%, transparent 5%),
    radial-gradient(circle at 38% 70%, rgba(110, 112, 140, .3) 0 6%, transparent 7%),
    radial-gradient(circle at 36% 34%, #f4f2f7, #c8c7d6 46%, #7c7d96 100%);
  box-shadow: 0 0 28px rgba(205, 205, 235, .55), 0 0 80px rgba(205, 205, 235, .25), inset -9px -7px 16px rgba(30, 30, 60, .38);
  animation: float 9s ease-in-out infinite;
}
.moon--sm { width: 58px; height: 58px; }
/* countdown: two interlocking wedding rings beside "Two hearts, one beautiful journey" */
.rings { width: 84px; height: 62px; flex: none; overflow: visible; filter: drop-shadow(0 6px 14px rgba(168, 131, 76, .35)); animation: float 9s ease-in-out infinite; }
.rings__band { fill: none; stroke: url(#ringGold) #c7a066; stroke-width: 4.5; }
/* the same rings replace the moons in the story and gallery headings */
.rings.story__moon, .rings.gallery__moon { width: 84px; height: 62px; opacity: 1; }
@media (max-width: 900px) {
  .rings.story__moon { width: 60px; height: 44px; }
  .rings.gallery__moon { width: 50px; height: 37px; }
}
.rings__stone { fill: #fffaf0; stroke: #d4ae6c; stroke-width: 1.2; stroke-linejoin: round; }
.rings__spark { fill: var(--gold-2); transform-origin: 76px 14px; animation: twinkle 2.6s ease-in-out infinite; }
.moon--md { width: 66px; height: 66px; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }

.twinkles { position: absolute; inset: 0; pointer-events: none; }
.twinkles svg { position: absolute; fill: var(--gold); animation: twinkle var(--t, 3s) ease-in-out var(--dl, 0s) infinite; }
.twinkles svg.dark { fill: var(--ink); }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 3.2s var(--ease-io); }
.is-in .draw, .draw.is-in { stroke-dashoffset: 0; }

/* --------------------------------------------------------------------------
   COUPLE
   -------------------------------------------------------------------------- */
.couple { position: relative; background: linear-gradient(180deg, var(--lav) 0%, #f3ecf4 62%, var(--cream) 100%); padding: clamp(110px, 12vw, 170px) 0 clamp(30px, 4vw, 60px); overflow: hidden; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.couple__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 8vw, 140px); }
.couple .eyebrow-script { grid-column: 1 / -1; margin-bottom: 12px; }
.person { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); position: relative; }
.person--groom { justify-content: flex-start; }
.person--bride { justify-content: flex-end; margin-top: -30px; }
.person__text { flex: 0 0 auto; max-width: 230px; position: relative; z-index: 3; }
.person--groom .person__text { margin-top: -40px; }
.person--bride .person__text { margin-top: 60px; }
.person__name { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.person__parents { margin: 0 0 22px; font-family: var(--sans); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.9; }
.person__bio { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--ink-soft); }

.portrait { position: relative; margin: 0; width: clamp(200px, 22vw, 300px); flex: none; transform-style: preserve-3d; will-change: transform; }
.person--bride .portrait { width: clamp(214px, 24vw, 330px); }
.portrait img {
  width: 100%; height: auto; position: relative; z-index: 1;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 52% 48%, #000 55%, transparent 98%);
  mask-image: radial-gradient(ellipse 62% 60% at 52% 48%, #000 55%, transparent 98%);
  clip-path: inset(100% 0 0 0);
  transform: scale(1.12);
  transition: clip-path 1.6s var(--ease-io), transform 2.2s var(--ease);
}
.portrait.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.portrait__paper { position: absolute; inset: 10% 6% 8% 8%; z-index: 0; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; background: radial-gradient(circle at 40% 40%, rgba(200, 175, 225, .55), rgba(226, 211, 236, 0) 70%); filter: blur(18px); opacity: 0; transition: opacity 2s ease .6s; animation: blob 12s ease-in-out infinite; }
.portrait.is-in .portrait__paper { opacity: 1; }
@keyframes blob { 50% { border-radius: 55% 45% 40% 60% / 40% 60% 45% 55%; transform: scale(1.05) rotate(4deg); } }

.ampersand {
  position: absolute; left: 50%; top: 52%; z-index: 0; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(14rem, 26vw, 24rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(170, 150, 190, .45);
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(226, 211, 236, .45)); -webkit-background-clip: text; background-clip: text;
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   STORY
   -------------------------------------------------------------------------- */
.story { position: relative; background: var(--cream); padding: clamp(30px, 4vw, 50px) 0 clamp(20px, 3vw, 40px); overflow: hidden; }
.story__stage { position: relative; height: clamp(400px, 36vw, 500px); margin-top: 20px; }
.story__path { position: absolute; inset: 0 var(--gutter); width: calc(100% - var(--gutter) * 2); height: 100%; overflow: visible; }
.story__path path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.story__path .ghost { stroke-dasharray: 2 6; opacity: .25; }
.story__path .comet { fill: #fff6df; filter: drop-shadow(0 0 6px #e5cb9d) drop-shadow(0 0 14px #c7a066); }

.milestone { position: absolute; max-width: 200px; z-index: 3; }
.milestone small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 6px; }
.milestone h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.1; }
.milestone p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.milestone__dot { position: absolute; left: 0; top: -26px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(26, 32, 70, .08); }
.m1 { left: calc(var(--gutter) + 1%); top: 36%; }
.m1 .milestone__dot { top: -34px; }
.m2 { left: 41%; top: 6%; }
.m2 .milestone__dot { top: -22px; left: 0; }
.m3 { left: 52%; top: 58%; }

.polaroid { position: absolute; margin: 0; z-index: 2; padding: 9px 9px 9px; background: #fffdf9; box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 18px 40px -14px rgba(40, 30, 60, .35), 0 40px 70px -40px rgba(40, 30, 60, .3); transition: box-shadow .6s var(--ease); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.08) saturate(1.05); transition: transform 1.4s var(--ease); }
.polaroid::after { content: ""; position: absolute; inset: 9px; background: linear-gradient(130deg, rgba(255, 255, 255, .25), transparent 40%); pointer-events: none; }
.polaroid:hover { box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 30px 60px -18px rgba(40, 30, 60, .45); }
.polaroid:hover img { transform: scale(1.04); }
.p1 { left: 21%; top: 8%; width: clamp(150px, 17vw, 230px); aspect-ratio: 384 / 424; rotate: -5deg; }
.p2 { left: 67%; top: -2%; width: clamp(170px, 20vw, 270px); aspect-ratio: 460 / 352; rotate: 4deg; }
.p1.reveal, .p2.reveal { transform: translate3d(0, 60px, 0) scale(.94); }
.p1.reveal.is-in, .p2.reveal.is-in { transform: none; }
.story__moon { position: absolute; right: calc(var(--gutter) + 2%); top: 8%; }

.signature { position: absolute; right: var(--gutter); bottom: 0; text-align: right; }
.signature__svg { width: clamp(240px, 26vw, 360px); height: auto; overflow: visible; }
.signature__text { font-family: var(--script); font-size: 92px; fill: transparent; stroke: var(--ink-soft); stroke-width: .9; stroke-dasharray: 900; stroke-dashoffset: 900; }
.signature.is-in .signature__text { animation: draw 3.6s var(--ease-io) forwards, sigFill 1.4s ease 2.6s forwards; }
@keyframes sigFill { to { fill: #5b5d7c; stroke-width: 0; } }
.signature__note { margin: -6px 10px 0 0; font-family: var(--sans); font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: var(--ink-soft); line-height: 2; }

/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */
.gallery { position: relative; background: linear-gradient(180deg, var(--cream), var(--blush) 30%); padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 4vw, 60px); overflow: hidden; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gallery__ctrl { display: flex; align-items: center; gap: 18px; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; color: var(--ink-soft); }
.gallery__count b { font-weight: 500; color: var(--ink); display: inline-block; min-width: 1.4em; }
.arrow { width: 40px; height: 30px; display: grid; place-items: center; color: var(--ink); transition: transform .4s var(--ease), color .3s; }
.arrow svg { width: 26px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.arrow[data-gal="prev"]:hover { transform: translateX(-5px); color: var(--gold-3); }
.arrow[data-gal="next"]:hover { transform: translateX(5px); color: var(--gold-3); }
.gallery__moon { position: absolute; top: clamp(70px, 8vw, 110px); left: 54%; z-index: 0; width: 72px; height: 72px; opacity: .9; }

.carousel { position: relative; height: clamp(300px, 34vw, 460px); margin-top: clamp(30px, 4vw, 50px); perspective: 1600px; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.slide {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: var(--sw, 560px); height: var(--sh, 360px);
  transform: translate(-50%, -50%);
  transition: transform 1.1s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
  background: #fff; padding: 7px; box-shadow: 0 24px 60px -24px rgba(40, 30, 70, .45), 0 2px 6px rgba(40, 30, 70, .08);
  will-change: transform;
}
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.slide::after { content: ""; position: absolute; inset: 7px; background: linear-gradient(120deg, rgba(255, 255, 255, .28), transparent 35%, transparent 65%, rgba(255, 255, 255, .1)); opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.is-active::after { opacity: 1; }
.slide.is-active { cursor: zoom-in; }
.carousel.is-dragging .slide { transition: none; }

.carousel__nav { position: absolute; top: 50%; z-index: 50; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(26, 32, 70, .2); background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); transition: background-color .4s, border-color .4s, color .4s; }
.carousel__nav svg { width: 9px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.carousel__nav:hover { background: var(--night); color: var(--cream); border-color: var(--night); }
.carousel__nav--prev { left: max(var(--gutter), calc(50% - 600px)); }
.carousel__nav--next { right: max(var(--gutter), calc(50% - 600px)); }

.gallery__dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.gallery__dots button { width: 22px; height: 2px; background: rgba(26, 32, 70, .16); position: relative; overflow: hidden; transition: width .5s var(--ease), background-color .4s; }
.gallery__dots button.is-active { width: 46px; background: rgba(26, 32, 70, .16); }
.gallery__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--gold-3); transform-origin: left; animation: dotfill var(--auto, 5.5s) linear forwards; }
.carousel-paused .gallery__dots button.is-active::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } }

/* --------------------------------------------------------------------------
   FILM
   -------------------------------------------------------------------------- */
.film { position: relative; min-height: clamp(360px, 28vw, 460px); background: var(--night); color: var(--cream); overflow: hidden; display: flex; align-items: stretch; isolation: isolate; }
.film__media { position: absolute; inset: -4% 0; z-index: 0; }
.film__media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 60%; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-1%); } }
.film__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; mix-blend-mode: screen; }
.film__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 14, 36, .78) 0%, rgba(10, 14, 36, .35) 40%, rgba(10, 14, 36, .1) 70%), linear-gradient(180deg, transparent 45%, var(--night) 94%); }
.film__inner { position: relative; z-index: 3; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(80px, 7vw, 110px); padding-bottom: 50px; }
.film__copy .caps { margin-top: 22px; }
.play { position: absolute; left: 50%; top: 56%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .5s, transform .5s var(--ease), border-color .5s; }
.play svg { width: 28px; height: 28px; fill: var(--cream); margin-left: 4px; transition: fill .4s; }
.play:hover { background: rgba(250, 244, 237, .92); border-color: #fff; }
.play:hover svg { fill: var(--night); }
.play__pulse { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: pulse 3s var(--ease) infinite; pointer-events: none; }
.play__pulse + .play__pulse { animation-delay: 1.5s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* --------------------------------------------------------------------------
   DETAILS
   -------------------------------------------------------------------------- */
.details { position: relative; color: var(--cream); padding: clamp(40px, 5vw, 70px) 0 clamp(120px, 13vw, 180px); overflow: hidden; background: linear-gradient(180deg, var(--night) 0, rgba(14, 20, 48, 0) 180px), radial-gradient(70% 90% at 80% 30%, #1c2558 0%, rgba(28, 37, 88, 0) 60%), radial-gradient(60% 80% at 10% 80%, #182050 0%, rgba(24, 32, 80, 0) 60%), var(--night); }
.details__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.details__grid { position: relative; z-index: 2; display: grid; grid-template-columns: auto auto 1fr minmax(260px, 420px); align-items: center; gap: clamp(24px, 3.5vw, 56px); }
.details__label { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); display: flex; align-items: center; gap: 12px; }
.details__label .tiny-star { width: 16px; height: 16px; fill: var(--gold-2); }
.bigdate { display: flex; align-items: flex-end; gap: 18px; }
.bigdate__day { font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 12vw, 10.5rem); line-height: .82; letter-spacing: -.04em; background: linear-gradient(180deg, #fffaf2 30%, #e5cb9d 130%); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums; }
.bigdate__mo { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; text-transform: uppercase; padding-bottom: .1em; display: flex; flex-direction: column; align-items: flex-end; }
.bigdate__mo small { font-size: .42em; letter-spacing: .2em; margin-top: 10px; color: rgba(250, 244, 237, .8); }
.details__rule { width: 1px; align-self: stretch; margin: 20px 0; background: linear-gradient(transparent, rgba(229, 203, 157, .55), transparent); }
.details__info .caps { margin-bottom: 6px; }
.details__info .caps:nth-child(3) { margin-top: 4px; }
.details__links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 20px; }
.ilink { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream); position: relative; padding: 4px 0; }
.ilink svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-2); stroke-width: 1.4; transition: transform .5s var(--ease); }
.ilink::after { content: ""; position: absolute; left: 27px; right: 0; bottom: 0; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.ilink:hover::after { transform: scaleX(1); transform-origin: left; }
.ilink:hover svg { transform: translateY(-3px); }
.cal-pop { position: absolute; margin-top: 14px; display: flex; flex-direction: column; background: rgba(250, 244, 237, .97); color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5); z-index: 10; min-width: 220px; animation: popIn .5s var(--ease); }
.cal-pop a, .cal-pop button { padding: 14px 18px; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-align: left; transition: background-color .3s; }
.cal-pop a + button { border-top: 1px solid var(--line); }
.cal-pop a:hover, .cal-pop button:hover { background: var(--lav); }
.cal-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

.venue { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 724 / 308; box-shadow: 0 0 0 1px rgba(229, 203, 157, .28), 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 80px -20px rgba(229, 203, 157, .25); }
.venue img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.4s var(--ease); }
.venue:hover img { transform: scale(1.07); }
.venue figcaption { position: absolute; left: 16px; bottom: 12px; font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(250, 244, 237, .85); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.venue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 36, .65)); opacity: 0; transition: opacity .6s; }
.venue figcaption { z-index: 2; }
.venue:hover::after { opacity: 1; }
.venue:hover figcaption { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.rsvp { position: relative; background: var(--cream); padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 4vw, 60px); }
.rsvp__form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: clamp(18px, 2.4vw, 32px); align-items: end; margin-top: clamp(30px, 3.6vw, 44px); }

.field { position: relative; display: block; padding-top: 18px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; background: transparent; outline: none;
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink); padding: 8px 2px 10px; resize: none; line-height: 1.4;
  border-bottom: 1px solid rgba(26, 32, 70, .22);
}
.field textarea { min-height: 41px; max-height: 120px; overflow: hidden; }
.field select { padding-right: 24px; cursor: pointer; }
.field--select::after { content: ""; position: absolute; right: 4px; bottom: 19px; width: 6px; height: 6px; border-right: 1.2px solid var(--ink); border-bottom: 1.2px solid var(--ink); transform: rotate(45deg); pointer-events: none; transition: transform .4s var(--ease); }
.field--select:focus-within::after { transform: translateY(3px) rotate(225deg); }
.field > span {
  position: absolute; left: 2px; top: 27px; pointer-events: none;
  font-family: var(--serif); font-size: 1.05rem; color: var(--muted);
  transform-origin: 0 0; transition: transform .5s var(--ease), color .4s, letter-spacing .5s;
}
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select:focus + span, .field select:valid + span {
  transform: translateY(-24px) scale(.72); color: var(--gold-3); letter-spacing: .08em;
}
.field::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: 1; }
.field:focus-within::before { transform: scaleX(1); }
.field.is-error { animation: shake .5s; }
.field.is-error > span { color: #b5546b; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-bottom-color: #b5546b; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field select option { color: var(--ink); }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 34px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, #1d2452, #121839);
  color: var(--cream); font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 14px 30px -14px rgba(18, 24, 57, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: box-shadow .5s, transform .5s var(--ease);
}
.btn svg { width: 18px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .5s var(--ease); position: relative; }
.btn__label { position: relative; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(229, 203, 157, .45) 45%, rgba(255, 255, 255, .5) 50%, rgba(229, 203, 157, .45) 55%, transparent 80%); transform: translateX(-110%); transition: transform 1s var(--ease); }
.btn:hover::before { transform: translateX(110%); }
.btn:hover { box-shadow: 0 18px 40px -14px rgba(18, 24, 57, .8), 0 0 0 1px rgba(229, 203, 157, .5), inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn:hover svg { transform: translateX(5px); }
.btn.is-sent { background: linear-gradient(180deg, #c7a066, #a8834c); }
.btn.is-busy .btn__label { opacity: .5; }

.form-note { margin: 18px 0 0; min-height: 1.5em; font-style: italic; color: var(--gold-3); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   WISHES
   -------------------------------------------------------------------------- */
.wishes { position: relative; background: var(--wish); padding: clamp(80px, 8vw, 110px) 0 clamp(10px, 2vw, 30px); overflow: hidden; }
.wishes__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.wish__form { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: clamp(18px, 2.4vw, 30px); align-items: end; margin-top: clamp(24px, 3vw, 40px); }
.wall { position: relative; }
.wall::before { content: ""; position: absolute; left: -36px; top: -10px; width: 26px; height: 60px; background: radial-gradient(circle, #fff 0 1.5px, transparent 2px), linear-gradient(transparent, rgba(199, 160, 102, .7), transparent) center / 1px 100% no-repeat; filter: drop-shadow(0 0 6px #e5cb9d); animation: twinkle 3s ease-in-out infinite; }
.wall__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.wish-card {
  margin: 0; padding: 24px 24px 20px; border-radius: 14px; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 40px -24px rgba(80, 60, 110, .35), 0 1px 2px rgba(80, 60, 110, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: floatCard 7s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -2.3s);
}
.wish-card::before { content: "“"; position: absolute; left: 14px; top: 10px; font-size: 2rem; line-height: 1; color: var(--gold); font-family: var(--serif); }
.wish-card p { margin: 0 0 14px; padding-left: 14px; font-style: italic; font-size: 1.04rem; line-height: 1.5; color: var(--ink); }
.wish-card p::after { content: "”"; }
.wish-card cite { display: block; padding-left: 14px; font-style: normal; font-size: .98rem; color: var(--ink-soft); }
.wish-card cite::before { content: "— "; color: var(--gold); }
.wish-card.is-new { animation: cardIn 1.2s var(--ease) both, floatCard 7s ease-in-out 1.2s infinite; }
@keyframes floatCard { 50% { transform: translateY(-8px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.92); filter: blur(8px); } }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { position: relative; color: var(--cream); background: linear-gradient(180deg, #0c1129 0%, #10163a 45%, #111735 100%); min-height: clamp(500px, 44vw, 640px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.footer__stars, .fireflies { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer__stars { z-index: 0; }
.fireflies { z-index: 2; mix-blend-mode: screen; }
.footer__media { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.footer__media img { width: 100%; min-height: 300px; max-height: 520px; object-fit: cover; object-position: 30% 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%); mask-image: linear-gradient(180deg, transparent 0%, #000 38%); }
/* darker behind the text: the lanterns and lit flowers in the picture sit right under the names and credits */
.footer__shade { position: absolute; inset: 0; z-index: 2; background: radial-gradient(70% 45% at 50% 52%, rgba(10, 14, 36, .6), transparent 75%), linear-gradient(180deg, transparent 40%, rgba(8, 11, 28, .55) 62%, rgba(8, 11, 28, .88) 100%); pointer-events: none; }
.footer__inner .caps, .footer__fam { color: #faf4ed; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 14px rgba(5, 8, 25, .9); }
.footer__title { text-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 6px 40px rgba(0, 0, 0, .6); }
.footer .wave { z-index: 4; }
.footer__inner { position: relative; z-index: 3; text-align: center; padding-top: 160px; padding-bottom: clamp(20px, 3vw, 40px); }
.footer__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.05; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.footer__title em { font-weight: 300; }
.footer__sig { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 420px; margin: 26px auto 16px; }
.footer__sig .tiny-star { width: 16px; height: 16px; fill: var(--gold-2); filter: drop-shadow(0 0 6px var(--gold-2)); }
.pipe { display: inline-block; width: 1px; height: 12px; background: rgba(250, 244, 237, .6); margin: 0 1.2em; vertical-align: -1px; }
.footer__bar { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 28px; gap: 20px; }
.logo--foot { font-size: 30px; }
.footer__fam { text-align: right; font-size: 10px; }
.footer__made { margin: 0; }
.footer__credit b { color: var(--cream); font-weight: 500; }
.footer__credit svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -1px; }
/* credits: readable over the picture, and clear of the WhatsApp button in the corner */
.footer__credit { position: relative; z-index: 3; text-align: center; padding: 0 76px 26px; font-family: var(--sans); font-size: 10px; letter-spacing: .12em; color: rgba(250, 244, 237, .85); text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 12px rgba(5, 8, 25, .9); }

/* --------------------------------------------------------------------------
   Lightbox + Cinema
   -------------------------------------------------------------------------- */
.lightbox, .cinema { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; background: rgba(7, 10, 26, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.lightbox.is-open, .cinema.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; text-align: center; transform: scale(.94); opacity: 0; transition: transform .9s var(--ease), opacity .6s; }
.lightbox.is-open .lightbox__fig { transform: none; opacity: 1; }
.lightbox__fig img { object-fit: cover; background: #fff; border: 8px solid #fff; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); }
.lightbox__fig figcaption { margin-top: 18px; font-style: italic; color: rgba(250, 244, 237, .8); font-size: 1.1rem; }
.lightbox__close { position: absolute; top: 22px; right: 26px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(250, 244, 237, .3); color: var(--cream); font-size: 26px; font-weight: 300; line-height: 1; transition: transform .5s var(--ease), background-color .4s; z-index: 2; }
.lightbox__close:hover { transform: rotate(90deg); background: rgba(250, 244, 237, .1); }
.lightbox__arrow { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(250, 244, 237, .3); color: var(--cream); transition: background-color .4s; }
.lightbox__arrow svg { width: 9px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lightbox__arrow:hover { background: rgba(250, 244, 237, .12); }
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }

.cinema { background: rgba(3, 4, 12, .96); }
.cinema__screen { position: relative; width: min(92vw, 1200px); aspect-ratio: 2.39 / 1; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(229, 203, 157, .15), 0 60px 140px -30px rgba(0, 0, 0, .9); transform: scale(.96); transition: transform 1s var(--ease); }
.cinema.is-open .cinema__screen { transform: none; }
.cinema__reel { position: absolute; inset: 0; }
.cinema__reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.cinema__reel img.is-on { opacity: 1; animation: reel 6s linear forwards; }
@keyframes reel { from { transform: scale(1.02) translate(var(--fx, 0), var(--fy, 0)); } to { transform: scale(1.14) translate(calc(var(--fx, 0) * -1), calc(var(--fy, 0) * -1)); } }
.cinema__screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)), linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, .7)); pointer-events: none; }
.cinema__caption { position: absolute; left: 0; right: 0; bottom: 9%; z-index: 2; margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.2rem, 2.6vw, 2.2rem); color: #fff8ec; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(12px); transition: opacity 1.2s, transform 1.4s var(--ease); }
.cinema__caption.is-on { opacity: 1; transform: none; }
.cinema__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .1); z-index: 3; }
.cinema__bar span { display: block; height: 100%; background: var(--gold-2); transform-origin: left; transform: scaleX(0); }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 9600; transform: translate(-50%, 220%); opacity: 0; visibility: hidden; transition: transform .8s var(--ease), opacity .5s, visibility .8s !important; padding: 14px 26px; border-radius: 999px; background: rgba(14, 20, 48, .92); color: var(--cream); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-style: italic; font-size: 1.05rem; box-shadow: 0 0 0 1px rgba(229, 203, 157, .3), 0 20px 50px -10px rgba(0, 0, 0, .5); transition: transform .8s var(--ease); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .details__grid { grid-template-columns: auto auto 1fr; }
  .venue { grid-column: 1 / -1; max-width: 640px; }
  .rsvp__form { grid-template-columns: 1fr 1fr; }
  .rsvp__form .btn { grid-column: 1 / -1; justify-self: start; }
  .wishes__grid { grid-template-columns: 1fr; }
  .p1 { left: 19%; }
  .m2 { left: 40%; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav, .sound__label { display: none; }
  .burger { display: block; }
  .header { padding: 18px var(--gutter); }
  .header .logo { font-size: 22px; }
  .header .logo i { height: 22px; }
  .sound { margin-left: auto; margin-right: 6px; width: 40px; height: 40px; justify-content: center; border-radius: 50%; border: 1px solid rgba(250, 244, 237, .25); }

  /* Hero: image top, words below */
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero__media { left: 0; right: 0; top: 0; bottom: auto; height: 68svh; -webkit-mask-image: none; mask-image: none; }
  .hero__img { object-position: 71% 30%; }
  .hero__moonglow { width: 120vw; height: 120vw; right: -30vw; top: -50vw; }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 14, 36, .45) 0%, transparent 16%, transparent 34%, rgba(14, 20, 48, .7) 52%, var(--night) 68%); }
  .silk { opacity: .7; }
  .hero__content { height: auto; flex: 1; justify-content: flex-end; align-items: center; text-align: center; margin: 0 auto; padding: 46svh var(--gutter) 150px; max-width: 560px; }
  .hero__title { font-size: clamp(2.4rem, 10.4vw, 3.6rem); }
  .hero__title .line { white-space: normal; }
  .hero__ornament { width: .9em; }
  .hero__names { width: 100%; max-width: 360px; gap: 14px; }
  .hero__couple { font-size: 1rem; letter-spacing: .3em; }
  .enter { width: 112px; height: 112px; margin-top: 30px; }
  .enter__core { font-size: 8.5px; }
  .enter__core::before { -webkit-mask: radial-gradient(circle, transparent 54px, #000 55px); mask: radial-gradient(circle, transparent 54px, #000 55px); }
  .scroll-cue { display: none; }

  .countdown { padding-top: 20px; }
  .countdown__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; min-height: 0; gap: 34px; }
  .countdown .display { text-align: center; }
  .timer { grid-column: 1; gap: 10px; }
  .timer__unit { min-width: 0; flex: 1; }
  .timer__unit:first-child { flex: 1.45; }
  .orbit { display: none; }
  .timer__num { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .timer__unit > span { font-size: 9px; letter-spacing: .2em; margin-top: 8px; }
  .timer__sep { height: 40px; }
  .destiny { grid-column: 1; justify-self: center; }
  .destiny p { margin-bottom: 18px; text-align: right; }

  .couple { padding-top: 110px; }
  .couple__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .person { flex-direction: column !important; align-items: center; text-align: center; margin: 0 !important; gap: 6px; }
  .person .portrait { order: -1; }
  .portrait, .person--bride .portrait { width: 100%; max-width: 260px; }
  .person__text, .person--groom .person__text, .person--bride .person__text { margin: 0; max-width: 220px; }
  .person__name { font-size: clamp(1.8rem, 8vw, 2.6rem); margin-bottom: 8px; }
  .person__parents { font-size: 8.5px; letter-spacing: .18em; margin-bottom: 12px; }
  .person__bio { font-size: .95rem; }
  .ampersand { top: 26%; font-size: clamp(10rem, 44vw, 16rem); }

  .story__stage { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; padding-top: 30px; padding-bottom: 20px; }
  .story__path { display: none; }
  .milestone { position: relative; inset: auto; max-width: none; grid-column: 1 / -1; padding-left: 44px; }
  .milestone small { position: absolute; left: 0; top: 4px; }
  .milestone .milestone__dot { display: none; }
  .milestone h4 { font-size: 1.35rem; }
  .milestone { order: 1; }
  .polaroid { order: 2; }
  .signature { order: 3; }
  .m1, .m2, .m3 { left: auto; top: auto; }
  .story__stage::before { content: ""; position: absolute; left: calc(var(--gutter) + 26px); top: 34px; height: 230px; width: 1px; background: linear-gradient(var(--gold), rgba(199, 160, 102, .1)); }
  .polaroid { position: relative; inset: auto; width: 100% !important; }
  .p1 { rotate: -4deg; margin-top: 10px; }
  .p2 { rotate: 3deg; margin-top: 26px; }
  .story__moon { right: var(--gutter); top: -54px; width: 44px; height: 44px; position: absolute; }
  .signature { position: relative; right: auto; grid-column: 1 / -1; justify-self: end; margin-top: 4px; max-width: 100%; }
  .signature__svg { width: min(260px, 70vw); }

  .gallery__head { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .gallery__ctrl .arrow { display: none; }
  .gallery__moon { width: 34px; height: 34px; left: auto; right: 5%; top: 8px; }
  .carousel__nav { width: 42px; height: 42px; margin-top: -21px; }
  .carousel { height: calc(var(--sh, 200px) + 70px); margin-top: 20px; }
  .gallery__dots { margin-top: 18px; }

  .film { min-height: 380px; align-items: stretch; }
  .film__inner { padding-top: 76px; justify-content: flex-start; text-align: center; }
  .film__media img { object-position: 47% 60%; }
  .film__copy .caps { display: none; }
  .film__shade { background: linear-gradient(180deg, rgba(10, 14, 36, .7) 0%, rgba(10, 14, 36, .2) 45%, rgba(10, 14, 36, .55) 85%, var(--night) 100%); }
  .play { top: auto; bottom: 64px; width: 76px; height: 76px; margin: 0 0 0 -38px; }

  .details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .details__rule { display: none; }
  .details__date { grid-column: 1; }
  .venue { grid-column: 2; grid-row: 1; align-self: end; aspect-ratio: 1 / 1.05; max-width: none; }
  .details__info { grid-column: 1 / -1; }
  .bigdate__day { font-size: clamp(5rem, 22vw, 7rem); }
  .bigdate__mo { font-size: 2rem; }

  .rsvp__form, .wish__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsvp__form .field:nth-child(1), .rsvp__form .field:nth-child(2) { grid-column: 1 / -1; }
  .wish__form .field { grid-column: 1 / -1; }
  .rsvp__form .btn, .wish__form .btn { grid-column: 1 / -1; justify-self: stretch; }
  .wall::before { display: none; }
  .orbit__planet { display: none; }

  .footer { min-height: 560px; }
  .footer__inner { padding-top: 120px; }
  .footer__media img { min-height: 320px; object-position: 22% 100%; }
  .footer__bar { flex-direction: row; align-items: flex-end; }
}

@media (max-width: 520px) {
  .wall__cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wish-card { padding: 18px 14px 14px; }
  .wish-card::before { left: 8px; top: 6px; font-size: 1.6rem; }
  .wish-card p { font-size: .9rem; padding-left: 8px; }
  .wish-card cite { font-size: .85rem; padding-left: 8px; }
  .lightbox__arrow { display: none; }
  .cinema__screen { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Dynamic invitation (Blade) — opening gate, couple photos, story, events,
   dress code, videos, forms, share button and credits
   ========================================================================== */
.nm { white-space: nowrap; }
/* sections jumped to land below the fixed header (the script also offsets its smooth scroll) */
main > section, main > footer { scroll-margin-top: 82px; }

/* Opening: loading turns into a "Save the date" card with a View Invitation button */
.gate { display: none; max-width: min(520px, calc(100vw - 40px)); margin: 0 auto; color: var(--cream); }
.loader.is-loaded .loader__line, .loader.is-loaded .loader__progress { display: none; }
.loader.is-loaded .gate { display: block; animation: gateIn 1.2s var(--ease) both; }
.loader.is-loaded .loader__mono { width: 110px; height: 63px; transition: width .8s var(--ease), height .8s var(--ease); }
@keyframes gateIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.gate__save { margin: 14px 0 10px; font-family: var(--sans); font-size: 10px; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--gold-2); }
.gate__photos { display: flex; justify-content: center; gap: 14px; margin: 6px 0 14px; }
.gate__photos img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 1px solid rgba(229, 203, 157, .7); box-shadow: 0 0 0 5px rgba(229, 203, 157, .1), 0 10px 30px -8px rgba(0, 0, 0, .6); }
.gate__names { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 8vw, 3.6rem); line-height: 1.05; color: #f8f1e7; text-wrap: balance; }
.gate__names em { color: var(--gold-2); font-size: .8em; }
.gate__event { margin: 16px 0 4px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: rgba(250, 244, 237, .82); }
.gate__date { margin: 0; font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream); }
.gate__meta { margin: 8px 0 0; font-family: var(--sans); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(250, 244, 237, .7); line-height: 1.9; }
.gate__btn {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 34px; border-radius: 999px;
  border: 1px solid rgba(229, 203, 157, .65); background: radial-gradient(circle at 50% 0%, rgba(255, 240, 215, .14), rgba(14, 20, 48, .4));
  font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream);
  box-shadow: 0 0 40px rgba(229, 203, 157, .18); transition: box-shadow .5s, border-color .5s, transform .5s var(--ease);
  animation: gatePulse 2.6s ease-in-out infinite;
}
.gate__btn svg { width: 12px; height: 12px; fill: var(--gold-2); }
.gate__btn:hover { border-color: var(--gold-2); box-shadow: 0 0 60px rgba(229, 203, 157, .35); transform: translateY(-2px); }
@keyframes gatePulse { 50% { box-shadow: 0 0 60px rgba(229, 203, 157, .32); } }

/* Hero: one or more of the couple's photos, crossfading */
.hero__media .hero__img { position: absolute; inset: 0; opacity: 0; object-position: 50% 30%; }
.hero__media .hero__img--art { object-position: 74% 42%; }
.hero__media .hero__img.is-on { opacity: 1; }
.hero .hero__media .hero__img { transition: transform 2.8s var(--ease), opacity 1.8s ease; }
.is-ready .hero .hero__media .hero__img { transition: transform 3.4s var(--ease), opacity 1.8s ease; }
.is-ready.hero-settled .hero .hero__media .hero__img { transition: opacity 1.8s ease; }
.hero__couple { white-space: normal; }
/* the theme's line, kept as a small tagline under "We're getting married." */
.hero__kicker { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: .02em; color: rgba(250, 244, 237, .82); text-shadow: 0 2px 20px rgba(5, 8, 25, .6); opacity: 0; transform: translateY(12px); transition: opacity 1.4s var(--ease) 1.1s, transform 1.4s var(--ease) 1.1s; }
.is-ready .hero__kicker { opacity: 1; transform: none; }

/* Couple: uploaded photos in an arched frame (the demo used cut-out portraits) */
.portrait img {
  mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
  aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: center 25%;
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 0 0 1px rgba(199, 160, 102, .45), 0 0 0 8px rgba(255, 255, 255, .55), 0 30px 60px -24px rgba(40, 30, 70, .5);
}
.person__bio p { margin: 0 0 .5em; }
.person__bio p:last-child { margin-bottom: 0; }
.person__parents { color: var(--gold-3); }
.person--nophoto .person__text, .person--groom.person--nophoto .person__text, .person--bride.person--nophoto .person__text { margin-top: 0; max-width: 320px; }

/* Story: one chapter per story item, alternating around a gold line */
.story .story__stage { height: auto; padding-bottom: clamp(20px, 3vw, 40px); }
.chapters { list-style: none; margin: clamp(30px, 4vw, 50px) auto 0; padding: 0; position: relative; max-width: 1040px; }
.chapters::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); background: linear-gradient(transparent, var(--gold) 6%, var(--gold) 94%, transparent); opacity: .6; }
.chapter { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(50px, 9vw, 120px); align-items: center; margin-bottom: clamp(44px, 6vw, 80px); }
.chapter:last-child { margin-bottom: 0; }
.chapter__dot { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff6df; box-shadow: 0 0 0 4px rgba(199, 160, 102, .18), 0 0 14px 3px rgba(229, 203, 157, .7); z-index: 2; }
.chapters .polaroid { position: relative; inset: auto; grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 320px); aspect-ratio: 4 / 5; rotate: -3deg; }
.chapters .milestone { position: relative; inset: auto; grid-column: 2; grid-row: 1; max-width: 420px; padding: 0; }
.chapters .milestone small { position: static; display: flex; align-items: center; gap: 0; color: var(--gold-3); }
.chapters .milestone small .pipe { background: rgba(168, 131, 76, .5); margin: 0 .9em; }
.chapters .milestone h4 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 10px; }
.milestone__desc { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.55; }
.milestone__desc p { margin: 0 0 .6em; }
.milestone__desc p:last-child { margin-bottom: 0; }
/* long stories: collapsed with a soft fade, "Read more" / "Show less" toggle (main.js) */
.milestone__desc.is-collapsible { overflow: hidden; transition: max-height .5s var(--ease); }
.milestone__desc.is-collapsed { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.story-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 20px; border-radius: 999px; border: 1px solid rgba(199, 160, 102, .6); font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); transition: background-color .3s, color .3s, border-color .3s; }
.story-more::after { content: ""; width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .4s var(--ease); }
.story-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.story-more:hover, .story-more:focus-visible { background: var(--gold-3); border-color: var(--gold-3); color: #fff; outline: none; }
.chapter--rev .polaroid { grid-column: 2; justify-self: start; rotate: 3deg; }
.chapter--rev .milestone { grid-column: 1; justify-self: end; text-align: right; }
.chapter--rev .milestone small { justify-content: flex-end; }
.chapter--noimg .milestone { grid-column: 2; }
.chapter--rev.chapter--noimg .milestone { grid-column: 1; }
.story .signature { position: relative; right: auto; bottom: auto; margin: clamp(20px, 3vw, 40px) 0 0 auto; width: fit-content; }

/* When & Where: one block per event */
.details__head { margin-bottom: clamp(30px, 4vw, 50px); }
.details__grid + .details__grid { margin-top: clamp(50px, 6vw, 90px); padding-top: clamp(40px, 5vw, 70px); }
.details__grid + .details__grid::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, rgba(229, 203, 157, .3), transparent); }
.details__grid--noimg { grid-template-columns: auto auto 1fr; }
.details__label { flex-wrap: wrap; }
.details__links:empty { display: none; }
/* View Location: a clear gold button (a plain text link was easy to miss) */
.map-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 26px; border-radius: 999px;
  background: linear-gradient(180deg, #e5cb9d, #c7a066); color: var(--night);
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 12px 28px -12px rgba(199, 160, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.map-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(229, 203, 157, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.details__links { align-items: center; }
.details__extras { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: clamp(50px, 6vw, 80px); padding-top: 30px; }
.details__extras::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, rgba(229, 203, 157, .3), transparent); }
.details__cal { position: relative; }
.details__cal .cal-pop { left: 0; top: 100%; }

/* Dress code */
.dresscode { position: relative; background: var(--cream); padding: clamp(50px, 6vw, 90px) 0 clamp(30px, 4vw, 60px); text-align: center; }
.dresscode__card { max-width: 580px; margin: clamp(26px, 3vw, 40px) auto 0; padding: 34px 26px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5)); border: 1px solid rgba(199, 160, 102, .3); box-shadow: 0 24px 50px -30px rgba(40, 30, 70, .35); }
.dresscode__label { margin: 0 0 18px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-3); }
.dresscode__swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dresscode__swatch { width: 48px; height: 48px; border-radius: 50%; background: var(--swatch); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(26, 32, 70, .1), 0 8px 18px -6px rgba(26, 32, 70, .35); }
.dresscode__note { margin: 20px 0 0; font-size: 1.15rem; font-style: italic; color: var(--ink-soft); line-height: 1.6; }
.dresscode__swatches + .dresscode__note { padding-top: 18px; border-top: 1px solid var(--line); }
.dresscode__card > .dresscode__note:first-child { margin-top: 0; }

/* Gallery with a single photo: no arrows / dots */
.gallery--single .carousel__nav, .gallery--single .gallery__dots, .gallery--single .gallery__ctrl { display: none; }

/* Cinema: YouTube videos */
.cinema__stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cinema--video .cinema__screen { aspect-ratio: 16 / 9; }
.cinema--video .cinema__screen::after, .cinema--video .cinema__caption, .cinema--video .cinema__bar { display: none; }
.cinema--video .cinema__screen.is-shorts { width: auto; height: min(80vh, 720px); aspect-ratio: 9 / 16; }
.cinema__reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cinema__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cinema__list button { padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(229, 203, 157, .35); font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); transition: background-color .3s, border-color .3s; }
.cinema__list button.is-active, .cinema__list button:hover { background: rgba(229, 203, 157, .18); border-color: var(--gold-2); }

/* Invitation card viewer */
.cardview .lightbox__fig img { width: auto; height: auto; max-width: 90vw; max-height: 84vh; object-fit: contain; }

/* Forms */
.field[hidden] { display: none; }
.rsvp__deadline { margin: 14px 0 0; font-family: var(--sans); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-3); }
.rsvp__closed { margin-top: 24px; }
.wishes--wall .wishes__grid { grid-template-columns: 1fr; max-width: 900px; }
.wishes--wall .wall__cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.wall__cards--scroll { max-height: 560px; overflow-y: auto; padding: 4px 6px 12px 2px; scrollbar-width: thin; scrollbar-color: rgba(199, 160, 102, .5) transparent; }
.wall__cards:empty { display: none; }

/* Menu: more than five links */
.menu-open .menu__nav a:nth-child(6) { transition-delay: .7s; }
.menu-open .menu__nav a:nth-child(7) { transition-delay: .78s; }
.menu-open .menu__nav a:nth-child(8) { transition-delay: .86s; }
.menu-open .menu__nav a:nth-child(9) { transition-delay: .94s; }
.menu__nav a { font-size: clamp(2rem, 8.5vw, 3.2rem); }

/* WhatsApp share */
.share-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1150; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 20, 48, .85); border: 1px solid rgba(229, 203, 157, .5); color: var(--gold-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55); transition: transform .5s var(--ease), background-color .4s; }
.share-fab svg { width: 24px; height: 24px; fill: currentColor; }
.share-fab:hover { transform: translateY(-3px); background: var(--night); }
.is-loading .share-fab { opacity: 0; pointer-events: none; }

/* Footer credits */
.footer__credit p { margin: 0 0 6px; }
.footer__credit a { color: #faf4ed; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(229, 203, 157, .4); }
.footer__credit a:hover { color: var(--gold-2); }

/* Couple "&": the demo's huge outlined "&" sat behind cut-out portraits; with real photos it was hidden,
   so it is now a small gold medallion in front of the photos, centred between them */
.couple .ampersand {
  z-index: 4; top: 50%; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
  font-size: 2.6rem; font-weight: 400; line-height: 1; padding-bottom: 4px;
  color: var(--gold-3); -webkit-text-stroke: 0; background: radial-gradient(circle at 50% 35%, #fffdf8, #f4ece2);
  -webkit-background-clip: border-box; background-clip: border-box;
  box-shadow: 0 0 0 1px rgba(199, 160, 102, .55), 0 0 0 6px rgba(255, 255, 255, .7), 0 16px 34px -12px rgba(40, 30, 70, .45);
}

@media (max-width: 900px) {
  /* centred on the two photos (they sit side by side at the top of each card) */
  .couple .ampersand { top: calc(46px + (100vw - 56px) / 3); width: 54px; height: 54px; font-size: 1.9rem; }
  .story .story__stage { display: block; padding-top: 10px; }
  .story .story__stage::before { display: none; }
  .chapters::before { left: 14px; transform: none; }
  .chapter, .chapter--rev { grid-template-columns: 1fr; padding-left: 40px; row-gap: 18px; }
  .chapter__dot { left: 14px; top: 8px; margin-left: -4px; }
  .chapters .polaroid, .chapter--rev .polaroid { grid-column: 1; grid-row: 1; justify-self: start; width: min(100%, 300px) !important; rotate: -2deg; margin: 0; }
  .chapters .milestone, .chapter--rev .milestone, .chapter--noimg .milestone { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; padding-left: 0; max-width: none; }
  .chapter--rev .milestone small { justify-content: flex-start; }
  .story .signature { margin-top: 30px; }

  .details__grid--noimg .details__date, .details__grid--noimg .details__info { grid-column: 1 / -1; }
  .details__grid + .details__grid { margin-top: 40px; padding-top: 34px; }
  .details__extras { gap: 16px 26px; }

  .person--nophoto .person__text { max-width: 220px; }
  .share-fab { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .toast { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .grain { display: none; }
}
