/* ==========================================================
   MARU BAISEN — STYLE
   Token warna, font, dan ukuran ada di :root.
   ========================================================== */

@property --bg         { syntax: "<color>"; inherits: true; initial-value: #DCDBD5; }
@property --surface    { syntax: "<color>"; inherits: true; initial-value: #C8C3B8; }
@property --text       { syntax: "<color>"; inherits: true; initial-value: #1A1917; }
@property --text-muted { syntax: "<color>"; inherits: true; initial-value: #524E47; }
@property --line       { syntax: "<color>"; inherits: true; initial-value: rgba(26,25,23,.18); }

:root {
  /* Aksen (kedua mode) */
  --emas-maru: #C9A227;
  --burgundy: #5E2A26;
  --lumut: #5F7A3A;
  --kayu-sangrai: #6B3A22;
  --glow: #D9B36A;

  /* Font */
  --f-head: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* Ritme */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5.5rem, 14vw, 11rem);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --theme-dur: .8s;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* DAY: beton terang, cahaya skylight */
:root[data-theme="day"] {
  --bg: #DCDBD5;
  --surface: #C8C3B8;
  --text: #1A1917;
  --text-muted: #524E47; /* digelapkan dari #6B675F agar lolos kontras AA untuk teks kecil */
  --line: rgba(26,25,23,.18);
  --grain-blend: multiply;
  --grain-op: .07;
}
/* NIGHT: arang, lampu hangat */
:root[data-theme="night"] {
  --bg: #0D0C0A;
  --surface: #1C1A16;
  --text: #ECE8E0;
  --text-muted: #A7A29A;
  --line: rgba(236,232,224,.16);
  --grain-blend: screen;
  --grain-op: .05;
}

:root {
  transition: --bg var(--theme-dur) ease, --surface var(--theme-dur) ease, --text var(--theme-dur) ease,
              --text-muted var(--theme-dur) ease, --line var(--theme-dur) ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; width: 100%; height: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd, figure, p, h1, h2, h3 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--emas-maru); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--emas-maru); color: #1A1917; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .75rem 1rem; background: var(--text); color: var(--bg); transition: top .2s; }
.skip:focus { top: 1rem; }
.mono { font-family: var(--f-mono); font-size: .85em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.konsep__grid, .menu__grid, .roastery__grid, .live__grid, .kunjungi__grid, .ruang__head, .ulasan__head, .hero { grid-template-columns: minmax(0, 1fr); }
.menu__board, .konsep__text, .roastery__chart { min-width: 0; }

/* ---------- Tekstur beton (SVG noise + bercak) ---------- */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: var(--grain-op); mix-blend-mode: var(--grain-blend);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .34 0 0 0 0 .32 0 0 0 3.2 -1.9'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23b)'/%3E%3C/svg%3E");
  background-size: 240px 240px, 900px 900px;
}

/* ---------- Tipografi ---------- */
.h-display {
  font-family: var(--f-head); font-weight: 200; text-transform: uppercase;
  font-size: clamp(1.9rem, 9vw, 4.75rem); line-height: .98;
  letter-spacing: .14em; margin-right: -.14em;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; white-space: nowrap; }
.lead { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.35; letter-spacing: .02em; }
p + p { margin-top: 1rem; }
.h-display + .lead { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.lead + p { margin-top: 1.25rem; }
.jp { font-family: var(--f-jp); font-weight: 300; letter-spacing: .05em; text-transform: none; }

.kanji {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--f-jp); font-weight: 300; line-height: 1; color: var(--text);
  opacity: .055; writing-mode: vertical-rl; white-space: nowrap;
}
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }

/* ---------- Tombol ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .9rem 1.6rem; overflow: hidden; isolation: isolate;
  font-family: var(--f-head); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .24em;
  border: 1px solid currentColor; border-radius: 0; transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn span { position: relative; margin-right: -.24em; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.btn--gold { background: var(--emas-maru); border-color: var(--emas-maru); color: #1A1917; }
.btn--gold::before { background: var(--burgundy); }
.btn--outline { color: var(--text); }
.btn--outline::before { background: var(--burgundy); }
.btn--sm { min-height: 44px; padding: .55rem 1rem; font-size: .7rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover { color: #ECE8E0; border-color: var(--burgundy); }
  .ulink:hover { background-size: 0 1px; background-position: 100% 100%; }
}
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--emas-maru); } }

/* ---------- Status live ---------- */
.status { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lumut); box-shadow: 0 0 0 0 rgba(95,122,58,.6); animation: pulse 2.4s infinite; flex: none; }
.status.is-closed .status__dot { background: var(--text-muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,122,58,.55); } 70% { box-shadow: 0 0 0 9px rgba(95,122,58,0); } 100% { box-shadow: 0 0 0 0 rgba(95,122,58,0); } }

