:root {
  --cream: #F6EBD9;
  --cream-2: #FFF8EC;
  --chili: #C11F17;      /* 5.9:1 on cream */
  --char: #1E1B18;
  --leaf: #1F6B35;       /* 6.3:1 on cream, 5.9:1 with cream text */
  --turmeric: #F2B33D;   /* 9:1 on charcoal */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--char);
  font: 1.0625rem/1.5 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .92; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { position: relative; overflow: clip; }

.label-top {
  position: absolute; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--char); color: var(--cream); font: 600 .8125rem/1 var(--text);
  padding: 8px 14px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { background: var(--chili); color: var(--cream-2); min-height: 100svh; display: grid; align-items: center; }
.hero-inner { padding: 88px 16px 56px; width: 100%; max-width: 1100px; margin: 0 auto; }
.hero-kicker { font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.hero-title { font-size: min(21vw, 30vh, 15rem); text-transform: uppercase; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line-b { color: var(--turmeric); padding-left: .5em; } /* 5:1 on chili */
.hero-title .ch { display: inline-block; will-change: transform; }
.hero-line { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 7vw, 3rem); line-height: 1.05; margin-top: 28px; max-width: 14ch; }
.hero-hint { margin-top: 40px; font-size: .9rem; font-weight: 600; }
.hero-after { display: none; }
.motion .hero-after { display: block; position: absolute; inset: 0; margin: auto; height: max-content; text-align: center; font: 800 min(21vw, 26vh)/.85 var(--display); text-transform: uppercase; color: var(--cream-2); opacity: 0; pointer-events: none; }
.hero-chili { position: absolute; width: 38vw; max-width: 260px; right: -4vw; bottom: 10%; transform: rotate(-14deg); }

/* ---------- menu (default: stacked, motion mode pins) ---------- */
.menu { background: var(--char); color: var(--cream); padding: 80px 16px 48px; }
.menu-head { max-width: 1100px; margin: 0 auto 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.menu-head h2 { font-size: clamp(2.6rem, 12vw, 5rem); color: var(--turmeric); }
.menu-note { font-size: .875rem; opacity: .9; }
.menu-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; }
.dish { display: grid; gap: 16px; padding: 24px 0; }
.dish-art { width: min(78vw, 46vh, 420px); height: auto; margin: 0 auto; display: block; }
.dish-text h3 { font-size: clamp(2.1rem, 10vw, 4rem); }
.dish-text p { margin-top: 10px; max-width: 34ch; }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 8vw, 3rem); color: var(--turmeric); }
.dish-text .price { margin-top: 14px; }
.menu-progress { display: none; }
.steam path { animation: steam 2.4s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0%,100% { opacity: .2; transform: translateY(6px); } 50% { opacity: .9; transform: translateY(-4px); } }

.motion .menu { height: 100svh; padding-bottom: 0; }
.motion .menu-list { position: relative; height: calc(100svh - 170px); }
.motion .dish { position: absolute; inset: 0; padding: 0; align-content: start; will-change: transform; }
.motion .menu-progress { display: block; position: absolute; left: 16px; right: 16px; bottom: 20px; height: 4px; background: rgba(246,235,217,.2); border-radius: 2px; }
.motion .menu-progress span { display: block; height: 100%; background: var(--turmeric); transform-origin: left; transform: scaleX(0); border-radius: 2px; }

/* ---------- horizontal strip ---------- */
.strip { background: var(--cream); padding: 72px 0 40px; }
.strip-head { padding: 0 16px; max-width: 1100px; margin: 0 auto 28px; }
.strip-head h2 { font-size: clamp(2.6rem, 12vw, 5rem); color: var(--chili); }
.strip-head p { margin-top: 12px; max-width: 32ch; }
.strip-track { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.snack { flex: 0 0 72vw; max-width: 340px; scroll-snap-align: start; background: var(--cream-2); border: 4px solid var(--char); border-radius: 28px; padding: 18px 18px 22px; box-shadow: 8px 8px 0 var(--char); margin-bottom: 12px; }
.snack:nth-child(odd) { transform: rotate(-2deg); }
.snack:nth-child(even) { transform: rotate(1.5deg); background: #FCE7C8; }
.snack svg { width: 100%; height: auto; display: block; }
.snack h3 { font-size: 1.9rem; margin-top: 8px; }
.snack .price { font-size: 1.4rem; color: var(--chili); margin-top: 6px; }
.strip-note { padding: 20px 16px 0; font-size: .875rem; max-width: 1100px; margin: 0 auto; }
.motion .strip { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0 24px; }
.motion .strip-head, .motion .strip-note { width: 100%; }
.motion .strip-track { overflow: visible; width: max-content; will-change: transform; }

/* ---------- visit ---------- */
.visit { background: var(--leaf); color: var(--cream-2); padding: 80px 16px; }
.visit h2 { font-size: clamp(2.6rem, 12vw, 5rem); max-width: 1100px; margin: 0 auto 28px; }
.visit-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 28px; }
.map { width: 100%; max-width: 460px; height: auto; border: 4px solid var(--char); border-radius: 22px; box-shadow: 8px 8px 0 var(--char); }
.hours { margin: 0; display: grid; gap: 2px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 2px dashed rgba(255,248,236,.5); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-align: right; }
.addr { margin-top: 20px; }
.addr-note { margin-top: 8px; font-size: .875rem; }

/* ---------- cta ---------- */
.cta { background: var(--chili); color: var(--cream-2); padding: 96px 16px 80px; text-align: center; }
.cta h2 { font-size: clamp(3.2rem, 17vw, 8rem); text-transform: uppercase; }
.cta h2 span { display: block; font-size: .32em; text-transform: none; margin-top: 14px; font-weight: 600; letter-spacing: 0; }
.wa {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; margin-top: 36px;
  padding: 14px 26px; border-radius: 999px; background: var(--leaf); color: var(--cream-2);
  border: 4px solid var(--char); box-shadow: 6px 6px 0 var(--char);
  font: 800 1.15rem/1.1 var(--display); text-decoration: none; transition: transform .15s;
}
.wa svg { width: 30px; height: 30px; flex: none; }
.wa:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--char); }
.wa:focus-visible, .foot a:focus-visible { outline: 4px solid var(--turmeric); outline-offset: 4px; }
.cta-note { margin-top: 18px; font-size: .875rem; }

.foot { background: var(--char); color: var(--cream); padding: 28px 16px 40px; text-align: center; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; color: var(--turmeric); font-weight: 700; font-size: 1.1rem; }
.foot p { margin-top: 8px; font-size: .875rem; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .dish { grid-template-columns: 1fr 1fr; align-items: center; }
  .motion .dish { align-content: center; }
  .snack { flex-basis: 320px; }
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- 3D layer (only once three.js is running) ---------- */
.hero-3d, .menu-3d { display: none; }
.three .hero-3d, .three .menu-3d { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.three .hero-3d { z-index: 1; }   /* between the two title lines: WARUNG over it, BU SARI under it */
.three .hero-title .line, .three .hero-kicker, .three .hero-line, .three .hero-hint { position: relative; z-index: 2; }
.three .hero-title .line-b { z-index: 0; }
.three .hero-after { z-index: 2; }
.three .hero-chili { display: none; }
.three .menu-3d { z-index: 0; }
.three .menu-head { position: relative; z-index: 1; }
.three .menu-list, .three .menu-progress { z-index: 1; }
.three .dish-art { opacity: 0; } /* the 3D plate takes its place; the SVG stays for screen readers */

@media (prefers-reduced-motion: reduce) {
  .steam path { animation: none; }
  .wa { transition: none; }
}
