/* =========================================================
   1825 brew — stylesheet
   Mobile-first. Semua warna & font ada di :root agar mudah diubah.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palet (dari foto & logo) */
  --malam-jati:   #120C08;  /* background utama */
  --kayu-tua:     #3A2416;  /* surface / section alternatif */
  --amber-lampu:  #D89A4E;  /* aksen utama */
  --krem-dinding: #EFE6D2;  /* teks utama */
  --merah-1825:   #C02B27;  /* logo, CTA */
  --hijau-pintu:  #7E8B5A;  /* badge buka */
  --biru-lampu:   #2440D8;  /* aksen super kecil */
  --papan-kapur:  #1E221D;  /* section menu */
  --kapur:        #E8E4D8;  /* tulisan kapur */

  --text:   var(--krem-dinding);
  --muted:  rgba(239, 230, 210, .72);
  --line:   rgba(216, 154, 78, .35);
  --page-bg: var(--malam-jati);

  /* Tipografi */
  --f-display: "Bricolage Grotesque", "Archivo Black", "Arial Black", system-ui, sans-serif;
  --f-serif:   "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-hand:    "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --f-body:    "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Skala & ritme */
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-h2:   clamp(2.4rem, 9vw, 6.2rem);
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(5.5rem, 14vw, 11rem);
  --radius:  14px;
  --ease:    cubic-bezier(.22, 1, .36, 1);      /* ~expo.out */
  --nav-h:   68px;
  --safe-b:  env(safe-area-inset-bottom, 0px);
}

/* ---------- 2. Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
em { font-style: normal; }
::selection { background: var(--amber-lampu); color: var(--malam-jati); }

:focus-visible {
  outline: 2px solid var(--amber-lampu);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--amber-lampu); color: var(--malam-jati);
  padding: .75rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--amber-lampu); }

/* Background per section (dipakai jika JS sync warna tidak aktif) */
[data-bg] { background-color: var(--sec-bg, transparent); }
.ritual  { --sec-bg: var(--kayu-tua); }
.menu    { --sec-bg: var(--papan-kapur); }
.ulasan  { --sec-bg: var(--kayu-tua); }
/* JS aktif → body yang berganti warna halus, section transparan */
.bg-sync [data-bg] { background-color: transparent; }

