:root {
  --ivory: #f5f0e6;
  --paper: #fbf8f2;
  --ink: #1b1916;
  --ink-2: #4a453d;
  --muted: #8a8174;
  --gold: #b38b4d;
  --gold-2: #d8bd8a;
  --sage: #5f6b4e;
  --line: rgba(27, 25, 22, 0.12);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", cursive;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s 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); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--ivory);
  display: grid; place-items: center; transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader svg { width: 150px; height: 150px; }
.loader .mono path, .loader .mono circle { fill: none; stroke: var(--gold-2); stroke-width: 1; }
.loader .mono circle { stroke-dasharray: 440; stroke-dashoffset: 440; animation: draw 2.2s var(--ease) forwards; }
.loader text { font-family: var(--script); fill: var(--ivory); font-size: 44px; opacity: 0; animation: fadein 1.2s 0.6s forwards; }
.loader .pct { position: absolute; bottom: 12vh; font-family: var(--serif); letter-spacing: 0.3em; font-size: 0.8rem; color: var(--gold-2); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Cover ---------- */
.cover {
  position: fixed; inset: 0; z-index: 100; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 24px max(10vh, 64px); text-align: center;
}
/* Foto cover = tirai teater dua sisi. Saat dibuka, sudut bawah-tengah tersibak duluan
   ke arah samping atas, bagian atas menyusul (bentuk diatur lewat clip-path di invite.js) */
.curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: -1; will-change: clip-path; filter: drop-shadow(0 0 18px rgba(0,0,0,.45)); }
.curtain.left { left: 0; }
.curtain.right { right: 0; }
.curtain .bg {
  position: absolute; top: 0; bottom: 0; width: 100vw; background-size: cover; background-position: center 30%;
  transform: scale(1.08); animation: kb 18s ease-in-out infinite alternate;
}
.curtain.left .bg { left: 0; } .curtain.right .bg { right: 0; }
.curtain .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.05) 40%, rgba(0,0,0,.78)); }
.curtain .folds { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(0,0,0,.38) 0, rgba(255,255,255,.12) 3.5%, rgba(0,0,0,.06) 5.5%, rgba(0,0,0,.38) 8%); }
@keyframes kb { to { transform: scale(1.18) translateY(-2%); } }
.cover.gone { display: none; }
.eyebrow { font-family: var(--sans); letter-spacing: 0.42em; text-transform: uppercase; font-size: 0.68rem; font-weight: 400; }
.cover h1 { font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 13vw, 7.5rem); line-height: 1.05; margin: 10px 0 6px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.cover h1 .amp { font-family: var(--serif); font-style: italic; font-size: 0.55em; color: var(--gold-2); margin: 0 0.15em; }
.cover .to { margin: 22px 0 18px; font-family: var(--serif); font-size: 1rem; opacity: 0.9; }
.cover .to strong { display: block; font-size: 1.55rem; font-weight: 500; margin-top: 4px; letter-spacing: 0.02em; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-light { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.5); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--gold); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn svg { width: 16px; height: 16px; }
.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: #111; }
.hero canvas, .hero .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .fallback { background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); pointer-events: none; }
.hero .inner { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 0 24px 14vh; text-align: center; }
.hero .names { font-family: var(--script); font-size: clamp(3.6rem, 14vw, 9rem); line-height: 1; font-weight: 400; }
.hero .names .wd { display: inline-block; white-space: nowrap; }
.hero .names .ch { display: inline-block; }
.hero .date { margin-top: 18px; font-family: var(--serif); letter-spacing: 0.35em; font-size: clamp(0.85rem, 2.4vw, 1.05rem); }
.hero .dots { position: absolute; z-index: 3; right: 20px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.hero .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .5s; }
.hero .dots i.on { background: #fff; height: 22px; border-radius: 3px; }
.scroll-hint { position: absolute; z-index: 3; bottom: 4vh; left: 50%; transform: translateX(-50%); width: 1px; height: 46px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-hint::after { content: ""; position: absolute; left: 0; top: -46px; width: 1px; height: 46px; background: #fff; animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 46px; } }

/* ---------- Generic sections ---------- */
section { position: relative; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.sec { padding: clamp(90px, 14vw, 170px) 0; }
.sec-title { text-align: center; margin-bottom: clamp(44px, 7vw, 80px); }
.sec-title .eyebrow { color: var(--gold); }
.sec-title h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.05; margin-top: 12px; letter-spacing: -0.01em; }
.sec-title h2 em { font-family: var(--script); font-style: normal; color: var(--gold); font-size: 1.15em; }
.ornament { width: 120px; height: 18px; margin: 20px auto 0; color: var(--gold); }
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: inline-block; }

/* quote */
.quote { background: var(--ink); color: var(--ivory); overflow: hidden; text-align: center; }
.quote .bgimg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; opacity: 0.28; filter: grayscale(0.4); }
.quote .wrap { position: relative; max-width: 820px; }
.quote .arab { font-family: "Amiri", serif; font-size: clamp(1.5rem, 4.4vw, 2.3rem); line-height: 2; direction: rtl; color: var(--gold-2); margin-bottom: 36px; }
.quote p.tr { font-family: var(--serif); font-size: clamp(1.2rem, 3.4vw, 1.75rem); line-height: 1.55; font-style: italic; }
.quote p.tr .w { opacity: 0.15; transition: opacity .2s; }
.quote .src { margin-top: 26px; font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-2); }