/* ==========================================================
   TORN HOLE MASK
   clip-path polygon di-generate oleh JS (seed per data-hole).
   ========================================================== */
.hole { position: relative; display: block; }
.hole__clip { position: relative; width: 100%; height: 100%; overflow: hidden; clip-path: inset(0 round 46%); background: var(--surface); }
.hole__clip img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.hole__rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rim-shadow { fill: none; stroke: rgba(10,9,8,.6); stroke-width: 7; filter: blur(5px); vector-effect: non-scaling-stroke; }
.rim-edge { fill: none; stroke: var(--surface); stroke-width: 5; vector-effect: non-scaling-stroke; opacity: .9; }
:root[data-theme="night"] .rim-edge { stroke: #2A2722; }
:root[data-theme="night"] .rim-shadow { stroke: rgba(0,0,0,.85); }

/* ==========================================================
   PRELOADER
   ========================================================== */
.preloader { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; color: #ECE8E0; pointer-events: none; }
.pre .preloader { display: grid; animation: plFail 0s 3s forwards; }
.preloader.is-done { display: none !important; }
@keyframes plFail { to { visibility: hidden; } }
.preloader__panel { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #0D0C0A; }
.preloader__panel:first-child { left: 0; }
.preloader__panel:nth-child(2) { right: 0; }
.preloader__mark { position: relative; width: min(42vw, 220px); overflow: visible; }
.pl-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pl-dot, .pl-gold { opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ==========================================================
   PROGRES
   ========================================================== */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress-bar span { display: block; height: 100%; background: var(--emas-maru); transform: scaleX(0); transform-origin: left; }
.curve-nav { display: none; }
@media (min-width: 1100px) {
  .progress-bar { display: none; }
  .curve-nav { display: block; position: fixed; z-index: 80; left: clamp(10px, 1.6vw, 28px); top: 50%; width: 40px; height: 400px; max-height: 64vh; transform: translateY(-50%); }
  .curve-nav svg { width: 100%; height: 100%; overflow: visible; }
  .curve-nav__track, .curve-nav__fill { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
  .curve-nav__track { stroke: var(--line); }
  .curve-nav__fill { stroke: var(--text); stroke-dasharray: 1; stroke-dashoffset: 1; }
  .curve-nav a { position: absolute; left: calc(var(--x) / 40 * 100%); top: calc(var(--y) / 400 * 100%); width: 28px; height: 28px; transform: translate(-50%, -50%); display: grid; place-items: center; }
  .curve-nav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); transition: background .4s, transform .4s var(--ease); }
  .curve-nav a.is-last::before { width: 9px; height: 9px; background: transparent; border: 1.5px solid var(--text-muted); }
  .curve-nav a.is-active::before { background: var(--emas-maru); transform: scale(1.5); }
  .curve-nav a.is-last.is-active::before { background: transparent; border-color: var(--emas-maru); }
  .curve-nav a span { position: absolute; left: 30px; white-space: nowrap; font-family: var(--f-mono); font-size: .7rem; opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .3s; pointer-events: none; }
  .curve-nav a:hover span, .curve-nav a:focus-visible span { opacity: 1; transform: none; }
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 110; 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; justify-content: space-between; gap: 1rem;
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: .7rem; min-height: 44px; }
.logo-mark { width: 38px; height: auto; flex: none; }
.nav__word { font-family: var(--f-head); font-weight: 400; font-size: .78rem; letter-spacing: .38em; text-transform: uppercase; white-space: nowrap; }
.nav__links { display: none; }
.nav__right { display: flex; align-items: center; gap: .5rem; }
.nav__cta { display: none; }
.theme-toggle {
  min-height: 44px; padding: 0 .75rem; display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--f-mono); font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.theme-toggle .tt-sep { opacity: .4; }
.theme-toggle .tt-day, .theme-toggle .tt-night { opacity: .5; transition: opacity .4s, color .4s; }
:root[data-theme="day"] .tt-day, :root[data-theme="night"] .tt-night { opacity: 1; color: var(--text); }
:root[data-theme="night"] .tt-night { color: var(--glow); }
.nav__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 105; background: var(--bg);
  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;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { display: block; padding: .55rem 0; font-family: var(--f-head); font-weight: 200; font-size: clamp(2rem, 10vw, 3rem); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 1023px) { .nav__word { font-size: .7rem; letter-spacing: .3em; } .theme-toggle { padding: 0 .6rem; font-size: .68rem; } .nav__right { gap: .25rem; } .nav__burger { margin-right: -10px; } }
@media (max-width: 374px) { .nav__word { display: none; } }
@media (min-width: 1024px) {
  :root { --nav-h: 76px; }
  .nav__links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
  .nav__links a { font-family: var(--f-head); font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; padding: .75rem 0; position: relative; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: .26em; bottom: .4rem; height: 1px; background: var(--emas-maru); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1rem) var(--gutter) 1.5rem;
  display: grid; justify-items: center; align-content: center; gap: clamp(.6rem, 2svh, 1.25rem);
  text-align: center;
}
.kanji--hero { right: -4vw; top: 8svh; font-size: clamp(9rem, 42vw, 30rem); }
.hero__top, .hero__bottom { position: relative; z-index: 2; font-family: var(--f-head); font-weight: 200; line-height: .9; }
.hero__top { text-transform: uppercase; font-size: clamp(3.4rem, 17vw, 10.5rem); letter-spacing: .12em; margin-right: -.12em; }
.hero__bottom { font-weight: 300; font-size: clamp(1.45rem, 6.4vw, 3.6rem); letter-spacing: .06em; }
.hole--hero {
  z-index: 1;
  --hw: min(384px, 70vw, calc((100svh - 22rem) * .75));
  width: max(200px, var(--hw)); aspect-ratio: 3 / 4;
  will-change: transform;
}
.hero-stack { position: absolute; inset: 0; }
.hero-stack .hf { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero-stack picture { position: absolute; inset: 0; }
:root[data-theme="day"] .hf--day.is-active, :root[data-theme="night"] .hf--night.is-active { opacity: 1; }
:root[data-theme="night"] .hole--hero::after { content: ""; position: absolute; inset: -12%; z-index: -1; background: radial-gradient(closest-side, rgba(217,179,106,.22), transparent); filter: blur(10px); }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; z-index: 2; }
.mode-label { font-family: var(--f-mono); font-size: .75rem; color: var(--text-muted); }
.hero__cta { display: grid; gap: .6rem; width: 100%; max-width: 420px; z-index: 2; }
@media (min-width: 768px) {
  .hole--hero { --hw: min(420px, 34vw, calc((100svh - 23rem) * .75)); }
  :root[data-theme="day"] .hole--hero { --hw: min(384px, 34vw, calc((100svh - 23rem) * .75)); }
  .hero__cta { display: flex; justify-content: center; width: auto; max-width: none; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(1.5rem, 3vw, 3rem); text-align: left; }
  .hero__top { grid-column: 1; justify-self: end; text-align: right; font-size: clamp(5rem, 9vw, 10.5rem); line-height: .86; }
  .hero__top::after { content: ""; display: block; }
  .hole--hero { grid-column: 2; grid-row: 1 / span 2; --hw: min(420px, 30vw, calc((100svh - 12rem) * .75)); }
  :root[data-theme="day"] .hole--hero { --hw: min(384px, 30vw, calc((100svh - 12rem) * .75)); }
  .hero__bottom { grid-column: 3; grid-row: 1; justify-self: start; align-self: end; max-width: 9em; font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.05; }
  .hero__meta { grid-column: 3; grid-row: 2; justify-self: start; align-self: start; justify-content: flex-start; flex-direction: column; align-items: flex-start; }
  .hero__cta { grid-column: 1; grid-row: 2; justify-self: end; align-self: start; flex-direction: column; align-items: flex-end; }
  .hero__cta .btn { min-width: 220px; }
}

/* ==========================================================
   KONSEP
   ========================================================== */
.konsep { position: relative; padding-block: var(--section); }
.konsep__grid { display: grid; gap: clamp(3rem, 8vw, 6rem); }
.konsep__text { max-width: 34rem; }
.konsep__text p:not(.lead) { color: var(--text-muted); }
.owner-note { margin-top: 2rem !important; font-family: var(--f-mono); font-size: .8rem; }
.owner-note span { color: var(--emas-maru); }
:root[data-theme="day"] .owner-note span { color: var(--kayu-sangrai); }
.konsep__collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: start; }
.cf figcaption, .rt figcaption { margin-top: .75rem; font-family: var(--f-mono); font-size: .75rem; color: var(--text-muted); }
.cf--a { grid-column: 1 / span 8; max-width: 300px; }
.cf--a .hole { aspect-ratio: 3/4; }
.cf--b { grid-column: 9 / span 4; margin-top: 30%; max-width: 200px; }
.cf--c { grid-column: 3 / span 10; max-width: 380px; justify-self: end; margin-top: -8%; }
.cf--c .hole { aspect-ratio: 4/3; }
.mirror { aspect-ratio: 9/16; border-radius: 48% 52% 46% 54% / 34% 30% 70% 66%; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -20px rgba(0,0,0,.45); }
.mirror img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .h-display { font-size: clamp(3rem, 4.4vw, 4.9rem); }
  .konsep .h-display { letter-spacing: .08em; margin-right: -.08em; }
  .konsep__grid { grid-template-columns: 5fr 6fr; align-items: center; }
  .cf--c { margin-top: -14%; }
}

/* ==========================================================
   ROASTERY
   ========================================================== */
.roastery { position: relative; background: var(--surface); overflow: hidden; }
.kanji--roast { left: -2vw; top: 2rem; font-size: clamp(10rem, 48vw, 34rem); opacity: .06; }
.roastery__pin { position: relative; padding-block: var(--section); }
.roastery__grid { position: relative; z-index: 1; display: grid; gap: clamp(3rem, 7vw, 5rem); }
.roastery__text { max-width: 30rem; }
.roastery__text p:not(.lead) { color: var(--text-muted); }
.roastery .h-display { letter-spacing: .08em; margin-right: -.08em; }
.roastery__photo { margin-top: 2.5rem; max-width: 340px; }
.hole--photo { aspect-ratio: 3/4; }
.roast-svg { width: 100%; height: auto; overflow: visible; }
.roast-grid line { stroke: var(--line); stroke-width: 1; }
.roast-grid .dash { stroke-dasharray: 3 6; }
.roast-axis text { fill: var(--text-muted); font-size: 11px; }
.mono text, text.mono { font-family: var(--f-mono); }
.roast-curve { fill: none; stroke: var(--text); stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js-motion .roast-curve { stroke-dashoffset: 1; }
.rp circle { fill: var(--surface); stroke: var(--text); stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.rp text { fill: var(--text); font-size: 12px; letter-spacing: .04em; opacity: 1; transition: opacity .5s; }
.js-motion .rp text { opacity: .35; }
.js-motion .rp circle { fill: var(--surface); }
.rp.is-on circle, .no-motion .rp circle { fill: var(--text); }
.rp--gold.is-on circle { fill: var(--emas-maru); stroke: var(--emas-maru); }
.rp.is-on text { opacity: 1; }
@media (max-width: 1023px) { .rp text { font-size: 19px; } .roast-axis text { font-size: 16px; } .roast-svg { margin-inline: -.5rem; width: calc(100% + 1rem); } }
.roast-steps { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.roast-steps li { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); transition: opacity .5s; }
.roast-steps .mono { grid-row: span 2; color: var(--text-muted); font-size: .78rem; padding-top: .15rem; }
.roast-steps b { font-family: var(--f-head); font-weight: 400; text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; }
.roast-steps em { font-style: normal; color: var(--text-muted); font-size: .95rem; }
.roast-note { margin-top: 1.25rem; font-family: var(--f-mono); font-size: .72rem; color: var(--text-muted); }
@media (min-width: 1024px) {
  .roastery__pin { min-height: 100vh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 2rem) 3rem; }
  .roastery__grid { grid-template-columns: 5fr 7fr; align-items: center; }
  .roastery__photo { max-width: 190px; margin-top: 1.75rem; }
  .roastery__chart { max-width: 600px; justify-self: end; width: 100%; }
  .roast-steps { margin-top: 1rem; }
  .roast-steps li { padding: .7rem 0; }
  .roast-steps { grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; border-top: 0; }
  .roast-steps li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--line); }
  .roast-steps .mono { grid-row: auto; }
  .js-motion .roast-steps li { opacity: .35; }
  .js-motion .roast-steps li.is-on { opacity: 1; }
}

