/* ==========================================================================
   Kedai Mam Duyuk — Official Brand Profile Stylesheet (mamduyuk.com)
   Palet 100% serasi dengan order.mamduyuk.com (Warm Gold + Warm Stone/Charcoal)
   ========================================================================== */

:root {
  color-scheme: light dark;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Brand Tokens (exact match with order.mamduyuk.com) */
  --gold: #FAD674;
  --gold-hover: #F5CB5C;
  --gold-deep: #D4A843;
  --gold-ink: #2D282A;

  --bg: light-dark(#F8F7F4, #0C0A09);
  --bg-elevated: light-dark(#F1EDE6, #141210);
  --surface: light-dark(#FFFFFF, #1C1917);
  --surface-subtle: light-dark(#F5F2EC, #24201D);
  --surface-hover: light-dark(#ECE8DF, #292524);

  --border: light-dark(#E8E4E1, #292524);
  --border-strong: light-dark(#D6D0CA, #44403C);

  --text: light-dark(#1C1917, #FAFAF9);
  --text-secondary: light-dark(#57534E, #A8A29E);
  --text-muted: light-dark(#78716C, #78716C);

  --gold-tint: light-dark(rgba(250, 214, 116, 0.24), rgba(250, 214, 116, 0.14));
  --gold-border: light-dark(rgba(212, 168, 67, 0.52), rgba(250, 214, 116, 0.34));
  --gold-text-accent: light-dark(#B45309, #FAD674);

  --success: light-dark(#059669, #34D399);
  --success-bg: light-dark(#ECFDF5, rgba(16, 185, 129, 0.15));
  --success-border: light-dark(#A7F3D0, rgba(52, 211, 153, 0.34));

  --header-bg: light-dark(rgba(248, 247, 244, 0.88), rgba(12, 10, 9, 0.86));
  --shadow-sm: light-dark(0 1px 2px rgba(28, 25, 23, 0.05), 0 1px 2px rgba(0, 0, 0, 0.42));
  --shadow-card: light-dark(0 10px 30px -10px rgba(45, 40, 42, 0.12), 0 14px 36px -12px rgba(0, 0, 0, 0.65));
  --shadow-float: light-dark(0 22px 48px -16px rgba(45, 40, 42, 0.24), 0 24px 56px -16px rgba(0, 0, 0, 0.78));

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --scrollbar-thumb: light-dark(#A8A29E, #57534E);
  --scrollbar-track: transparent;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 18px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 120;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.16s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ==========================================================================
   Logo & Theme Swapping (exact parity with order.mamduyuk.com)
   ========================================================================== */
.brand-logo-dark,
.theme-icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .brand-logo-light,
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-moon {
    display: none;
  }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .brand-logo-dark,
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-sun {
    display: inline-flex;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .brand-logo-light,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-moon {
  display: none;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .brand-logo-dark,
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-sun {
  display: inline-flex;
}

/* ==========================================================================
   Scroll Progress Hairline (Native CSS Scroll-Driven)
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #F59E0B);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes mam-page-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress-bar {
      animation: mam-page-progress auto linear both;
      animation-timeline: scroll(root);
    }
  }
}

/* ==========================================================================
   Header & Buttons
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 11px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo-frame {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 9px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--surface-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn,
.mobile-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.theme-toggle-btn:hover,
.mobile-menu-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.theme-toggle-btn svg,
.mobile-menu-btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease-spring), background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold-deep);
  box-shadow: 0 4px 14px -4px rgba(212, 168, 67, 0.55);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--gold-deep);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 14.5px;
  border-radius: 12px;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-header-cta {
  display: none;
  padding: 8px 14px;
  font-size: 13px;
}

.mobile-nav-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 18px 16px;
  display: grid;
  gap: 6px;
}

.mobile-nav-drawer a:not(.btn-primary) {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 10px;
  border-radius: 9px;
}

.mobile-nav-drawer a:not(.btn-primary):hover {
  background: var(--surface-subtle);
}

.mobile-drawer-cta {
  margin-top: 6px;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  padding-block: 36px 56px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.live-dot.is-closed {
  background: var(--text-muted);
}

.eyebrow-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.45rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-highlight {
  display: inline-block;
  color: var(--gold-text-accent);
  position: relative;
}

.hero-lead {
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: var(--text-secondary);
  max-width: 56ch;
}

.hero-cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat-item dt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-stat-item dd {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

.hero-photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  background: #141210;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-float);
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  max-width: 240px;
}

.hero-float-badge strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.hero-float-badge span:last-child {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 1px;
}

.hero-float-badge.is-top {
  top: 14px;
  left: 14px;
}

.hero-float-badge.is-bottom {
  bottom: 14px;
  right: 14px;
}

.float-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-tint);
  flex-shrink: 0;
}

.float-badge-emoji {
  font-size: 18px;
  line-height: 1;
}

/* ==========================================================================
   2. SIGNATURE SCROLLYTELLING: WOK-TOSS ("WAJAN TERBANG")
   ========================================================================== */
.wok-section {
  position: relative;
  min-height: 225vh;
  background:
    radial-gradient(65% 50% at 72% 62%, rgba(250, 214, 116, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 16%, var(--bg-elevated) 84%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.wok-sticky {
  position: sticky;
  top: 56px;
  min-height: calc(100svh - 56px);
  display: flex;
  align-items: center;
  overflow: clip;
  padding-block: 24px;
}

.wok-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text-accent);
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text);
}

.text-gold-accent {
  color: var(--gold-text-accent);
}

.section-subtitle {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 58ch;
}

.wok-progress-track {
  margin-top: 18px;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  max-width: 340px;
}

.wok-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transform-origin: left center;
  transform: scaleX(0.08);
  transition: transform 0.1s linear;
}

.wok-beats {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.wok-beat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 0.62;
  transition: opacity 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-spring);
}

.wok-beat.is-active {
  opacity: 1;
  border-color: var(--gold-deep);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.beat-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gold-tint);
  color: var(--gold-text-accent);
  border: 1px solid var(--gold-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.wok-beat h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.wok-beat p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.45;
}

/* Visual Wok Stage */
.wok-visual-stage {
  position: relative;
  height: 440px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 76%, rgba(245, 158, 11, 0.28) 0%, rgba(250, 214, 116, 0.08) 38%, transparent 66%),
    linear-gradient(165deg, #211D1B 0%, #141210 60%, #0C0A09 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 58px;
}

.wok-ambient-glow {
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: 300px;
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(250, 214, 116, 0.48), rgba(234, 88, 12, 0.16) 55%, transparent 75%);
  filter: blur(18px);
  pointer-events: none;
}

.wok-pan-rig {
  position: relative;
  width: min(88%, 390px);
  z-index: 4;
  transform-origin: 76% 45%;
  will-change: transform;
}

.wok-pan-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6));
}

.wok-fire-plume {
  position: absolute;
  left: 8%;
  right: 22%;
  bottom: -24px;
  z-index: -1;
  pointer-events: none;
  transform-origin: center bottom;
}

.wok-fire-svg {
  width: 100%;
  height: auto;
  display: block;
}

.wok-ingredients-layer {
  position: absolute;
  left: 50%;
  bottom: 138px;
  width: 0;
  height: 0;
  z-index: 6;
  pointer-events: none;
}

.wok-ingredient {
  position: absolute;
  width: var(--w-size, 52px);
  height: var(--w-size, 52px);
  margin-left: calc(var(--w-size, 52px) * -0.5);
  margin-top: calc(var(--w-size, 52px) * -0.5);
  /* Default composed mid-air static state (tampil cakep untuk reduced-motion / no-JS) */
  transform: translate3d(calc(var(--w-start-x) + var(--w-dx) * 0.52), calc(var(--w-peak-y) * 0.62), 0) rotate(calc(var(--w-spin) * 0.35));
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  will-change: transform, opacity;
}

.wok-ingredient svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wok-sparks-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.wok-spark {
  position: absolute;
  bottom: 110px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(250, 214, 116, 0.8);
  opacity: 0.55;
}

.wok-controls-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-gold-chip,
.btn-ghost-chip {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.16s var(--ease-spring), background-color 0.16s ease;
}

.btn-gold-chip {
  background: var(--gold);
  color: var(--gold-ink);
  border: 1px solid var(--gold-deep);
}

.btn-gold-chip:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-ghost-chip {
  background: rgba(255, 255, 255, 0.1);
  color: #FAFAF9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-ghost-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Motion Rules (Opt-In via prefers-reduced-motion: no-preference + Native SDA)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes wok-flame-flicker {
    0%, 100% { transform: scaleY(0.92) scaleX(0.97); opacity: 0.78; }
    50% { transform: scaleY(1.12) scaleX(1.04); opacity: 1; }
  }

  @keyframes wok-spark-rise {
    0% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
    20% { opacity: 0.95; }
    100% { transform: translate3d(var(--spark-dx, 24px), var(--spark-y, -180px), 0) scale(0.1); opacity: 0; }
  }

  @keyframes wok-pan-manual {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    22% { transform: translate3d(0, 14px, 0) rotate(-7deg); }
    54% { transform: translate3d(-6px, -36px, 0) rotate(14deg); }
    82% { transform: translate3d(0, 6px, 0) rotate(-3deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  }

  @keyframes wok-item-manual {
    0% { transform: translate3d(var(--w-start-x), 0, 0) rotate(0deg) scale(0.72); opacity: 0.85; }
    48% { transform: translate3d(calc(var(--w-start-x) + var(--w-dx) * 0.88), calc(var(--w-peak-y) * 1.05), 0) rotate(calc(var(--w-spin) * 0.72)) scale(1.16); opacity: 1; }
    100% { transform: translate3d(calc(var(--w-start-x) + var(--w-dx) * 0.52), calc(var(--w-peak-y) * 0.62), 0) rotate(calc(var(--w-spin) * 0.35)) scale(1); opacity: 1; }
  }

  .wok-fire-plume {
    animation: wok-flame-flicker 1.2s ease-in-out infinite;
  }

  .wok-spark {
    animation: wok-spark-rise 2.4s ease-out infinite;
    animation-delay: var(--spark-delay, 0s);
  }

  /* Native CSS Scroll-Driven Wok Choreography (0ms JS overhead on compositor thread) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    html {
      timeline-scope: --wok-track;
    }

    .wok-section {
      view-timeline: --wok-track block;
    }

    @keyframes wok-pan-scroll {
      0%   { transform: translate3d(0, 8px, 0) rotate(-3deg); }
      20%  { transform: translate3d(0, 18px, 0) rotate(-8deg); }
      52%  { transform: translate3d(-8px, -34px, 0) rotate(13deg); }
      78%  { transform: translate3d(0, -8px, 0) rotate(3deg); }
      100% { transform: translate3d(0, 6px, 0) rotate(-2deg); }
    }

    @keyframes wok-ingredient-scroll {
      0% {
        transform: translate3d(var(--w-start-x), 18px, 0) rotate(0deg) scale(0.62);
        opacity: 0.2;
      }
      18% {
        transform: translate3d(calc(var(--w-start-x) + var(--w-dx) * 0.25), calc(var(--w-peak-y) * 0.35), 0) rotate(calc(var(--w-spin) * 0.22)) scale(0.95);
        opacity: 1;
      }
      54% {
        transform: translate3d(calc(var(--w-start-x) + var(--w-dx) * 0.85), var(--w-peak-y), 0) rotate(calc(var(--w-spin) * 0.7)) scale(1.16);
        opacity: 1;
      }
      85% {
        transform: translate3d(calc(var(--w-start-x) + var(--w-dx)), calc(var(--w-peak-y) * 0.42), 0) rotate(var(--w-spin)) scale(0.96);
        opacity: 1;
      }
      100% {
        transform: translate3d(calc(var(--w-start-x) + var(--w-dx) * 0.4), var(--w-end-y), 0) rotate(calc(var(--w-spin) * 1.15)) scale(0.84);
        opacity: 0.92;
      }
    }

    .wok-pan-rig {
      animation: wok-pan-scroll auto linear both;
      animation-timeline: --wok-track;
      animation-range: cover 12% cover 88%;
    }

    .wok-ingredient {
      animation: wok-ingredient-scroll auto linear both;
      animation-timeline: --wok-track;
      animation-range: cover 14% cover 88%;
    }

    @keyframes card-scroll-reveal {
      from {
        opacity: 0.01;
        transform: translate3d(0, 26px, 0) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
    }

    .reveal-on-scroll {
      animation: card-scroll-reveal auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
  }

  /* Interactive "Lempar Wajan!" click burst overrides scroll timeline cleanly for 1s */
  .wok-visual-stage.is-manual-toss .wok-pan-rig {
    animation: wok-pan-manual 0.95s var(--ease-spring) both;
    animation-timeline: auto;
  }

  .wok-visual-stage.is-manual-toss .wok-ingredient {
    animation: wok-item-manual 1s var(--ease-spring) both;
    animation-timeline: auto;
  }
}

/* WCAG 2.2.2 Pause Button: menghentikan animasi persisten tanpa menyembunyikan elemen */
.wok-section.is-motion-paused .wok-fire-plume,
.wok-section.is-motion-paused .wok-spark,
.wok-section.is-motion-paused .wok-pan-rig,
.wok-section.is-motion-paused .wok-ingredient {
  animation-play-state: paused !important;
}

/* ==========================================================================
   3. BENTO VALUE SECTION
   ========================================================================== */
.section-block {
  padding-block: 68px;
}

.section-tinted {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head-center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.section-head-center .section-subtitle {
  margin-inline: auto;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-spring);
}

.bento-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.bento-featured {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.bento-media {
  overflow: hidden;
  background: #141210;
}

.bento-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.bento-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-tag {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-text-accent);
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.bento-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-text-accent);
  border: 1px solid var(--gold-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.bento-icon-wrap svg {
  width: 21px;
  height: 21px;
}

.bento-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.bento-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.55;
}

/* ==========================================================================
   4. MENU SHOWCASE GRID
   ========================================================================== */
.menu-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

.menu-showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-card);
}

.menu-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-subtle);
  overflow: hidden;
}

.menu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.84);
  color: #FAFAF9;
  backdrop-filter: blur(6px);
}

.menu-pill.is-gold {
  background: var(--gold);
  color: var(--gold-ink);
}

.menu-card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  margin-top: 3px;
  line-height: 1.3;
}

.menu-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
  flex: 1;
}

.menu-card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.menu-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.menu-price-hint {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-card-order {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold-ink);
  background: var(--gold);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.16s ease;
}

.btn-card-order:hover {
  background: var(--gold-hover);
}

/* ==========================================================================
   5. DYNAMIC BRANCHES + INTERACTIVE LEAFLET MAP
   ========================================================================== */
.branch-count-pill {
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-text-accent);
  border: 1px solid var(--gold-border);
}

.branches-explorer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.branches-list-col {
  display: grid;
  gap: 12px;
}

.branch-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.branch-card.is-active {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-tint), var(--shadow-card);
}

.branch-card-select {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: block;
}

.branch-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.branch-code-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--gold-tint);
  color: var(--gold-text-accent);
  border: 1px solid var(--gold-border);
}

.branch-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
}