/* couple */
.couple-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 60px); }
.person { text-align: center; }
.person .frame { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 999px 999px 18px 18px; margin: 0 auto 26px; max-width: 360px; clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); }
.person .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: 50% 30%; }
.person h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.1; color: var(--ink); }
.person .full { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-top: 4px; }
.person .par { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.person .ig { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 0.8rem; color: var(--gold); text-decoration: none; }
.big-amp { font-family: var(--script); font-size: clamp(5rem, 14vw, 10rem); color: var(--gold); line-height: 1; }

/* countdown */
.count { color: #fff; text-align: center; overflow: hidden; min-height: 100svh; display: grid; place-items: center; }
.count .bgimg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; }
.count .bgimg { background-image: url(../photos/p026.jpg); }
.count-photo { display: none; }
/* HP: foto utuh di bingkai sendiri, latar diburamkan, supaya timer tidak menutupi kami */
@media (max-width: 700px) {
  .count .bgimg { background-image: url(../photos/p026_blur.jpg); }
  .count-photo { display: block; margin: 22px auto 26px; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 0 0 1px rgba(214,184,130,.55), 0 24px 50px -18px rgba(0,0,0,.7); }
  .count-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
}
.count::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(24,18,10,.55), rgba(12,9,5,.85)); z-index: 1; }
.count .wrap { position: relative; z-index: 2; }
.count .eyebrow { color: var(--gold-2); }
.count h2 { font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 13vw, 6.6rem); line-height: 1.1; text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.count .dl { font-family: var(--serif); letter-spacing: .3em; margin-top: 6px; color: var(--gold-2); font-variant-numeric: lining-nums; }
.timer { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); margin: 44px 0 40px; }
.timer .u { position: relative; min-width: clamp(72px, 19vw, 140px); padding: 20px 8px 16px; border: 1px solid rgba(216,189,138,.75); border-radius: 18px; background: linear-gradient(160deg, rgba(40,31,18,.78), rgba(15,11,6,.82)); box-shadow: 0 18px 40px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,236,200,.18); overflow: hidden; }
.timer .u::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(216,189,138,.25); border-radius: 14px; pointer-events: none; }
.timer .u::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,230,180,.18), transparent); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.timer .n { font-family: var(--serif); font-size: clamp(2.6rem, 10.5vw, 5rem); line-height: 1.15; font-weight: 500; display: block; overflow: hidden; height: 1.15em; font-variant-numeric: lining-nums tabular-nums; color: #fffaf0; text-shadow: 0 0 22px rgba(232,207,152,.35); }
.timer .n span { display: block; }
.timer .l { font-size: 0.64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); margin-top: 6px; display: block; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* events */
.events { background: var(--ivory); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.ev {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 220px 220px 24px 24px;
  padding: 70px 30px 40px; text-align: center; overflow: hidden;
}
.ev::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(179,139,77,.35); border-radius: 210px 210px 18px 18px; pointer-events: none; }
.ev .roots { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); overflow: visible; pointer-events: none; }
.ev .eyebrow { color: var(--gold); }
.ev h3 { font-family: var(--script); font-weight: 400; font-size: 3rem; margin: 10px 0 18px; }
.ev .d { font-family: var(--serif); font-size: 1.35rem; }
.ev .t { margin: 6px 0 20px; color: var(--ink-2); }
.ev .v { font-weight: 400; }
.ev .a { color: var(--muted); font-size: 0.9rem; }
.map { position: relative; margin: 34px auto 0; max-width: 760px; border-radius: 28px; overflow: hidden; background: #f6f0e4; box-shadow: 0 30px 60px -30px rgba(60,40,10,.35), 0 0 0 1px rgba(179,139,77,.35); }
.map::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(179,139,77,.4); border-radius: 22px; pointer-events: none; }
.map svg { display: block; width: 100%; height: auto; aspect-ratio: 680 / 640; }
@media (max-width: 600px) { .map svg { aspect-ratio: auto; height: 400px; } }
.map .pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
.map.live .pulse { animation: mapPulse 2.6s ease-out infinite; }
.map.live .p2 { animation-delay: 1.3s; }
@keyframes mapPulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.map-open { position: absolute; top: 20px; left: 20px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 12px; background: rgba(255,250,240,.92); backdrop-filter: blur(6px); color: var(--ink); font-size: .82rem; letter-spacing: .06em; box-shadow: 0 6px 18px rgba(60,40,10,.15); border: 1px solid rgba(179,139,77,.35); transition: transform .3s var(--ease); }
.map-open:hover { transform: translateY(-2px); }
.map-open svg { width: 15px; height: 15px; color: var(--gold); }
.map-note { position: absolute; left: 22px; bottom: 16px; font-family: var(--serif); font-style: italic; font-size: .85rem; color: var(--muted); }

