/* ==========================================================================
   P6belas Rumah Kopi — style.css
   Semua warna & font diatur di :root. Data menu & jam buka ada di /data/*.json
   ========================================================================== */

/* ---------- Font (self-hosted, font-display: swap) ---------- */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("../fonts/special-elite-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Token ---------- */
:root {
  --kapur: #F2EBDD;
  --kapur-tua: #E3D6BE;
  --kertas-foto: #FBF8F2;
  --tinta: #1C1A17;
  --kuning-p6: #FBC259;
  --lampu: #E8A94A;
  --hijau-krepyak: #5E9A8E;
  --kayu-jati: #5A3A22;
  --papan-kapur: #232421;

  /* turunan (untuk kontras AA) */
  --kuning-pucat: #FCE3A6;
  --hijau-tua: #2F5E54;      /* teks di atas hijau muda */
  --hijau-muda: #DCEBE6;
  --tinta-2: #4A4239;        /* teks sekunder, AA di atas --kapur */
  --kapur-teks: #EFEAE0;     /* teks kapur di papan */

  --f-head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "DM Serif Display", Georgia, serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-chalk: "Caveat", "Comic Sans MS", cursive;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5.5vw, 56px);
  --sec-pad: clamp(72px, 13vw, 144px);
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow-photo: 0 1px 2px rgba(70, 45, 20, .14), 0 10px 24px -10px rgba(70, 45, 20, .38);
  --shadow-lift: 0 2px 4px rgba(70, 45, 20, .12), 0 26px 40px -14px rgba(70, 45, 20, .45);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  /* ubin tegel klasik */
  --tegel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23E3D6BE'/%3E%3Cg fill='%235A3A22'%3E%3Cpath d='M0 0h9a9 9 0 0 1-9 9zM40 0v9a9 9 0 0 1-9-9zM0 40v-9a9 9 0 0 1 9 9zM40 40h-9a9 9 0 0 1 9-9z'/%3E%3C/g%3E%3Cpath d='M20 7l13 13-13 13L7 20z' fill='%235E9A8E'/%3E%3Cpath d='M20 13l7 7-7 7-7-7z' fill='%23F2EBDD'/%3E%3Ccircle cx='20' cy='20' r='2.6' fill='%23FBC259'/%3E%3Cpath d='M20 0v4M20 36v4M0 20h4M36 20h4' stroke='%235A3A22' stroke-width='1.4'/%3E%3C/svg%3E");
  --tegel-garis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23F2EBDD' stroke-width='1'%3E%3Cpath d='M0 9a9 9 0 0 0 9-9M31 0a9 9 0 0 0 9 9M0 31a9 9 0 0 1 9 9M31 40a9 9 0 0 1 9-9'/%3E%3Cpath d='M20 7l13 13-13 13L7 20z'/%3E%3Cpath d='M20 13l7 7-7 7-7-7z'/%3E%3Ccircle cx='20' cy='20' r='2.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grain) repeat, var(--kapur);
  color: var(--tinta);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.02; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--kertas-foto); padding: 12px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; box-shadow: 0 0 0 6px var(--kuning-p6); border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.sec { padding-block: var(--sec-pad); position: relative; }
.ico { width: 22px; height: 22px; flex: none; }
.placeholder { color: var(--tinta-2); font-family: var(--f-type); }

/* ---------- Judul ---------- */
.sec-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head--center { justify-content: center; }
.h-sans { font: 800 clamp(2.5rem, 11vw, 4.75rem)/0.95 var(--f-head); letter-spacing: -0.035em; }
.h-sans--md { font-size: clamp(1.9rem, 7.5vw, 3rem); letter-spacing: -0.025em; }
.h-serif { font: italic 400 clamp(2.6rem, 11.5vw, 5rem)/0.98 var(--f-serif); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 3.6vw, 1.3rem); line-height: 1.55; }

/* ---------- Lampu gantung ---------- */
.lamp { color: var(--kayu-jati); transform-origin: 50% 0; flex: none; }
.lamp .lamp-glass { fill: rgba(232, 169, 74, .22); }
.lamp--sm { width: 30px; height: 62px; margin-bottom: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .lamp { animation: ayun 5.2s ease-in-out infinite alternate; }
}
@keyframes ayun { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid var(--tinta);
  font: 600 1rem/1.2 var(--f-head); letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--kuning-p6); color: var(--tinta); box-shadow: 0 3px 0 var(--tinta); }
