/* Natal 2026 — "Dimanakah Tuhan?" (dipakai bersama semua kota) */
:root {
  --ink: #120d09;
  --ink-2: #1b140e;
  --ink-3: #261c13;
  --line: rgba(243, 231, 207, 0.12);
  --cream: #f3e7cf;
  --muted: #b9a98d;
  --gold: #f5c518;
  --gold-2: #e0a93a;
  --flame: #ffb347;
  --red: #7d1010;
  --ok: #8fd19e;
  --err: #ff9b8a;
  --radius: 18px;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-script: "Yellowtail", "Brush Script MT", cursive;
  --f-sans: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
.narrow { width: min(720px, 100% - 32px); }
body.locked { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared bits ---------- */
.tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--red), rgba(125, 16, 16, 0));
  color: var(--gold);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  padding: 6px 48px 6px 16px;
  text-transform: uppercase;
  font-size: 15px;
}
.spaced { letter-spacing: 0.5em; text-transform: uppercase; font-weight: 700; font-style: italic; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 700;
  margin: 0 0 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: #1a1206; box-shadow: 0 10px 30px -10px rgba(245, 197, 24, 0.6); }
.btn-gold:hover { background: #ffd43b; }
.btn-ghost { background: rgba(243, 231, 207, 0.06); color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { background: rgba(243, 231, 207, 0.12); }
.btn-wa { background: #25d366; color: #062b14; }
.btn-wa:hover { background: #33e076; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section h2 {
  font-family: var(--f-type);
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.section h2 .script { font-family: var(--f-script); font-size: 1.25em; }
.lead { color: #d8c9ae; max-width: 640px; margin: 0 0 32px; font-size: 19px; }
.band { background: linear-gradient(180deg, var(--ink), var(--ink-2) 40%, var(--ink)); }

/* ---------- sambutan ---------- */
.letter { padding-top: 72px; }
.letter-body { font-family: var(--f-serif); font-size: clamp(21px, 2.6vw, 25px); line-height: 1.55; color: var(--cream); }
.letter-body p { margin: 0 0 18px; }
.letter-body strong { font-weight: 700; color: var(--gold); }
.letter-body .sign { margin-top: 30px; font-family: var(--f-sans); font-size: 17px; font-weight: 700; }
.letter-body .sign span { color: var(--muted); font-weight: 400; }
.hero-meta .where { display: block; color: var(--muted); font-size: 0.9em; margin-top: 2px; }

/* ---------- bilah aksi bawah ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 13, 9, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
body:not(.locked) .dock { transform: none; }
.dock > .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 16px; white-space: nowrap; }
.dock-player { flex: none; }
.dock .player { position: static; box-shadow: none; max-width: none; }
.dock .player .now { display: none; }
@media (min-width: 760px) {
  .dock { left: auto; right: 16px; bottom: 16px; border-radius: 999px; border: 1px solid var(--line); padding: 8px; }
  .dock > .btn { flex: none; }
  .dock .player .now { display: block; }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cover / envelope ---------- */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 16px;
  background: var(--ink);
  transition: opacity 1s ease, visibility 1s ease, transform 1.2s ease;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bramer-herod-1000.webp") center 40% / cover no-repeat;
  filter: blur(6px) brightness(0.35) saturate(0.8);
  transform: scale(1.08);
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(255, 179, 71, 0.18), transparent 55%);
  animation: glow 4s ease-in-out infinite;
}
.cover.open { opacity: 0; visibility: hidden; transform: scale(1.06); }
.cover-card { position: relative; z-index: 1; max-width: 460px; width: 100%; }
.cover .tag { margin-bottom: 26px; }
.cover-year { font-size: 14px; margin: 0 0 28px; color: var(--cream); }
.cover-title { font-family: var(--f-type); color: var(--gold); font-size: clamp(34px, 10vw, 54px); line-height: 1; margin: 0; }
.cover-title .script { font-family: var(--f-script); display: block; font-size: 1.5em; margin-top: -2px; }
.cover-to {
  margin: 34px auto 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 13, 9, 0.55);
  backdrop-filter: blur(6px);
}
.cover-to small { display: block; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }
.cover-to strong { display: block; font-family: var(--f-serif); font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 4px; overflow-wrap: anywhere; }
.cover-family { display: block; font-family: var(--f-serif); font-size: 21px; font-style: italic; color: var(--cream); opacity: 0.85; margin-top: 2px; }
.cover-family[hidden] { display: none; }
.cover-from { margin-top: 10px; font-size: 14px; color: var(--muted); }
.cover-from b { color: var(--cream); font-weight: 700; }
.cover-hint { margin-top: 16px; color: var(--muted); font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/bramer-herod-portrait.webp") center / cover no-repeat;
  transform: scale(1.05);
  animation: drift 26s ease-in-out infinite alternate;
}
@media (min-width: 760px) {
  .hero-art { background-image: url("../img/bramer-herod.webp"); background-position: center 30%; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 13, 9, 0.55) 0%, rgba(18, 13, 9, 0.15) 30%, rgba(18, 13, 9, 0.6) 62%, var(--ink) 100%),
    radial-gradient(circle at var(--fx, 50%) var(--fy, 46%), rgba(255, 179, 71, 0.22), transparent 30%);
  animation: glow 3.4s ease-in-out infinite;
}
.hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}
.hero-top .spaced { font-size: 13px; padding-right: 16px; letter-spacing: 0.42em; }
.hero-body { padding: 84px 0 56px; text-align: center; }
.hero h1 { margin: 0; font-weight: 400; line-height: 0.95; text-shadow: 0 6px 26px rgba(0, 0, 0, 0.8); }
.hero h1 .t1 { display: block; font-family: var(--f-type); color: var(--gold); font-size: clamp(44px, min(12vw, 11svh), 120px); min-height: 1em; }
.hero h1 .t2 {
  display: inline-block;
  font-family: var(--f-script);
  color: var(--gold);
  font-size: clamp(80px, min(24vw, 21svh), 220px);
  line-height: 1.05;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s cubic-bezier(0.6, 0, 0.2, 1);
}
.hero h1 .t2.drawn { clip-path: inset(-20% -10% -20% 0); }
.hero h1 .q { font-family: var(--f-type); font-size: 0.5em; vertical-align: 0.6em; margin-left: 0.08em; opacity: 0; transition: opacity 0.6s ease 1.4s; }
.hero h1 .t2.drawn .q { opacity: 1; }
.caret { display: inline-block; width: 0.08em; height: 0.85em; background: var(--gold); margin-left: 0.05em; vertical-align: -0.08em; animation: blink 0.9s steps(1) infinite; }
.hero-meta { margin: 22px 0 0; font-size: clamp(17px, 2.4vw, 22px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
.hero-meta .who { font-style: italic; color: var(--muted); }
.hero-meta strong { display: block; font-size: 1.35em; font-style: italic; }
.hero-meta .when { display: block; margin-top: 8px; font-weight: 700; letter-spacing: 0.02em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.scroll-cue { display: block; margin: 34px auto 0; width: 26px; height: 42px; border: 2px solid rgba(243, 231, 207, 0.5); border-radius: 14px; position: relative; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }

/* ---------- painting explorer ---------- */
.painting { margin: 56px 0 0; }
.painting-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 8px var(--ink-2), 0 0 0 9px rgba(224, 169, 58, 0.25);
}
.painting-canvas { position: relative; }
.painting-frame img { width: 100%; height: auto; aspect-ratio: 2000 / 1243; object-fit: cover; }
.spot {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(18, 13, 9, 0.55);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.spot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(245, 197, 24, 0.55); animation: ping 2.2s ease-out infinite; }
.spot[aria-pressed="true"] { background: var(--gold); color: #1a1206; }
.spot[aria-pressed="true"]::after { animation: none; opacity: 0; }
.spot { transition: opacity 0.5s ease, transform 0.4s ease; z-index: 2; }
/* tur otomatis: sorotan + keterangan */
.tour { margin: 0; }
.spotlight {
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(10, 7, 4, 0.72), inset 0 0 40px rgba(245, 197, 24, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: left 1s cubic-bezier(0.5, 0, 0.2, 1), top 1s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.8s ease;
}
.tour.live .spotlight { opacity: 1; }
.tour.live .spot { opacity: 0.55; }
.tour.live .spot[aria-pressed="true"] { opacity: 1; transform: scale(1.1); }
.tour-panel { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-top: 16px; }
.tour-arrow { height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(243, 231, 207, 0.05); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; }
.tour-arrow:hover { background: rgba(243, 231, 207, 0.12); }
.tour-text { display: grid; }
.spot-note {
  grid-area: 1 / 1;
  padding: 14px 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.spot-note.on { opacity: 1; transform: none; pointer-events: auto; }
.spot-note h3 { margin: 0 0 6px; font-family: var(--f-type); font-weight: 400; font-size: 24px; color: var(--gold); }
.spot-note p { margin: 0; color: #e3d6bc; font-size: 17px; line-height: 1.5; max-width: 620px; margin-inline: auto; }
.spot-note .ref { display: block; margin-top: 6px; color: var(--gold-2); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.tour-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.tour-dots button { width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.tour-dots i { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(243, 231, 207, 0.18); overflow: hidden; position: relative; }
.tour-dots i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tour-dots button.done i::after { transform: scaleX(1); }
.tour-dots button.on i::after { animation: fill var(--dur, 7s) linear forwards; }
.tour.paused .tour-dots button.on i::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-hint { display: none; }
@media (max-width: 600px) {
  .tour-panel { grid-template-columns: 1fr; }
  .tour-arrow { display: none; }
  /* Di HP lukisan terlalu kecil: bingkai persegi, lukisan diperbesar dan bergeser ke bagian yang disorot.
     --x / --y = posisi bagian (0-1), diisi invite.js. Geseran dibatasi supaya tepi lukisan tidak terlewat. */
  /* overflow: clip (bukan hidden): fokus/ketukan pada nomor di luar bingkai tidak menggeser isi */
  .painting-frame { --z: 2.3; --fr: 1; --r: 0.6215; --x: 0.5; --y: 0.45; aspect-ratio: 1 / 1; touch-action: pan-y; overflow: clip; }
  .painting-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(var(--z) * 100%);
    transform: translate(
      clamp(calc((1 / var(--z) - 1) * 100%), calc((0.5 / var(--z) - var(--x)) * 100%), 0%),
      clamp(calc((var(--fr) / (var(--z) * var(--r)) - 1) * 100%), calc((var(--fr) / (2 * var(--z) * var(--r)) - var(--y)) * 100%), 0%)
    );
    transition: transform 1.2s cubic-bezier(0.5, 0, 0.2, 1);
  }
  .spotlight { box-shadow: 0 0 0 9999px rgba(10, 7, 4, 0.5), inset 0 0 40px rgba(245, 197, 24, 0.12); }
  .spot { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 17px; }
  /* Nomor di lukisan bisa tersembunyi saat diperbesar, jadi bilah kemajuan jadi tombol 1–4,
     tepat di bawah lukisan (di atas keterangan). */
  .tour { display: flex; flex-direction: column; }
  .tour .painting-frame { order: 1; }
  .tour-dots { order: 2; counter-reset: dot; gap: 12px; margin-top: 20px; }
  .tour-hint { order: 3; display: block; margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
  .tour-panel { order: 4; margin-top: 4px; }
  .tour .credit { order: 5; }
  .tour-dots button {
    counter-increment: dot;
    position: relative;
    width: 58px;
    height: 44px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(243, 231, 207, 0.05);
    color: var(--muted);
    font: 700 18px/1 var(--f-sans);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  }
  .tour-dots button::before { content: counter(dot); }
  .tour-dots i { position: absolute; left: 14px; right: 14px; bottom: 6px; width: auto; height: 3px; }
  .tour-dots button.done { color: var(--cream); }
  .tour-dots button.on { color: var(--gold); border-color: var(--gold); background: rgba(245, 197, 24, 0.14); transform: scale(1.06); }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .painting-canvas { transition: none; } }
.credit { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 620px; margin: 8px 0 36px; }
.cd { padding: 18px 4px 14px; border-radius: 16px; background: rgba(243, 231, 207, 0.04); border: 1px solid var(--line); }
.cd b { display: block; font-family: var(--f-type); font-weight: 400; color: var(--gold); font-size: clamp(32px, 9vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.countdown-done { font-family: var(--f-type); color: var(--gold); font-size: 24px; margin-top: 18px; }

/* ---------- details ---------- */
.details { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .details { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
}
.card .k { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.card .v { font-size: 24px; font-weight: 700; font-style: italic; margin-top: 6px; line-height: 1.25; }
.card .s { color: #d8c9ae; margin-top: 4px; font-size: 18px; }
.card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.card .row .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.venue-photos { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 640px) { .venue-photos { grid-template-columns: 1fr 1fr; } }
.venue-photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.venue-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.venue-photos figure.missing { display: none; }
.venue-photos figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(18, 13, 9, 0.75); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
/* foto luar, foto dalam, dan peta sejajar di layar lebar */
.venue-row { display: grid; }
@media (min-width: 900px) {
  .venue-row { grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 14px; }
  .venue-row .venue-photos, .venue-row .map { margin-top: 0; }
  .venue-row .venue-photos[hidden] + .map { grid-column: 1 / -1; }
  .venue-row .map { height: auto; min-height: 0; aspect-ratio: auto; }
}

/* foto gereja: geser di HP */
@media (max-width: 639px) {
  .venue-photos:not([hidden]) {
    grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 16px; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none;
  }
  .venue-photos::-webkit-scrollbar { display: none; }
  .venue-photos figure { scroll-snap-align: start; }
}
.slide-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 2px; }
.slide-dots[hidden] { display: none; }
.slide-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(245, 197, 24, 0.3); transition: width 0.3s ease, background 0.3s ease; }
.slide-dots i.on { width: 20px; background: var(--gold); }
.lb-link { color: #120d09; background: var(--gold); padding: 6px 14px; border-radius: 999px; text-decoration: none; letter-spacing: 0.02em; text-transform: none; font-size: 14px; }
.lb-link[hidden] { display: none; }
.map-img img { cursor: zoom-in; }

/* ---------- kenangan 2025: geser di HP, grid di layar lebar ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  margin: 0 calc(-1 * 16px);
  padding: 0 16px 10px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.gallery figure { margin: 0; position: relative; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(18, 13, 9, 0.75); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 760px) {
  .gallery { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 14px; }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery img { aspect-ratio: 4 / 5; }
  .gallery figcaption { left: 10px; bottom: 10px; font-size: 12px; padding: 4px 10px; }
}
.gallery img, .venue-photos img { cursor: zoom-in; transition: transform 0.4s ease; }
.gallery img:focus-visible, .venue-photos img:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (hover: hover) { .gallery figure:hover img, .venue-photos figure:hover img { transform: scale(1.04); } }

/* ---------- popup foto ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: lb-in 0.25s ease; }
.lightbox::backdrop { background: rgba(8, 6, 4, 0.94); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { grid-column: 2; grid-row: 1; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 0 20px; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lb-fig figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; align-items: center; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; color: var(--gold); text-align: center; }
.lb-count { color: var(--muted); font-weight: 400; letter-spacing: 0.04em; }
.lb-x, .lb-nav { appearance: none; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(18, 13, 9, 0.7); color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lb-x:hover, .lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.lb-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lightbox.single .lb-nav { visibility: hidden; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-fig { grid-column: 1; padding: 64px 12px 90px; }
  .lb-fig img { max-height: calc(100dvh - 210px); }
  .lb-nav { position: absolute; bottom: 22px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { left: calc(50% + 12px); }
}

.map {
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 280px;
  background: var(--ink-2);
}
.map-img { display: block; position: relative; height: auto; aspect-ratio: 3 / 2; text-decoration: none; }
.map-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
@media (hover: hover) { .map-img:hover img { transform: scale(1.03); } }
.map-img:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.map-cta { position: absolute; right: 12px; bottom: 12px; padding: 6px 13px; border-radius: 999px; background: var(--gold); color: #120d09; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }

/* ---------- register + rsvp ---------- */
.register { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .register { grid-template-columns: 340px 1fr; } }
.reg-card { text-align: center; }
.reg-card .btn { width: 100%; }
.reg-card .s { margin: 0 0 20px; }
.wa-big { width: 96px; height: 96px; margin: 18px auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 211, 102, 0.12); color: #25d366; }
.wa-big svg { width: 54px; height: 54px; }
.form { display: grid; gap: 16px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(243, 231, 207, 0.18);
  background: rgba(18, 13, 9, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 17px;
}
.input::placeholder, .textarea::placeholder { color: rgba(185, 169, 141, 0.7); }
.input:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(243, 231, 207, 0.18);
  background: rgba(18, 13, 9, 0.5);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill input:checked + span { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(243, 231, 207, 0.18); background: rgba(18, 13, 9, 0.6); color: var(--cream); font-size: 24px; cursor: pointer; }
.stepper output { min-width: 56px; text-align: center; font-family: var(--f-type); font-size: 30px; color: var(--gold); }
.form-msg { padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.form-msg.ok { background: rgba(143, 209, 158, 0.12); color: var(--ok); border: 1px solid rgba(143, 209, 158, 0.35); }
.form-msg.err { background: rgba(255, 155, 138, 0.1); color: var(--err); border: 1px solid rgba(255, 155, 138, 0.35); }
.hidden { display: none !important; }

/* ---------- share / invite others ---------- */
.share-band {
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 197, 24, 0.12), transparent 50%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .share-grid { grid-template-columns: 1.1fr 0.9fr; } }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phone {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 34px;
  padding: 12px;
  background: #0b0806;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  transform: rotate(-3deg);
}
.phone .chat { border-radius: 24px; padding: 16px 12px; background: #0b1410 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff10'/%3E%3C/svg%3E"); min-height: 300px; }
.bubble { background: #144d37; color: #e9f5ee; border-radius: 12px 12px 4px 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-left: 24px; white-space: pre-line; }
.bubble .lk { color: #7fd3ff; text-decoration: underline; word-break: break-all; }
.bubble .tm { display: block; text-align: right; font-size: 11px; opacity: 0.6; margin-top: 4px; }

/* ---------- songs ---------- */
.songs { display: grid; gap: 10px; }
.song {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
}
.song:hover { border-color: rgba(245, 197, 24, 0.4); }
.song .pp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 197, 24, 0.12); color: var(--gold); }
.song .pp svg { width: 22px; height: 22px; }
.song.playing { border-color: var(--gold); background: linear-gradient(90deg, rgba(245, 197, 24, 0.12), var(--ink-2)); }
.song.playing .pp { background: var(--gold); color: #1a1206; }
.song .n { font-size: 12px; letter-spacing: 0.2em; color: var(--gold-2); font-weight: 700; text-transform: uppercase; }
.song .t { font-size: 20px; font-weight: 700; font-style: italic; line-height: 1.2; }
.song .o { color: var(--muted); font-size: 14px; }
.song .eq { display: none; gap: 3px; align-items: end; height: 20px; }
.song.playing .eq { display: flex; }
.eq i { width: 4px; background: var(--gold); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
body.paused .eq i { animation-play-state: paused; }

/* ---------- floating player ---------- */
.player {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(18, 13, 9, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  max-width: calc(100% - 32px);
}
.player .now { min-width: 0; line-height: 1.2; }
.player .now small { display: block; font-size: 11px; color: var(--gold-2); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; }
.player .now span { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.player button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.player .skip { background: transparent; color: var(--cream); width: 36px; }
.player .toggle { background: var(--gold); color: #1a1206; position: relative; }
.player svg { width: 20px; height: 20px; }
.player .toggle::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px dashed rgba(245, 197, 24, 0.6); animation: spin 8s linear infinite; animation-play-state: paused; }
body.music-on .player .toggle::before { animation-play-state: running; }

/* ---------- footer ---------- */
.footer { padding: 64px 0 140px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer .brand { font-family: var(--f-type); color: var(--gold); font-size: 22px; }
.footer p { margin: 6px 0; }
.footer .credits { max-width: 680px; margin: 22px auto 0; font-size: 12px; opacity: 0.85; }

/* ---------- kirim page ---------- */
.k-hero { padding: 56px 0 24px; text-align: center; }
.k-hero h1 { font-family: var(--f-type); font-weight: 400; color: var(--gold); font-size: clamp(32px, 7vw, 52px); line-height: 1.1; margin: 10px 0 12px; }
.k-hero h1 .script { font-family: var(--f-script); font-size: 1.3em; }
.k-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.k-grid { display: grid; gap: 18px; padding-bottom: 80px; }
@media (min-width: 920px) { .k-grid { grid-template-columns: 1fr 1fr; align-items: start; } .k-grid .sticky { position: sticky; top: 16px; } }
.k-step { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; }
.k-step b { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1206; display: grid; place-items: center; font-size: 15px; flex: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(18, 13, 9, 0.6); border: 1px solid var(--line); margin-bottom: 20px; }
.seg button { min-height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #1a1206; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.linkbox { padding: 14px 16px; border-radius: 14px; background: rgba(18, 13, 9, 0.6); border: 1px dashed rgba(245, 197, 24, 0.4); color: var(--gold); word-break: break-all; font-size: 14px; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn-grid .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
.btn-grid .full { grid-column: 1 / -1; }
.mini-invite {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: center;
  padding: 26px 18px 22px;
  margin-bottom: 16px;
}
.mini-invite::before { content: ""; position: absolute; inset: 0; background: url("../img/bramer-herod-1000.webp") center 40% / cover; filter: brightness(0.32) blur(2px); transform: scale(1.05); }
.mini-invite > * { position: relative; }
.mini-invite .spaced { font-size: 11px; color: var(--cream); }
.mini-invite .ti { font-family: var(--f-type); color: var(--gold); font-size: 26px; line-height: 1; margin-top: 14px; }
.mini-invite .ti span { display: block; font-family: var(--f-script); font-size: 1.6em; }
.mini-invite .to { margin-top: 16px; color: var(--muted); font-size: 13px; }
.mini-invite .to strong { display: block; color: var(--cream); font-family: var(--f-serif); font-size: 22px; overflow-wrap: anywhere; }
.mini-invite .pv-family { display: block; font-size: 16px; font-style: italic; opacity: 0.85; }
.guest-rows { display: grid; gap: 8px; }
.guest-row { display: grid; grid-template-columns: 128px 1fr 44px; gap: 8px; align-items: center; }
.guest-row .select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background: rgba(18, 13, 9, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e0a93a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 16px;
}
.guest-row .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18); }
.guest-row .del { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.guest-row .del:hover { color: var(--err); border-color: rgba(255, 155, 138, 0.4); }
.add-row { width: 100%; margin-top: 10px; min-height: 46px; }
@media (max-width: 400px) {
  .page-kirim .card { padding: 22px 16px; }
  .guest-row { grid-template-columns: 96px 1fr 40px; gap: 6px; }
  .guest-row .select { padding-left: 12px; padding-right: 26px; background-position: right 9px center; }
  .guest-row .del { width: 40px; }
}
.batch { display: grid; gap: 8px; margin-top: 14px; }
.batch-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(18, 13, 9, 0.6); border: 1px solid var(--line); }
.batch-row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-row .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.batch-row.sent { opacity: 0.55; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--cream);
  color: #1a1206;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.page-kirim { padding-bottom: 72px; }
@media (max-width: 760px) {
  .page-kirim .player { padding: 6px; }
  .page-kirim .player .now,
  .page-kirim .player .skip { display: none; }
}
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; gap: 12px; }
.topbar a.back { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; }

/* ---------- motion ---------- */
@keyframes glow { 0%, 100% { opacity: 0.85; } 45% { opacity: 1; } 60% { opacity: 0.75; } }
@keyframes drift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 20px; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .t2 { clip-path: none; }
  .hero h1 .q { opacity: 1; }
}

/* ---------- pilih sapaan (tombol + panel) ---------- */
.title-btn {
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  padding-right: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(18, 13, 9, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e0a93a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.title-btn.has { color: var(--gold); font-weight: 700; }
.title-btn:hover { border-color: rgba(245, 197, 24, 0.45); }
.title-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18); }
@media (max-width: 400px) { .title-btn { padding-left: 12px; padding-right: 24px; background-position: right 8px center; } }

.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 2, 0.6); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.2s ease; }
.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 88svh;
  overflow-y: auto;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-top: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
@media (min-width: 640px) {
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; border-radius: 22px; border: 1px solid rgba(245, 197, 24, 0.25); transform: translate(-50%, -46%); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease; padding-bottom: 22px; }
  .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grab { display: none; }
}
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(243, 231, 207, 0.25); margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-family: var(--f-type); font-weight: 400; color: var(--gold); font-size: 24px; line-height: 1.2; }
.sheet-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.sheet-x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 22px; cursor: pointer; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet-opt {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(243, 231, 207, 0.16);
  background: rgba(18, 13, 9, 0.55);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sheet-opt.wide { grid-column: 1 / -1; }
.sheet-opt:hover { border-color: rgba(245, 197, 24, 0.45); }
.sheet-opt[aria-pressed="true"] { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.sheet-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sheet-label { display: block; margin: 18px 0 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.sheet-custom { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sheet-custom .btn { min-height: 52px; padding: 0 20px; }
body.sheet-open { overflow: hidden; }

/* ---------- panel bagikan ---------- */
.share-opts { display: grid; gap: 10px; }
.share-opts .btn { width: 100%; min-height: 52px; }
.share-opts .btn svg { width: 22px; height: 22px; }
.share-link { margin-top: 14px; text-align: center; }
.share-opts [hidden] { display: none; }