/* story (horizontal pin) */
.story { background: var(--ink); color: var(--ivory); overflow: hidden; }
.story .head { position: absolute; top: clamp(40px, 8vh, 80px); left: 0; right: 0; z-index: 2; text-align: center; }
.story .head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 6vw, 3.6rem); }
.story .head h2 em { font-family: var(--script); font-style: normal; color: var(--gold-2); font-size: 1.15em; }
.story .track { display: flex; height: 100svh; align-items: center; gap: 8vw; padding: 14vh 10vw 0; width: max-content; }
.chap { width: min(78vw, 920px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.chap .img { aspect-ratio: 4/3; max-height: 58vh; overflow: hidden; border-radius: 18px; }
.chap .img img { width: 115%; max-width: none; height: 100%; object-fit: cover; }
.chap .yr { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--gold-2); }
.chap .when { margin-top: 10px; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(245,240,230,.6); }
.chap h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold-2); margin: 12px 0; }
.chap p { color: rgba(245,240,230,.75); max-width: 380px; }
.story .bar { position: absolute; bottom: 7vh; left: 10vw; right: 10vw; height: 1px; background: rgba(255,255,255,.15); }
.story .bar i { display: block; height: 100%; width: 100%; background: var(--gold-2); transform-origin: left; transform: scaleX(0); }