.branch-status.is-open {
  color: var(--success);
}

.branch-status.is-closed {
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.branch-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.branch-card-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.45;
}

.branch-meta-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.branch-pin-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.branch-pin-chip.is-muted {
  background: var(--surface-subtle);
  color: var(--text-muted);
  border-color: var(--border);
}

.branch-card-actions {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-frame-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-canvas-wrap {
  position: relative;
}

.map-style-switcher {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: light-dark(rgba(255, 255, 255, 0.92), rgba(28, 25, 23, 0.92));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.map-style-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.map-style-btn:hover {
  color: var(--text);
}

.map-style-btn.is-active {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
}

.branches-map-canvas {
  width: 100%;
  height: 410px;
  background: var(--surface-subtle);
  z-index: 1;
}

.map-frame-footer {
  padding: 11px 15px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
}

.map-order-shortcut {
  color: var(--gold-text-accent);
  font-weight: 800;
  text-decoration: none;
}

.map-order-shortcut:hover {
  text-decoration: underline;
}

/* Custom Branded Gold MapLibre Markers, Controls & Popups */
.mam-map-pin-wrap {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mam-map-pin {
  position: relative;
  width: 34px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring);
}

.mam-map-pin-wrap.is-active .mam-map-pin {
  transform: scale(1.16);
}

.mam-map-pin-drop {
  width: 28px;
  height: 28px;
  border-radius: 999px 999px 999px 4px;
  transform: rotate(-45deg);
  background: var(--gold);
  border: 3px solid #2D282A;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mam-map-pin-core {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2D282A;
}

.mam-map-pin-label {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: #1C1917;
  color: var(--gold);
  border: 1px solid rgba(250, 214, 116, 0.48);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.mam-map-pin-pulse {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(250, 214, 116, 0.55);
}

.maplibregl-popup-content {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: var(--shadow-card) !important;
}

.maplibregl-popup-close-button {
  color: var(--text-secondary) !important;
  font-size: 18px !important;
  padding: 4px 8px !important;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--surface) !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: var(--surface) !important;
}

.maplibregl-ctrl-group {
  background: light-dark(rgba(255, 255, 255, 0.92), rgba(28, 25, 23, 0.92)) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
}

.maplibregl-ctrl-group button + button {
  border-top-color: var(--border) !important;
}

.maplibregl-ctrl-icon {
  filter: light-dark(none, invert(0.9));
}

.mam-map-popup {
  font-family: var(--font-sans);
  min-width: 195px;
}

.mam-popup-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-text-accent);
}