/* ---------- 3. Grain & vignette (lapisan analog) ---------- */
body::before, body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
}
body::before { /* vignette */
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.42) 100%);
}
body::after { /* film grain */
  inset: -50%;
  opacity: .05;
  background-image: 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Glow tungsten yang "bernapas" */
.glow {
  position: absolute; pointer-events: none; z-index: 1;
  width: min(120vw, 1100px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216,154,78,.22), rgba(216,154,78,.06) 55%, transparent 72%);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { opacity: .55; transform: translate(-50%, -50%) scale(.94); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

/* ---------- 4. Tombol ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--h); min-width: 44px; padding: 0 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.btn--red { background: var(--merah-1825); color: var(--krem-dinding); }
.btn--red:hover { background: #d4342f; }
.btn--outline { border-color: var(--amber-lampu); color: var(--amber-lampu); }
.btn--outline:hover { background: var(--amber-lampu); color: var(--malam-jati); }
.btn--block { width: 100%; }

/* ---------- 5. Status buka/tutup ---------- */
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .75rem; border-radius: 999px;
  background: rgba(18,12,8,.55); border: 1px solid rgba(239,230,210,.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .9rem; font-weight: 500;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #8a7f72; flex: none; position: relative; }
.status.is-open .status__dot { background: #9fb46a; }
.status.is-open .status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--hijau-pintu); animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- 6. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--malam-jati); color: var(--merah-1825);
  animation: curtain .55s var(--ease) .68s forwards;  /* total ≈ 1.2s */
}
.preloader__mark { display: grid; gap: 4px; width: clamp(72px, 18vw, 120px); }
.preloader__mark svg { width: 100%; height: auto; opacity: 0; overflow: visible; }
.preloader__18 { animation: markIn .55s var(--ease) .05s forwards; }
.preloader__25 { animation: markIn .55s var(--ease) .2s forwards; }
@keyframes markIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes curtain { to { transform: translateY(-100%); visibility: hidden; } }
.no-preload .preloader { display: none; }

/* ---------- 7. Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; gap: 1.5rem;
  transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(18,12,8,.66);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(216,154,78,.14);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--merah-1825); margin-right: auto; }
.nav__logo svg { height: 40px; width: auto; }
.nav__links, .nav__cta { display: none; }

.nav__burger {
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--krem-dinding);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child  { top: 27px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { top: 23px; transform: rotate(-45deg); }

/* Menu fullscreen mobile */
.mmenu {
  position: fixed; inset: 0; z-index: 79;
  background: var(--malam-jati);
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + var(--safe-b));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.mmenu[hidden] { display: flex; visibility: hidden; }
.mmenu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mmenu__list { counter-reset: m; }
.mmenu__list li { overflow: hidden; }
.mmenu__list a {
  display: block; padding: .15rem 0; min-height: 44px;
  font: 800 clamp(2.6rem, 13vw, 4.5rem)/1.05 var(--f-display); letter-spacing: -.02em;
  text-decoration: none;
  transform: translateY(105%); transition: transform .8s var(--ease), color .3s;
}
.mmenu__list a:hover { color: var(--amber-lampu); }
.mmenu.is-open .mmenu__list a { transform: none; }
.mmenu.is-open li:nth-child(2) a { transition-delay: .06s; }
.mmenu.is-open li:nth-child(3) a { transition-delay: .12s; }
.mmenu.is-open li:nth-child(4) a { transition-delay: .18s; }
.mmenu.is-open li:nth-child(5) a { transition-delay: .24s; }
.mmenu__foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.mmenu__ig { color: var(--amber-lampu); min-height: 44px; display: inline-flex; align-items: center; }

/* Bottom bar mobile */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: .75rem var(--gutter) calc(.75rem + var(--safe-b));
  background: linear-gradient(to top, rgba(18,12,8,.92) 60%, rgba(18,12,8,0));
  transform: translateY(110%); transition: transform .6s var(--ease);
}
.bottombar.is-visible { transform: none; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__img { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, 1%); } }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__media video.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(18,12,8,.96) 0%, rgba(18,12,8,.7) 32%, rgba(18,12,8,.15) 65%, rgba(18,12,8,.45) 100%);
}
.glow--hero { left: 18%; top: 70%; z-index: -1; }
.hero__content { position: relative; padding-bottom: clamp(5.5rem, 12vh, 8rem); padding-top: calc(var(--nav-h) + 2rem); }
.hero__status { margin-bottom: 1.25rem; }
.hero__title { font-weight: 400; line-height: .9; margin-bottom: 1.25rem; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__word { display: inline-block; }
.hero__line:first-child .hero__word {
  font: 800 clamp(3.4rem, 14vw, 14vw)/.86 var(--f-display);
  letter-spacing: -.035em; color: var(--krem-dinding);
}
.hero__line--serif .hero__word {
  font: italic 400 clamp(2.4rem, 11vw, 11vw)/1 var(--f-serif);
  color: var(--amber-lampu); letter-spacing: -.02em;
}
.hero__sub { max-width: 34ch; color: var(--muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); margin-bottom: 1.75rem; }
.hero__ctas { display: grid; gap: .75rem; }
.hero__ctas .btn { width: 100%; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0;
  width: 44px; height: 44px; display: none; place-items: center;
}
.hero__scroll span { width: 1px; height: 36px; background: rgba(239,230,210,.25); position: relative; overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--amber-lampu); animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- 9. Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: clamp(1rem, 2.5vw, 1.6rem);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  font: 800 clamp(1.4rem, 4.6vw, 3.4rem)/1 var(--f-display);
  text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; color: var(--krem-dinding);
}
.marquee__item i { font-style: normal; color: var(--merah-1825); padding-inline: .45em; }

/* ---------- 10. Heading & split text ---------- */
.h2 {
  font: 800 var(--fs-h2)/.95 var(--f-display);
  letter-spacing: -.03em; text-wrap: balance;
}
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; }

