/* ═══ Palet — editorial ivory/olive/cokelat ═══ */
:root {
  --ivory: #f1ede1;
  --cream: #e9e3d0;
  --paper: #f6f3ea;
  --taupe: #b9ac96;
  --olive: #6f6b45;
  --olive-soft: #9a9772;
  --sage: #b9bda4;
  --brown: #362b21;
  --brown-2: #4a3b2e;
  --gold: #c2ad83;
  --ink: #2f2a24;
  --script: 'Pinyon Script', cursive;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--serif); color: var(--ink); background: var(--ivory); min-height: 100dvh; }
body.locked { overflow: hidden; }
.js body:not(.invitation-open) #nav,
.js body:not(.invitation-open) #app { display: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 4px;
}

/* ═══ Judul script bersama ═══ */
.script-heading { font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--ink); line-height: 1.15; }
.script-heading.light { color: var(--ivory); }
.script-heading.sm { font-size: clamp(1.9rem, 4.5vw, 2.5rem); }
.script-heading.xs { font-size: 1.7rem; }

/* ═══ COVER: amplop 3D ═══ */
#cover {
  position: fixed; inset: 0; z-index: 50;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 20%, #faf7ee 0%, transparent 55%),
    var(--ivory);
  transition: opacity .9s ease, visibility .9s;
  overflow: hidden;
}
.js #cover { display: flex; }
#cover.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.vine { position: absolute; top: 0; width: 60px; height: 300px; color: var(--olive-soft); opacity: .7; }
.vine-l { left: 4vw; }
.vine-r { right: 4vw; }
.vine .leaves { fill: none; }
.cover-eyebrow { font-family: var(--sans); letter-spacing: .42em; text-transform: uppercase; font-size: .68rem; color: var(--olive); }
.cover-names {
  font-family: var(--script); font-weight: 400; font-size: clamp(2.8rem, 10vw, 4rem);
  color: var(--ink); text-align: center; line-height: 1.1;
}
.cover-names span { font-size: .55em; color: var(--gold); }
.cover-hint { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); opacity: .8; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.envelope-scene { perspective: 1100px; }
.envelope {
  position: relative; width: min(330px, 80vw); aspect-ratio: 10/7;
  transform-style: preserve-3d;
  transform: rotateX(12deg);
  transition: transform 1s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 26px 32px rgba(54,43,33,.3));
}
.envelope.open { transform: rotateX(38deg) translateY(6%); }
.env-back, .env-left, .env-right, .env-bottom, .env-flap { position: absolute; inset: 0; }
.env-back { background: #a9ad92; border-radius: 6px; }
.env-card {
  position: absolute; left: 6%; right: 6%; top: 5%; bottom: 8%;
  background: linear-gradient(170deg, #fdfbf4, var(--paper));
  border: 1px solid #e2dcc8;
  border-radius: 4px; padding: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  text-align: center;
  transform: translateZ(2px);
  transition: transform .9s cubic-bezier(.34,1.3,.5,1) .55s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.envelope.open .env-card { transform: translateZ(40px) translateY(-46%) scale(1.06); }
.env-card-script { font-family: var(--script); font-size: 1.2rem; color: var(--olive); }
.env-card-guest { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.env-card-note { font-family: var(--sans); font-size: .62rem; letter-spacing: .04em; opacity: .65; line-height: 1.5; }
.env-left  { clip-path: polygon(0 0, 50% 50%, 0 100%); background: linear-gradient(100deg, #c3c7ad, #b2b699); border-radius: 6px; transform: translateZ(6px); }
.env-right { clip-path: polygon(100% 0, 50% 50%, 100% 100%); background: linear-gradient(-100deg, #c3c7ad, #b2b699); border-radius: 6px; transform: translateZ(6px); }
.env-bottom{ clip-path: polygon(0 100%, 50% 45%, 100% 100%); background: linear-gradient(0deg, #ccd0b8, #bbbfa3); border-radius: 6px; transform: translateZ(8px); }
.env-flap { transform-origin: top; transform: translateZ(10px); transition: transform 1s cubic-bezier(.55,0,.3,1); z-index: 2; }
.env-flap-inner {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.22), transparent 40%),
    linear-gradient(180deg, #bec2a7, #aab092);
  border-radius: 6px;
  backface-visibility: hidden;
}
.envelope.open .env-flap { transform: translateZ(10px) rotateX(168deg); }
.wax-seal {
  position: absolute; left: 50%; top: 52%; z-index: 3;
  width: 86px; height: 86px; border: none; cursor: pointer;
  transform: translate(-50%, -50%) translateZ(14px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6d6a48, #4c4a30 55%, #35331f);
  box-shadow: 0 4px 12px rgba(40,40,20,.5), inset 0 0 0 6px rgba(255,255,255,.06), inset 0 0 22px rgba(20,20,8,.55);
  color: #e9e3cd;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  transition: transform .3s, opacity .5s;
}
.wax-seal:hover { transform: translate(-50%, -50%) translateZ(14px) scale(1.07); }
.wax-seal .wax-mono i { font-style: italic; font-size: .7em; opacity: .85; }
.envelope.open .wax-seal { opacity: 0; transform: translate(-50%, -50%) translateZ(14px) scale(.4) rotate(30deg); pointer-events: none; }

/* ═══ NAV ═══ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.4rem;
  padding: .9rem clamp(1rem, 4vw, 2.4rem);
  font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(rgba(30,26,18,.5), transparent);
  transition: background .35s, color .35s, box-shadow .35s;
}
#nav.solid { background: rgba(241,237,225,.92); color: var(--ink); box-shadow: 0 1px 0 rgba(54,43,33,.12); backdrop-filter: blur(8px); }
#nav a { color: inherit; text-decoration: none; opacity: .85; }
#nav a:hover { opacity: 1; }
.nav-brand { font-family: var(--serif); font-size: 1rem; letter-spacing: .1em; font-weight: 600; }
.nav-links { display: flex; gap: 1.3rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-rsvp { white-space: nowrap; }
.nav-rsvp span { font-family: serif; }

/* ═══ HERO ═══ */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate;
  background: #2c2a1e url('assets/hero-poster-fhd.jpg') center / cover no-repeat;
}
.hero:focus { outline: none; }
.hero-media { position: absolute; inset: 0; background: inherit; }
#hero-video {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
  filter: saturate(.78) contrast(1.03) brightness(.83); transform: scale(1.015);
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,17,12,.54) 0%, rgba(25,21,14,.04) 25%, rgba(21,18,12,.1) 55%, rgba(18,16,11,.7) 100%),
    radial-gradient(circle at 50% 44%, transparent 22%, rgba(20,18,13,.24) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .25; mix-blend-mode: soft-light; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero-frame {
  position: absolute; inset: clamp(3.8rem, 7vw, 5.25rem) clamp(.8rem, 2vw, 1.8rem) clamp(.8rem, 2vw, 1.8rem);
  border: 1px solid rgba(246,241,222,.28); pointer-events: none;
}
.hero-frame::before, .hero-frame::after {
  content: ""; position: absolute; width: 28px; height: 28px; border-color: rgba(246,241,222,.66);
}
.hero-frame::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.hero-frame::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.hero-content {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 4.5rem 1.5rem 7rem; color: #f6f1de;
}
.hero-eyebrow { font-family: var(--sans); font-weight: 300; letter-spacing: .52em; text-transform: uppercase; font-size: clamp(.64rem, 1.2vw, .78rem); text-indent: .52em; margin-bottom: 1rem; opacity: .88; }
.hero-names { font-family: var(--script); font-weight: 400; font-size: clamp(4rem, 10vw, 8.2rem); line-height: .9; text-shadow: 0 4px 34px rgba(20,15,8,.55); }
.hero-names em { font-style: normal; }
.hero-names span { font-size: .5em; vertical-align: .18em; padding: 0 .1em; }
.hero-tagline { margin-top: 1.25rem; font-style: italic; font-size: clamp(.9rem, 1.8vw, 1.08rem); letter-spacing: .08em; opacity: .88; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-top: 1.75rem; }
.hero-action {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.2rem; border: 1px solid rgba(246,241,222,.68); color: #f6f1de;
  font-family: var(--sans); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: color .25s, background .25s, border-color .25s;
}
.hero-action.primary { background: rgba(246,241,222,.9); color: var(--brown); }
.hero-action:hover { background: #f6f1de; color: var(--brown); border-color: #f6f1de; }
.hero-corner { position: absolute; z-index: 2; bottom: 2rem; font-family: var(--sans); font-weight: 300; letter-spacing: .22em; text-transform: uppercase; font-size: .7rem; color: #f2edda; }
.hero-date { left: clamp(1rem, 5vw, 3rem); }
.hero-loc { right: clamp(1rem, 5vw, 3rem); }
.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 1.55rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .35rem; color: #f2edda; text-decoration: none;
  font-family: var(--sans); font-size: .55rem; letter-spacing: .24em; text-transform: uppercase;
}
.hero-scroll i { display: block; width: 1px; height: 23px; background: linear-gradient(#f2edda, transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 50% { transform: scaleY(.45); transform-origin: top; opacity: .45; } }
.hero-media-toggle {
  position: absolute; z-index: 3; right: clamp(1rem, 3vw, 2rem); top: clamp(4.7rem, 7vw, 5.5rem);
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(246,241,222,.48);
  border-radius: 50%; background: rgba(35,28,20,.35); color: #f6f1de; cursor: pointer;
  backdrop-filter: blur(5px); transition: background .25s, transform .25s;
}
.hero-media-toggle:hover { background: rgba(35,28,20,.68); transform: scale(1.05); }
#hero-media-icon { position: relative; display: block; width: 14px; height: 14px; }
#hero-media-icon::before, #hero-media-icon::after {
  content: ""; position: absolute; top: 1px; width: 4px; height: 12px; border-radius: 1px; background: currentColor;
}
#hero-media-icon::before { left: 1px; }
#hero-media-icon::after { right: 1px; }
.hero-media-toggle.is-paused #hero-media-icon::before {
  left: 2px; top: 0; width: 0; height: 0; border-radius: 0; background: transparent;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor;
}
.hero-media-toggle.is-paused #hero-media-icon::after { display: none; }

/* ═══ INVITED ═══ */
.invited { position: relative; padding: clamp(4rem, 9vw, 6.5rem) 1.6rem; text-align: center; background: var(--ivory); overflow: hidden; }
.poppies { position: absolute; right: clamp(.5rem, 6vw, 5rem); bottom: 1.5rem; width: clamp(90px, 14vw, 150px); color: var(--olive); opacity: .75; }
.invited-body { max-width: 560px; margin: 1.6rem auto 0; display: grid; gap: 1.1rem; }
.invited-body p { font-style: italic; font-size: 1.05rem; line-height: 1.75; opacity: .88; }
.invited-sign { margin-top: 2rem; font-style: italic; font-size: 1rem; opacity: .75; }
.invited-names { font-family: var(--script); font-size: 1.9rem; color: var(--olive); margin-top: .3rem; }

/* ═══ COUNTDOWN BAND ═══ */
.count-band { background: var(--brown); text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 1.5rem; }
.countdown { display: flex; justify-content: center; align-items: baseline; gap: .6rem; margin-top: 1.6rem; color: var(--ivory); }
.countdown > i { font-family: var(--serif); font-size: 2rem; font-style: normal; opacity: .6; }
.cd-box b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; }
.cd-box span { display: block; margin-top: .45rem; font-family: var(--sans); font-weight: 300; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }

/* ═══ STORY ═══ */
.story { padding: clamp(4rem, 9vw, 6.5rem) 1.6rem; text-align: center; background: linear-gradient(180deg, var(--ivory) 55%, #ddd6c2 100%); }
.story-intro { max-width: 600px; margin: 1.6rem auto 3.5rem; display: grid; gap: 1.1rem; }
.story-intro p { font-style: italic; font-size: 1.02rem; line-height: 1.75; opacity: .85; }
.story-timeline { position: relative; max-width: 640px; margin: 0 auto; }
.story-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--taupe), var(--brown-2)); opacity: .55; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.2rem, 5vw, 2.6rem); margin-bottom: clamp(2rem, 5vw, 3rem); position: relative; }
.st-row::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--brown-2); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--ivory); }
.st-caption { font-family: var(--sans); font-weight: 300; font-size: .86rem; letter-spacing: .06em; line-height: 1.6; color: var(--brown-2); }
.polaroid {
  background: #fdfcf7; padding: 3.5% 3.5% .8rem;
  box-shadow: 0 10px 26px rgba(54,43,33,.22);
  transform: rotate(-2.5deg); position: relative;
  transition: transform .25s ease-out;
  justify-self: end; width: min(240px, 100%);
}
.st-row:nth-child(even) .polaroid { transform: rotate(2.5deg); justify-self: start; }
.polaroid figcaption {
  display: block; margin-top: .55rem; text-align: center; line-height: 1;
  font-family: var(--script); font-size: 1.5rem; color: var(--brown-2);
}
.ph { aspect-ratio: 10/11; overflow: hidden; background: #ded8c9; }
.story-photo {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.polaroid:hover .story-photo { transform: scale(1.035); }

/* ═══ VENUE ═══ */
.venue {
  padding: clamp(4rem, 9vw, 6.5rem) 1.6rem; text-align: center; color: var(--ivory);
  background:
    radial-gradient(ellipse at 25% 20%, rgba(160,140,100,.18), transparent 50%),
    radial-gradient(ellipse at 80% 75%, rgba(120,100,70,.14), transparent 55%),
    linear-gradient(180deg, #3c332a, #2e2820);
}
.venue-addr { font-family: var(--sans); font-weight: 300; font-size: .85rem; letter-spacing: .1em; margin-top: .7rem; opacity: .85; }
.map-frame {
  max-width: 460px; margin: 2.2rem auto;
  border: 10px solid transparent; border-radius: 3px;
  border-image: linear-gradient(135deg, #d9c08b, #9c7f4e 40%, #e3cf9f 70%, #8a6d3f) 1;
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,248,225,.5);
  transform-style: preserve-3d; transition: transform .25s ease-out;
}
.map-frame svg { display: block; width: 100%; height: auto; }
.venue-note { font-family: var(--sans); font-weight: 300; font-size: .82rem; letter-spacing: .06em; line-height: 1.7; opacity: .85; }
.venue-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ═══ PROGRAM ═══ */
.program { background: var(--cream); padding: clamp(4rem, 9vw, 6rem) 1.6rem 0; text-align: center; }
.itinerary {
  position: relative; max-width: 480px; margin: 0 auto; padding: 2.4rem clamp(1.4rem, 6vw, 3rem) 2.6rem;
  background: var(--paper);
  border: 1px solid var(--taupe);
  outline: 6px solid var(--paper);
  outline-offset: 6px;
  box-shadow: 0 0 0 7px var(--taupe), 0 22px 44px rgba(54,43,33,.2);
  transform-style: preserve-3d; transition: transform .25s ease-out;
}
.it-side {
  position: absolute; left: -1rem; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-family: var(--script); font-size: 1.4rem; color: var(--taupe);
}
.itinerary dl { margin-top: 1.6rem; }
.itinerary dl div {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: .65rem .2rem; border-bottom: 1px solid rgba(122,108,84,.35);
}
.itinerary dl div:last-child { border-bottom: none; }
.itinerary dt { font-family: var(--sans); font-weight: 300; font-size: .74rem; letter-spacing: .14em; min-width: 3.4rem; text-align: left; }
.itinerary dd { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .04em; }
.addl { background: var(--olive); color: #efeada; margin-top: clamp(3rem, 7vw, 4.5rem); padding: clamp(3rem, 7vw, 4.5rem) 1.6rem; }
.addl-title { font-family: var(--sans); font-weight: 300; letter-spacing: .32em; text-transform: uppercase; font-size: .74rem; margin-bottom: 2.2rem; }
.addl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.4rem; max-width: 940px; margin: 0 auto; }
.addl-cols h4 { margin-bottom: .7rem; color: #f4f0e0; }
.addl-cols p { font-style: italic; font-size: .92rem; line-height: 1.7; opacity: .92; }
.swatches { display: flex; justify-content: center; gap: .45rem; margin-top: .9rem; }
.swatches i { width: 26px; height: 26px; border-radius: 3px; border: 1px solid rgba(255,255,255,.35); }
.swatches i:nth-child(1) { background: #f1ede1; }
.swatches i:nth-child(2) { background: #cfc7ab; }
.swatches i:nth-child(3) { background: #9a9772; }
.swatches i:nth-child(4) { background: #8a6d3f; }
.swatches i:nth-child(5) { background: #3a2e24; }

/* ═══ GIFTS ═══ */
.gifts { background: var(--brown); color: var(--ivory); text-align: center; padding: clamp(4rem, 9vw, 6rem) 1.6rem; }
.gift-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: .2em; }
.gift-title .script-heading { display: inline; margin-right: .3rem; }
.gifts-body { max-width: 520px; margin: 1.2rem auto 2.4rem; font-style: italic; font-size: 1rem; line-height: 1.75; opacity: .9; }
.gift-accounts { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.gift-acc {
  min-width: 250px; padding: 1.6rem 2rem; border: 1px solid rgba(194,173,131,.55);
  background: rgba(255,255,255,.03);
}
.ga-bank { font-family: var(--sans); font-weight: 300; letter-spacing: .3em; font-size: .72rem; text-transform: uppercase; color: var(--gold); }
.ga-number {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .12em; margin: .6rem 0 .15rem;
  color: var(--gold); text-decoration: none;
}
.ga-number a, a[x-apple-data-detectors] {
  color: inherit !important; font: inherit !important; text-decoration: none !important;
}
.ga-name { font-style: italic; font-size: .9rem; opacity: .8; margin-bottom: 1.1rem; }

/* ═══ FAQ ═══ */
.faq { background: var(--ivory); padding: clamp(4rem, 9vw, 6rem) 1.6rem; }
.faq-frame {
  position: relative; max-width: 760px; margin: 0 auto;
  border: 2px solid var(--olive); outline: 1px solid var(--olive); outline-offset: 5px;
  padding: clamp(1.6rem, 5vw, 3rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 2.5rem); align-items: center;
  background: var(--paper);
}
.faq-big {
  font-family: var(--serif); font-weight: 600; font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: .04em; color: var(--ink);
  writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1;
}
.faq-item { padding: .9rem 0; border-bottom: 1px solid rgba(54,43,33,.25); }
.faq-item:last-child { border-bottom: none; }
.fq { font-family: var(--sans); font-size: .84rem; letter-spacing: .04em; margin-bottom: .35rem; }
.fa { font-style: italic; font-size: .95rem; line-height: 1.65; opacity: .8; }

/* ═══ RSVP ═══ */
.rsvp { background: var(--cream); text-align: center; padding: clamp(4rem, 9vw, 6rem) 1.6rem; }
.rsvp-sub { font-family: var(--sans); font-weight: 300; font-size: .8rem; letter-spacing: .12em; margin-top: .6rem; opacity: .75; }
.rsvp-form { max-width: 480px; margin: 2.2rem auto 0; display: grid; gap: 1rem; text-align: left; }
.rsvp-form label { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brown-2); display: grid; gap: .4rem; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  border: 1px solid var(--taupe); background: var(--paper);
  padding: .75rem .9rem; outline: none; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  border-color: var(--olive); box-shadow: 0 0 0 3px rgba(111,107,69,.15);
}
.rsvp-submit {
  margin-top: .4rem; border: none; cursor: pointer;
  background: var(--olive); color: #f2efe0;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  padding: 1rem; transition: background .25s, transform .2s;
}
.rsvp-submit:hover { background: #5c5939; }
.rsvp-submit:active { transform: scale(.98); }
.wishes { max-width: 480px; margin: 2.4rem auto 0; display: grid; gap: .9rem; text-align: left; }
.wish { background: var(--paper); border: 1px solid rgba(122,108,84,.4); padding: .95rem 1.1rem; }
.wish b { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.wish span { font-family: var(--sans); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .55; margin-left: .5rem; }
.wish p { font-style: italic; font-size: .95rem; line-height: 1.6; margin-top: .3rem; opacity: .85; }

/* ═══ FOOTER ═══ */
.footer { background: var(--brown); color: var(--ivory); text-align: center; padding: 3.5rem 1.6rem 3rem; }
.footer-mono { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .3em; text-indent: .3em; }
.footer-mono span { color: var(--gold); }
.footer-script { font-family: var(--script); font-size: 1.7rem; color: var(--gold); margin: .8rem 0 1rem; }
.footer-note { font-family: var(--sans); font-weight: 300; font-size: .74rem; letter-spacing: .08em; line-height: 1.8; opacity: .7; }
.footer-credit {
  margin: .65rem auto 0; font-family: var(--serif); font-weight: 500;
  font-size: .88rem; letter-spacing: .02em; color: rgba(255,249,235,.9);
}
.footer-credit a {
  color: #f2c878; text-decoration: underline; text-decoration-color: rgba(242,200,120,.48);
  text-underline-offset: .16em; transition: color .2s, text-decoration-color .2s;
}
.footer-credit a:hover { color: #fff3d8; text-decoration-color: currentColor; }

/* ═══ Tombol outline ═══ */
.btn-outline {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ivory); background: transparent;
  border: 1px solid rgba(241,237,225,.65); padding: .8rem 1.6rem;
  transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--ivory); color: var(--brown); }
.btn-outline.gold { color: var(--gold); border-color: rgba(194,173,131,.7); }
.btn-outline.gold:hover { background: var(--gold); color: var(--brown); }

/* ═══ Musik & toast ═══ */
#music-btn {
  position: fixed; right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 45;
  width: 44px; height: 44px; padding: 5px; border-radius: 50%;
  border: 1px solid rgba(194,173,131,.6); cursor: pointer;
  background: rgba(54,43,33,.92); color: var(--gold);
  display: grid; place-items: center; backdrop-filter: blur(7px);
  box-shadow: 0 8px 24px rgba(24,18,13,.24);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
#music-btn[hidden] { display: none; }
#music-btn:hover { transform: translateY(-2px); background: rgba(54,43,33,.98); border-color: var(--gold); }
.music-icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(194,173,131,.4); background: rgba(250,247,235,.06);
}
#music-btn.playing .music-icon { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast {
  position: fixed; left: 50%; bottom: 4.6rem; transform: translateX(-50%) translateY(20px);
  background: var(--brown); color: var(--ivory);
  font-family: var(--sans); font-size: .78rem; letter-spacing: .06em;
  padding: .6rem 1.2rem; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; z-index: 60;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ Reveal ═══ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ═══ Mobile ═══ */
@media (max-width: 560px) {
  .nav-brand { display: none; }
  #nav { font-size: .62rem; gap: 1rem; letter-spacing: .12em; }
  .nav-links { gap: .85rem; }
  .faq-frame { grid-template-columns: 1fr; }
  .faq-big { writing-mode: horizontal-tb; transform: none; text-align: center; font-size: 2.6rem; }
  .it-side { display: none; }
  .st-caption { font-size: .74rem; }
  .hero { background-image: url('assets/hero-poster-mobile-hd.jpg'); }
  .hero-content { justify-content: center; padding: 5.2rem 1.2rem 8.5rem; }
  .hero-names { font-size: clamp(3.8rem, 19vw, 5.2rem); }
  .hero-tagline { margin-top: 1rem; font-size: .86rem; }
  .hero-actions { flex-direction: column; gap: .55rem; margin-top: 1.35rem; width: min(250px, 78vw); }
  .hero-action { width: 100%; }
  .hero-corner { bottom: 1.2rem; font-size: .56rem; letter-spacing: .15em; max-width: 43%; line-height: 1.45; }
  .hero-loc { text-align: right; }
  .hero-scroll { bottom: 4.7rem; }
  .hero-media-toggle { top: 4.2rem; right: 1rem; width: 38px; height: 38px; }
  .hero-frame { inset: 3.7rem .65rem .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .js .reveal { opacity: 1; transform: none; }
  #hero-video { transform: none; }
}
