/* ============================================================
   HATURAN — Tema "Segel Hati"
   Palet: kertas gading, lilin crimson, emas, emerald tua
   ============================================================ */

:root {
  --paper: #f6efe3;
  --paper-deep: #efe4cf;
  --paper-dark: #e7d9bf;
  --ink: #3d2f22;
  --ink-soft: #6f5d48;
  --wax: #8e2f36;
  --wax-deep: #6d1f26;
  --gold: #b08d4f;
  --gold-soft: #c9ab74;
  --green: #31584c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --arab: "Amiri", "Traditional Arabic", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 0%, var(--paper) 0%, var(--paper-deep) 60%, var(--paper-dark) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[data-stage="cover"] { overflow: hidden; }

/* ============ SCENE 1 : SAMPUL ============ */
#scene-cover {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#scene-cover.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.frame-outer, .frame-inner {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(176, 141, 79, 0.55);
  pointer-events: none;
}

.frame-inner {
  inset: 20px;
  border-width: 1px;
  border-style: double;
  border-color: rgba(176, 141, 79, 0.4);
}

.cover-content {
  text-align: center;
  padding: 24px;
  max-width: 460px;
  width: 100%;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.guest-intro {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.guest-name {
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.7rem);
  color: var(--green);
  margin: 4px 0 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guest-note {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* --- segel lilin --- */
.seal-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: min(62vw, 240px);
  max-width: 240px;
  aspect-ratio: 1;
  margin: 10px auto 6px;
  display: block;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.seal-btn:active, .seal-btn.pressed { transform: scale(0.93) rotate(-2deg); }

.seal-btn:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 8px;
  border-radius: 50%;
}

#sealSvg { width: 100%; height: 100%; filter: drop-shadow(0 14px 22px rgba(87, 24, 32, 0.35)); }

/* glow halus menarik perhatian */
.seal-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 74, 82, 0.22) 0%, transparent 65%);
  animation: pulseGlow 2.6s ease-in-out infinite;
  pointer-events: none;
}

.seal-btn { position: relative; }

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.94); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}

/* garis retak: digambar saat .cracked */
.crack-lines .cl {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.4s ease-out;
}

#sealSvg.cracked .crack-lines .cl { stroke-dashoffset: 0; }
#sealSvg.cracked .cl:nth-child(2) { transition-delay: 0.08s; }
#sealSvg.cracked .cl:nth-child(3) { transition-delay: 0.16s; }
#sealSvg.cracked .cl:nth-child(4) { transition-delay: 0.22s; }

/* pecahan: jatuh saat .broken */
.shard { opacity: 0; }

#sealSvg.broken .shard { opacity: 1; animation: shardFall 0.95s cubic-bezier(0.3, 0.6, 0.6, 1) forwards; }
#sealSvg.broken .shard:nth-of-type(1) { animation-delay: 0s;    --tx: -64px; --ty: -80px; --rot: -30deg; }
#sealSvg.broken .shard:nth-of-type(2) { animation-delay: 0.05s; --tx: 74px;  --ty: -60px; --rot: 26deg;  }
#sealSvg.broken .shard:nth-of-type(3) { animation-delay: 0.1s;  --tx: 64px;  --ty: 88px;  --rot: 32deg;  }
#sealSvg.broken .shard:nth-of-type(4) { animation-delay: 0.15s; --tx: -58px; --ty: 76px;  --rot: -24deg; }

@keyframes shardFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(var(--tx, 40px), var(--ty, 90px)) rotate(var(--rot, 25deg)); opacity: 0; }
}

#sealSvg.broken #sealWhole { opacity: 0; transition: opacity 0.18s ease; }

.seal-hint {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wax);
  animation: hintFloat 2.2s ease-in-out infinite;
  min-height: 1.2em;
}

@keyframes hintFloat {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-3px); }
}