/* ---------- 11. Gambar: reveal & parallax ---------- */
.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--kayu-tua); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 12. Cerita ---------- */
.cerita__grid { display: grid; gap: 3.5rem; }
.cerita__media { position: relative; padding-bottom: 18%; }
.cerita__big { aspect-ratio: 3 / 2; }
.cerita__big img { height: 116%; margin-top: -8%; } /* ruang parallax */
.cerita__small {
  position: absolute; right: -2%; bottom: 0; width: 46%; aspect-ratio: 4 / 3;
  border: 6px solid var(--malam-jati); border-radius: calc(var(--radius) + 4px);
}
.cerita__text { display: grid; gap: 1.25rem; max-width: 34rem; }
.cerita__text .h2 { margin-bottom: .5rem; }
.cerita__text p { color: var(--muted); }
.cerita__text .serif { font-size: 1.15em; }
.placeholder {
  font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.3;
  color: var(--amber-lampu) !important; border: 1px dashed var(--line); border-radius: 10px; padding: .8rem 1rem;
}

/* ---------- 13. Ritual seduh ---------- */
.ritual__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.ritual__intro { color: var(--muted); max-width: 30rem; }
.ritual__steps { display: grid; gap: 3rem; }
.ritual__step { display: grid; gap: 1.25rem; }
.ritual__photo { aspect-ratio: 4 / 5; }
.ritual__step:nth-child(3) .ritual__photo { aspect-ratio: 4 / 3; }
.ritual__copy { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: baseline; }
.ritual__num {
  grid-row: span 2;
  font: 800 clamp(3.5rem, 16vw, 5rem)/.85 var(--f-display);
  color: transparent; -webkit-text-stroke: 1.5px var(--amber-lampu);
}
.ritual__copy h3 { font: 800 clamp(1.6rem, 6vw, 2.2rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.ritual__copy p { color: var(--muted); max-width: 26rem; }
.ritual__progress { display: none; }

/* ---------- 14. Menu papan kapur ---------- */
.menu { overflow: hidden; }
.glow--menu { left: 70%; top: 40%; }
.menu__grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; }
.menu__photo { aspect-ratio: 4 / 5; max-height: 80svh; }
.menu__photo img { height: 116%; margin-top: -8%; }

.board {
  position: relative;
  padding: 10px;
  border-radius: 6px;
  /* bingkai kayu tipis */
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,.12) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #6b4428, #3A2416 45%, #5a3920 70%, #2b1a0f);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.06);
}
.board__inner {
  position: relative; overflow: hidden;
  padding: clamp(1.75rem, 6vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
  border-radius: 3px;
  background-color: #23281f;
  /* tekstur kapur samar: noise + bekas hapusan */
  background-image:
    radial-gradient(60% 40% at 30% 25%, rgba(232,228,216,.07), transparent 70%),
    radial-gradient(50% 35% at 75% 70%, rgba(232,228,216,.05), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .9  0 0 0 0 .9  0 0 0 0 .86  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='.16'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 60px rgba(0,0,0,.55);
  color: var(--kapur);
}
.board__title {
  font: 800 clamp(2.2rem, 10vw, 3.8rem)/1 var(--f-display); letter-spacing: -.02em;
  color: var(--kapur); text-shadow: 0 0 1px rgba(232,228,216,.6);
  margin-bottom: 1.5rem;
}
.board__group {
  font: 700 1.5rem/1 var(--f-hand); color: var(--amber-lampu);
  margin: 1.75rem 0 .5rem;
}
.board__group:first-of-type { margin-top: 0; }
.item {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .4rem 0;
  font-family: var(--f-hand); font-size: clamp(1.55rem, 6vw, 1.9rem); line-height: 1.15;
}
.item__name { min-width: 0; overflow-wrap: anywhere; }
.item__dots {
  flex: 1 1 1.5rem; min-width: 1rem; align-self: center; height: 2px; margin-top: .45em;
  background: radial-gradient(circle, rgba(232,228,216,.55) 1px, transparent 1.4px) 0 50% / 9px 2px repeat-x;
  transform-origin: left;
}
.item__price { flex: none; white-space: nowrap; font-weight: 700; color: var(--kapur); }
.item__price--ask { color: var(--amber-lampu); font-size: .85em; }
.board__note {
  margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px dashed rgba(232,228,216,.25);
  font: 500 1.3rem/1.3 var(--f-hand); color: rgba(232,228,216,.8);
}

/* ---------- 15. Suasana / galeri ---------- */
.suasana__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.suasana__intro { color: var(--muted); max-width: 30rem; }
.lampu-biru {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .6rem; vertical-align: .1em;
  background: var(--biru-lampu); box-shadow: 0 0 10px 2px rgba(36,64,216,.75);
}
.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gallery__btn {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; text-align: left; position: relative;
}
.gallery__frame {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--kayu-tua);
}
.g-b .gallery__frame { aspect-ratio: 3 / 2; }
.gallery__frame img {
  width: 100%; height: 108%; margin-top: -4%; object-fit: cover;
  transition: scale 1.1s var(--ease); /* 'scale' terpisah dari transform parallax GSAP */
}
.gallery__cap {
  display: block; margin-top: .6rem; font-size: .9rem; color: var(--muted);
}

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(10,7,5,.94); color: var(--text);
  opacity: 0; transition: opacity .45s var(--ease), display .45s allow-discrete, overlay .45s allow-discrete;
}
.lightbox[open] { opacity: 1; display: grid; place-items: center; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox__fig { display: grid; gap: .75rem; justify-items: center; padding: 4rem 1rem 5rem; max-width: 100%; }
.lightbox__img {
  max-width: min(92vw, 1100px); max-height: 76dvh; width: auto; height: auto; border-radius: 10px;
  transition: opacity .35s var(--ease), transform .5s var(--ease); touch-action: pan-y;
}
.lightbox__img.is-out { opacity: 0; transform: scale(.97); }
.lightbox__cap { color: var(--muted); font-size: .95rem; text-align: center; }
.lightbox__btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(18,12,8,.6); color: var(--krem-dinding);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox__btn:hover { border-color: var(--amber-lampu); color: var(--amber-lampu); }
.lightbox__close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
.lightbox__prev  { left: 1rem; bottom: calc(1rem + var(--safe-b)); }
.lightbox__next  { right: 1rem; bottom: calc(1rem + var(--safe-b)); }
.lightbox__count { position: fixed; left: 50%; translate: -50% 0; bottom: calc(1.9rem + var(--safe-b)); font-size: .9rem; color: var(--muted); }

/* ---------- 16. Komunitas ---------- */
.komunitas { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.komunitas__media { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.komunitas__media img { height: 116%; margin-top: -8%; object-position: 50% 40%; }
.komunitas__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18,12,8,.95) 0%, rgba(18,12,8,.75) 35%, rgba(18,12,8,.1) 75%);
}
.komunitas__content { display: grid; gap: 1.25rem; padding-block: var(--section) clamp(3rem, 8vw, 6rem); }
.komunitas__content .h2 { max-width: 15ch; font-size: clamp(2.2rem, 8vw, 5.4rem); }
.komunitas__content p { color: var(--muted); max-width: 32rem; }
.komunitas__content .btn { justify-self: stretch; }