.btn--outline { background: transparent; color: var(--tinta); }
.btn--wa { background: var(--tinta); color: var(--kertas-foto); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--lampu); }
  .btn--outline:hover { background: var(--kertas-foto); }
  .btn--wa:hover { background: var(--kayu-jati); border-color: var(--kayu-jati); }
}
.link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--lampu); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
html.intro .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90;
  background: var(--grain), var(--kapur); pointer-events: none;
  animation: pre-out .25s .72s ease forwards;
}
.preloader__mark { width: 112px; height: auto; overflow: visible; }
html.intro .pre-p { animation: pre-p .45s var(--ease) both; }
html.intro .pre-6 { transform-box: fill-box; transform-origin: 50% 70%; animation: pre-6 .45s .22s var(--ease) both; }
@keyframes pre-p { from { transform: translateX(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pre-6 { from { transform: rotate(-70deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pre-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .45s var(--ease), background-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(242, 235, 221, .86); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(90, 58, 34, .14); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: var(--nav-h); width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; display: flex; align-items: center; gap: 12px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-right: auto; }
.nav__logo { width: 44px; height: 44px; filter: drop-shadow(0 1px 2px rgba(70,45,20,.25)); }
.nav__name { font: 800 1.125rem/1 var(--f-head); letter-spacing: -.01em; }
.nav__wa { min-height: 44px; padding: 8px 14px; font-size: .9375rem; }
.nav__wa span { display: none; }
.nav__toggle { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 22px; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; content: ""; }
.nav__bars { position: relative; }
.nav__bars::before { position: absolute; top: -7px; }
.nav__bars::after { position: absolute; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav__links {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 8px var(--gutter) 20px;
  background: var(--kapur); box-shadow: 0 18px 30px -18px rgba(70,45,20,.45); border-top: 1px solid rgba(90,58,34,.15);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav__links.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav__links a { font: 600 1.25rem/1 var(--f-head); text-decoration: none; padding: 14px 0; min-height: 48px; border-bottom: 1px dashed rgba(90,58,34,.25); }
.nav__links a:last-child { border-bottom: 0; }
html:not(.js) .nav__links { position: static; visibility: visible; opacity: 1; transform: none; }

@media (min-width: 420px) { .nav__wa span { display: inline; } }
@media (min-width: 900px) {
  :root { --nav-h: 76px; }
  .nav__toggle { display: none; }
  .nav__links { position: static; display: flex; gap: 4px; padding: 0; background: none; box-shadow: none; border: 0; visibility: visible; opacity: 1; transform: none; margin-right: 8px; }
  .nav__links a { font-size: 1rem; padding: 10px 14px; border: 0; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; transition: background-color .25s; }
  .nav__links a:hover { background: rgba(251, 194, 89, .35); }
}

/* ---------- Polaroid ---------- */
.polaroid {
  margin: 0; background: var(--kertas-foto);
  padding: 9px 9px 0; border-radius: 2px;
  box-shadow: var(--shadow-photo);
  rotate: var(--r, 0deg);
  transition: rotate .6s var(--ease), translate .6s var(--ease), box-shadow .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.polaroid__photo, .photo { position: relative; overflow: hidden; background: var(--kapur-tua); }
.polaroid__photo { aspect-ratio: var(--ar, 4 / 5); }
.polaroid__photo img, .photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.1) saturate(.94) contrast(1.03); }
.polaroid__photo::after, .photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(74, 40, 14, .32) 100%), linear-gradient(rgba(232,169,74,.06), rgba(232,169,74,.06));
}
.polaroid figcaption { font: 400 .9375rem/1.3 var(--f-type); color: var(--tinta-2); padding: 10px 2px 13px; text-align: center; }
.polaroid[data-tap] { cursor: pointer; }
.polaroid.is-lifted { rotate: 0deg; translate: 0 -8px; box-shadow: var(--shadow-lift); position: relative; z-index: 3; }
@media (hover: hover) and (pointer: fine) {
  .polaroid[data-tap]:hover { rotate: 0deg; translate: 0 -8px; box-shadow: var(--shadow-lift); position: relative; z-index: 3; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px) 0 56px; display: flex; align-items: center; overflow: clip; }
.hero__glow {
  position: absolute; width: 620px; height: 620px; right: -220px; top: 34%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 169, 74, .42) 0%, rgba(232, 169, 74, .16) 38%, transparent 68%);
}
@media (prefers-reduced-motion: no-preference) { .hero__glow { animation: napas 7s ease-in-out infinite alternate; } }
@keyframes napas { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }

.hero__grid { position: relative; display: grid; gap: 28px; }
.hero__title { display: grid; gap: 6px; margin-bottom: 18px; }
.hero__rk { font: 800 clamp(3.25rem, 17.5vw, 7.6rem)/.86 var(--f-head); letter-spacing: -0.05em; }
.hero__mark { display: flex; align-items: flex-end; gap: clamp(10px, 2.5vw, 20px); }
.hero__p6 { width: clamp(118px, 36vw, 230px); aspect-ratio: 98 / 86; height: auto; overflow: visible; }
.hero__belas { font: 800 clamp(1.6rem, 8vw, 3.4rem)/1 var(--f-head); letter-spacing: .14em; padding-bottom: .1em; }
.hero__sub { font: italic 400 clamp(1.3rem, 5.2vw, 1.75rem)/1.25 var(--f-serif); margin-bottom: 20px; }
.hero__status { margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: var(--kertas-foto); border: 1.5px solid rgba(90, 58, 34, .3);
  font: 400 1rem/1.2 var(--f-type);
}
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: #9C8E7C; flex: none; }
.badge.is-open { background: var(--hijau-muda); border-color: var(--hijau-krepyak); color: var(--hijau-tua); }
.badge.is-open .badge__dot { background: var(--hijau-krepyak); box-shadow: 0 0 0 0 rgba(94, 154, 142, .6); }
@media (prefers-reduced-motion: no-preference) { .badge.is-open .badge__dot { animation: denyut 2.4s ease-out infinite; } }
@keyframes denyut { 70% { box-shadow: 0 0 0 8px rgba(94, 154, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 154, 142, 0); } }
.hero__note { font-size: .9375rem; color: var(--tinta-2); margin: 0; }
.hero__note a { text-underline-offset: 3px; }
.hero__cta { display: grid; gap: 12px; }

.hero__visual { position: relative; padding-top: 74px; }
.lamp--hero { position: absolute; width: 48px; height: 100px; top: 0; left: 50%; margin-left: -24px; z-index: 0; }
.hero__stack { position: relative; height: clamp(380px, 120vw, 520px); max-width: 440px; margin-inline: auto; }
.hslot { position: absolute; width: 54%; }
.hslot--a { left: 0; top: 4%; z-index: 2; width: 50%; }
.hslot--b { right: 0; top: 0; z-index: 1; width: 47%; }
.hslot--c { left: 47%; top: 50%; z-index: 3; width: 44%; }
@media (prefers-reduced-motion: no-preference) {
  .hslot { animation: melayang 6s ease-in-out infinite alternate; }
  .hslot--b { animation-duration: 7.2s; animation-delay: -2s; }
  .hslot--c { animation-duration: 6.6s; animation-delay: -4s; }
}
@keyframes melayang { from { transform: translateY(-5px); } to { transform: translateY(6px); } }

/* entrance hero (CSS murni, tunggu preloader bila ada) */
.hero { --base: .05s; }
html.intro .hero { --base: .8s; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-intro] { animation: intro-up .95s calc(var(--base) + var(--d, 0s)) var(--ease) backwards; }
  .js .hero .polaroid { animation: intro-drop 1.1s calc(var(--base) + var(--d, 0s)) var(--ease) backwards; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-intro], .js .hero .polaroid { animation: intro-fade .6s var(--base) ease backwards; }
}
@keyframes intro-up { from { opacity: 0; transform: translateY(24px); } }
@keyframes intro-drop { from { opacity: 0; translate: 0 -28px; rotate: calc(var(--r) + 5deg); } }
@keyframes intro-fade { from { opacity: 0; } }

@media (min-width: 600px) {
  .hero__cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
  .hero__visual { padding-top: 0; }
  .hero__stack { height: 640px; max-width: none; }
  .hslot--a { width: 50%; left: 0; top: 8%; }
  .hslot--b { width: 46%; right: 2%; top: 0; }
  .hslot--c { width: 42%; left: 46%; top: 52%; }
  .lamp--hero { top: -110px; width: 60px; height: 124px; margin-left: -30px; }
  .hero__glow { right: -6%; top: 6%; width: 760px; height: 760px; }
}

/* ---------- Tegel pembatas ---------- */
.tegel { height: 24px; background: var(--tegel) center / 24px 24px repeat-x; border-block: 3px solid var(--kayu-jati); }

/* ---------- RUMAH ---------- */
.rumah__grid { display: grid; gap: 48px; }
.rumah__text p:not(.lead) { color: var(--tinta-2); max-width: 54ch; }
.rumah__text .lead { max-width: 40ch; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; max-width: 480px; margin-inline: auto; width: 100%; }
.wall .polaroid { width: 100%; max-width: 220px; justify-self: center; }
.wall .polaroid:nth-child(2n) { margin-top: 26px; }
@media (min-width: 900px) {
  .rumah__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .wall { gap: 28px 26px; }
}

/* ---------- SLOW BAR ---------- */
.slowbar { background: var(--kapur-tua); }
.slowbar__grid { display: grid; gap: 56px; }
.slowbar__photos { position: relative; padding-bottom: 22%; }
.photo { border-radius: 3px; box-shadow: var(--shadow-photo); }
.photo--big { aspect-ratio: 797 / 1025; width: 86%; max-width: 460px; }
.photo--over { position: absolute; right: 0; bottom: 0; width: 56%; max-width: 340px; aspect-ratio: 913 / 711; border: 8px solid var(--kertas-foto); }
.chalk-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2; margin: 0;
  background: var(--papan-kapur); color: var(--kapur-teks);
  font: 700 1.5rem/1 var(--f-chalk); padding: 10px 14px 12px; border-radius: 2px;
  border: 4px solid #B88D5C; rotate: -3deg; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
}
.slowbar__text .lead { font-weight: 600; }
.slowbar__text p:not(.lead) { color: var(--tinta-2); }
.slowbar__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.photo--sm { aspect-ratio: 4 / 5; }
.slowbar__pair .photo--sm:last-child { margin-top: 28px; }
@media (min-width: 900px) {
  .slowbar__grid { grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
  .slowbar__photos { padding-bottom: 18%; }
}

/* ---------- MENU ---------- */
.menu__grid { display: grid; gap: 36px; align-items: start; }
.poster {
  position: relative; background: var(--kuning-pucat); color: var(--tinta);
  padding: 28px 20px 22px; border-radius: 3px;
  box-shadow: var(--shadow-photo); rotate: -.6deg; overflow: hidden; min-width: 0;
}
.poster::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; opacity: .9; }
.poster__leaves { position: absolute; top: 10px; right: 6px; width: 118px; color: var(--tinta); opacity: .85; }
.poster__beans { position: absolute; bottom: 16px; right: 16px; width: 54px; color: #5A3A22; opacity: .9; }
.poster__title { font: 600 clamp(2.1rem, 9vw, 2.9rem)/.92 var(--f-head); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; position: relative; }
.tabs {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -20px 20px; padding: 2px 20px 6px; scroll-padding-inline: 20px; position: relative;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--tinta); border-radius: 999px; background: transparent; cursor: pointer;
  font: 400 .9375rem/1.2 var(--f-type); white-space: nowrap; transition: background-color .25s, color .25s;
}
.tab[aria-selected="true"] { background: var(--tinta); color: var(--kuning-pucat); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { background: rgba(28,26,23,.08); } }
.poster__panels { position: relative; min-height: 270px; touch-action: pan-y; }
.panel[hidden] { display: none; }
.items { display: grid; gap: 4px; }
.item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(28, 26, 23, .28); }
.item__name { font: 600 1.0625rem/1.3 var(--f-head); min-width: 0; }
.item__dots { flex: 1; }
.item__price { font: 400 1.0625rem/1 var(--f-type); white-space: nowrap; }
.items--extra { margin-top: 18px; padding-top: 4px; }
.items__label { font: 400 .9375rem/1 var(--f-type); margin: 14px 0 2px; color: #4A3A22; }
.items--extra .item__name { font-weight: 400; font-family: var(--f-body); font-size: 1rem; }
.items--extra .item__price::before { content: "+"; }
.poster__unit { position: relative; font: 400 .875rem/1.3 var(--f-type); margin: 18px 0 0; color: #4A3A22; padding-right: 64px; }

.chalk { background: #B88D5C; padding: 10px; border-radius: 4px; box-shadow: var(--shadow-photo), inset 0 0 0 1px rgba(0,0,0,.15); rotate: .8deg; min-width: 0; }
.chalk__board {
  background: radial-gradient(120% 90% at 40% 30%, #2c2d29 0%, var(--papan-kapur) 60%, #1b1c19 100%);
  color: var(--kapur-teks); padding: 22px 20px 26px; border-radius: 2px; position: relative; overflow: hidden;
}
.chalk__board::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .5; mix-blend-mode: screen; pointer-events: none; }
.chalk__title { font: 700 2.4rem/1 var(--f-chalk); text-align: center; margin-bottom: 14px; letter-spacing: .02em; }
.chalk__list li { display: flex; align-items: baseline; gap: 12px; font: 500 1.6rem/1.35 var(--f-chalk); padding: 3px 0; text-shadow: 0 0 1px rgba(239,234,224,.5); }
.chalk__list li::before { content: "–"; opacity: .8; }
.chalk__list .c-name { min-width: 0; flex: 1; }
.chalk__list .c-price { white-space: nowrap; font-weight: 700; }
.menu__note { margin: 28px auto 0; text-align: center; font: 400 .9375rem/1.5 var(--f-type); color: var(--tinta-2); max-width: 46ch; }
@media (min-width: 600px) { .poster { padding: 36px 34px 28px; } .tabs { margin-inline: -34px; padding-inline: 34px; scroll-padding-inline: 34px; } .poster__leaves { width: 150px; } }
@media (min-width: 900px) {
  .menu__grid { grid-template-columns: 1.35fr 1fr; gap: 48px; }
  .tabs { flex-wrap: wrap; overflow: visible; margin-right: 120px; }
  .chalk { margin-top: 48px; }
}

/* ---------- KATA PELANGGAN ---------- */
.faves { padding-top: 0; }
.faves__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 24px; }
.stamp {
  font: 400 1rem/1 var(--f-type); color: var(--kayu-jati); padding: 8px 12px 7px;
  border: 2px solid var(--kayu-jati); border-radius: 4px; rotate: -4deg; opacity: .9;
  box-shadow: inset 0 0 0 2px var(--kapur), inset 0 0 0 3px rgba(90,58,34,.6);
}
.faves__list {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
}
.faves__list::-webkit-scrollbar { display: none; }
.fave {
  flex: none; scroll-snap-align: start; max-width: 74vw;
  background: var(--kertas-foto); padding: 18px 20px 18px 50px; border-radius: 3px;
  font: italic 400 1.35rem/1.15 var(--f-serif); box-shadow: var(--shadow-photo);
  position: relative;
}
.fave::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; border: 2.5px solid rgba(90, 58, 34, .45); box-shadow: inset 0 0 0 4px rgba(232,169,74,.18);
}
.fave:nth-child(odd) { rotate: -1deg; } .fave:nth-child(even) { rotate: 1deg; }
@media (min-width: 900px) {
  .faves__list { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- PELANGGAN ---------- */
.scatter {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 22px var(--gutter) 30px; scroll-padding-inline: var(--gutter);
}
.scatter::-webkit-scrollbar { display: none; }
.scatter__item { flex: none; width: min(72vw, 300px); scroll-snap-align: center; }
.scatter__item--wide { width: min(82vw, 340px); align-self: center; }
@media (min-width: 900px) {
  .scatter { display: block; position: relative; overflow: visible; height: 600px; width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; padding: 0; }
  .scatter__item { position: absolute; }
  .scatter__item:nth-child(1) { width: 25%; left: 0; top: 30px; }
  .scatter__item:nth-child(2) { width: 33%; left: 21%; top: 210px; z-index: 2; }
  .scatter__item:nth-child(3) { width: 32%; left: 46%; top: 0; }
  .scatter__item:nth-child(4) { width: 24%; right: 0; top: 160px; z-index: 1; }
}

.rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 56px 0 28px; }
.rating__num { font: 800 clamp(3.4rem, 15vw, 5.5rem)/.9 var(--f-head); letter-spacing: -.04em; margin: 0; font-variant-numeric: tabular-nums; }
.rating__star { color: var(--lampu); font-size: .7em; vertical-align: .12em; }
.rating__src { font: 400 1.125rem/1.2 var(--f-type); margin: 0; }

.letters {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 22px; scroll-padding-inline: var(--gutter);
}
.letters::-webkit-scrollbar { display: none; }
.letter {
  flex: none; width: min(84vw, 360px); scroll-snap-align: start;
  background:
    repeating-linear-gradient(transparent 0 31px, rgba(94, 154, 142, .22) 31px 32px) 0 46px / 100% calc(100% - 46px) no-repeat,
    var(--kertas-foto);
  padding: 26px 24px 20px; border-radius: 2px; box-shadow: var(--shadow-photo);
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
}
.letter::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 1px; background: rgba(200, 80, 60, .25); }
.letter blockquote { margin: 0; padding-left: 22px; }
.letter blockquote p { font-size: 1.0625rem; line-height: 32px; margin: 0 0 16px; }
.letter__name { font: 400 1rem/1.3 var(--f-type); margin: 0; padding-left: 22px; color: var(--kayu-jati); }
.letter__name::before { content: "— "; }
.guests__more { margin: 18px 0 0; }
@media (min-width: 900px) {
  .letters { display: block; columns: 3; column-gap: 22px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .letter { width: auto; break-inside: avoid; margin-bottom: 22px; display: block; }
  .letter:nth-child(3n+1) { rotate: -.6deg; } .letter:nth-child(3n+2) { rotate: .5deg; }
}

/* ---------- KUNJUNGI ---------- */
.visit { background: var(--kapur-tua); }
.visit__grid { display: grid; gap: 52px; }
.visit__addr { font: 600 clamp(1.2rem, 4.4vw, 1.45rem)/1.4 var(--f-head); max-width: 32ch; margin-bottom: 28px; }
.hours { background: var(--kertas-foto); padding: 18px 20px 14px; border-radius: 3px; box-shadow: var(--shadow-photo); max-width: 440px; margin-bottom: 28px; }
.hours__title { font: 400 1rem/1 var(--f-type); margin-bottom: 10px; color: var(--kayu-jati); }
.hours__table { width: 100%; border-collapse: collapse; font: 400 1rem/1.3 var(--f-type); font-variant-numeric: tabular-nums; }
.hours__table th, .hours__table td { padding: 9px 8px; text-align: left; border-bottom: 1px dashed rgba(90, 58, 34, .22); }
.hours__table th { font-weight: 400; }
.hours__table td { text-align: right; white-space: nowrap; }
.hours__table tr:last-child th, .hours__table tr:last-child td { border-bottom: 0; }
.hours__table tr.is-today { background: var(--kuning-p6); }
.hours__table tr.is-today th::after { content: " · hari ini"; }
.hours__table tr.is-closed td { color: var(--tinta-2); }
.hours__note { font-size: .9375rem; color: var(--tinta-2); margin: 10px 0 0; }
.visit__actions { display: grid; gap: 12px; }
.visit__visual { display: grid; gap: 34px; justify-items: center; }
.visit__sign { width: min(64vw, 260px); }
.visit__map { width: 100%; max-width: 440px; }
.map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #EADFC8; }
.map__art, .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map iframe { filter: sepia(.35) saturate(.85) contrast(.98); }
.map__load { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; background: var(--kertas-foto); white-space: nowrap; }
@media (min-width: 600px) { .visit__actions { grid-template-columns: 1fr 1fr; } .visit__actions .btn:first-child { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .visit__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .visit__visual { position: relative; justify-items: end; padding-top: 40px; }
  .visit__sign { position: absolute; left: -6%; top: 0; z-index: 2; width: 220px; }
  .visit__map { margin-top: 230px; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--tegel-garis) center / 56px 56px, var(--kayu-jati);
  color: var(--kapur); position: relative;
  padding: 72px 0 calc(40px + env(safe-area-inset-bottom, 0px));
}
.footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--kayu-jati) 0%, rgba(90,58,34,.82) 40%, rgba(90,58,34,.9) 100%); }
.footer__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; }
.footer__logo { width: clamp(140px, 40vw, 200px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 8px 18px rgba(0,0,0,.3)); }
.footer__bio { font: italic 400 1.4rem/1.2 var(--f-serif); margin: 8px 0 0; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(242,235,221,.5); transition: background-color .25s, color .25s; }
.footer__social a:hover { background: var(--kuning-p6); color: var(--tinta); border-color: var(--kuning-p6); }
.footer__copy { font: 400 .9375rem/1 var(--f-type); margin: 10px 0 0; opacity: .9; }
.footer :focus-visible { outline-color: var(--kapur); }

/* ---------- Bottom bar (mobile) ---------- */
.bbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(242, 235, 221, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 rgba(90,58,34,.18), 0 -10px 24px -16px rgba(70,45,20,.45);
  transform: translateY(110%); transition: transform .45s var(--ease); visibility: hidden;
}
.bbar.is-visible { transform: none; visibility: visible; }
.bbar a { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; text-decoration: none; font: 600 .875rem/1 var(--f-head); }
.bbar a .ico { width: 20px; height: 20px; }
.bbar__wa { background: var(--kuning-p6); box-shadow: inset 0 0 0 1.5px var(--tinta); }
body.has-bbar { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .bbar { display: none; } body.has-bbar { padding-bottom: 0; } }

/* ---------- Gerak: kurangi bila diminta ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .polaroid, .btn, .nav, .bbar { transition-duration: .01ms !important; }
}