.cover-brand {
  margin-top: 26px;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ============ SCENE 2 : AMPLOP ============ */
#scene-envelope {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}

#scene-envelope.show { visibility: visible; }

.envelope {
  position: relative;
  width: min(86vw, 340px);
  height: 230px;
  margin-bottom: 18vh;
  transform: translateY(110vh);
}

#scene-envelope.show .envelope { animation: envRise 0.75s cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }

@keyframes envRise {
  from { transform: translateY(110vh); }
  to   { transform: translateY(0); }
}

.env-flap {
  position: absolute;
  inset: 0 0 auto 0;
  height: 62%;
  background: linear-gradient(180deg, #e2d2b2, #d5c19c);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 3;
  box-shadow: 0 6px 14px rgba(61, 47, 34, 0.18);
}

#scene-envelope.show .env-flap { animation: flapOpen 0.65s ease 0.8s forwards; }

@keyframes flapOpen {
  from { transform: rotateX(0deg); }
  to   { transform: rotateX(-165deg); }
}

.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ecdfc5, #e0d0ae);
  z-index: 1;
  border-radius: 4px 4px 6px 6px;
  box-shadow: 0 18px 40px rgba(61, 47, 34, 0.28);
}

.env-card {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 82%;
  padding: 26px 16px 22px;
  background: linear-gradient(180deg, #fdf8ee, #f4ead6);
  border: 1px solid rgba(176, 141, 79, 0.5);
  border-radius: 6px;
  transform: translateX(-50%) translateY(30px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(61, 47, 34, 0.16);
}

#scene-envelope.show .env-card { animation: cardRise 0.8s cubic-bezier(0.25, 0.9, 0.3, 1.1) 1.15s forwards; }

@keyframes cardRise {
  from { transform: translateX(-50%) translateY(30px); }
  to   { transform: translateX(-50%) translateY(-140px) scale(1.04); }
}

.env-card-mono {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--wax-deep);
  letter-spacing: 0.12em;
}

.env-card-sub {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ SCENE 3 : BISMILLAH ============ */
#scene-bismillah {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 30%, var(--paper) 0%, var(--paper-deep) 70%, var(--paper-dark) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  text-align: center;
  padding: 24px;
}

#scene-bismillah.show {
  opacity: 1;
  visibility: visible;
}

.bismillah-box { transform: translateY(14px); transition: transform 0.9s ease; }
#scene-bismillah.show .bismillah-box { transform: translateY(0); }

.bismillah-ar {
  font-family: var(--arab);
  font-size: 1.9rem;
  line-height: 2;
  color: var(--green);
  margin-bottom: 14px;
}

.bismillah-ar.small { font-size: 1.35rem; margin-bottom: 10px; }

.bismillah-id {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ============ KONTEN UTAMA ============ */
#undangan { padding-bottom: 0; }

.section {
  max-width: 460px;
  margin: 0 auto;
  padding: 54px 24px 10px;
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--wax-deep);
  margin-bottom: 6px;
}

.section-sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* hero */
.hero { padding-top: 84px; }

.hero-names {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 8px 0 14px;
}

.hero-names .amp { font-family: var(--script); color: var(--wax); font-weight: 400; font-size: 0.8em; }

.hero-full {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 2;
}

.amp-small { color: var(--wax); font-family: var(--script); font-size: 1.1em; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.divider span { height: 1px; width: 74px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }

.divider-star { width: 16px; height: 16px; fill: var(--gold); }

.hero-date {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green);
}

/* ayat */
.ayat { background: rgba(176, 141, 79, 0.08); border-radius: 18px; padding: 34px 24px; margin-top: 44px; }

.ayat-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 12px;
}

.ayat-src {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.cd-box {
  background: linear-gradient(180deg, #fdf8ee, #f2e7d0);
  border: 1px solid rgba(176, 141, 79, 0.45);
  border-radius: 14px;
  padding: 16px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 6px 14px rgba(61, 47, 34, 0.08);
}

.cd-box span {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--wax-deep);
  font-variant-numeric: tabular-nums;
}

.cd-box small {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* mempelai */
.couple-card {
  background: linear-gradient(180deg, #fdf8ee, #f4ead6);
  border: 1px solid rgba(176, 141, 79, 0.45);
  border-radius: 18px;
  padding: 30px 22px 26px;
  margin-bottom: 6px;
  box-shadow: 0 10px 24px rgba(61, 47, 34, 0.08);
}

.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fdf8ee;
  background: radial-gradient(circle at 32% 28%, #a5764c, var(--gold) 55%, #8f7238);
  border: 3px solid rgba(253, 248, 238, 0.9);
  box-shadow: 0 8px 18px rgba(61, 47, 34, 0.22);
}

.couple-name { font-size: 2.1rem; color: var(--green); font-weight: 400; }

.couple-full { font-size: 0.9rem; color: var(--ink); margin-top: 2px; }

.couple-parents { font-size: 0.8rem; font-weight: 300; color: var(--ink-soft); margin-top: 10px; line-height: 1.7; }

.amp-big { font-family: var(--script); font-size: 2.6rem; color: var(--wax); margin: 14px 0; }

/* acara */
.event-card {
  background: linear-gradient(180deg, #fdf8ee, #f4ead6);
  border: 1px solid rgba(176, 141, 79, 0.45);
  border-radius: 18px;
  padding: 28px 22px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(61, 47, 34, 0.08);
}

.event-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wax-deep);
  margin-bottom: 8px;
}

.event-date { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.event-time { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--green); margin: 6px 0; }
.event-venue { font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-top: 8px; }
.event-addr { font-size: 0.82rem; font-weight: 300; color: var(--ink-soft); line-height: 1.7; margin: 4px 0 18px; }

/* tombol */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--wax);
  color: var(--wax-deep);
}