.mam-popup-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

.mam-popup-addr,
.mam-popup-hours {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.mam-popup-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mam-popup-cta {
  background: var(--gold);
  color: var(--gold-ink) !important;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
}

.mam-popup-link {
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
}

/* ==========================================================================
   6. MEMBER VIP BANNER
   ========================================================================== */
.member-promo-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.member-promo-desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 54ch;
}

.vip-card-mock {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, #2D282A 0%, #1C1917 55%, #3D2E14 100%);
  border: 1.5px solid rgba(250, 214, 116, 0.55);
  color: #FAFAF9;
  box-shadow: var(--shadow-float);
  max-width: 380px;
  margin-inline: auto;
}

.vip-card-shine {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250, 214, 116, 0.34), transparent 70%);
  pointer-events: none;
}

.vip-card-top,
.vip-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vip-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.vip-tier-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
}

.vip-card-mid {
  margin-block: 22px 18px;
}

.vip-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.65);
}

.vip-holder {
  font-size: 18px;
  font-weight: 800;
  margin-top: 3px;
}

.vip-number {
  font-size: 12px;
  color: var(--gold);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

.vip-benefit {
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 2px;
}

.vip-active-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-top: 42px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 38ch;
}

.footer-links-col h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-links-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links-col a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links-col a:hover {
  color: var(--gold-text-accent);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 768px) {
  .btn-header-cta {
    display: inline-flex;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-featured {
    grid-column: 1 / -1;
    grid-template-columns: 1.15fr 1fr;
  }

  .member-promo-banner {
    grid-template-columns: 1.25fr 0.95fr;
    padding: 36px 34px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-section {
    padding-block: 52px 76px;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
  }

  .wok-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
  }

  .wok-visual-stage {
    height: 520px;
  }

  .bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bento-featured {
    grid-column: span 4;
  }

  .branches-explorer {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 22px;
  }

  .branches-map-canvas {
    height: 460px;
  }
}

/* Reduced Motion Explicit Safety (keep final visible state without jarring 0.01ms) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .wok-section {
    min-height: auto;
  }
  .wok-sticky {
    position: relative;
    top: 0;
    min-height: auto;
    padding-block: 48px;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