/* gallery */
.marquee { overflow: hidden; padding: 6px 0; }
.marquee .row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.marquee img { height: clamp(150px, 26vw, 300px); width: auto; border-radius: 12px; object-fit: cover; }
.masonry { columns: 3 260px; column-gap: 14px; margin-top: 60px; }
.masonry figure { break-inside: avoid; margin-bottom: 14px; overflow: hidden; border-radius: 14px; cursor: zoom-in; position: relative; }
.masonry img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.masonry figure:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(12,11,10,.94); display: none; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .x, .lightbox .nav { position: absolute; color: #fff; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.lightbox .x { top: 18px; right: 18px; }
.lightbox .prev { left: 14px; top: 50%; } .lightbox .next { right: 14px; top: 50%; }

/* guest camera teaser */
.cam-teaser { background: #efe7d8; overflow: hidden; }
.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.polaroids { position: relative; height: clamp(380px, 52vw, 560px); }
.pol { position: absolute; background: #fff; padding: 12px 12px 46px; box-shadow: 0 20px 50px rgba(60,40,10,.18); width: clamp(170px, 24vw, 260px); }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(1.1) contrast(1.05) sepia(.12); }
.pol span { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: "Caveat", cursive; font-size: 1.2rem; color: var(--ink-2); }
.pol.p1 { left: 4%; top: 6%; transform: rotate(-8deg); z-index: 4; }
.pol.p2 { left: 34%; top: 0; transform: rotate(5deg); z-index: 2; }
.pol.p3 { left: 18%; top: 34%; transform: rotate(-2deg); z-index: 3; }
.cam-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.05; }
.cam-copy h2 em { font-family: var(--script); font-style: normal; color: var(--gold); font-size: 1.15em; }
.cam-copy p.lead { color: var(--ink-2); margin: 18px 0 26px; max-width: 460px; }
/* strip film */
.cam-grid > * { min-width: 0; }
.film { --holes: repeating-linear-gradient(90deg, rgba(239,231,216,.9) 0 9px, transparent 9px 20px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 26px 12px; background: var(--holes) 10px 8px / calc(100% - 20px) 8px no-repeat local, var(--holes) 10px calc(100% - 8px) / calc(100% - 20px) 8px no-repeat local, #1d1a16; border-radius: 6px; margin: 0 0 28px; box-shadow: 0 24px 50px -24px rgba(40,25,5,.55); }
.film-frame { background: linear-gradient(160deg, #2b2620, #191612); border: 1px solid rgba(216,189,138,.18); border-radius: 4px; padding: 16px 12px 14px; color: var(--ivory); display: grid; align-content: start; gap: 4px; }
.film-frame .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); border: 1px solid rgba(216,189,138,.4); margin-bottom: 8px; }
.film-frame .ico svg { width: 22px; height: 22px; }
.film-frame .ico.counter { border-radius: 8px; width: 52px; background: #0d0b09; box-shadow: inset 0 0 0 2px #3a332a; }
.film-frame .counter span { font-family: "Courier New", monospace; font-weight: 700; font-size: 1.35rem; color: #f2a54a; text-shadow: 0 0 8px rgba(242,165,74,.6); }
.film-frame b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--gold-2); line-height: 1.2; }
.film-frame > span { font-size: .8rem; line-height: 1.45; color: rgba(245,240,230,.7); }
.cam-actions { display: grid; gap: 12px; max-width: 460px; }
.cam-main { justify-content: center; padding-block: 16px; }
.cam-soon { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px; border: 1px dashed rgba(179,139,77,.6); background: rgba(255,250,240,.6); }
.cam-soon svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--ink); color: var(--gold-2); }
.cam-soon div { display: grid; } .cam-soon b { font-weight: 500; } .cam-soon small { font-size: .78rem; color: var(--muted); }
.secret { text-decoration: none; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(179,139,77,.35); color: var(--ink); transition: transform .3s var(--ease), background .3s; }
.secret:hover { transform: translateY(-2px); background: #fff; }
.secret .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #ecd9b0, #b38b4d); color: var(--ink); }
.secret .ic svg { width: 20px; height: 20px; }
.secret .tx { display: grid; } .secret b { font-weight: 500; } .secret small { font-size: .78rem; color: var(--muted); }
.secret i { font-style: normal; color: var(--gold); font-size: 1.2rem; }
.album-link { text-decoration: none; justify-self: center; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding: 8px 4px; border-bottom: 1px solid rgba(179,139,77,.4); }
.album-link span { display: inline-block; transition: transform .3s; } .album-link:hover span { transform: translateX(4px); }
@media (max-width: 700px) {
  .film { grid-template-columns: repeat(3, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; border-radius: 0; padding-inline: 16px; scrollbar-width: none; }
  .film::-webkit-scrollbar { display: none; }
  .film-frame { scroll-snap-align: center; }
}
.feat { display: grid; gap: 14px; margin-bottom: 30px; }
.feat div { display: flex; gap: 14px; align-items: flex-start; }
.feat b { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1; min-width: 34px; font-weight: 500; }
.feat span { font-size: 0.95rem; }

/* RSVP */
.rsvp { background: var(--paper); }
.rsvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; font: inherit; font-size: 1.05rem; color: var(--ink); outline: none; transition: border-color .3s; border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }
.rsvp-intro { max-width: 520px; margin: 14px auto 0; color: var(--ink-2); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; }
/* kartu kirim doa */
.doa-card { position: relative; background: linear-gradient(170deg, #fffdf8, #f6eedf); border-color: rgba(179,139,77,.45); box-shadow: 0 30px 70px -36px rgba(90,60,15,.45); }
.doa-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(179,139,77,.3); border-radius: 18px; pointer-events: none; }
.doa-head { text-align: center; margin-bottom: 22px; color: var(--gold); }
.doa-head svg { width: 120px; display: block; margin: 0 auto 6px; }
.doa-head h3 { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; color: var(--ink); }
.doa-head h3 em { font-family: var(--script); font-style: normal; color: var(--gold); font-size: 1.3em; }
.doa-head .for { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.doa-head .for b { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.doa-head .for button { font-size: .72rem; color: var(--gold); text-decoration: underline; margin-left: 4px; }
.doa-field textarea { min-height: 150px; padding: 14px 16px; border: 1px solid rgba(179,139,77,.35); border-radius: 14px; background: rgba(255,255,255,.75) repeating-linear-gradient(transparent 0 31px, rgba(179,139,77,.16) 31px 32px); background-attachment: local; background-position: 0 14px; line-height: 32px; font-family: var(--serif); font-size: 1.2rem; }
.doa-field textarea:focus { border-color: var(--gold); background-color: #fff; }
.doa-send { width: 100%; justify-content: center; padding-block: 17px; background: linear-gradient(120deg, #c9a66c, #a47a3d 55%, #c9a66c); background-size: 200% 100%; color: #fff; box-shadow: 0 14px 30px -14px rgba(164,122,61,.8); transition: background-position .6s var(--ease), transform .3s; }
.doa-send:hover { background-position: 100% 0; transform: translateY(-2px); }
.doa-send svg { width: 18px; height: 18px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; transition: all .3s; }
.seg button.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
/* hashtag */
.hashtag { display: inline-block; font-family: var(--serif); font-style: italic; letter-spacing: .04em; }
.hashtag span { font-style: normal; }
.hashtag b { font-family: var(--script); font-weight: 400; font-style: normal; color: var(--gold-2); font-size: 1.35em; margin: 0 1px; }
.hero .hashtag { margin-top: 14px; font-size: 1.05rem; color: rgba(255,255,255,.9); }
.closing-tag { margin-top: 28px; display: grid; gap: 6px; justify-items: center; }
.closing-tag small { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.closing-tag .hashtag { font-size: clamp(1.8rem, 7vw, 2.6rem); padding: 6px 22px 10px; border: 1px solid rgba(216,189,138,.55); border-radius: 999px; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.closing-tag .why { letter-spacing: .2em; text-transform: none; }
.closing-tag .why b { color: var(--gold-2); font-weight: 500; }
footer .f-tag { display: inline-block; margin-top: 10px; color: var(--gold-2); letter-spacing: .08em; font-family: var(--serif); font-style: italic; font-size: .95rem; }

/* buku tamu */
.guestbook { position: relative; background: var(--ink); color: var(--ivory); border-color: rgba(216,189,138,.35); overflow: hidden; }
.guestbook::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(216,189,138,.25); border-radius: 18px; pointer-events: none; }
.guestbook::after { content: ""; position: absolute; width: 340px; height: 340px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(216,189,138,.18), transparent 65%); pointer-events: none; }
.gb-head { text-align: center; margin-bottom: 18px; }
.gb-head .eyebrow { color: var(--gold-2); }
.gb-head h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-top: 4px; }
.gb-head h3 em { font-family: var(--script); font-style: normal; color: var(--gold-2); font-size: 1.25em; }
.guestbook .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 14px; }
.guestbook .stats div { background: none; border-radius: 0; padding: 6px 4px; text-align: center; }
.guestbook .stats div + div { border-left: 1px solid rgba(216,189,138,.25); }
.guestbook .stats b { color: var(--gold-2); font-size: 2.3rem; font-variant-numeric: lining-nums; }
.guestbook .stats span { color: rgba(245,240,230,.6); font-size: .6rem; }
.att-bar { display: flex; height: 4px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); margin: 0 6px 22px; }
.att-bar i { height: 100%; width: 0; transition: width 1.2s var(--ease); }
.att-bar .y { background: var(--gold-2); } .att-bar .r { background: rgba(216,189,138,.45); } .att-bar .n { background: rgba(255,255,255,.25); }
.guestbook .wishes { max-height: 430px; }
.guestbook .wish { display: grid; grid-template-columns: 38px 1fr; gap: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(216,189,138,.14); }
.guestbook .wish .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); background: linear-gradient(140deg, #ecd9b0, #b38b4d); }
.guestbook .wish .n small { color: rgba(245,240,230,.45); }
.guestbook .wish .tag { display: inline-block; margin: 4px 0 0; background: rgba(216,189,138,.18); color: var(--gold-2); }
.guestbook .wish .tag.no { background: rgba(255,255,255,.08); color: rgba(245,240,230,.6); }
.guestbook .wish p { color: rgba(245,240,230,.82); font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.5; }
.gb-empty { text-align: center; padding: 18px 10px 26px; color: var(--gold-2); }
.gb-empty svg { width: 120px; margin: 0 auto 14px; display: block; animation: gbFloat 4s ease-in-out infinite; }
.gb-empty p { font-family: var(--serif); font-size: 1.2rem; color: rgba(245,240,230,.75); line-height: 1.4; }
.gb-empty p em { font-family: var(--script); font-style: normal; font-size: 1.8em; color: var(--gold-2); }
.gb-empty .hashtag { margin-top: 14px; font-size: 1.05rem; color: rgba(245,240,230,.7); }
@keyframes gbFloat { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.stats { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.stats div { flex: 1; min-width: 90px; text-align: center; padding: 12px; border-radius: 14px; background: var(--ivory); }
.stats b { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.1; }
.stats span { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.wishes { max-height: 460px; overflow-y: auto; padding-right: 6px; display: grid; gap: 12px; }
.wishes.scrolly { overscroll-behavior: contain; }
.wish { padding: 16px 18px; border-radius: 16px; background: var(--ivory); animation: wishin .6s var(--ease); }
.wish .n { font-weight: 500; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wish .n small { font-weight: 300; font-size: .7rem; color: var(--muted); }
.wish .tag { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--sage); color: #fff; margin-left: 6px; }
.wish .tag.no { background: var(--muted); }
.wish p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; white-space: pre-wrap; word-break: break-word; }
@keyframes wishin { from { opacity: 0; transform: translateY(12px); } }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); z-index: 160; background: var(--ink); color: var(--ivory); padding: 12px 22px; border-radius: 999px; font-size: .85rem; opacity: 0; pointer-events: none; transition: all .4s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Gift */
.gift { background: var(--ivory); }
.gift-intro { text-align: center; max-width: 560px; margin: -30px auto 40px; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; max-width: 820px; margin: 0 auto; perspective: 1200px; }
.bank {
  position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 24px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #2a2620 0%, #13110e 60%, #3b3123 100%); transform-style: preserve-3d; transition: transform .2s;
  box-shadow: 0 30px 60px rgba(30,20,5,.25);
}
.bank::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(216,189,138,.35), transparent 45%); pointer-events: none; }
.bank .chip { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #e8cf9b, #a8803f); margin: 10px 0 18px; }
.bank .bn { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .05em; }
.bank .num { font-family: "Courier Prime", monospace; font-size: clamp(1.05rem, 3.6vw, 1.35rem); letter-spacing: .14em; }
.bank .hold { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.bank .copy { position: absolute; right: 18px; bottom: 18px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.15); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.bank .logo { position: absolute; right: 22px; top: 20px; font-family: var(--script); font-size: 1.6rem; color: var(--gold-2); }

/* closing */
.closing { min-height: 100svh; color: #fff; display: grid; place-items: end center; text-align: center; overflow: hidden; padding-bottom: 14vh; }
.closing .bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.2); }
.closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.75)); z-index: 1; }
.closing .wrap { position: relative; z-index: 2; max-width: 640px; }
.closing p { font-family: var(--serif); font-size: 1.15rem; opacity: .9; }
.closing h2 { font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 12vw, 7rem); line-height: 1.1; margin: 18px 0; }
footer { background: var(--ink); color: rgba(245,240,230,.5); text-align: center; padding: 30px 20px 110px; font-size: .75rem; letter-spacing: .15em; }

/* floating ui */
.music {
  position: fixed; right: 16px; bottom: 92px; z-index: 80; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--gold-2); display: none; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.music.show { display: grid; }
.music svg { width: 22px; height: 22px; }
.music.playing svg { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dock {
  position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); z-index: 80; display: flex; gap: 2px; padding: 6px;
  background: rgba(27,25,22,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 999px; transition: transform .8s var(--ease);
  max-width: calc(100% - 24px);
}
.dock.show { transform: translate(-50%, 0); }
.dock a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: rgba(245,240,230,.6); transition: all .3s; }
.dock a.on { background: var(--ivory); color: var(--ink); }
.dock svg { width: 19px; height: 19px; }
.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--gold); border-radius: 50%; transition: width .3s, height .3s, margin .3s, background .3s; mix-blend-mode: difference; display: none; }
.cursor.big { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(216,189,138,.25); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
#petals { position: fixed; top: 0; left: 0; width: 100%; z-index: 60; pointer-events: none; }

/* responsive */
@media (max-width: 820px) {
  .couple-grid { grid-template-columns: 1fr; }
  .big-amp { margin: -10px 0; }
  .chap { grid-template-columns: 1fr; width: 80vw; gap: 18px; }
  .story .track { padding-top: 12vh; padding-bottom: 84px; }
  .chap .img { aspect-ratio: 4/3.4; max-height: 32vh; }
  .chap h3 { font-size: 2.3rem; margin: 6px 0 8px; line-height: 1.15; }
  .chap p { font-size: .92rem; line-height: 1.6; }
  .chap .when { margin-top: 4px; }
  .chap .yr { font-size: 3.4rem; }
  .story .track { gap: 10vw; }
  .cam-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .polaroids { height: 400px; }
  .pol { width: 54vw; max-width: 240px; }
  .pol.p2 { left: 40%; }
  .pol.p3 { left: 12%; top: 32%; }
  .hero .dots { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Zoom foto ---------- */
.zoomer { position: relative; height: 100svh; overflow: hidden; background: var(--paper); }
.zm-frame { position: absolute; inset: 0; overflow: hidden; transform: scale(.42); border-radius: 40vw 40vw 24px 24px; will-change: transform; }
.zm-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); will-change: transform; }
.zm-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72)); opacity: 0; transition: opacity .8s; }
.zoomer.dark .zm-frame::after { opacity: 1; }
.zm-text { position: absolute; inset: 0; display: grid; place-content: end center; text-align: center; color: #fff; padding: 0 24px 16svh; opacity: 0; z-index: 2; }
.zm-text .eyebrow { color: var(--gold-2); }
.zm-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 8vw, 5rem); line-height: 1.1; margin-top: 14px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.zm-text h2 em { font-family: var(--script); font-style: normal; color: var(--gold-2); font-size: 1.1em; }
@media (max-width: 600px) { .zm-frame { transform: scale(.62); border-radius: 48vw 48vw 24px 24px; } }
.ev-grid { perspective: 1200px; }

/* Lapisan GPU untuk elemen yang dianimasikan saat scroll */
#heroGL, .bgimg, .person .frame img, .masonry figure, .masonry img, .chap img, #polaroids { will-change: transform; backface-visibility: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: var(--dim, 0); pointer-events: none; }

[hidden] { display: none !important; }
