/* ==========================================================
   CEODE — Coffee on Demand
   Palet diambil dari brand: hitam, hijau tombol power,
   kertas kraft, dan kuning cangkir latte.
   ========================================================== */
:root {
  --bg: #0e0b08;
  --bg-2: #17120d;
  --cream: #f3ecdf;
  --cream-dim: #b9ae9c;
  --paper: #f1e9da;
  --ink: #15110d;
  --green: #22a45d;
  --green-deep: #14713f;
  --kraft: #c9a171;
  --yellow: #f4c20d;
  --line: rgba(243, 236, 223, .14);
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-off { overflow: hidden; }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: var(--r-sm); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }

/* ---------- Kanvas 3D & tekstur ---------- */
#stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 1; display: block; pointer-events: none;
  transition: opacity .6s;
}
/* Langit di belakang panggung, mengikuti jam kafe (data-mood di body diisi main.js) */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 1.8s var(--ease) .3s;
}
.sky::before, .sky::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
body:not(.is-off) .sky { opacity: 1; }
/* pagi: sinar matahari miring dari jendela kiri atas */
.sky::before {
  background:
    linear-gradient(118deg, transparent 14%, rgba(255, 232, 192, .10) 24%, rgba(255, 232, 192, .03) 31%, rgba(255, 232, 192, .09) 36%, transparent 52%),
    radial-gradient(60% 55% at 8% 0%, rgba(255, 226, 182, .22), transparent 72%),
    linear-gradient(180deg, #261d15, #110d09 75%);
}
/* sore: cahaya keemasan rendah dari kanan */
.sky::after {
  background:
    radial-gradient(75% 65% at 100% 68%, rgba(255, 146, 64, .24), transparent 70%),
    linear-gradient(98deg, transparent 38%, rgba(255, 168, 88, .07) 62%, transparent 86%),
    linear-gradient(180deg, #1d140c, #100b07 80%);
}
body[data-mood="pagi"] .sky::before, body[data-mood="sore"] .sky::after { opacity: 1; }
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Gerbang "Nyalakan" ----------
   Panggung 3D di belakangnya masih mati. Tahan tombol power sampai cincin penuh, lalu lepas. */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center;
  background: radial-gradient(60% 50% at 50% 50%, rgba(14, 11, 8, .25), rgba(14, 11, 8, .7));
  transition: opacity .9s var(--ease), visibility .9s;
}
body:not(.is-off) .gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-note { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; margin-bottom: 8px; }
.gate-note span { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-dim); }
.power {
  --p: 0; position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  background: rgba(243, 236, 223, .03); transition: transform .3s var(--ease), background .3s;
}
.power.is-holding { transform: scale(.95); }
.power:focus-visible { border-radius: 50%; outline-offset: 8px; }
.power-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.power-ring circle { stroke: var(--green); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); stroke-linecap: round; opacity: min(1, calc(var(--p) * 30)); } /* tanpa titik sisa saat cincin kosong */
.power::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.power-icon { width: 54px; height: 54px; fill: none; stroke: rgba(243, 236, 223, .32); stroke-width: 9; transition: stroke .2s, filter .2s; }
.power.is-ready .power-icon { stroke: var(--green); filter: drop-shadow(0 0 10px rgba(34, 164, 93, .9)); }
.power.is-ready { background: rgba(34, 164, 93, .12); }
.gate-hint { max-width: calc(100vw - 32px); min-height: 1.6em; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-dim); }
.gate-bar { position: fixed; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; padding: 0 var(--pad); }
.gate-bar button { padding: 10px 4px; font-size: 13px; letter-spacing: .08em; color: var(--cream-dim); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.gate-bar button:hover { color: var(--cream); border-color: var(--green); }
.gate-skip::after { content: ' \2192'; }

/* ---------- Wordmark ---------- */
.wm, .footer-wm { font-weight: 800; letter-spacing: .01em; display: inline-flex; align-items: center; line-height: 1; }
.wm { font-size: 26px; }
.wm-o { width: .86em; height: .86em; margin: 0 .03em; fill: none; stroke: var(--green); stroke-width: 15; transform: translateY(-.02em); }

/* ---------- Navigasi ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s, padding .4s, border-color .4s, opacity .8s .9s;
  border-bottom: 1px solid transparent;
}
body.is-off .nav, body.is-off .hero .eyebrow { opacity: 0; visibility: hidden; transition: none; } /* selama gerbang: hanya tombol power */
.hero .eyebrow { transition: opacity .8s .9s; }
.nav.is-stuck {
  background: rgba(14, 11, 8, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding-top: 12px; padding-bottom: 12px; border-color: var(--line);
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 14px; letter-spacing: .04em; }
.nav-links a { position: relative; padding: 6px 0; color: var(--cream-dim); transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cream-dim); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #7a6f60; }
.status.is-open i { background: var(--green); box-shadow: 0 0 0 0 rgba(34, 164, 93, .6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(34, 164, 93, 0); } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; font-weight: 600;
  padding: 16px 28px; border-radius: 999px; letter-spacing: .01em;
  transition: transform .4s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); background: #27b668; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  padding: 110px var(--pad) 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.hero.is-dragging { cursor: grabbing; }
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-dim);
  margin-bottom: 22px;
}
.eyebrow em { font-style: normal; color: var(--green); }
.eyebrow .sep { width: 36px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow.dark { color: #6c6253; }

.hero h1 {
  font-size: clamp(3.2rem, 8.4vw, 8.4rem);
  font-weight: 800; line-height: .86; letter-spacing: -.035em; text-transform: uppercase;
  max-width: 9ch;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero h1 .serif { font-size: 1.04em; line-height: .9; color: var(--green); padding-left: .04em; margin-top: -.04em; }
body:not(.is-off) .hero h1 .line > span { transform: none; transition-delay: .5s; }
body:not(.is-off) .hero h1 .line:nth-child(2) > span { transition-delay: .62s; }

.showcase {
  width: min(390px, 100%);
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s 1s var(--ease), transform .9s 1s var(--ease);
}
body:not(.is-off) .showcase { opacity: 1; transform: none; }
.showcase-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.count { font-size: 13px; letter-spacing: .14em; color: var(--cream-dim); font-variant-numeric: tabular-nums; }
.count b { color: var(--cream); font-weight: 600; }
.tag {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--green); color: var(--green); padding: 4px 11px; border-radius: 999px;
}
.showcase h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.02; letter-spacing: -.01em; }
.showcase.is-swapping h2, .showcase.is-swapping .prices, .showcase.is-swapping .tag { opacity: 0; transform: translateY(10px); }
.showcase h2, .showcase .prices, .showcase .tag { transition: opacity .28s, transform .28s var(--ease); }
.prices { display: flex; gap: 10px; margin-top: 14px; }
.price {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(243, 236, 223, .07); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--r-md); backdrop-filter: blur(6px);
}
.price small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-dim); }
.price b { font-weight: 600; font-size: 18px; }
.controls { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.arrow:hover { background: var(--green); border-color: var(--green); transform: scale(1.06); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(243, 236, 223, .25); transition: width .4s var(--ease), background .3s; padding: 0; }
.dots button.is-on { width: 28px; background: var(--green); }
/* Isyarat halus bahwa produk bisa diganti: panah kanan menyenggol dua kali setelah lampu menyala */
.controls.is-hinting #next { animation: nudge 1.1s 1.8s var(--ease) 2; border-color: var(--green); }
@keyframes nudge { 40% { transform: translateX(6px); } }

/* ---------- Ritual ---------- */
.display { font-size: clamp(2.5rem, 6.4vw, 6rem); font-weight: 800; line-height: .94; letter-spacing: -.03em; text-transform: uppercase; }
.display .serif { color: var(--green); font-size: 1.06em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--cream-dim); max-width: 44ch; margin-top: 26px; }
.lead em { font-family: var(--serif); font-size: 1.15em; color: var(--cream); }

