/* =========================================================
   Karen Sanjana & Clement Oswald — Rose Gold Blush Royal
   ========================================================= */
:root {
  --bg: #F8EFED;
  --bg-2: #F3E5E2;
  --rose: #B77E73;
  --rose-dark: #8D554D;
  --gold: #C6A16A;
  --gold-light: #f3dca8;
  --text: #5C4542;
  --white: #FFFFFF;
  --night: #241311;
  --night-2: #3a201c;

  --f-script: 'Great Vibes', 'Brush Script MT', cursive;
  --f-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --gold-grad: linear-gradient(100deg, #a8773f 0%, #f6e2b3 28%, #c6a16a 48%, #fff1cf 64%, #b98a4e 82%, #8c6331 100%);
  --rose-grad: linear-gradient(100deg, #8d554d 0%, #d9a596 40%, #b77e73 70%, #8d554d 100%);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--f-serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--white); padding: 8px 14px; font-family: var(--f-sans); font-size: 14px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.gold-text {
  background: var(--gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- shared section styles ---------- */
section { position: relative; padding: clamp(80px, 12vw, 150px) var(--gutter); overflow: hidden; }
.section-blush { background:
  radial-gradient(120% 70% at 50% 0%, #fdf7f5 0%, transparent 60%),
  radial-gradient(80% 60% at 100% 100%, #f1dcd7 0%, transparent 70%),
  var(--bg); }
.section-blush-2 { background:
  radial-gradient(90% 60% at 0% 0%, #f9ecea 0%, transparent 60%),
  radial-gradient(70% 50% at 100% 100%, #ecd2cc 0%, transparent 70%),
  var(--bg-2); }
.section-cream { background: linear-gradient(180deg, var(--bg) 0%, #fbf5f3 50%, var(--bg) 100%); }
.section-dark { background:
  radial-gradient(70% 60% at 50% 0%, rgba(198,161,106,.16) 0%, transparent 70%),
  radial-gradient(90% 70% at 50% 110%, rgba(183,126,115,.28) 0%, transparent 70%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #f3e6e1; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); position: relative; z-index: 2; }
.kicker { font-family: var(--f-script); font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--rose); line-height: 1.1; }
.kicker--light { color: var(--gold-light); }
.section-title {
  font-family: var(--f-serif); font-weight: 300; text-transform: uppercase;
  letter-spacing: .22em; font-size: clamp(1.55rem, 4.4vw, 2.7rem); line-height: 1.25;
  color: var(--rose-dark); margin-top: 6px;
}
.section-title--light { color: #f8ece6; }
.divider { width: 200px; height: 20px; margin: 18px auto 0; color: var(--rose); }
.divider--gold { color: var(--gold); }
.divider--sm { width: 140px; height: 14px; margin: 14px auto; }
.script-title { font-family: var(--f-script); color: var(--rose-dark); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.1; }

.link-btn {
  background: none; border: 0; padding: 6px 2px; font-family: var(--f-sans); font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rose-dark);
  border-bottom: 1px solid currentColor; opacity: .85; transition: opacity .3s;
}
.link-btn:hover { opacity: 1; }

/* =========================================================
   1. INTRO / GATES
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: #120807; color: #fff;
}
.intro.is-gone { display: none; }
.intro-stage { position: absolute; inset: 0; transform-origin: 50% 52%; will-change: transform; }
.intro-bg { position: absolute; inset: -4%; }
.intro-bg img { filter: blur(5px) brightness(.5) saturate(1.15) sepia(.25); transform: scale(1.05); }
.intro-stage::after { /* vignette */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 65% at 50% 52%, transparent 30%, rgba(10,4,3,.75) 100%);
}
.intro-lights span {
  position: absolute; width: 46vmin; height: 46vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,140,.42) 0%, rgba(255,190,110,.12) 35%, transparent 70%);
  mix-blend-mode: screen; animation: flicker 5s ease-in-out infinite alternate;
}
.intro-lights span:nth-child(1) { left: -12vmin; top: 8%; }
.intro-lights span:nth-child(2) { right: -12vmin; top: 8%; animation-delay: -2s; }
.intro-lights span:nth-child(3) { left: 50%; top: -22vmin; transform: translateX(-50%); width: 70vmin; height: 50vmin; animation-delay: -1s; }
@keyframes flicker { 0% { opacity: .75; } 40% { opacity: 1; } 70% { opacity: .82; } 100% { opacity: .95; } }

.gate-frame {
  position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%);
  width: min(100vw, 92vh); display: flex; perspective: 2000px; perspective-origin: 50% 50%;
  z-index: 2;
}
.gate { position: relative; width: 50%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.gate--left { transform-origin: 0% 50%; }
.gate--right { transform-origin: 100% 50%; }
.gate-art, .gate-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate-art svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }

.ribbon-band {
  position: absolute; top: calc(50% - 22px); height: 44px; left: 0; right: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 18%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #e7dad4 0%, #ffffff 30%, #f6eee9 55%, #ffffff 70%, #d2bdb5 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.9);
}
.gate--left .ribbon-band { transform-origin: 0% 50%; }
.gate--right .ribbon-band { transform-origin: 100% 50%; }
.ribbon-band::before { /* satin sheen travelling */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  background-size: 250% 100%; animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.intro-heading { position: absolute; left: 0; right: 0; top: max(5vh, 28px); text-align: center; z-index: 4; pointer-events: none; padding: 0 16px; }
.intro-kicker { font-family: var(--f-sans); font-size: clamp(.62rem, 1.6vw, .78rem); letter-spacing: .38em; text-transform: uppercase; color: #f3dca8; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.intro-names {
  font-family: var(--f-script); font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.15; margin-top: 4px;
  color: #fbe9c9; text-shadow: 0 0 22px rgba(255,200,120,.45), 0 3px 12px rgba(0,0,0,.85);
}
.intro-names span { font-size: .8em; color: #e8c58c; }

.bow {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  width: clamp(190px, 34vmin, 300px); aspect-ratio: 300 / 270;
  transform: translate(-50%, -38%); padding: 0; border: 0; background: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.bow-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.bow-svg g { transform-box: fill-box; }
.bow-loop--l { transform-origin: 100% 60%; }
.bow-loop--r { transform-origin: 0% 60%; }
.bow-tail--l { transform-origin: 90% 0%; }
.bow-tail--r { transform-origin: 10% 0%; }
.bow-knot { transform-origin: 50% 50%; }
.bow:hover .bow-svg, .bow:focus-visible .bow-svg { animation: bowNudge .9s var(--ease); }
@keyframes bowNudge { 30% { transform: rotate(-3deg) scale(1.03); } 65% { transform: rotate(2deg) scale(1.02); } }
.brooch-glint { transform-box: fill-box; transform-origin: 50% 50%; animation: glint 3.2s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } }
.bow-pulse {
  position: absolute; left: 50%; top: 48%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); border: 1px solid rgba(246,226,179,.85);
  animation: pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes pulse { 0% { transform: translate(-50%,-50%) scale(.6); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; } }
.bow-label {
  position: absolute; left: 50%; top: 104%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.5rem); letter-spacing: .06em;
  color: #fff4dc; text-shadow: 0 2px 12px rgba(0,0,0,.9), 0 0 18px rgba(255,200,120,.4);
  padding: 6px 22px; border-top: 1px solid rgba(246,226,179,.55); border-bottom: 1px solid rgba(246,226,179,.55);
  background: rgba(30,14,10,.35); backdrop-filter: blur(2px);
}
.intro-hint {
  position: absolute; left: 0; right: 0; bottom: max(4vh, 22px); text-align: center; z-index: 4;
  font-family: var(--f-sans); font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(243,220,168,.8);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .35; } }
.intro-loader {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: #120807;
  font-family: var(--f-serif); color: var(--gold-light); font-size: clamp(2rem, 6vw, 3rem); letter-spacing: .2em;
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro-loader i { font-family: var(--f-script); font-style: normal; color: var(--rose); letter-spacing: 0; }
.intro-loader span { animation: breathe 1.8s ease-in-out infinite; }
.intro-loader.is-hidden { opacity: 0; visibility: hidden; }

.particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 110; pointer-events: none; }

/* =========================================================
   2. HERO
   ========================================================= */
.hero {
  min-height: 100vh; min-height: 100svh; padding: 0 var(--gutter);
  display: grid; place-items: center; text-align: center; color: #fff; background: var(--night);
}
.hero-media { position: absolute; inset: -6% 0; will-change: transform; }
.hero-media picture { position: absolute; inset: 0; }
.hero-media img { object-position: 60% 50%; transform-origin: 50% 55%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(20,9,7,.55) 0%, rgba(20,9,7,.2) 60%, transparent 100%),
    linear-gradient(180deg, rgba(18,8,7,.72) 0%, rgba(18,8,7,.15) 30%, rgba(18,8,7,.25) 65%, rgba(36,19,17,1) 100%);
}
.hero-floral { position: absolute; width: clamp(150px, 26vw, 360px); opacity: .8; pointer-events: none; filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 10px rgba(255,200,150,.25)); }
.hero-floral--tl { left: 0; top: 0; width: clamp(110px, 18vw, 250px); opacity: .55; }
.hero-floral--tr { right: 0; top: 0; transform: scaleX(-1); width: clamp(110px, 18vw, 250px); opacity: .55; }
.hero-floral--bl { left: 0; bottom: 0; transform: scaleY(-1); }
.hero-floral--br { right: 0; bottom: 0; transform: scale(-1, -1); }
.hero-content { position: relative; z-index: 3; padding: 14vh 0 12vh; max-width: 980px; }
.hero-kicker {
  font-family: var(--f-sans); font-weight: 300; text-transform: uppercase;
  letter-spacing: .42em; font-size: clamp(.68rem, 1.8vw, .9rem); color: #f6e6d2;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.hero-names { display: flex; flex-direction: column; align-items: center; margin: clamp(10px, 2vw, 22px) 0 0; }
.hero-names .name {
  font-family: var(--f-script); font-size: clamp(3.3rem, 10.5vw, 7.6rem); line-height: 1.12; padding: 0 .15em;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,.6));
}
.hero-with { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: #f3dca8; margin: -.1em 0; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-event {
  font-family: var(--f-serif); font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; margin-top: 16px; color: #fbeee4; text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.hero-date {
  display: inline-flex; align-items: center; gap: clamp(12px, 2.5vw, 22px); margin-top: 14px;
  font-family: var(--f-serif); color: #f3dca8; text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.hero-date span { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 500; letter-spacing: .08em; }
.hero-date i { font-size: clamp(1.1rem, 2.6vw, 1.5rem); padding: 0 clamp(12px, 2.4vw, 20px); border-left: 1px solid rgba(243,220,168,.6); border-right: 1px solid rgba(243,220,168,.6); letter-spacing: .14em; }
.scroll-cue {
  position: absolute; left: 50%; bottom: max(3vh, 18px); transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--f-sans); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(246,226,179,.85);
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(rgba(246,226,179,.9), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   3. INVITATION
   ========================================================= */
.invite-card {
  position: relative; max-width: 780px; margin: 0 auto; text-align: center;
  padding: clamp(64px, 10vw, 110px) clamp(22px, 7vw, 90px);
  background: rgba(255,255,255,.42);
  box-shadow: 0 30px 80px -40px rgba(141,85,77,.45);
}
.invite-card::before, .invite-card::after { content: ''; position: absolute; pointer-events: none; }
.invite-card::before { inset: 12px; border: 1px solid rgba(183,126,115,.55); }
.invite-card::after { inset: 18px; border: 1px solid rgba(198,161,106,.45); }
.corner { position: absolute; width: clamp(110px, 22vw, 190px); pointer-events: none; z-index: 1; }
.corner--tl { left: 4px; top: 4px; }
.corner--tr { right: 4px; top: 4px; transform: scaleX(-1); }
.corner--bl { left: 4px; bottom: 4px; transform: scaleY(-1); }
.corner--br { right: 4px; bottom: 4px; transform: scale(-1, -1); }
.invite-inner { position: relative; z-index: 2; }
.monogram {
  width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid var(--rose);
  display: grid; place-items: center; grid-template-columns: auto auto auto; align-content: center; justify-content: center;
  font-family: var(--f-serif); font-size: 2.1rem; color: var(--rose-dark); line-height: 1; position: relative;
  box-shadow: 0 0 0 5px rgba(255,255,255,.6), 0 0 0 6px rgba(198,161,106,.5);
}
.monogram i { font-family: var(--f-script); font-style: normal; font-size: 1.4rem; color: var(--gold); margin: 10px -2px 0; }
.verse { margin: 28px auto 0; max-width: 560px; }
.verse p { font-style: italic; font-size: clamp(1.2rem, 2.8vw, 1.5rem); color: var(--rose-dark); line-height: 1.5; }
.verse cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--f-sans); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); }
.poem { margin-top: 26px; font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.7; }
.invite-lead { margin-top: 22px; font-size: clamp(1.05rem, 2.3vw, 1.22rem); line-height: 1.6; }
.host-names { font-family: var(--f-script); font-size: clamp(2rem, 5.5vw, 2.9rem); color: var(--rose-dark); line-height: 1.2; margin-top: 8px; }
.couple-name {
  font-family: var(--f-script); font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1.15; margin-top: 12px;
  background: var(--rose-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.invite-with { font-style: italic; font-size: 1.2rem; color: var(--rose); margin: 4px 0 -6px; }

/* =========================================================
   4. SCRATCH
   ========================================================= */
.scratch { text-align: center; }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i {
  position: absolute; width: 10px; height: 10px; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%),
    conic-gradient(from 45deg, transparent 0 22%, #e0b8a6 23% 27%, transparent 28% 47%, #e0b8a6 48% 52%, transparent 53% 72%, #e0b8a6 73% 77%, transparent 78% 97%, #e0b8a6 98%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 3.6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
.scratch-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scratch-heart {
  position: relative; width: min(84vw, 420px); aspect-ratio: 100 / 92;
  filter: drop-shadow(0 24px 30px rgba(141,85,77,.32));
}
.scratch-message {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6% 16% 22%;
  -webkit-mask: url('../assets/images/heart-mask.svg') center / 100% 100% no-repeat;
          mask: url('../assets/images/heart-mask.svg') center / 100% 100% no-repeat;
  background:
    radial-gradient(60% 50% at 50% 40%, #fffaf8 0%, transparent 70%),
    linear-gradient(160deg, #fbeeea 0%, #f2d9d2 100%);
}
.scratch-message p { line-height: 1.25; }
.sm-1 { font-family: var(--f-serif); font-size: clamp(1.15rem, 3.6vw, 1.55rem); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-dark); }
.sm-2 { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.1rem, 3.4vw, 1.5rem); color: var(--text); margin-top: 4px; }
.sm-3 { font-family: var(--f-sans); font-size: clamp(.6rem, 1.7vw, .74rem); letter-spacing: .26em; text-transform: uppercase; color: var(--rose); margin-top: 14px; }
.sm-4 { white-space: nowrap; font-family: var(--f-script); font-size: clamp(1.7rem, 6.2vw, 2.5rem); color: var(--rose-dark); margin-top: 2px; }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.scratch-canvas:active { cursor: grabbing; }
.scratch-hint { font-family: var(--f-sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-top: 8px; }
.scratch.is-revealed .scratch-hint, .scratch.is-revealed #scratch-reveal { visibility: hidden; }
.burst { position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff7e6, #e2b58f 60%, transparent 70%); }

/* =========================================================
   5. GALLERY
   ========================================================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 32px);
  max-width: 1180px; margin: 0 auto; align-items: start;
}
.g-item { margin: 0; position: relative; }
.g-item::before { /* rose-gold offset frame */
  content: ''; position: absolute; inset: 0; transform: translate(14px, 14px);
  border: 1px solid rgba(183,126,115,.7); pointer-events: none;
}
.g-item::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.7); pointer-events: none; z-index: 2; }
.g-frame { position: relative; overflow: hidden; background: #ead6d0; box-shadow: 0 24px 50px -28px rgba(92,69,66,.55); }
.g-frame picture { display: block; width: 100%; height: 100%; }
.g-frame img { transform-origin: 50% 50%; will-change: transform; }
.g-1 { grid-column: 1 / 6; grid-row: 1 / 3; } .g-1 .g-frame { aspect-ratio: 3 / 4.4; }
.g-2 { grid-column: 6 / 13; grid-row: 1; margin-top: 12%; } .g-2 .g-frame { aspect-ratio: 3 / 2; }
.g-3 { grid-column: 6 / 9; grid-row: 2; } .g-3 .g-frame { aspect-ratio: 2 / 3; }
.g-4 { grid-column: 9 / 13; grid-row: 2; margin-top: 18%; } .g-4 .g-frame { aspect-ratio: 3 / 4.2; }
.g-5 { grid-column: 2 / 8; grid-row: 3; margin-top: 4%; } .g-5 .g-frame { aspect-ratio: 3 / 2; }
.g-6 { grid-column: 8 / 12; grid-row: 3; margin-top: -14%; } .g-6 .g-frame { aspect-ratio: 2 / 3; }
.gallery-quote { text-align: center; font-style: italic; font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--rose-dark); margin: clamp(56px, 8vw, 96px) auto 0; max-width: 680px; }

/* =========================================================
   6. COUNTDOWN
   ========================================================= */
.countdown { text-align: center; }
.cd-floral { position: absolute; top: 0; width: clamp(130px, 22vw, 300px); opacity: .45; pointer-events: none; filter: brightness(1.4); }
.cd-floral--l { left: 0; }
.cd-floral--r { right: 0; transform: scaleX(-1); }
.cd-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: clamp(12px, 3vw, 34px); }
.cd-unit {
  position: relative; padding: clamp(26px, 4vw, 40px) 6px clamp(18px, 3vw, 26px);
  border: 1px solid rgba(198,161,106,.6); border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(198,161,106,.12), rgba(255,255,255,.02));
  display: flex; flex-direction: column; align-items: center;
}
.cd-unit::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(198,161,106,.25); border-radius: 999px 999px 2px 2px; pointer-events: none; }
.cd-num { font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1; color: #fff3df; font-variant-numeric: tabular-nums; }
.cd-label { font-family: var(--f-sans); font-size: clamp(.56rem, 1.5vw, .7rem); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.cd-sub { position: relative; z-index: 2; margin-top: clamp(30px, 5vw, 48px); font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #f0dcd4; }
.cd-done { position: relative; z-index: 2; font-family: var(--f-script); font-size: clamp(2rem, 5vw, 3rem); color: var(--gold-light); max-width: 760px; margin: 0 auto; line-height: 1.3; }

/* =========================================================
   7. PROGRAMME / TIMELINE
   ========================================================= */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; position: relative; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(183,126,115,.25); transform: translateX(-50%); }
.tl-progress { position: absolute; inset: 0; background: linear-gradient(var(--gold), var(--rose)); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; margin-bottom: clamp(36px, 6vw, 70px); }
.tl-item:last-child { margin-bottom: 0; }
.tl-node {
  grid-column: 2; justify-self: center; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--rose); color: var(--rose-dark); position: relative; z-index: 2;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(198,161,106,.45);
}
.tl-node svg { width: 38px; height: 38px; }
.tl-card {
  grid-row: 1; text-align: center; padding: clamp(26px, 4vw, 38px) clamp(18px, 3vw, 30px);
  background: rgba(255,255,255,.55); border: 1px solid rgba(183,126,115,.3); position: relative;
  box-shadow: 0 22px 50px -32px rgba(141,85,77,.5);
}
.tl-card::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(198,161,106,.28); pointer-events: none; }
.tl-item:nth-child(even) .tl-card { grid-column: 1; }
.tl-item:nth-child(odd) .tl-card { grid-column: 3; }
.tl-title { font-family: var(--f-sans); font-weight: 700; font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--rose-dark); }
.tl-when { margin-top: 12px; font-style: italic; font-size: clamp(1.1rem, 2.3vw, 1.3rem); line-height: 1.45; }
.tl-when span { font-style: normal; font-weight: 600; color: var(--rose-dark); letter-spacing: .06em; }
.tl-venue { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.25rem, 2.8vw, 1.55rem); color: var(--rose-dark); line-height: 1.3; }
.tl-addr { margin-top: 4px; font-size: 1.05rem; line-height: 1.5; }
.tl-map { display: inline-block; margin-top: 14px; font-family: var(--f-sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* =========================================================
   8. MAPS
   ========================================================= */
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.map-card { background: rgba(255,255,255,.62); border: 1px solid rgba(183,126,115,.3); display: flex; flex-direction: column; box-shadow: 0 22px 50px -34px rgba(141,85,77,.6); scroll-margin-top: 30px; }
.map-frame { position: relative; aspect-ratio: 4 / 3; background: #efe0dc; overflow: hidden; border-bottom: 1px solid rgba(183,126,115,.3); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.18) saturate(.9); }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.map-body { padding: 22px 22px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.map-tag { font-family: var(--f-sans); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.map-body h3 { font-family: var(--f-serif); font-weight: 600; font-size: 1.35rem; line-height: 1.3; color: var(--rose-dark); margin-top: 8px; }
.map-addr { margin-top: 4px; font-size: 1.02rem; line-height: 1.45; flex: 1; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; text-decoration: none;
  font-family: var(--f-sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-dark);
  border: 1px solid rgba(141,85,77,.45); transition: background .3s, color .3s;
}
.btn-line svg { width: 16px; height: 16px; }
.btn-line:hover { background: var(--rose-dark); color: #fff; }

/* =========================================================
   9. RSVP
   ========================================================= */
.rsvp-card {
  position: relative; max-width: 680px; margin: 0 auto; padding: clamp(56px, 8vw, 84px) clamp(22px, 6vw, 70px);
  background: rgba(255,255,255,.6); box-shadow: 0 30px 80px -40px rgba(141,85,77,.5);
}
.rsvp-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(183,126,115,.45); pointer-events: none; }
.rsvp-card .section-head { margin-bottom: 34px; }
.rsvp-intro { margin-top: 16px; font-style: italic; font-size: 1.15rem; }
.rsvp-form { position: relative; z-index: 2; display: grid; gap: 26px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(141,85,77,.45); background: transparent; border-radius: 0;
  font-family: var(--f-serif); font-size: 1.2rem; color: var(--text); padding: 22px 2px 8px; outline: none;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--rose) 50%), linear-gradient(135deg, var(--rose) 50%, transparent 50%); background-position: calc(100% - 14px) 60%, calc(100% - 8px) 60%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rose-dark); }