/* ---------- 17. Kata mereka ---------- */
.ulasan__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.rating { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.rating__num { font: 800 clamp(3rem, 12vw, 5rem)/1 var(--f-display); color: var(--amber-lampu); font-variant-numeric: tabular-nums; }
.rating__star { font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--amber-lampu); }
.rating__src { color: var(--muted); }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: .5rem var(--gutter) 1.5rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.quote {
  flex: 0 0 84%; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius);
  background: rgba(18,12,8,.42); border: 1px solid rgba(216,154,78,.18);
}
.quote blockquote { margin: 0; }
.quote p { font: italic 400 clamp(1.25rem, 4.6vw, 1.6rem)/1.35 var(--f-serif); color: var(--krem-dinding); }
.quote cite { font-style: normal; font-weight: 600; color: var(--amber-lampu); font-size: .95rem; }

/* ---------- 18. Kunjungi ---------- */
.kunjungi__grid { display: grid; gap: 3rem; }
.kunjungi__info { display: grid; gap: 1.75rem; align-content: start; }
.kunjungi__addr { font-style: normal; color: var(--muted); max-width: 30rem; font-size: 1.05rem; }
.hours { width: 100%; max-width: 26rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .7rem .25rem; border-bottom: 1px solid rgba(239,230,210,.1); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--amber-lampu); font-weight: 700; }
.hours tr.is-today th::after {
  content: "hari ini"; margin-left: .6rem; font: 600 .75rem/1 var(--f-body);
  padding: .25rem .5rem; border-radius: 999px; background: rgba(126,139,90,.25); color: #c9d4a3; vertical-align: .15em;
}
.kunjungi__ctas { display: grid; gap: .75rem; }
.kunjungi__ctas .btn { width: 100%; }
.kunjungi__tel { color: var(--muted); }
.kunjungi__tel a { color: var(--krem-dinding); text-underline-offset: 4px; display: inline-block; padding-block: .6rem; }