/* ==========================================================
   MENU
   ========================================================== */
.menu { position: relative; padding-block: var(--section); }
.menu__grid { display: grid; gap: 2.5rem; }
.menu__photos { display: grid; grid-template-columns: 1.15fr 1fr; gap: .75rem; align-items: end; }
.menu__ph { overflow: hidden; background: var(--surface); }
.menu__ph img { width: 100%; height: 100%; object-fit: cover; }
.menu__ph--a { aspect-ratio: 1; }
.menu__ph--b { aspect-ratio: 4/5; transform: translateY(1.5rem); border-top: 3px solid var(--kayu-sangrai); }
.menu__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.menu__unit { font-size: .85rem; color: var(--text-muted); }
.tabs {
  display: flex; gap: .4rem; margin: 2rem calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) .25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: .55rem 1.05rem; position: relative;
  font-family: var(--f-head); font-size: .74rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line); transition: background .4s, color .4s, border-color .4s;
}
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sig { display: inline-block; margin-left: .5rem; padding: .05rem .4rem; font-size: .6rem; letter-spacing: .14em; background: var(--emas-maru); color: #1A1917; vertical-align: 1px; }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { border-color: var(--kayu-sangrai); } }
.menu__panel { margin-top: 1.5rem; min-height: 22rem; }
.menu__panel:focus-visible { outline-offset: 8px; }
.mt { width: 100%; border-collapse: collapse; }
.mt caption { text-align: left; padding-bottom: .9rem; font-family: var(--f-head); font-weight: 300; font-size: 1.25rem; letter-spacing: .14em; text-transform: uppercase; }
.mt caption .sig-note { display: block; margin-top: .35rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.mt th { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; text-align: right; padding: .4rem 0 .6rem 1rem; border-bottom: 1px solid var(--text); white-space: nowrap; }
.mt th:first-child { text-align: left; padding-left: 0; }
.mt td { padding: .8rem 0 .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.mt td:first-child { padding-left: 0; font-family: var(--f-head); font-weight: 400; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; }
.mt td.p { text-align: right; white-space: nowrap; font-family: var(--f-mono); font-size: .92rem; width: 3.6rem; font-variant-numeric: tabular-nums; }
.mt td.p.na { color: var(--text-muted); }
.mt tr { animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.menu__note { margin-top: 1.25rem; font-family: var(--f-mono); font-size: .75rem; color: var(--text-muted); }
.menu .h-display { letter-spacing: .3em; margin-right: -.3em; }
@media (min-width: 1024px) {
  .menu__grid { grid-template-columns: 4fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .menu__photos { position: sticky; top: calc(var(--nav-h) + 2rem); grid-template-columns: 1fr; max-width: 300px; }
  .menu__ph--b { width: 82%; justify-self: end; margin-top: -3rem; transform: none; }
  .tabs { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

/* ==========================================================
   RUANG
   ========================================================== */
.ruang { position: relative; padding-block: var(--section); overflow: hidden; }
.ruang__head { display: grid; gap: 1.5rem; }
.ruang__head p { max-width: 28rem; color: var(--text-muted); }
.ruang__track {
  display: flex; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: flex-end;
  margin-top: 3rem; padding: 1rem var(--gutter) 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.ruang__track::-webkit-scrollbar { display: none; }
.rt { flex: none; scroll-snap-align: start; }
.rt--1 { width: min(74vw, 340px); } .rt--1 .hole { aspect-ratio: 3/4; }
.rt--2 { width: min(62vw, 290px); margin-bottom: 4rem; } .rt--2 .hole { aspect-ratio: 3/4; }
.rt--3 { width: min(70vw, 330px); } .rt--3 .hole { aspect-ratio: 3/4; }
.rt--4 { width: min(84vw, 400px); margin-bottom: 2rem; } .rt--4 .hole { aspect-ratio: 4/3; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.chips li { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem 1rem .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.chips svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chips li:first-child svg { stroke: var(--lumut); }
:root[data-theme="night"] .chips li:first-child svg { stroke: #9DBA6E; }
@media (min-width: 1024px) {
  .ruang { padding-block: 0; }
  .ruang__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h) + 2rem) 3rem; }
  .ruang__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .ruang__track { overflow: visible; scroll-snap-type: none; margin-top: 2.5rem; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .no-motion .ruang__track, .no-pin .ruang__track { overflow-x: auto; }
}

/* ==========================================================
   LIVE (selalu gelap)
   ========================================================== */
.live {
  --text: #ECE8E0; --text-muted: #A7A29A; --line: rgba(236,232,224,.16); --surface: #1C1A16;
  position: relative; overflow: hidden; color: var(--text); background: #0D0C0A;
  padding-block: var(--section);
}
.live::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 30% 45%, rgba(217,179,106,.16), transparent 70%), radial-gradient(40% 40% at 85% 80%, rgba(94,42,38,.35), transparent 70%); }
.marquee { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); overflow: hidden; pointer-events: none; }
.marquee__inner { display: flex; width: max-content; animation: marq 60s linear infinite; }
.marquee span { padding-right: .6em; font-family: var(--f-head); font-weight: 200; font-size: clamp(5rem, 22vw, 18rem); line-height: 1; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(217,179,106,.18); white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }
.live__grid { position: relative; z-index: 1; display: grid; gap: 4rem; }
.live__stack { position: relative; padding-bottom: 22%; }
.live__card { overflow: hidden; background: #1C1A16; box-shadow: 0 30px 60px -25px rgba(0,0,0,.8), 0 0 80px -30px rgba(217,179,106,.45); }
.live__card img { width: 100%; height: 100%; object-fit: cover; }
.live__card--big { width: 78%; aspect-ratio: 3/4; transform: rotate(-2deg); }
.live__card--small { position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 3/4; transform: rotate(3deg); border: 6px solid #1C1A16; }
.live .h-display { letter-spacing: .06em; margin-right: -.06em; font-size: clamp(1.9rem, 9vw, 5.25rem); text-shadow: 0 0 40px rgba(217,179,106,.35); }
.live__text p:not(.lead) { color: var(--text-muted); max-width: 30rem; }
.live__text .btn { margin-top: 2rem; }
.live .btn--gold { box-shadow: 0 0 40px -6px rgba(217,179,106,.55); }
@media (max-width: 767px) { .live__text .btn { width: 100%; } }
@media (min-width: 1024px) {
  .live__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 6rem; }
  .live__stack { max-width: 520px; }
}

/* ==========================================================
   ULASAN
   ========================================================== */
.ulasan { padding-block: var(--section); overflow: hidden; }
.ulasan__head { display: grid; gap: 1.25rem; }
.ulasan .h-display { font-size: clamp(1.9rem, 8.5vw, 5.5rem); letter-spacing: .1em; margin-right: -.1em; }
.rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; font-size: 1rem; }
.rating__num { font-size: 2.6rem; font-family: var(--f-mono); line-height: 1; }
.rating__star { color: var(--emas-maru); font-size: 1.6rem; }
.rating__count { color: var(--text-muted); }
.reviews {
  display: flex; gap: 1rem; margin-top: 3rem; padding: 0 var(--gutter) 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  cursor: grab; overscroll-behavior-x: contain;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rv { flex: none; width: min(84vw, 380px); scroll-snap-align: start; padding: 1.75rem 1.5rem; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 15rem; }
.rv blockquote { margin: 0; font-family: var(--f-head); font-weight: 300; font-size: 1.2rem; line-height: 1.45; letter-spacing: .01em; }
.rv blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .6; height: .9rem; color: var(--emas-maru); }
.rv figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--f-mono); font-size: .75rem; color: var(--text-muted); }
.rv figcaption span:last-child { color: var(--emas-maru); letter-spacing: .1em; }
.reviews__ctrl { display: flex; gap: .5rem; margin-top: 1.25rem; }
@media (min-width: 1024px) {
  .ulasan__head { grid-template-columns: 1fr auto; align-items: end; }
  .reviews { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* ==========================================================
   KUNJUNGI
   ========================================================== */
.kunjungi { padding-block: var(--section); border-top: 1px solid var(--line); }
.kunjungi__grid { display: grid; gap: 3.5rem; }
.kunjungi .h-display { letter-spacing: .2em; margin-right: -.2em; }
.info { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.info dt { font-family: var(--f-head); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .3rem; }
.info dd { font-size: 1.05rem; max-width: 26rem; }
.status--inline { display: flex; margin-top: .5rem; }
.kunjungi__cta { display: grid; gap: .6rem; margin-top: 2.5rem; }
.hole--map { aspect-ratio: 1; max-width: 520px; margin-inline: auto; }
.map { position: absolute; inset: 0; }
.map__svg { width: 100%; height: 100%; }
.m-bg { fill: var(--surface); }
.m-block { fill: color-mix(in srgb, var(--surface) 82%, var(--text)); }
.m-road { fill: none; stroke: var(--bg); stroke-width: 7; }
.m-road--main { stroke-width: 13; }
.m-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; fill: var(--text-muted); }
.m-label--area { font-family: var(--f-head); font-size: 15px; letter-spacing: .4em; fill: var(--text); opacity: .5; }
.map__pin { position: absolute; left: 67%; top: 58%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--emas-maru); box-shadow: 0 0 0 6px rgba(201,162,39,.25); }
.map__pin::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid var(--emas-maru); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.map__link { position: absolute; inset: 0; z-index: 2; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: filter var(--theme-dur); }
:root[data-theme="day"] .map__link { position: absolute; inset: 0; z-index: 2; }
.map iframe { filter: grayscale(1) contrast(1.05) brightness(.95) sepia(.08); }
:root[data-theme="night"] .map__link { position: absolute; inset: 0; z-index: 2; }
.map iframe { filter: grayscale(1) invert(.92) contrast(.9) brightness(.85); }
.map__coords { margin-top: 1rem; text-align: center; color: var(--text-muted); font-size: .72rem; }
@media (min-width: 768px) { .kunjungi__cta { display: flex; flex-wrap: wrap; } }
@media (min-width: 1024px) { .kunjungi__grid { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { padding: clamp(4rem, 10vw, 8rem) 0 calc(2rem + var(--safe-b)); border-top: 1px solid var(--line); overflow: hidden; }
.footer__word { width: calc(100% - var(--gutter) * 2); max-width: 1600px; margin: 0 auto; overflow: visible; }
.footer__word text { font-family: var(--f-head); font-weight: 200; font-size: 120px; fill: var(--text); text-anchor: middle; }
.footer__dot { fill: var(--emas-maru); transform-box: fill-box; transform-origin: center; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.72); opacity: .65; } }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; font-size: .85rem; color: var(--text-muted); }
.footer__row .ulink { color: var(--text); font-family: var(--f-mono); }
.logo-mark--foot { width: 52px; color: var(--text); }
@media (max-width: 767px) { .footer { padding-bottom: calc(6.5rem + var(--safe-b)); } }

/* ==========================================================
   BOTTOM BAR (mobile)
   ========================================================== */
.bottombar {
  position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + var(--safe-b)); z-index: 100;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.35);
  transform: translateY(calc(100% + 2rem + var(--safe-b))); transition: transform .6s var(--ease);
}
.bottombar.is-on { transform: none; }
.bottombar a { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--f-head); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.bottombar a + a { border-left: 1px solid var(--line); }
.bottombar a:last-child { color: var(--text); }
.bottombar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
@media (min-width: 768px) { .bottombar { display: none; } }

/* ==========================================================
   KURSOR (pointer fine)
   ========================================================== */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 400; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--emas-maru); border-radius: 50%; pointer-events: none; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background-color .35s; opacity: 0; }
  .has-cursor .cursor.is-on { opacity: 1; }
  .has-cursor .cursor.is-link { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(201,162,39,.08); }
}

/* ==========================================================
   STATE AWAL ANIMASI (hanya bila motion aktif)
   ========================================================== */
.js-motion .reveal-lines .line > span { transform: translateY(105%); }
.js-motion .fade, .js-motion .fade-up { opacity: 0; }

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .marquee__inner { animation: none; }
  .hero-stack .hf { transition: opacity .6s ease; }
  :root { --theme-dur: .3s; }
}