.field label {
  position: absolute; left: 2px; top: 22px; pointer-events: none; transition: all .3s var(--ease);
  font-family: var(--f-sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose);
}
.field label span { text-transform: none; letter-spacing: .04em; opacity: .75; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.is-static { top: 0; font-size: .64rem; }
.field.has-error input { border-color: #b0413e; }
.field-err { font-family: var(--f-sans); font-size: .75rem; color: #a3403a; margin-top: 6px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.attend { border: 0; padding: 0; margin: 8px 0 0; text-align: center; }
.attend legend { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rose-dark); margin: 0 auto 16px; padding: 0; }
.attend-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-rose, .btn-outline {
  min-height: 54px; padding: 0 18px; font-family: var(--f-sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--rose-dark); transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; position: relative; overflow: hidden;
}
.btn-rose { color: #fff; background: linear-gradient(120deg, #8d554d, #b77e73 50%, #a2665c); box-shadow: 0 12px 26px -12px rgba(141,85,77,.8); }
.btn-rose::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.btn-rose:hover::after { transform: translateX(100%); }
.btn-outline { color: var(--rose-dark); background: transparent; }
.btn-outline:hover { background: rgba(141,85,77,.08); }
.btn-rose:hover, .btn-outline:hover { transform: translateY(-2px); }
.btn-rose[disabled], .btn-outline[disabled] { opacity: .6; pointer-events: none; }
.form-status { text-align: center; font-family: var(--f-sans); font-size: .85rem; color: #a3403a; min-height: 1em; }
.rsvp-done { position: relative; z-index: 2; text-align: center; padding: 10px 0; outline: none; }
.done-heart { width: 70px; margin: 0 auto 18px; fill: none; stroke: var(--rose); stroke-width: 2; stroke-dasharray: 320; stroke-dashoffset: 320; }
.rsvp-done.is-in .done-heart { animation: drawHeart 1.6s var(--ease) forwards; }
@keyframes drawHeart { 70% { stroke-dashoffset: 0; fill: rgba(183,126,115,0); } 100% { stroke-dashoffset: 0; fill: rgba(183,126,115,.25); } }
.done-title { font-family: var(--f-script); font-size: clamp(2.3rem, 7vw, 3.3rem); color: var(--rose-dark); line-height: 1.2; }
.done-text { margin-top: 12px; font-size: 1.2rem; font-style: italic; }
.done-note { margin: 22px auto 0; max-width: 460px; font-family: var(--f-sans); font-size: .78rem; line-height: 1.6; color: var(--rose-dark); background: rgba(183,126,115,.1); padding: 12px 16px; border: 1px dashed rgba(141,85,77,.4); }
.rsvp-done .link-btn { margin-top: 26px; }

/* =========================================================
   10. FINALE
   ========================================================= */
.finale { text-align: center; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-bottom: 60px; }
.finale-inner { position: relative; z-index: 2; }
.finale-title { font-family: var(--f-serif); font-weight: 300; font-size: clamp(1.9rem, 5.4vw, 3.4rem); line-height: 1.25; color: #fbeee6; max-width: 820px; }
.finale-sign { margin-top: clamp(30px, 5vw, 48px); font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.35rem); color: #e8cfc6; }
.finale-parents { font-family: var(--f-script); font-size: clamp(3rem, 9vw, 5.4rem); line-height: 1.2; padding: 0 .2em; }
.flourish { width: min(360px, 80vw); height: auto; margin: 18px auto; color: var(--gold); }
.flourish .flourish-path, .flourish use { stroke-dasharray: 1400; }
.finale-couple { font-family: var(--f-serif); font-size: clamp(1rem, 2.6vw, 1.35rem); letter-spacing: .3em; text-transform: uppercase; color: #f3dca8; }
.finale-couple span { font-family: var(--f-script); letter-spacing: 0; text-transform: none; font-size: 1.6em; color: var(--rose); padding: 0 .2em; }
.site-foot { position: relative; z-index: 2; margin-top: clamp(70px, 10vw, 110px); font-family: var(--f-sans); font-size: .76rem; line-height: 1.8; letter-spacing: .04em; color: rgba(240,220,212,.7); max-width: 520px; }
.foot-from { font-family: var(--f-serif); font-style: italic; font-size: 1rem; color: var(--gold); }
.foot-name { font-family: var(--f-serif); font-size: 1.15rem; color: #f3e6e1; letter-spacing: .06em; }
.site-foot a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(243,220,168,.4); }
.finale-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 30vh; pointer-events: none; background: linear-gradient(transparent, #120807); opacity: .9; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; max-width: 560px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
  .g-1, .g-2, .g-3, .g-4, .g-5, .g-6 { grid-column: auto; grid-row: auto; margin-top: 0; }
  .g-1 { grid-column: 1 / -1; } .g-1 .g-frame { aspect-ratio: 4 / 5; }
  .g-2 { grid-column: 1 / -1; }
  .g-4 { margin-top: 36px; }
  .g-5 { grid-column: 1 / -1; }
  .g-6 { grid-column: 1 / -1; } .g-6 .g-frame { aspect-ratio: 4 / 5; }
  .g-item::before { transform: translate(8px, 8px); }
}
@media (max-width: 720px) {
  .tl-line { left: 38px; }
  .tl-item { grid-template-columns: 76px 1fr; gap: 0 16px; align-items: start; }
  .tl-node { grid-column: 1; width: 64px; height: 64px; margin-left: 6px; }
  .tl-node svg { width: 32px; height: 32px; }
  .tl-item:nth-child(even) .tl-card, .tl-item:nth-child(odd) .tl-card { grid-column: 2; text-align: left; }
  .tl-card .divider--sm { margin-left: 0; }
  .cd-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cd-unit { padding: 22px 2px 14px; }
  .attend-btns { grid-template-columns: 1fr; }
  .hero-floral { width: 42vw; }
  .hero-floral--tl, .hero-floral--tr { width: 30vw; }
  .invite-card::before { inset: 8px; } .invite-card::after { inset: 13px; }
}
@media (max-width: 420px) {
  .hero-date { gap: 10px; }
  .bow-label { font-size: 1.05rem; padding: 5px 16px; }
}

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

/* opening state: stop looping CSS animations so GSAP can fade these out */
.intro.is-opening .bow-pulse, .intro.is-opening .intro-hint { animation: none; opacity: 0; transition: opacity .4s; }
.intro.is-opening .bow-svg { animation: none; }
.intro-heading::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(760px, 100%); height: 170%; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(14,6,4,.82), rgba(14,6,4,.5) 55%, transparent);
}
.intro-hint { text-shadow: 0 2px 8px #000, 0 0 14px #000; }

/* interaction steps: sections after an unfinished interaction stay hidden */
#main > section.is-held { display: none; }
.step-note { text-align: center; font-family: var(--f-sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); opacity: .8; }
.scratch-hint::after { content: ''; display: block; width: 1px; height: 34px; margin: 12px auto 0; background: linear-gradient(var(--rose), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