.map {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(216,154,78,.5); aspect-ratio: 4 / 3; background: #1a120c;
}
.map__preview { position: absolute; inset: 0; display: block; text-decoration: none; }
.map__preview svg { width: 100%; height: 100%; }
.map__label {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  font-size: .9rem; color: var(--krem-dinding);
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* filter gelap/sepia agar menyatu dengan palet */
  filter: invert(.9) hue-rotate(180deg) sepia(.4) saturate(.75) brightness(.92) contrast(.92);
}

/* ---------- 19. Footer ---------- */
.footer { padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: calc(5.5rem + var(--safe-b)); overflow: hidden; }
.footer__logo {
  display: grid; gap: 1.5vw; justify-items: center; color: var(--merah-1825);
  width: 86vw; margin-inline: auto; margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.footer__logo svg { width: 100%; height: auto; }
.footer__18 { width: 89.5%; } /* jaga proporsi asli 18 vs 25 */
.footer__row { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer__tag { font: 800 clamp(1.6rem, 5vw, 2.4rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.footer__tag .serif { font-weight: 400; }
.footer__ig { color: var(--amber-lampu); min-height: 44px; display: inline-flex; align-items: center; }
.footer__copy { color: var(--muted); font-size: .9rem; }

/* ---------- 20. Kursor custom (pointer halus saja) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 140;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--amber-lampu); pointer-events: none; opacity: 0;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s;
  }
  .cursor.is-active { opacity: 1; }
  .cursor.is-hover { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: rgba(216,154,78,.35); }
  .cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--amber-lampu); }
  .cursor__label { font: 600 .85rem/1 var(--f-body); color: var(--malam-jati); opacity: 0; transition: opacity .3s; }
  .cursor.is-view .cursor__label { opacity: 1; }

  /* Hover galeri hanya di perangkat ber-mouse */
  .gallery__btn:hover .gallery__frame img { scale: 1.04; }
}

/* =========================================================
   Breakpoints (mobile-first)
   ========================================================= */
@media (min-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-b { grid-column: span 2; }
  .quote { flex-basis: 68%; }
}

@media (min-width: 768px) {
  .hero__line:first-child .hero__word { font-size: 12vw; }
  .hero__line--serif .hero__word { font-size: 8.4vw; }
  .hero__ctas { display: flex; gap: 1rem; }
  .hero__ctas .btn { width: auto; }
  .hero__scroll { display: grid; }
  .kunjungi__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
  .kunjungi__ctas .btn { width: auto; }
  .komunitas__content .btn { justify-self: start; }
  .quote { flex-basis: 46%; }
  .footer__logo { grid-template-columns: 229.9fr 256.8fr; align-items: end; gap: 3vw; width: 92vw; }
  .footer__18 { width: 100%; }
  .footer__row { grid-template-columns: 1fr auto 1fr; justify-items: stretch; text-align: left; align-items: center; }
  .footer__ig { justify-self: center; }
  .footer__copy { justify-self: end; }
  .bottombar { display: none; }
  .footer { padding-bottom: 3rem; }
  .map { aspect-ratio: 16 / 11; }
}

@media (min-width: 1024px) {
  :root { --nav-h: 80px; }
  .nav__links { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); margin-inline: auto; }
  .nav__links a {
    text-decoration: none; font-weight: 500; position: relative; padding: .6rem 0;
  }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1px;
    background: var(--amber-lampu); transform: scaleX(0); transform-origin: right;
    transition: transform .6s var(--ease);
  }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__logo { margin-right: 0; }
  .nav__cta { display: inline-flex; --h: 46px; }
  .nav__burger, .mmenu { display: none !important; }

  .hero__line:first-child .hero__word { font-size: 10.5vw; }
  .hero__line--serif .hero__word { font-size: 7vw; }
  .hero__content { padding-bottom: clamp(6rem, 14vh, 9rem); }

  /* Cerita: dua kolom asimetris */
  .cerita__grid { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .cerita__small { right: -10%; width: 44%; }
  .cerita__text { padding-top: 6rem; }

  /* Ritual: panggung yang di-pin */
  .ritual__pin { height: 100vh; height: 100svh; display: flex; align-items: center; }
  .ritual__stage { position: relative; }
  .ritual__steps { display: block; position: relative; height: min(72svh, 680px); }
  .ritual__step {
    position: absolute; inset: 0; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  }
  .ritual__photo, .ritual__step:nth-child(3) .ritual__photo { aspect-ratio: auto; height: 100%; order: 2; }
  .ritual__copy { order: 1; display: block; }
  .ritual__num { display: block; font-size: clamp(7rem, 15vw, 14rem); -webkit-text-stroke-width: 2px; margin-bottom: 1.5rem; }
  .ritual__copy h3 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: .75rem; }
  .ritual__copy p { font-size: 1.15rem; }
  .ritual__progress {
    display: block; position: absolute; left: var(--gutter); bottom: -2.5rem; width: 40%; height: 1px;
    background: rgba(239,230,210,.15);
  }
  .ritual__progress span { display: block; height: 100%; background: var(--amber-lampu); transform-origin: left; transform: scaleX(0); }
  /* bila tidak di-pin (reduced motion / tanpa JS) tampilkan tumpuk biasa */
  .no-pin .ritual__pin { height: auto; }
  .no-pin .ritual__steps { height: auto; display: grid; gap: 6rem; }
  .no-pin .ritual__step { position: relative; height: 70svh; }
  .no-pin .ritual__progress { display: none; }

  /* Menu: foto + papan */
  .menu__grid { grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .menu__photo { max-height: none; }
  .board__inner { padding: 3.5rem 3.25rem; }
  .board__list { columns: 1; }

  /* Galeri bento */
  .gallery {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(220px, 21vw, 340px); gap: 1.25rem;
  }
  .gallery__item { position: relative; min-height: 0; }
  .g-a { grid-column: 1 / 6;  grid-row: 1 / 3; }
  .g-b { grid-column: 6 / 13; grid-row: 1 / 2; }
  .g-c { grid-column: 6 / 9;  grid-row: 2 / 4; }
  .g-d { grid-column: 9 / 13; grid-row: 2 / 4; }
  .g-e { grid-column: 1 / 6;  grid-row: 3 / 4; }
  .gallery__frame, .g-b .gallery__frame { aspect-ratio: auto; height: 100%; }
  .gallery__frame img { height: 116%; margin-top: -8%; }
  .gallery__cap {
    position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .45rem .8rem; border-radius: 999px;
    background: rgba(18,12,8,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    color: var(--krem-dinding);
  }
  .quote { flex-basis: 32%; }
  .kunjungi__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .map { aspect-ratio: 5 / 4; }
}

/* Caption galeri: di mouse muncul saat hover; di layar sentuh selalu tampil */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .gallery__cap { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .gallery__btn:hover .gallery__cap, .gallery__btn:focus-visible .gallery__cap { opacity: 1; transform: none; }
}

@media (min-width: 1280px) {
  .hero__line:first-child .hero__word { font-size: 9vw; }
  .hero__line--serif .hero__word { font-size: 6.2vw; }
  .quote { flex-basis: 28%; }
}

/* ---------- Reduced motion: cukup fade ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  body::after { animation: none; }
  .hero__img { animation: none; transform: none; }
  .preloader { animation: curtainFade .4s ease .5s forwards !important; }
  .preloader__mark svg { opacity: 1; animation: none !important; }
  @keyframes curtainFade { to { opacity: 0; visibility: hidden; } }
  .glow { animation: none; opacity: .8; transform: translate(-50%, -50%); }
  .marquee__track { transform: none !important; }
  .mmenu, .mmenu__list a { transition: opacity .3s !important; transform: none !important; }
  .mmenu { clip-path: none; opacity: 0; }
  .mmenu.is-open { opacity: 1; }
}