.ritual { position: relative; z-index: 2; padding: 16vh var(--pad) 26vh; }
.ritual-inner { margin-left: auto; width: min(620px, 100%); }
.steps { margin-top: 12vh; display: grid; gap: 16vh; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; padding-top: 26px; border-top: 1px solid var(--line); }
.steps .num { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--green); line-height: 1; }
.steps h3 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.steps p { color: var(--cream-dim); margin-top: 12px; max-width: 40ch; }

/* ---------- Tentang ---------- */
.about { position: relative; z-index: 3; background: var(--bg-2); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--section) 0 calc(var(--section) + var(--r-xl)); }
.about-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
figure { margin: 0; }
.about-photo, .crew-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.about-photo img, .crew-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-photo { aspect-ratio: 4 / 5; transform: rotate(-1.5deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.about-photo img { object-position: 50% 82%; }
figcaption {
  position: absolute; left: 16px; bottom: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(14, 11, 8, .7); backdrop-filter: blur(8px); padding: 7px 13px; border-radius: 999px; color: var(--cream);
}
.about .display { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.about-text { color: var(--cream-dim); margin-top: 18px; max-width: 46ch; }
.about .lead { color: var(--cream); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(22px, 4vw, 56px); margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--green); }
.stats dd { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-dim); margin-top: 8px; }
/* Jam-logo: tombol power sebagai jam 24 jam (lingkaran = jam buka, celah = tutup, batang = sekarang) */
.dial { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.dial svg { width: 170px; height: 170px; overflow: visible; }
.dial figcaption { position: static; background: none; backdrop-filter: none; padding: 0; border-radius: 0; text-transform: none; letter-spacing: 0; font-size: 14.5px; line-height: 1.55; color: var(--cream-dim); max-width: 38ch; }
.dial figcaption b { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.dial .seg { fill: none; stroke: var(--green); stroke-width: 16; opacity: .24; transition: opacity .6s; }
.dial .seg.is-now { opacity: 1; filter: drop-shadow(0 0 6px rgba(34, 164, 93, .7)); }
.dial .tick { font: 500 14px var(--sans); fill: var(--cream-dim); text-anchor: middle; dominant-baseline: middle; }
.dial .hand { stroke: var(--green); stroke-width: 16; stroke-linecap: butt; transition: transform 1.2s var(--ease); transform-origin: 130px 130px; }
.dial.is-closed .seg { opacity: 1; } /* tutup: jarum masuk celah, jamnya jadi logo utuh */
@media (max-width: 520px) { .dial { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Menu ---------- */
.menu {
  position: relative; z-index: 3; background: var(--paper); color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(var(--r-xl) * -1); padding: clamp(70px, 10vw, 130px) 0 var(--section);
}
.menu-mark { position: absolute; width: min(820px, 100%); right: 0; top: 0; fill: none; stroke: var(--green); stroke-width: 6; opacity: .1; pointer-events: none; }
.menu .wrap { position: relative; }
.menu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.menu .display { max-width: 12ch; }
.menu .display .serif { color: var(--green-deep); }
.menu-note { font-size: 14px; color: #6c6253; max-width: 30ch; }
.picker { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 34px; padding: 14px 16px 14px 14px; border: 1.5px dashed rgba(21, 17, 13, .25); border-radius: var(--r-lg); }
.picker-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 15px; transition: transform .3s var(--ease), background .3s;
}
.picker-btn b { color: var(--yellow); font-weight: 600; }
.picker-btn svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(243, 236, 223, .08); fill: none; stroke: var(--green); stroke-width: 11; transition: transform .6s var(--ease); }
.picker-btn:hover { transform: translateY(-2px); }
.picker-btn:hover svg { transform: rotate(-30deg); }
.picker-btn.is-spinning svg { animation: spin .5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.picker-out { flex: 1 1 260px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 15px; color: #6c6253; min-height: 44px; }
.picker-out .pick-name { font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.picker-out.is-rolling .pick-name { color: #9a8f7f; }
.picker-out small { flex-basis: 100%; font-size: 12.5px; }
.picker-out .add { min-width: 0; }
.menu-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(30px, 5vw, 70px); align-items: start; margin-top: 46px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button {
  padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(21, 17, 13, .2);
  font-size: 15px; font-weight: 500; transition: background .3s, color .3s, border-color .3s;
}
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs button sup { font-size: 10px; opacity: .6; margin-left: 5px; }

.menu-list { counter-reset: item; }
.item {
  position: relative; z-index: 0; display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; align-items: center; gap: 6px 14px;
  padding: 13px 14px 13px 6px; border-bottom: 1px solid rgba(21, 17, 13, .12);
  opacity: 0; transform: translateY(12px); animation: itemIn .5s var(--ease) forwards;
}
@keyframes itemIn { to { opacity: 1; transform: none; } }
.item::before {
  counter-increment: item; content: counter(item, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--green-deep); opacity: .7;
}
.item::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-md); background: rgba(34, 164, 93, .1); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.item:hover::after { transform: scaleX(1); }
.item-name { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; transition: transform .4s var(--ease); }
.item:hover .item-name { transform: translateX(6px); }
.item-name small { flex-basis: 100%; font-size: 12.5px; font-weight: 400; color: #7a6f60; letter-spacing: .02em; }
.badge { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(34, 164, 93, .16); color: var(--green-deep); font-weight: 600; white-space: nowrap; }
.badge.sig { background: var(--ink); color: var(--yellow); }
.badge.new { background: var(--yellow); color: var(--ink); }
.item-prices { display: flex; gap: 8px; }
.add {
  position: relative; min-width: 74px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid rgba(21, 17, 13, .2);
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; background: rgba(255, 255, 255, .35);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.add small { font-size: 10px; letter-spacing: .08em; color: var(--green-deep); margin-right: 6px; transition: color .25s; }
.add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.add:hover small { color: var(--yellow); }
.add:active { transform: scale(.94); }
.add.has { background: var(--green); border-color: var(--green); color: #fff; }
.add.has small { color: #fff; }
.add.has::after {
  content: attr(data-count); position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px;
}
.add.none { border-style: dashed; background: none; color: rgba(21, 17, 13, .3); pointer-events: none; font-weight: 400; }
.add.none small { color: inherit; }

/* Nota */
.nota { position: sticky; top: 92px; }
.nota-paper {
  position: relative; background: #fffdf7; color: var(--ink); padding: 26px 22px 22px; transform: rotate(1.2deg);
  font-family: 'DM Mono', ui-monospace, 'Courier New', monospace; font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 30px 50px -24px rgba(60, 40, 15, .45);
}
.nota-paper::before, .nota-paper::after {
  content: ''; position: absolute; left: 0; right: 0; height: 9px;
  background: linear-gradient(135deg, #fffdf7 25%, transparent 25%) -7px 0 / 14px 9px, linear-gradient(225deg, #fffdf7 25%, transparent 25%) -7px 0 / 14px 9px;
}
.nota-paper::after { top: 100%; }
.nota-paper::before { bottom: 100%; transform: scaleY(-1); }
.nota-head { display: grid; justify-items: center; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed rgba(21, 17, 13, .35); text-align: center; }
.nota-head .wm { font-family: var(--sans); font-size: 30px; }
.nota-head small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6c6253; }
.nota-lines { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 8px; }
.nota-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: start; animation: itemIn .35s var(--ease) both; }
.nota-lines li span small { display: block; color: #7a6f60; font-size: 11.5px; }
.nota-lines button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(21, 17, 13, .3); line-height: 1; font-size: 15px; display: grid; place-items: center; }
.nota-lines button:hover { background: var(--ink); color: #fff; }
.nota-empty { color: #8a7f70; text-align: center; padding: 26px 0 14px; }
.nota-total { position: relative; display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 16px; padding-top: 12px; border-top: 1px dashed rgba(21, 17, 13, .35); text-transform: uppercase; letter-spacing: .12em; }
.nota-total b { text-transform: none; font-family: var(--sans); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.nota .btn { width: 100%; justify-content: center; font-family: var(--sans); padding: 13px 20px; }
.nota .btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.nota .btn.is-done { background: var(--green); }
.nota-ig { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.nota-fine { text-align: center; color: #8a7f70; font-size: 11px; margin-top: 16px; }
.stamp {
  position: absolute; left: 22%; top: -30px; pointer-events: none; opacity: 0; white-space: nowrap; text-transform: none;
  padding: 6px 14px; border: 3px double var(--green-deep); border-radius: 8px;
  font-family: var(--sans); font-weight: 800; font-size: 19px; letter-spacing: .04em; color: var(--green-deep);
  transform: rotate(-14deg) scale(2.4); mix-blend-mode: multiply;
}
.nota.is-stamped .stamp { animation: stamp .42s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { 60% { opacity: .9; } to { opacity: .82; transform: rotate(-14deg) scale(1); } }
.nota-pill {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45;
  background: var(--green); color: #fff; font-weight: 600; padding: 13px 22px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); display: none;
}
.btn-line { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Kartu story #OneDayOneCoffee */
.story {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--bg-2); color: var(--cream); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); overflow: auto;
}
.story::backdrop { background: rgba(8, 6, 4, .78); backdrop-filter: blur(6px); }
.story-inner { display: grid; gap: 14px; padding: 18px; }
.story-head { display: flex; justify-content: space-between; align-items: center; }
.story-head h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.9rem; line-height: 1; }
.story-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 22px; line-height: 1; }
.story-x:hover { border-color: var(--green); }
.story-preview { position: relative; aspect-ratio: 9 / 16; height: min(58dvh, 620px); margin: 0 auto; border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.story-preview img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.story-preview.is-busy img { opacity: .35; }
.story-wait { position: absolute; inset: 0; display: none; place-items: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); }
.story-preview.is-busy .story-wait { display: grid; }
.story-picks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.story-picks button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; transition: background .25s, border-color .25s; }
.story-picks button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.story-actions { display: flex; gap: 10px; }
.story-actions .btn { flex: 1; justify-content: center; padding: 13px 18px; }
.story-actions .btn-dark { background: var(--cream); color: var(--ink); }
.story-actions .btn-dark:hover { background: #fff; }
.story-fine { font-size: 12.5px; color: var(--cream-dim); text-align: center; }
.story-fine b { color: var(--cream); font-weight: 500; }

/* ---------- Barista ---------- */
.crew { position: relative; z-index: 3; background: var(--bg); padding: var(--section) 0; }
.crew-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.crew-head .lead { margin: 0; max-width: 34ch; }
.crew-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 18px; margin-top: 56px; }
.crew-photo { min-height: 420px; }
.crew-photo img { position: absolute; inset: 0; object-position: 50% 78%; }
.crew-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.crew-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate;
  background: linear-gradient(180deg, #1c1611, #120e0a); transition: opacity 1s var(--ease), transform .6s var(--ease), border-color .4s;
}
.crew-card.is-in:hover { transform: translateY(-6px); border-color: var(--green); }
.crew-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.crew-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(14, 11, 8, .92)); }
.crew-card .ph { position: absolute; inset: 0 0 34%; z-index: -2; display: grid; place-items: center; }
.crew-card .ph svg { width: 46%; fill: none; stroke: var(--green); stroke-width: 5; opacity: .28; transition: opacity .4s, transform .8s var(--ease); }
.crew-card:hover .ph svg { opacity: .6; transform: rotate(-12deg); }
.crew-card .no { position: absolute; top: 20px; left: 24px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--green); }
.crew-card .wait { position: absolute; top: 24px; right: 20px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; border: 1px dashed var(--line); padding: 4px 10px; border-radius: 999px; color: var(--cream-dim); }
.crew-card .role { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.crew-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: 6px; }
.crew-card.is-empty h3 { color: var(--cream-dim); font-weight: 500; }
.crew-card p { font-size: 14px; color: var(--cream-dim); margin-top: 10px; }
.crew-card p b { color: var(--cream); font-weight: 500; }

/* ---------- Momen (photo booth) ---------- */
.moments { position: relative; z-index: 3; background: var(--bg-2); padding: var(--section) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.moments .lead a { color: var(--green); border-bottom: 1px solid currentColor; }
.booth {
  display: flex; gap: clamp(20px, 3vw, 38px); margin-top: 50px; padding: 30px max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad))) 50px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
}
.booth::-webkit-scrollbar { display: none; }
.booth.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.polaroid {
  position: relative; flex: none; width: clamp(230px, 24vw, 310px); background: #fbf8f1; color: var(--ink);
  padding: 12px 12px 16px; border-radius: 4px; scroll-snap-align: center;
  transform: rotate(var(--r, -2deg)); transition: transform .6s var(--ease), box-shadow .6s;
  box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .8); user-select: none; -webkit-user-select: none;
}
.polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); box-shadow: 0 44px 60px -22px rgba(0, 0, 0, .9); }
.polaroid::before { /* selotip */
  content: ''; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(201, 161, 113, .75); box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.polaroid .shot { aspect-ratio: 4 / 5; background: #1a1511; overflow: hidden; }
.polaroid img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid img { transition: filter 3.2s cubic-bezier(.3, .1, .3, 1), opacity 3.2s; transition-delay: var(--d, 0s); }
.polaroid.is-wait img { filter: brightness(2.1) contrast(.42) saturate(.2) sepia(.35) blur(1.5px); opacity: .85; }
.polaroid figcaption {
  position: static; background: none; backdrop-filter: none; padding: 12px 4px 0; border-radius: 0; color: var(--ink);
  font-family: 'Caveat', cursive; font-size: 25px; line-height: 1.1; letter-spacing: 0; text-transform: none; min-height: 68px;
}
.polaroid figcaption small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; color: #7a6f60; margin-top: 4px; }
.polaroid.is-cta .shot { display: grid; place-content: center; justify-items: center; gap: 14px; background: none; border: 2px dashed rgba(21, 17, 13, .3); color: #6c6253; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-align: center; font-family: var(--sans); }
.polaroid.is-cta svg { width: 64px; fill: none; stroke: var(--green); stroke-width: 9; }
.cta-story { margin-top: 4px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .08em; text-transform: none; transition: background .3s, transform .3s var(--ease); }
.cta-story:hover { background: var(--green); transform: translateY(-2px); }

/* ---------- Kunjungi ---------- */
.visit { position: relative; z-index: 3; background: var(--green); color: var(--ink); padding: clamp(70px, 10vw, 130px) 0; }
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: end; }
.visit .display { font-size: clamp(3.4rem, 10vw, 9.5rem); margin-bottom: 34px; }
.visit .display .serif { color: var(--cream); }
.visit-info { display: grid; gap: 0; }
.visit-info > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(21, 17, 13, .25); }
.visit-info dt { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; padding-top: 5px; }
.visit-info dd { font-size: 1.25rem; line-height: 1.35; }
.visit-info dd b { font-weight: 800; font-size: 1.5em; letter-spacing: -.02em; }
.visit-info a { border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 3; background: var(--bg); padding: 60px var(--pad) 30px; overflow: hidden; }
.footer-wm { font-size: clamp(5rem, 24vw, 24rem); letter-spacing: -.02em; color: var(--cream); display: flex; justify-content: center; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--cream-dim); letter-spacing: .06em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .crew-grid { grid-template-columns: 1fr; }
  .crew-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .crew-photo img { object-position: 50% 70%; }
}
@media (max-width: 900px) {
  .nav-links, .status { display: none; }
  .hero { padding-top: 92px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 6rem); }
  .showcase { width: 100%; position: relative; }
  .showcase::before { content: ''; position: absolute; inset: -40px calc(var(--pad) * -1) -20px; z-index: -1; background: linear-gradient(180deg, rgba(14, 11, 8, 0), rgba(14, 11, 8, .78) 38%); pointer-events: none; }
  .showcase h2 { font-size: 2.1rem; }
  .controls { margin-top: 14px; }
  .ritual { padding-top: 10vh; }
  .ritual-inner { background: linear-gradient(180deg, rgba(14, 11, 8, 0), rgba(14, 11, 8, .55) 12%, rgba(14, 11, 8, .55) 88%, rgba(14, 11, 8, 0)); }
  :root { --r-xl: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .stats { gap: 18px; }
  .menu-body { grid-template-columns: 1fr; }
  .nota { position: static; max-width: 380px; margin: 20px auto 0; width: 100%; }
  .nota-pill.is-on { display: block; }
  .item { grid-template-columns: minmax(0, 1fr) auto; padding-left: 0; padding-right: 4px; }
  .item::before { display: none; }
  .item-name { font-size: 1.08rem; }
  .add { min-width: 62px; padding: 8px 9px; }
  .crew-cards { grid-template-columns: 1fr; }
  .crew-card { min-height: 300px; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-info > div { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   Perbaikan struktur (audit engineering + alur)
   ========================================================== */
:root { --r-xl: 44px; --r-lg: 28px; --r-md: 14px; --r-sm: 4px; --section: var(--section); }
section[id], main[id] { scroll-margin-top: 76px; } /* judul tidak tertutup nav saat lompat dari tautan */

/* Fallback tanpa WebGL: hero tetap punya gambar */
.no-3d #stage { display: none; }
.no-3d .hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 34%, rgba(14, 11, 8, .35)), url(../assets/img/foto/bar-latte.jpg) right 72% / cover no-repeat;
}
.no-3d .controls { display: none; }

/* Harga di hero = tombol tambah ke nota */
button.price { cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); }
button.price i { font-style: normal; font-weight: 600; color: var(--green); margin-left: 2px; transition: color .25s; }
button.price:hover { background: var(--green); border-color: var(--green); transform: translateY(-2px); }
button.price:hover small, button.price:hover i { color: #fff; }
button.price:active { transform: scale(.95); }

.toast {
  position: fixed; left: 50%; top: 84px; z-index: 60; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--cream); color: var(--ink); font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7); transition: opacity .35s, transform .35s var(--ease); white-space: nowrap;
}
.toast::before { content: '✓'; color: var(--green-deep); margin-right: 8px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.nota .btn + .btn { margin-top: 8px; }

/* Momen: rata tengah selama fotonya masih sedikit, tetap bisa digeser kalau sudah banyak */
.booth > :first-child { margin-left: auto; }
.booth > :last-child { margin-right: auto; }

/* Footer: bukan jalan buntu */
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; font-size: 14px; letter-spacing: .04em; }
.footer-links a { color: var(--cream-dim); transition: color .3s; }
.footer-links a:hover { color: var(--green); }
.footer-row { margin-top: 22px; }

/* Navigasi HP */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); place-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--cream); transition: transform .4s var(--ease); }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-right { gap: 10px; }
  .nav-links {
    display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px;
    padding: 0 var(--pad); background: rgba(14, 11, 8, .97);
    font-size: clamp(2.3rem, 11.5vw, 3.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.15;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-links a { color: var(--cream); padding: 2px 0; }
  .nav-links a::after { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
  body.nav-open .nav-links { opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .toast { top: 74px; }
}

/* ==========================================================
   Irama judul: tiap bagian punya suara sendiri.
   Campuran sans + serif hijau hanya di hero dan Kunjungi (pembuka dan penutup).
   ========================================================== */
:root { --section: clamp(80px, 11vw, 150px); }
.display--serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; line-height: .98; font-size: clamp(3rem, 7.6vw, 7.2rem); }
.display--plain { text-transform: none; font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.display .wm-o { width: .78em; height: .78em; margin: 0 .14em 0 0; vertical-align: -.06em; }
.display .outline { color: transparent; -webkit-text-stroke: 1.5px var(--cream); }
.display .sticker {
  display: inline-block; vertical-align: top; margin-left: .5em; font-size: clamp(12px, .19em, 19px); letter-spacing: .1em;
  background: var(--green); color: #fff; padding: .55em 1em; border-radius: 999px; transform: rotate(-7deg) translateY(.4em);
}
.menu .display { max-width: none; }
.crew-head .display--serif { max-width: 14ch; }
[hidden] { display: none !important; } /* .btn punya display sendiri, jadi atribut hidden harus dipaksa */

/* Ritual: langkah yang sedang aktif menonjol, sisanya meredup */
.steps li { transition: opacity .6s var(--ease), transform 1s var(--ease); }
.steps.has-active li.is-in:not(.is-active) { opacity: .3; }
.steps li .num { transition: transform .6s var(--ease); display: inline-block; }
.steps li.is-active .num { transform: scale(1.5); transform-origin: left top; }

/* Barista: satu panel rapi selama data belum ada */
.crew-soon {
  grid-column: 1 / -1; position: relative; overflow: hidden; min-height: 420px; border-radius: var(--r-lg); border: 1px dashed var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 44px);
  background: radial-gradient(90% 120% at 100% 0%, rgba(34, 164, 93, .16), transparent 60%), #15110d;
}
.crew-soon svg { position: absolute; right: -6%; top: -18%; width: min(420px, 60%); fill: none; stroke: var(--green); stroke-width: 4; opacity: .22; }
.crew-soon .role { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.crew-soon h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; margin-top: 10px; max-width: 16ch; }
.crew-soon p { color: var(--cream-dim); margin-top: 14px; max-width: 42ch; }
@media (max-width: 900px) { .crew-soon { min-height: 300px; } }