.btn-outline:hover { background: rgba(142, 47, 54, 0.08); }

.btn-solid {
  background: linear-gradient(180deg, var(--wax), var(--wax-deep));
  border: none;
  color: #fdf6ea;
  box-shadow: 0 10px 22px rgba(109, 31, 38, 0.3);
  width: 100%;
}

.btn-solid:hover { box-shadow: 0 12px 26px rgba(109, 31, 38, 0.4); }

/* rsvp */
.rsvp-form { text-align: left; margin-bottom: 26px; }

.rsvp-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 14px 2px 6px;
}

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: #fdf8ee;
  border: 1px solid rgba(176, 141, 79, 0.55);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form textarea { resize: vertical; min-height: 92px; }

.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  border-color: var(--wax);
  box-shadow: 0 0 0 3px rgba(142, 47, 54, 0.14);
}

.rsvp-form .btn-solid { margin-top: 20px; }

.demo-note {
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--ink-soft);
  opacity: 0.8;
  text-align: center;
}

.ucapan-list { display: flex; flex-direction: column; gap: 12px; }

.ucapan-item {
  background: #fdf8ee;
  border: 1px solid rgba(176, 141, 79, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}

.ucapan-item .u-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.ucapan-item .u-name { font-weight: 600; font-size: 0.88rem; color: var(--green); }
.ucapan-item .u-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(49, 88, 76, 0.12);
  color: var(--green);
  white-space: nowrap;
}
.ucapan-item .u-badge.no { background: rgba(142, 47, 54, 0.12); color: var(--wax-deep); }
.ucapan-item .u-msg { font-size: 0.84rem; font-weight: 300; color: var(--ink); line-height: 1.65; }

/* amplop digital */
.gift-card {
  background: linear-gradient(160deg, #fdf8ee, #f0e3c8);
  border: 1px solid rgba(176, 141, 79, 0.5);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(61, 47, 34, 0.08);
}

.gift-bank { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.gift-number { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.gift-name { font-size: 0.82rem; font-weight: 300; color: var(--ink-soft); margin-bottom: 16px; }

/* penutup */
.closing-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 26px;
}

.closing-sign { font-size: 0.85rem; color: var(--ink-soft); }
.closing-names { font-size: 2.2rem; color: var(--green); margin: 8px 0 12px; font-weight: 400; }
.closing-family { font-size: 0.82rem; font-weight: 300; color: var(--ink-soft); line-height: 1.7; }

/* footer */
.site-footer {
  margin-top: 60px;
  padding: 34px 24px calc(34px + env(safe-area-inset-bottom));
  text-align: center;
  background: rgba(176, 141, 79, 0.1);
}

.footer-mono {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wax);
  letter-spacing: 0.12em;
  margin: 6px 0 12px;
}

.footer-brand { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.8; }
.footer-brand a { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(49, 88, 76, 0.4); }
.footer-theme { margin-top: 10px; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.7; }

/* ============ TOMBOL MUSIK ============ */
.music-btn {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(176, 141, 79, 0.6);
  background: rgba(253, 248, 238, 0.92);
  color: var(--wax-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(61, 47, 34, 0.18);
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}

/* atribut hidden harus menang atas display:flex */
.music-btn[hidden] { display: none; }

.music-btn svg { width: 22px; height: 22px; }

.music-btn[aria-pressed="false"] svg { opacity: 0.35; }

.music-bars {
  position: absolute;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.music-btn[aria-pressed="true"] .music-bars { opacity: 1; }
.music-btn[aria-pressed="true"] svg { opacity: 0.15; }

.music-bars i {
  width: 3px;
  background: var(--wax);
  border-radius: 2px;
  animation: barDance 0.9s ease-in-out infinite;
}

.music-bars i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.music-bars i:nth-child(2) { height: 11px; animation-delay: 0.2s; }
.music-bars i:nth-child(3) { height: 8px;  animation-delay: 0.4s; }

@keyframes barDance {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1.15); }
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  background: rgba(61, 47, 34, 0.94);
  color: #fdf6ea;
  font-size: 0.82rem;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 86vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ REVEAL SAAT SCROLL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ DESKTOP ============ */
@media (min-width: 640px) {
  body {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),
      radial-gradient(120% 90% at 50% 0%, #faf5ea 0%, var(--paper-deep) 55%, #ddc9a4 100%);
  }
}

/* ============ AKSESIBILITAS: REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
