/* =========================================================================
   Desa Marga Mulya — Tema "Desa Hidup"
   Hangat, ramah, interaktif. Dimuat SETELAH situs.css.
   ========================================================================= */
:root {
  --krem: #FBF7EA; --krem2: #F3ECD5; --garis: #E4DAB8;
  --tinta: #1F3B2D; --tinta2: #475C51; --tinta3: #64766B;
  --padi: #F4B836; --padi-tua: #D99A12; --daun: #4C9A5F; --daun-tua: #2F7A48;
  --air: #2FA3B8; --air-tua: #1B7F93; --tanah: #E5774A; --tanah-tua: #C85A2E; --ungu: #8E7CC3;
  --f-judul: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-teks: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pegas: cubic-bezier(.34, 1.56, .64, 1);
  --f-display: var(--f-judul); --f-sans: var(--f-teks);
}
html { scroll-behavior: smooth; background: var(--krem); }
body.hd-body { font-family: var(--f-teks); background: var(--krem); color: var(--tinta); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--f-judul); }
:focus-visible { outline: 3px solid var(--air); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 640px) { :root { --head: 72px; } }

/* Halaman dalam: beri ruang untuk header yang melayang */
body:not(.hal-beranda) #utama { padding-top: 5.5rem; }
@media (min-width: 640px) { body:not(.hal-beranda) #utama { padding-top: 7.25rem; } }

.hd-lompat { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--tinta); color: #fff; padding: .6rem 1rem; border-radius: 999px; font-weight: 700; transition: top .2s; }
.hd-lompat:focus { top: 12px; }

/* ---------------------------------------------------------------- tombol */
.hd-btn { display: inline-flex; align-items: center; gap: .5rem; font: 800 1rem var(--f-teks); padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s var(--pegas), box-shadow .2s; line-height: 1.1; min-height: 44px; }
.hd-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.hd-btn:active { transform: translateY(2px) scale(.97); }
.hd-btn--padi { background: var(--padi); color: var(--tinta); box-shadow: 0 4px 0 var(--padi-tua); }
.hd-btn--padi:active { box-shadow: 0 1px 0 var(--padi-tua); }
.hd-btn--hijau { background: var(--tinta); color: #fff; box-shadow: 0 4px 0 #0F2218; }
.hd-btn--garis { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.hd-btn--garis:hover { background: var(--tinta); color: #fff; }
.hd-chip { display: inline-flex; align-items: center; padding: .55rem 1.05rem; border-radius: 999px; background: #fff; border: 2px solid var(--garis); color: var(--tinta); font: 700 .95rem var(--f-teks); text-decoration: none; cursor: pointer; transition: transform .2s var(--pegas), background .2s, border-color .2s; min-height: 40px; }
.hd-chip:hover { transform: translateY(-3px) rotate(-2deg); border-color: var(--tinta); }
.hd-chip--padi { background: var(--padi); border-color: var(--padi); }
.hd-tag { display: inline-block; font: 800 .75rem var(--f-teks); padding: .25rem .7rem; border-radius: 999px; letter-spacing: .02em; }
.hd-tag--padi { background: var(--padi); color: var(--tinta); }
.hd-tag--putih { background: rgba(255,255,255,.85); color: var(--tinta); }
.hd-tag--daun { background: #DDF0E0; color: #1E5B34; }
.hd-tag--air { background: #D6F0F5; color: #0F5F70; }
.hd-tag--tanah { background: #FCE1D5; color: #8F3A17; }
.hd-tag--ungu { background: #E7E1F5; color: #4B3A80; }
.hd-label { font: 800 .8rem var(--f-teks); text-transform: uppercase; letter-spacing: .12em; color: var(--tanah-tua); margin: 0 0 .5rem; }

/* ---------------------------------------------------------------- header */
.hd-header { position: fixed; inset: 0 0 auto 0; z-index: 70; padding: 10px 12px 0; pointer-events: none; }
.hd-header > * { pointer-events: auto; }
.hd-pengumuman { display: none; align-items: center; gap: .6rem; width: fit-content; margin: 0 auto 8px; padding: .3rem .5rem .3rem 1rem; border-radius: 999px; background: rgba(255,252,242,.92); border: 2px solid rgba(255,255,255,.8); font-size: .8rem; color: var(--tinta2); box-shadow: 0 6px 18px -8px rgba(31,59,45,.3); transition: opacity .25s, transform .25s, max-height .3s; max-height: 40px; }
@media (min-width: 640px) { .hd-pengumuman { display: flex; } }
.hd-pengumuman a { color: var(--tinta); font-weight: 800; text-decoration: none; }
.hd-titik { color: var(--garis); }
.hd-pengumuman__x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--tinta3); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.hd-pengumuman__x:hover { background: var(--krem2); }
.hd-header[data-gulir="1"] .hd-pengumuman { opacity: 0; max-height: 0; margin-bottom: 0; padding-block: 0; overflow: hidden; pointer-events: none; }
.hd-pill { max-width: 1240px; margin: 0 auto; height: 62px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 10px 0 14px; border-radius: 999px; background: rgba(255,252,242,.88); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 2px solid rgba(255,255,255,.8); box-shadow: 0 10px 30px -12px rgba(31,59,45,.4); transition: background .3s, box-shadow .3s; }
.hd-pill.is-scrolled { background: rgba(255,252,242,.97); box-shadow: 0 14px 34px -12px rgba(31,59,45,.5); }
.hd-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tinta); min-width: 0; }
.hd-logo__tanda { transition: transform .4s var(--pegas); display: grid; }
.hd-logo:hover .hd-logo__tanda { transform: rotate(-14deg) scale(1.12); }
.hd-logo__teks { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.hd-logo__teks b { font: 700 1.1rem var(--f-judul); }
.hd-logo__teks small { font-size: .68rem; color: var(--tinta3); font-weight: 700; white-space: nowrap; }
.hd-links { display: none; align-items: center; gap: .15rem; }
@media (min-width: 1024px) { .hd-links { display: flex; } }
.hd-links a { padding: .45rem .85rem; border-radius: 999px; font: 700 .93rem var(--f-teks); color: var(--tinta2); text-decoration: none; transition: transform .2s var(--pegas), background .2s; }
.hd-links a:hover { background: var(--krem2); color: var(--tinta); transform: translateY(-2px) rotate(-2deg); }
.hd-links a[aria-current="page"] { background: var(--padi); color: var(--tinta); }
.hd-alat { display: flex; align-items: center; gap: .25rem; }
.hd-ikon { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--tinta2); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s var(--pegas); }
.hd-ikon:hover { background: var(--krem2); color: var(--tinta); transform: scale(1.1); }
.hd-gerak-tombol[aria-pressed="true"] { background: var(--tinta); color: var(--padi); }
.hd-lencana { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--tanah); color: #fff; font: 800 .65rem var(--f-teks); align-items: center; justify-content: center; }
.hd-lencana.flex { display: flex; }
.hd-lencana.hidden { display: none; }
.hd-cta { display: none; margin-left: .35rem; padding: .6rem 1.1rem; font-size: .9rem; }
@media (min-width: 640px) { .hd-cta { display: inline-flex; } }
.hd-burger { display: grid; }
@media (min-width: 1024px) { .hd-burger { display: none; } }
.hd-burger__isi { position: relative; width: 20px; height: 12px; }
.hd-burger__isi span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: var(--tinta); transition: all .3s; }
#ham-top { top: 0; } #ham-bottom { bottom: 0; }
.hd-menu { max-width: 1240px; margin: 8px auto 0; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; background: rgba(255,252,242,.97); border: 2px solid #fff; border-radius: 28px; box-shadow: 0 20px 40px -12px rgba(31,59,45,.45); max-height: calc(100vh - 6rem); overflow-y: auto; }
.hd-menu.hidden { display: none; }
@media (min-width: 1024px) { .hd-menu { display: none !important; } }
.hd-menu a { padding: .75rem 1rem; border-radius: 16px; font: 700 1.05rem var(--f-teks); color: var(--tinta2); text-decoration: none; }
.hd-menu a[aria-current="page"] { background: var(--padi); color: var(--tinta); }
.hd-menu a:hover { background: var(--krem2); }
.hd-menu__info { font-size: .8rem; color: var(--tinta3); text-align: center; margin: .5rem 0 0; }

/* ---------------------------------------------------------------- bagian umum */
.hd-bagian { padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem; position: relative; }
.hd-bagian--krem2 { background: var(--krem2); }
.hd-bagian--rapat { padding-inline: 0; overflow: hidden; }
.hd-wadah { max-width: 1240px; margin: 0 auto; }
.hd-judul { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.hd-judul--kiri { text-align: left; margin: 0 0 1.25rem; max-width: none; }
.hd-judul h2, .hd-hgulir h2, .hd-ajak h2 { font: 700 clamp(1.9rem, 4.6vw, 3rem)/1.1 var(--f-judul); margin: 0 0 .6rem; letter-spacing: -.01em; }
.hd-judul p:not(.hd-label) { color: var(--tinta2); margin: 0; }
.hd-tengah { display: flex; justify-content: center; margin-top: 2.5rem; }
.hd-dua { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hd-dua { grid-template-columns: 1.25fr 1fr; gap: 3rem; } .hd-dua--balik { grid-template-columns: 1fr 1fr; } }
.hd-samping { display: flex; flex-direction: column; gap: 1rem; }
.hd-kecil, .hd-catatan { font-size: .92rem; color: var(--tinta2); margin: 0; }
.hd-catatan { background: #fff; border: 2px dashed var(--garis); border-radius: 18px; padding: .9rem 1.1rem; }
.hd-kartu-putih { background: #fff; border: 2px solid var(--garis); border-radius: 32px; padding: 1.25rem; box-shadow: 0 18px 40px -22px rgba(31,59,45,.4); }
.hd-kartu-putih__kepala { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hd-kartu-putih h3 { font: 700 1.35rem var(--f-judul); margin: 0; }
.hd-kartu-putih p { margin: .15rem 0 0; font-size: .85rem; color: var(--tinta2); }
.peta { border-radius: 22px; border-color: var(--garis); background: var(--krem2); }
.petak--sorot path { fill: #F4B836; } .petak--sorot .petak__label, .petak--sorot .petak__nilai { fill: #1F3B2D; }
.petak--tetangga-1 path { fill: #B9DCC3; } .petak--tetangga-2 path { fill: #CBE6D2; } .petak--tetangga-3 path { fill: #DDEFE1; }
.petak--tetangga-1 .petak__label, .petak--tetangga-2 .petak__label, .petak--tetangga-3 .petak__label { fill: #1F3B2D; }
.petak:hover path { stroke: #1F3B2D; }
.peta__ket { background: #fff; color: var(--tinta2); }
.legenda__warna--sorot { background: #F4B836; } .legenda__warna--tetangga-1 { background: #B9DCC3; }

/* ---------------------------------------------------------------- reveal (hanya bila JS aktif & animasi menyala) */
html.hd-js:not(.hd-hemat) [data-hd] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.hd-js:not(.hd-hemat) [data-hd="rise"] { transform: translateY(40px); }
html.hd-js:not(.hd-hemat) [data-hd="pop"] { transform: translateY(30px) scale(.85) rotate(-3deg); transition-timing-function: var(--pegas); }
html.hd-js:not(.hd-hemat) [data-hd="zoom"] { transform: scale(.88); }
html.hd-js:not(.hd-hemat) [data-hd].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- HERO */
.hd-hero { position: relative; height: 100svh; min-height: 560px; }
html.hd-js:not(.hd-hemat) .hd-hero { height: 230vh; }
.hd-hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #9AD8EE; transform-origin: 50% 60%; }
.hd-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-a, #8FD3EA) 0%, var(--sky-b, #FFE7B8) 62%); }
.hd-lapis, .hd-awan-wadah { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 60%; will-change: transform; }
.hd-awan-wadah { pointer-events: none; }
.hd-matahari { position: absolute; right: 14%; top: 20%; width: clamp(90px, 13vw, 170px); aspect-ratio: 1; border: 0; padding: 0; background: transparent; cursor: pointer; will-change: transform; z-index: 2; }
.hd-matahari i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #FFF3B0 0 38%, #F8C94A 40% 62%, rgba(248,201,74,.0) 72%); animation: hd-denyut 4s ease-in-out infinite; box-shadow: 0 0 80px 30px rgba(255,214,102,.55); }
.hd-matahari:hover i { animation-duration: 1.2s; }
@keyframes hd-denyut { 50% { transform: scale(1.08); } }
.hd-awan { position: absolute; width: clamp(120px, 18vw, 260px); opacity: .95; animation: hd-hanyut linear infinite; pointer-events: none; }
.hd-awan--1 { top: 14%; left: -20%; animation-duration: 70s; }
.hd-awan--2 { top: 28%; left: -30%; width: clamp(90px, 13vw, 190px); animation-duration: 95s; animation-delay: -30s; opacity: .8; }
.hd-awan--3 { top: 9%; left: -25%; width: clamp(100px, 15vw, 220px); animation-duration: 120s; animation-delay: -70s; opacity: .7; }
@keyframes hd-hanyut { to { transform: translateX(160vw); } }
.hd-burung { position: absolute; top: 30%; left: -10%; display: flex; gap: 18px; animation: hd-terbang 32s linear infinite; pointer-events: none; }
.hd-burung svg { width: 26px; animation: hd-kepak .6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * .12s); transform-origin: 50% 80%; margin-top: calc(var(--i) * 6px); }
@keyframes hd-terbang { to { transform: translate(125vw, -8vh); } }
@keyframes hd-kepak { to { transform: scaleY(.45); } }
.hd-pesawat { position: absolute; top: 12%; left: -22%; width: clamp(90px, 12vw, 150px); background: none; border: 0; padding: 0; cursor: pointer; animation: hd-lewat 38s linear infinite; animation-delay: 6s; }
.hd-pesawat svg { width: 100%; display: block; }
@keyframes hd-lewat { to { transform: translate(150vw, -3vh); } }
.hd-baris { transform-box: fill-box; transform-origin: 50% 100%; animation: hd-goyang 3.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes hd-goyang { from { transform: skewX(-3deg); } to { transform: skewX(3deg); } }
.hd-pohon { transform-box: fill-box; transform-origin: 50% 100%; animation: hd-goyang 5s ease-in-out infinite alternate; animation-delay: var(--d); }
.hd-lengan { transform-box: fill-box; transform-origin: 100% 50%; animation: hd-lambai 1.2s ease-in-out infinite alternate; }
@keyframes hd-lambai { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
.hd-orsaw { cursor: pointer; }

.hd-hero__isi { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: calc(var(--head) + 3.5vh) 1.25rem 0; will-change: transform, opacity; }
@media (min-width: 640px) { .hd-hero__isi { padding-top: calc(var(--head) + 7vh); } }
.hd-hero__isi .hd-label { background: rgba(255,255,255,.7); padding: .35rem .9rem; border-radius: 999px; color: var(--tinta); font-size: .72rem; }
.hd-hero__judul { font: 700 clamp(2.4rem, 7.2vw, 5.6rem)/1.02 var(--f-judul); color: var(--tinta); margin: .4rem 0 1rem; text-shadow: 0 2px 0 rgba(255,255,255,.55), 0 8px 30px rgba(255,255,255,.5); letter-spacing: -.02em; }
.hd-hero__judul span { display: inline-block; }
html.hd-js:not(.hd-hemat) .hd-hero__judul > span, html.hd-js:not(.hd-hemat) .hd-sorot > span { opacity: 0; transform: translateY(40px) rotate(4deg); animation: hd-naik .8s var(--pegas) forwards; }
.hd-hero__judul > span:nth-child(1) { animation-delay: .1s; } .hd-hero__judul > span:nth-child(2) { animation-delay: .2s; } .hd-hero__judul > span:nth-child(3) { animation-delay: .3s; }
.hd-sorot > span:nth-child(1) { animation-delay: .45s; } .hd-sorot > span:nth-child(2) { animation-delay: .6s; }
@keyframes hd-naik { to { opacity: 1; transform: none; } }
.hd-sorot { display: inline-block; background: linear-gradient(transparent 58%, rgba(244,184,54,.85) 58% 92%, transparent 92%); padding: 0 .15em; border-radius: 10px; }
.hd-hero__sub { font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--tinta); max-width: 34rem; margin: 0 0 1.3rem; text-shadow: 0 1px 14px rgba(255,255,255,.8); }
.hd-cari { display: flex; align-items: center; gap: .75rem; width: min(560px, 100%); padding: .55rem .55rem .55rem 1.2rem; border-radius: 999px; border: 3px solid #fff; background: rgba(255,255,255,.95); color: var(--tinta3); font: 700 1rem var(--f-teks); cursor: pointer; box-shadow: 0 14px 34px -14px rgba(31,59,45,.6); transition: transform .25s var(--pegas); text-align: left; }
.hd-cari:hover { transform: scale(1.03); }
.hd-cari span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-cari b { background: var(--tinta); color: #fff; padding: .65rem 1.2rem; border-radius: 999px; }
.hd-pintas { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1rem; }
.hd-gulir { position: absolute; z-index: 6; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .35rem; color: #fff; font: 800 .8rem var(--f-teks); text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.45); transition: opacity .3s; }
.hd-gulir__tetikus { width: 24px; height: 38px; border: 3px solid #fff; border-radius: 14px; position: relative; }
.hd-gulir__tetikus i { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hd-roda 1.4s infinite; }
@keyframes hd-roda { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* Pita kata */
.hd-pita { background: var(--tinta); color: var(--krem); overflow: hidden; padding: .9rem 0; position: relative; z-index: 3; border-block: 4px solid var(--padi); }
.hd-pita__jalan { display: flex; width: max-content; gap: 1.6rem; font: 600 clamp(1.2rem, 3vw, 1.9rem) var(--f-judul); animation: hd-pita 38s linear infinite; text-transform: uppercase; letter-spacing: .04em; }
.hd-pita i { color: var(--padi); font-style: normal; }
@keyframes hd-pita { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- STORY (jalan-jalan) */
.hd-story { position: relative; padding: 2rem 1rem; }
.hd-story__pin { position: relative; }
.hd-story__stage { position: relative; display: grid; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.hd-chap { display: grid; gap: 1rem; position: relative; }
@media (min-width: 800px) { .hd-chap { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; } .hd-chap:nth-child(even) .hd-chap__foto { order: 2; } }
.hd-chap__foto { margin: 0; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 3; background: #17281f; }
.hd-chap__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-chap__kartu h2 { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--f-judul); margin: .6rem 0; }
.hd-chap__kartu p { margin: 0 0 1rem; color: var(--tinta2); }
.hd-chap__baris { display: flex; flex-wrap: wrap; gap: .4rem; }
.hd-stiker { display: none; }
.hd-chap__kredit { font-size: .7rem; color: var(--tinta3); margin: 0; }
.hd-story__kepala, .hd-titik-bab { display: none; }

/* Mode gulir-zoom: aktif bila JS menyala dan animasi tidak dihemat */
html.hd-js:not(.hd-hemat) .hd-story { height: calc(var(--n) * 105vh + 30vh); padding: 0; }
html.hd-js:not(.hd-hemat) .hd-story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--head) 12px 12px; box-sizing: border-box; }
html.hd-js:not(.hd-hemat) .hd-story__stage { display: block; height: 100%; max-width: none; border-radius: 36px; overflow: hidden; background: #17281f; box-shadow: 0 30px 60px -30px rgba(31,59,45,.7); }
html.hd-js:not(.hd-hemat) .hd-chap { position: absolute; inset: 0; display: block; pointer-events: none; }
html.hd-js:not(.hd-hemat) .hd-chap.is-aktif { pointer-events: auto; }
html.hd-js:not(.hd-hemat) .hd-chap__foto { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; opacity: var(--o, 0); transform: scale(var(--s, 1.05)); will-change: transform, opacity; }
html.hd-js:not(.hd-hemat) .hd-chap:first-of-type .hd-chap__foto { --o: 1; }
html.hd-js:not(.hd-hemat) .hd-chap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,16,.1) 30%, rgba(10,25,16,.72) 100%); opacity: var(--o, 0); pointer-events: none; }
html.hd-js:not(.hd-hemat) .hd-chap:first-of-type { --o: 1; --co: 1; --cy: 0px; }
html.hd-js:not(.hd-hemat) .hd-chap__kartu { position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2.2rem); bottom: clamp(1rem, 3vw, 2.2rem); max-width: min(460px, calc(100% - 2rem)); padding: 1.3rem 1.4rem; border-radius: 26px; background: rgba(255,252,242,.93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: var(--co, 0); transform: translateY(var(--cy, 30px)); }
html.hd-js:not(.hd-hemat) .hd-chap__kartu h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
html.hd-js:not(.hd-hemat) .hd-chap__kartu p { font-size: .98rem; }
html.hd-js:not(.hd-hemat) .hd-stiker { position: absolute; z-index: 2; right: clamp(1rem, 5vw, 4.5rem); top: 22%; width: clamp(120px, 15vw, 190px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--padi); color: var(--tinta); border: 4px dashed rgba(31,59,45,.55); outline: 6px solid var(--padi); box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); opacity: var(--co, 0); transform: rotate(-9deg) scale(var(--ks, 1)); padding: .5rem; }
html.hd-js:not(.hd-hemat) .hd-stiker b { font: 700 clamp(1.6rem, 3.2vw, 2.6rem)/1 var(--f-judul); }
html.hd-js:not(.hd-hemat) .hd-stiker span { font: 800 .78rem/1.2 var(--f-teks); }
html.hd-js:not(.hd-hemat) .hd-chap.is-aktif .hd-stiker { animation: hd-stempel .7s var(--pegas); }
@keyframes hd-stempel { 0% { transform: rotate(-30deg) scale(.2); } 100% { transform: rotate(-9deg) scale(1); } }
html.hd-js:not(.hd-hemat) .hd-chap__kredit { position: absolute; z-index: 2; right: 1rem; bottom: .6rem; color: rgba(255,255,255,.85); font-size: .68rem; max-width: 45%; text-align: right; opacity: var(--co, 0); }
html.hd-js:not(.hd-hemat) .hd-story__kepala { display: block; position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: .4rem .95rem; border-radius: 999px; background: rgba(255,252,242,.93); font: 800 .82rem var(--f-teks); }
html.hd-js:not(.hd-hemat) .hd-titik-bab { display: flex; flex-direction: column; gap: .6rem; position: absolute; z-index: 3; right: 1rem; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; }
html.hd-js:not(.hd-hemat) .hd-titik-bab button { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; border: 0; background: none; cursor: pointer; padding: 4px; }
html.hd-js:not(.hd-hemat) .hd-titik-bab button::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.6); border: 2px solid rgba(255,255,255,.9); transition: all .3s var(--pegas); }
html.hd-js:not(.hd-hemat) .hd-titik-bab button span { opacity: 0; transform: translateX(8px); transition: all .25s; background: rgba(255,252,242,.95); color: var(--tinta); font: 800 .75rem var(--f-teks); padding: .2rem .6rem; border-radius: 99px; pointer-events: none; }
html.hd-js:not(.hd-hemat) .hd-titik-bab button:hover span, html.hd-js:not(.hd-hemat) .hd-titik-bab button:focus-visible span { opacity: 1; transform: none; }
html.hd-js:not(.hd-hemat) .hd-titik-bab button.is-aktif::after { background: var(--padi); transform: scale(1.5); border-color: #fff; }
@media (max-width: 640px) {
  html.hd-js:not(.hd-hemat) .hd-stiker { top: 14%; right: .7rem; width: 104px; }
  html.hd-js:not(.hd-hemat) .hd-chap__kredit { max-width: 100%; left: 1rem; text-align: left; bottom: auto; top: 3.6rem; }
  html.hd-js:not(.hd-hemat) .hd-titik-bab { top: auto; bottom: auto; right: .6rem; top: 46%; }
  html.hd-js:not(.hd-hemat) .hd-titik-bab button span { display: none; }
  html.hd-js:not(.hd-hemat) .hd-chap__kartu { padding: 1rem 1.1rem; left: .7rem; right: .7rem; max-width: none; bottom: .7rem; }
  html.hd-js:not(.hd-hemat) .hd-chap__kartu p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------------------------------------------------------------- Kartu angka yang bisa dibalik */
.hd-angka-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; perspective: 1200px; }
@media (min-width: 900px) { .hd-angka-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.hd-balik { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 250px; }
.hd-balik__isi { position: relative; display: block; width: 100%; height: 100%; min-height: 250px; transform-style: preserve-3d; transition: transform .8s var(--pegas); }
.hd-balik.is-balik .hd-balik__isi { transform: rotateY(180deg); }
.hd-balik__depan, .hd-balik__belakang { position: absolute; inset: 0; border-radius: 28px; padding: 1.2rem; display: flex; flex-direction: column; -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 3px solid rgba(31,59,45,.9); box-shadow: 0 6px 0 rgba(31,59,45,.9); }
.hd-balik__belakang { transform: rotateY(180deg); background: #fff; justify-content: center; gap: .5rem; }
.hd-balik__belakang small { font: 800 .75rem var(--f-teks); text-transform: uppercase; letter-spacing: .1em; color: var(--tanah-tua); }
.hd-balik__belakang span { font-weight: 700; font-size: .98rem; line-height: 1.45; }
.hd-balik__belakang em { font-size: .75rem; color: var(--tinta3); font-style: normal; }
.hd-balik--padi .hd-balik__depan { background: #FFD66E; } .hd-balik--air .hd-balik__depan { background: #8FDCEA; }
.hd-balik--daun .hd-balik__depan { background: #A8DDB0; } .hd-balik--tanah .hd-balik__depan { background: #FFB694; }
.hd-balik__ikon { width: 46px; height: 46px; color: var(--tinta); opacity: .85; margin-bottom: auto; transition: transform .5s var(--pegas); }
.hd-balik:hover .hd-balik__ikon { transform: rotate(-12deg) scale(1.2); }
.hd-balik__ikon svg { width: 100%; height: 100%; fill: currentColor; }
.hd-balik__depan small { font: 800 .9rem var(--f-teks); }
.hd-balik__depan strong { font: 700 clamp(2rem, 4.2vw, 3rem)/1 var(--f-judul); }
.hd-balik__depan em { font-style: normal; font-weight: 800; font-size: .9rem; }
.hd-balik__petunjuk { font-size: .7rem; font-style: normal; font-weight: 700; opacity: .7; margin-top: .5rem; }

/* ---------------------------------------------------------------- jarak (motor) */
.hd-jarak { background: #fff; border: 2px solid var(--garis); border-radius: 24px; padding: 2.8rem 1.5rem 1.2rem; }
.hd-jarak__jalan { position: relative; display: flex; justify-content: space-between; border-bottom: 5px dashed var(--garis); padding-bottom: 1.2rem; }
.hd-jarak__titik { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .8rem; position: relative; flex: 1; }
.hd-jarak__titik::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--tanah); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--tanah); position: absolute; top: calc(100% - 0.4rem); }
.hd-jarak__titik { padding-bottom: .8rem; }
.hd-jarak__titik b { font-weight: 800; } .hd-jarak__titik small { color: var(--tinta3); font-weight: 700; }
.hd-motor { position: absolute; top: -34px; left: 0; width: 52px; }

/* ---------------------------------------------------------------- Musim tanam */
.hd-musim { background: #fff; border: 3px solid var(--tinta); border-radius: 32px; overflow: hidden; box-shadow: 0 8px 0 var(--tinta); }
.hd-musim__langit { position: relative; line-height: 0; }
.hd-musim__langit svg { width: 100%; height: auto; display: block; }
.hd-musim__tanah { fill: #7B5A3A; transition: fill 1s; }
.hd-musim[data-tahap="1"] .hd-musim__tanah { fill: #5FA8C0; }
.hd-musim[data-tahap="2"] .hd-musim__tanah { fill: #6B9B52; }
.hd-musim[data-tahap="3"] .hd-musim__tanah { fill: #B88A4A; }
.hd-musim__surya { transition: cx 1s var(--ease), cy 1s var(--ease), fill 1s; }
.hd-musim[data-tahap="1"] .hd-musim__surya { cx: 80px; cy: 70px; }
.hd-musim[data-tahap="2"] .hd-musim__surya { cx: 200px; cy: 36px; }
.hd-musim[data-tahap="3"] .hd-musim__surya { cx: 320px; cy: 62px; fill: #F28C38; }
.hd-padi { cursor: default; }
.hd-padi__tinggi { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.2s var(--pegas); transition-delay: var(--d); transform: scale(.28); }
.hd-musim[data-tahap="2"] .hd-padi__tinggi { transform: scale(.7); }
.hd-musim[data-tahap="3"] .hd-padi__tinggi { transform: scale(1); }
.hd-padi__goyang { transform-box: fill-box; transform-origin: 50% 100%; animation: hd-goyang 2.8s ease-in-out infinite alternate; animation-delay: var(--d); }
.hd-padi .b { fill: none; stroke: #4CB65F; stroke-width: 5; stroke-linecap: round; transition: stroke 1s; }
.hd-musim[data-tahap="3"] .hd-padi .b { stroke: #D9A93C; }
.hd-padi .malai { opacity: 0; transition: opacity 1s; fill: #F0C040; stroke: #D9A93C; stroke-width: 3; stroke-linecap: round; }
.hd-musim[data-tahap="3"] .hd-padi .malai { opacity: 1; }
.hd-musim[data-tahap="3"] .hd-padi { cursor: pointer; }
.hd-padi.is-panen .hd-padi__tinggi { transform: scale(0) !important; transition-duration: .35s; transition-delay: 0s; }
.hd-musim__panen { position: absolute; left: .8rem; top: .8rem; background: var(--padi); color: var(--tinta); font: 800 .85rem var(--f-teks); padding: .35rem .8rem; border-radius: 99px; line-height: 1.3; }
.hd-musim__tahap { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .8rem; background: var(--krem2); border-top: 3px solid var(--tinta); }
.hd-musim__tahap button { border: 2px solid var(--tinta); background: #fff; border-radius: 16px; padding: .75rem .4rem; font: 800 .95rem var(--f-teks); color: var(--tinta); cursor: pointer; min-height: 46px; transition: transform .2s var(--pegas), background .2s; }
.hd-musim__tahap button:hover { transform: translateY(-2px); }
.hd-musim__tahap button.is-aktif { background: var(--padi); box-shadow: 0 3px 0 var(--tinta); }

/* ---------------------------------------------------------------- Gulir samping */
.hd-hgulir { position: relative; padding: 3.5rem 0; }
.hd-hgulir__pin { padding: 0 1.25rem; }
.hd-hgulir__kepala { max-width: 1240px; margin: 0 auto 1.5rem; }
.hd-hgulir__bar { height: 8px; border-radius: 99px; background: var(--garis); max-width: 320px; overflow: hidden; display: none; }
.hd-hgulir__bar i { display: block; height: 100%; width: 100%; background: var(--tanah); transform-origin: 0 50%; transform: scaleX(0); border-radius: 99px; }
.hd-hgulir__jalur { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.25rem; padding: 1rem 1.25rem 2rem; -webkit-overflow-scrolling: touch; }
.hd-hgulir__trek { display: flex; gap: 1.1rem; width: max-content; }
.hd-sektor { position: relative; display: block; flex: 0 0 auto; width: min(76vw, 300px); height: 400px; border-radius: 30px; overflow: hidden; scroll-snap-align: center; color: #fff; text-decoration: none; border: 3px solid var(--tinta); box-shadow: 0 8px 0 var(--tinta); background: #17281f; transition: box-shadow .3s; transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(var(--rot, 0deg)) scale(var(--sk, 1)) translateY(var(--ty, 0px)); will-change: transform; }
.hd-sektor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hd-sektor:hover img { transform: scale(1.1); }
.hd-sektor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,25,16,.9) 100%); }
.hd-sektor__teks { position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.hd-sektor__teks b { font: 700 1.5rem/1.1 var(--f-judul); }
.hd-sektor__teks small { font-size: .88rem; line-height: 1.35; opacity: .92; }
.hd-sektor__teks em { font-size: .62rem; font-style: normal; opacity: .7; }
.hd-sektor__panah { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; background: var(--padi); color: var(--tinta); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; transition: transform .3s var(--pegas); }
.hd-sektor:hover .hd-sektor__panah { transform: rotate(-45deg) scale(1.15); }
html.hd-js:not(.hd-hemat) .hd-hgulir.is-pin { padding: 0; }
html.hd-js:not(.hd-hemat) .hd-hgulir.is-pin .hd-hgulir__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--head) + .5rem) 1.25rem 1.5rem; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
html.hd-js:not(.hd-hemat) .hd-hgulir.is-pin .hd-hgulir__jalur { overflow: visible; scroll-snap-type: none; padding-inline: 0; margin: 0; }
html.hd-js:not(.hd-hemat) .hd-hgulir.is-pin .hd-hgulir__trek { will-change: transform; }
html.hd-js:not(.hd-hemat) .hd-hgulir.is-pin .hd-hgulir__bar { display: block; }
html.hd-js:not(.hd-hemat) .hd-hgulir.is-pin .hd-sektor { width: 320px; height: min(440px, 56vh); }

/* ---------------------------------------------------------------- Langkah surat */
.hd-langkah { position: relative; display: grid; gap: 1.2rem; padding-left: 2.2rem; }
.hd-langkah__jalur, .hd-langkah__surat { display: none; }
.hd-langkah__garis { position: absolute; left: .55rem; top: 1rem; bottom: 1rem; width: 6px; border-radius: 4px; background: var(--garis); overflow: hidden; }
.hd-langkah__garis i { display: block; width: 100%; height: 100%; background: var(--tanah); transform-origin: 50% 0; transform: scaleY(var(--pg, 0)); }
.hd-langkah__butir { position: relative; background: #fff; border: 3px solid var(--tinta); border-radius: 26px; padding: 1.3rem 1.3rem 1.3rem 4.2rem; box-shadow: 0 6px 0 var(--tinta); transition: transform .5s var(--pegas), opacity .5s; }
html.hd-js:not(.hd-hemat) .hd-langkah__butir { opacity: .35; transform: scale(.96); }
html.hd-js:not(.hd-hemat) .hd-langkah__butir.is-on { opacity: 1; transform: none; }
.hd-langkah__no { position: absolute; left: 1rem; top: 1.1rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--padi); border: 3px solid var(--tinta); font: 700 1.3rem var(--f-judul); }
.hd-langkah__butir--daun .hd-langkah__no { background: #A8DDB0; } .hd-langkah__butir--tanah .hd-langkah__no { background: #FFB694; }
.hd-langkah__butir h3 { font: 700 1.3rem var(--f-judul); margin: 0 0 .3rem; }
.hd-langkah__butir p { margin: 0; color: var(--tinta2); font-size: .98rem; }
@media (min-width: 900px) {
  .hd-langkah { grid-template-columns: repeat(3, 1fr); padding: 5.5rem 0 0; gap: 1.5rem; }
  .hd-langkah__garis { display: none; }
  .hd-langkah__jalur { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
  .hd-langkah__jalur path { fill: none; stroke-width: 6; stroke-linecap: round; }
  .hd-langkah__jalur .dasar { stroke: var(--garis); stroke-dasharray: 2 14; }
  .hd-langkah__jalur .isi { stroke: var(--tanah); }
  .hd-langkah__surat { display: block; position: absolute; left: 0; top: 0; width: 46px; z-index: 3; will-change: transform; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
  .hd-langkah__butir { padding: 3.6rem 1.3rem 1.3rem; text-align: center; }
  .hd-langkah__no { left: 50%; top: -1.4rem; transform: translateX(-50%); }
}
.hd-surat-daftar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.2rem; }

/* ---------------------------------------------------------------- Kabar */
.hd-tab { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem 0 1rem; }
.beranda-tab-btn { flex: none; border: 2px solid var(--garis); background: #fff; color: var(--tinta2); font: 800 .92rem var(--f-teks); padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; transition: transform .2s var(--pegas), background .2s; min-height: 42px; }
.beranda-tab-btn:hover { transform: translateY(-2px); }
.beranda-tab-btn.is-aktif { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.hd-kabar { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.4rem; }
.hd-kabar__kartu { position: relative; background: #fff; border: 2px solid var(--garis); border-radius: 28px; overflow: hidden; transition: box-shadow .3s, border-color .3s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hd-kabar__kartu:hover { border-color: var(--tinta); box-shadow: 0 10px 0 var(--tinta); }
html.hd-js:not(.hd-hemat) .hd-kabar__kartu[data-hd].is-in { transition: opacity .8s var(--ease), transform .25s ease-out, box-shadow .3s, border-color .3s; }
.hd-kabar__tautan { display: block; color: inherit; text-decoration: none; }
.hd-kabar__foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--krem2); }
.hd-kabar__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hd-kabar__kartu:hover .hd-kabar__foto img { transform: scale(1.08) rotate(.6deg); }
.hd-kabar__isi { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.2rem 1.3rem; align-items: flex-start; }
.hd-kabar__isi b { font: 700 1.2rem/1.2 var(--f-judul); }
.hd-kabar__ringkas { font-size: .92rem; color: var(--tinta2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hd-kabar__isi small { color: var(--tinta3); font-weight: 700; }
.hd-simpan { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--tinta); background: #fff; color: var(--tinta); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--pegas), background .2s; }
.hd-simpan:hover { transform: scale(1.15) rotate(-8deg); background: var(--padi); }
.hd-simpan .fill-ink { fill: var(--tinta); } .hd-simpan .fill-none { fill: none; }
.hd-kosong { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem; background: #fff; border: 2px dashed var(--garis); border-radius: 24px; display: flex; flex-direction: column; gap: .3rem; }
.hd-kosong b { font: 700 1.3rem var(--f-judul); }

/* ---------------------------------------------------------------- Galeri berjalan */
.hd-marquee { overflow: hidden; margin-top: 1rem; }
.hd-marquee__jalan { display: flex; gap: 1rem; width: max-content; animation: hd-pita 60s linear infinite; padding: .5rem 0; }
.hd-marquee--balik .hd-marquee__jalan { animation-direction: reverse; animation-duration: 70s; }
.hd-marquee:hover .hd-marquee__jalan { animation-play-state: paused; }
.hd-foto { position: relative; flex: none; width: clamp(200px, 26vw, 300px); aspect-ratio: 4 / 3; margin: 0; border-radius: 26px; overflow: hidden; border: 3px solid var(--tinta); cursor: zoom-in; transition: transform .35s var(--pegas); background: var(--krem2); }
.hd-foto:nth-child(odd) { transform: rotate(-1.6deg); } .hd-foto:nth-child(even) { transform: rotate(1.4deg); }
.hd-foto:hover { transform: rotate(0) scale(1.07); z-index: 2; }
.hd-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .6rem; background: linear-gradient(transparent, rgba(10,25,16,.85)); color: #fff; font: 700 .85rem var(--f-teks); transform: translateY(100%); transition: transform .3s; }
.hd-foto:hover figcaption, .hd-foto:focus-visible figcaption { transform: none; }

/* ---------------------------------------------------------------- Ajakan */
.hd-ajak { position: relative; overflow: hidden; background: var(--tinta); color: var(--krem); border-radius: 40px; padding: clamp(1.8rem, 5vw, 3.5rem); display: grid; gap: 1.6rem; box-shadow: 0 10px 0 #0F2218; }
.hd-ajak::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(244,184,54,.5), transparent 70%); }
@media (min-width: 900px) { .hd-ajak { grid-template-columns: 1.1fr 1fr; align-items: center; padding-right: 9rem; } }
.hd-ajak h2 { color: #fff; position: relative; }
.hd-ajak p { color: #D5E2D6; margin: 0; position: relative; }
.hd-ajak__form { position: relative; display: flex; flex-direction: column; gap: .8rem; }
.hd-ajak__isian { display: flex; gap: .4rem; background: #fff; padding: .4rem; border-radius: 999px; }
.hd-ajak__isian input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; font: 700 1rem var(--f-teks); color: var(--tinta); outline: none; }
.hd-ajak__setuju { display: flex; gap: .6rem; font-size: .82rem; color: #D5E2D6; cursor: pointer; }
.hd-ajak__setuju button { color: var(--padi); text-decoration: underline; background: none; border: 0; cursor: pointer; font: inherit; }
#village-newsletter-feedback { padding: .6rem 1rem; border-radius: 16px; background: rgba(255,255,255,.14); font-weight: 700; font-size: .9rem; }
#village-newsletter-feedback.hidden { display: none; }
.hd-ajak__kuntul { display: none; position: absolute; right: 1.5rem; bottom: -6px; width: 120px; }
@media (min-width: 900px) { .hd-ajak__kuntul { display: block; } }

/* ---------------------------------------------------------------- Footer */
.hd-kaki { margin-top: 5rem; position: relative; color: #D5E2D6; background: var(--tinta); padding-bottom: 6rem; }
.hd-kaki__ombak { position: absolute; left: 0; right: 0; top: -79px; width: 100%; height: 80px; display: block; }
.hd-kaki__isi { max-width: 1240px; margin: 0 auto; padding: 1rem 1.25rem 0; }
.hd-kaki__grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 2px dashed rgba(255,255,255,.2); }
@media (min-width: 800px) { .hd-kaki__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.hd-kaki h4 { font: 700 1.15rem var(--f-judul); color: #fff; margin: 0 0 .7rem; }
.hd-kaki ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.hd-kaki a { color: #D5E2D6; text-decoration: none; } .hd-kaki a:hover { color: var(--padi); }
.hd-kaki p { margin: 0 0 .7rem; font-size: .95rem; }
.hd-kaki__merek { display: flex; align-items: center; gap: .7rem; color: #fff !important; margin-bottom: .8rem; }
.hd-kaki__merek b { display: block; font: 700 1.4rem var(--f-judul); line-height: 1; } .hd-kaki__merek small { font-size: .75rem; opacity: .8; }
.hd-kaki__kuntul { width: 56px; height: auto; }
.hd-kaki__sosial { display: flex; flex-wrap: wrap; gap: .5rem; }
.hd-kaki__sosial a { border: 2px solid rgba(255,255,255,.3); border-radius: 99px; padding: .35rem .9rem; font-weight: 800; font-size: .85rem; }
.hd-kaki__sosial a:hover { background: var(--padi); border-color: var(--padi); color: var(--tinta); }
.hd-kaki__kecil { font-size: .85rem; opacity: .8; }
.hd-kaki__bawah { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: .88rem; }
.hd-kaki__bawah p { margin: 0; } .hd-kaki__bawah div { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.hd-kaki__bawah button { background: none; border: 0; color: #D5E2D6; font: 700 .88rem var(--f-teks); cursor: pointer; padding: 0; } .hd-kaki__bawah button:hover { color: var(--padi); }

/* ---------------------------------------------------------------- Maskot Kuntul + pematang */
.hd-pematang { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 80; pointer-events: none; }
.hd-pematang__garis { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(31,59,45,.18); }
.hd-pematang__garis i { display: block; height: 100%; width: 100%; background: var(--padi); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); border-radius: 0 4px 4px 0; }
.hd-kuntul { position: absolute; bottom: 4px; right: 20px; left: auto; width: 62px; pointer-events: none; }
.hd-kuntul__tombol { pointer-events: auto; width: 62px; border: 0; padding: 0; background: none; cursor: pointer; display: block; transform: scaleX(1); transition: transform .3s var(--pegas); filter: drop-shadow(0 4px 3px rgba(0,0,0,.2)); }
.hd-kuntul[data-arah="kiri"] .hd-kuntul__tombol { transform: scaleX(-1); }
.hd-kuntul__tombol:hover { filter: drop-shadow(0 4px 3px rgba(0,0,0,.2)) brightness(1.05); }
.hd-kuntul-svg { width: 100%; height: auto; display: block; overflow: visible; }
.k-badan { animation: k-naik 2.4s ease-in-out infinite; }
.k-kepala { transform-box: fill-box; transform-origin: 0% 100%; animation: k-miring 5s ease-in-out infinite; }
.k-mata { transform-box: fill-box; transform-origin: 50% 50%; animation: k-kedip 4.5s infinite; }
.k-kaki { transform-box: fill-box; transform-origin: 50% 0%; }
.hd-kuntul.is-jalan .k-kaki-a { animation: k-langkah .32s ease-in-out infinite alternate; }
.hd-kuntul.is-jalan .k-kaki-b { animation: k-langkah .32s ease-in-out infinite alternate-reverse; }
@keyframes k-naik { 50% { transform: translateY(-2px); } }
@keyframes k-miring { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(5deg); } }
@keyframes k-kedip { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes k-langkah { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.hd-kuntul__gelembung { position: absolute; bottom: 74px; left: 0; width: max-content; max-width: min(250px, 72vw); pointer-events: auto; background: #fff; border: 3px solid var(--tinta); border-radius: 20px; padding: .7rem 2rem .7rem .9rem; box-shadow: 0 5px 0 var(--tinta); font: 700 .88rem/1.4 var(--f-teks); color: var(--tinta); animation: hd-muncul .45s var(--pegas); }
.hd-kuntul__gelembung[hidden] { display: none; }
.hd-kuntul[data-sisi="kanan"] .hd-kuntul__gelembung { left: auto; right: 0; }
.hd-kuntul__gelembung::after { content: ''; position: absolute; bottom: -12px; left: 22px; width: 18px; height: 18px; background: #fff; border-right: 3px solid var(--tinta); border-bottom: 3px solid var(--tinta); transform: rotate(45deg); }
.hd-kuntul[data-sisi="kanan"] .hd-kuntul__gelembung::after { left: auto; right: 22px; }
.hd-kuntul__gelembung p { margin: 0; }
.hd-kuntul__tutup { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--tinta3); }
@keyframes hd-muncul { from { opacity: 0; transform: translateY(10px) scale(.7); } }
.hd-konfeti { position: fixed; z-index: 120; pointer-events: none; font-size: 1.5rem; will-change: transform, opacity; }
@media (max-width: 640px) { .hd-kuntul, .hd-kuntul__tombol { width: 48px; } .hd-kuntul { right: 14px; left: auto; bottom: calc(4px + env(safe-area-inset-bottom, 0px)); } .hd-kuntul__gelembung { bottom: 60px; } .hd-pematang { bottom: env(safe-area-inset-bottom, 0px); } }

/* ---------------------------------------------------------------- Mode hemat animasi / dukungan aksesibilitas */
html.hd-hemat *, html.hd-hemat *::before, html.hd-hemat *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.hd-hemat .hd-pita__jalan, html.hd-hemat .hd-marquee__jalan { animation: none !important; }
html.hd-hemat .hd-marquee { overflow-x: auto; }
html.hd-hemat .hd-hero__pin { position: relative; }
html.hd-hemat .hd-kuntul { transition: none; }
@media print { .hd-header, .hd-pematang { display: none; } }

/* Elemen berstatus hidden harus benar-benar tersembunyi */
.hd-btn[hidden], .hd-musim__panen[hidden], .hd-kuntul__gelembung[hidden] { display: none !important; }

/* Jendela pop-up tersembunyi sejak awal (aman walau Tailwind CDN belum selesai dimuat) */
#search-modal.hidden, #article-modal.hidden, #contact-modal.hidden, #info-modal.hidden { display: none; }

/* Ukuran Kuntul di footer dan kartu ajakan */
.hd-kaki .hd-kaki__kuntul { width: 56px; flex: none; }
.hd-ajak .hd-ajak__kuntul { width: 120px; }