/* =========================================================
   KOPI NUSANTARA — Design Tokens
========================================================= */
:root{
  /* Colors */
  --c-espresso:   #29221B;
  --c-espresso-2: #332A20;
  --c-coffee:     #4B3423;
  --c-coffee-2:   #6B4A32;
  --c-cream:      #F6EEE1;
  --c-beige:      #E4D5BE;
  --c-beige-2:    #D8C4A6;
  --c-gold:       #AD8A52;
  --c-gold-soft:  #C9AD7C;
  --c-offwhite:   #FBF8F3;
  --c-line:       rgba(41, 34, 27, 0.12);
  --c-line-light: rgba(251, 248, 243, 0.18);

  /* Semantic tokens (Kopi Nusantara identity — brown / cream / beige / black) */
  --color-primary:      var(--c-coffee);
  --color-primary-dark: var(--c-espresso);
  --color-brown:        var(--c-coffee-2);
  --color-cream:        var(--c-cream);
  --color-beige:        var(--c-beige);
  --color-black:        #000000;
  --color-white:        #FFFFFF;
  --color-text:         var(--c-espresso);
  --color-muted:        var(--c-coffee-2);
  --color-border:       var(--c-line);

  /* Typography */
  --f-display: 'Cormorant Garamond', serif;
  --f-body: 'DM Sans', sans-serif;

  /* Layout */
  --container: clamp(1240px, 92vw, 1560px);
  --gutter: clamp(20px, 5vw, 64px);
  --radius-s: 4px;
  --radius-m: 15px;
  --radius-l: 20px;
  --radius-pill: 100px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.22,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-s: .35s;
  --dur-m: .6s;
  --dur-l: .9s;
}

/* =========================================================
   Reset
========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  background: var(--c-cream);
  color: var(--c-espresso);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--c-espresso); }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
svg{ display: block; }

:focus-visible{
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   LOADING SCREEN
   Full-screen overlay shown before the site is ready. Purely
   presentational — script.js is responsible for animating the
   bar and removing the .is-done class; if JS never runs, the
   overlay simply stays a static brand screen instead of
   blocking the page (see .is-loading below for the only
   behavioural hook: scroll lock).
========================================================= */
.loader{
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-espresso);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-done{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner{
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 0 24px;
}
.loader__logo{
  height: 56px; width: auto; opacity: .95;
  animation: loaderPulse 1.8s var(--ease) infinite;
}
@keyframes loaderPulse{
  0%, 100%{ opacity: .72; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.05); }
}
.loader__bar{
  position: relative;
  width: 240px; height: 4px; border-radius: 4px;
  background: rgba(251,248,243,.14);
  box-shadow: inset 0 0 0 1px rgba(251,248,243,.06);
  overflow: hidden;
}
.loader__bar-fill{
  position: relative;
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-soft));
  box-shadow: 0 0 14px rgba(173,138,82,.65);
  transition: width .35s cubic-bezier(.22,.61,.22,1);
  overflow: hidden;
}
.loader__bar-fill::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.65) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: loaderSweep 1.3s ease-in-out infinite;
}
@keyframes loaderSweep{
  100%{ transform: translateX(100%); }
}
.loader__pct{
  font-family: var(--f-body); font-size: 11px; letter-spacing: .16em;
  color: var(--c-offwhite); opacity: .6;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce){
  .loader__logo{ animation: none; }
  .loader__bar-fill::after{ animation: none; display: none; }
}

.grain-overlay{
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress indicator */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-soft));
  z-index: 1000; pointer-events: none;
  transition: width .12s linear;
}

.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 14px;
}
.eyebrow::before{
  content: ''; width: 22px; height: 1px; background: var(--c-gold);
}

.section-head{
  max-width: 640px;
  margin: 0 auto 46px;
  padding: 0 var(--gutter);
  text-align: center;
}
.section-head--left{
  margin-left: var(--gutter);
  text-align: left;
}
.section-head h2{
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}
.section-head__desc{
  margin-top: 16px;
  color: var(--c-coffee-2);
  font-size: 16px;
}

/* Buttons */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-s) var(--ease-spring), background var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
  white-space: nowrap;
}
.btn::before{
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::before{ transform: translateX(120%); }
.btn--primary{
  background: var(--c-offwhite);
  color: var(--c-espresso);
}
.btn--primary:hover{ transform: translateY(-3px) scale(1.03); background: var(--c-cream); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.btn--ghost{
  border-color: var(--c-line-light);
  color: var(--c-offwhite);
}
.btn--ghost:hover{ border-color: var(--c-offwhite); transform: translateY(-3px) scale(1.03); }
.btn--gold{
  background: var(--c-gold);
  color: var(--c-espresso);
}
.btn--gold:hover{ background: var(--c-gold-soft); transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.btn--espresso{
  background: var(--c-espresso);
  color: var(--c-offwhite);
}
.btn--espresso:hover{ background: var(--c-coffee); transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.btn--outline{
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-espresso);
}
.btn--outline:hover{ border-color: var(--c-coffee); transform: translateY(-3px) scale(1.03); }
.btn--block{ display: flex; width: 100%; }
.btn:disabled,
.btn.is-loading{ opacity: .72; pointer-events: none; }
.btn:active{ transform: translateY(-1px) scale(.97) !important; transition-duration: .12s; }

/* =========================================================
   Reveal animation (IntersectionObserver driven)
========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-l) var(--ease), transform var(--dur-l) var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* When the GSAP motion layer is active, it fully owns the entrance
   animation for these specific elements — neutralise the CSS fallback
   fade on them so the two systems don't animate the same element twice. */
.js-gsap-motion .about__media.reveal,
.js-gsap-motion .vision__block.reveal,
.js-gsap-motion .testimonial__wrap.reveal,
.js-gsap-motion [data-journal-row].reveal,
.js-gsap-motion .why__item.reveal,
.js-gsap-motion .profile__gallery.reveal,
.js-gsap-motion .vision__media.reveal,
.js-gsap-motion .moment.reveal,
.js-gsap-motion .final-cta.reveal{
  opacity: 1;
  transform: none;
  transition: none;
}

/* =========================================================
   NAVBAR
   Sekarang selalu solid (bukan transparan-di-atas-foto), karena
   hero image sudah berupa banner 16:9 terpisah, bukan full-bleed
   di belakang navbar. Ikon & logo pakai warna gelap agar selalu
   terbaca di atas background krem.
========================================================= */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  background: rgba(41, 34, 27, .92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--c-line-light);
  transition: padding var(--dur-s) var(--ease), background var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
/* Cinematic entrance: hidden while the full-screen loader is up (so there
   is zero flash-of-content), then eases in once the loader finishes. */
.navbar.is-entering{ opacity: 0; transform: translateY(-16px); filter: blur(6px); }
.navbar.is-entered{ opacity: 1; transform: translateY(0); filter: blur(0); }
.navbar__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.navbar__logo{ justify-self: center; }
.navbar__logo img{ height: 38px; width: auto; transition: transform var(--dur-s) var(--ease-spring); }
.navbar__logo:hover img{ transform: scale(1.06) rotate(-2deg); }

.navbar__actions{ display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn{
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent; border: none;
  color: var(--c-offwhite);
  border-radius: 50%;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring);
}
.icon-btn:hover{ background: rgba(251,248,243,.12); transform: scale(1.1) rotate(-6deg); }
.icon-btn:active{ transform: scale(.94) rotate(-2deg); transition-duration: .12s; }
.icon-btn svg{ width: 19px; height: 19px; }
.icon-btn.is-bump{ animation: iconBump .5s var(--ease); }
@keyframes iconBump{
  0%{ transform: translateY(0); }
  30%{ transform: translateY(-5px); }
  60%{ transform: translateY(1px); }
  100%{ transform: translateY(0); }
}
.icon-btn__badge{
  position: absolute; top: 3px; right: 3px;
  min-width: 15px; height: 15px; padding: 0 3px;
  background: var(--c-gold); color: var(--c-espresso);
  font-size: 9px; font-weight: 700;
  border-radius: 50%;
  display: grid; place-items: center;
  line-height: 1;
}
.icon-btn__badge.is-bump{ animation: badgeBump .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes badgeBump{
  0%{ transform: scale(.4); }
  55%{ transform: scale(1.3); }
  100%{ transform: scale(1); }
}

.hamburger{
  display: flex;
  justify-self: start;
  width: auto; height: 38px;
  background: none; border: none;
  flex-direction: row; align-items: center; gap: 10px;
  color: var(--c-offwhite);
}
.hamburger em{
  font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.hamburger__bars{ display: flex; flex-direction: column; gap: 5px; }
.hamburger__bars i{
  display: block;
  width: 22px; height: 1.5px; background: var(--c-offwhite); font-style: normal;
  transition: transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
}
.hamburger[aria-expanded="true"] .hamburger__bars i:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bars i:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bars i:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* Floating contact button */
.float-contact{
  position: fixed; right: 22px; bottom: 26px; z-index: 700;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--c-gold); color: var(--c-espresso);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(36,22,17,.28);
  transition: transform var(--dur-s) var(--ease-spring), background var(--dur-s) var(--ease);
}
.float-contact svg{ width: 24px; height: 24px; }
.float-contact:hover{ background: var(--c-gold-soft); transform: scale(1.08) rotate(-6deg); }
.float-contact__ring{
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--c-gold);
  animation: contactPulse 2.4s var(--ease) infinite;
}
@keyframes contactPulse{
  0%{ transform: scale(.9); opacity: .8; }
  70%{ transform: scale(1.35); opacity: 0; }
  100%{ opacity: 0; }
}

/* Scrolled state — sedikit lebih padat & shadow lebih tegas, warna tetap konsisten */
.navbar.is-scrolled{
  padding: 12px 0;
  background: rgba(41, 34, 27, .98);
  border-bottom-color: var(--c-line-light);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

/* =========================================================
   NAVBAR — DESKTOP HORIZONTAL NAVIGATION
   Di bawah 992px navbar tetap memakai hamburger + drawer.
   Di 992px ke atas, hamburger disembunyikan dan digantikan
   oleh navigasi horizontal penuh di antara logo dan actions.
========================================================= */
.navbar__nav{ display: none; }

@media (min-width: 992px){
  .navbar__inner{ grid-template-columns: auto 1fr auto; gap: 32px; }
  .hamburger{ display: none; }
  .navbar__logo{ justify-self: start; }
  .navbar__actions{ gap: 4px; }

  .navbar__nav{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.4vw, 38px);
  }
  .navbar__nav a{
    position: relative;
    font-family: var(--f-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-offwhite);
    opacity: .78;
    padding: 8px 1px;
    transition: opacity var(--dur-s) var(--ease);
    white-space: nowrap;
  }
  .navbar__nav a::after{
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 2px;
    height: 1px;
    background: var(--c-gold);
    transition: right var(--dur-m) var(--ease);
  }
  .navbar__nav a:hover{ opacity: 1; }
  .navbar__nav a:hover::after,
  .navbar__nav a.is-active::after{ right: 0; }
  .navbar__nav a.is-active{ opacity: 1; color: var(--c-gold-soft); }

  /* Desktop navbar should read as a real navbar, not a scaled-up mobile bar */
  .navbar__logo img{ height: 50px; }
  .navbar__nav{ gap: clamp(22px, 2.6vw, 42px); }
  .navbar__nav a{ font-size: 14px; }
  .icon-btn{ width: 44px; height: 44px; }
  .icon-btn svg{ width: 21px; height: 21px; }
  .icon-btn__badge{ min-width: 16px; height: 16px; font-size: 9.5px; }
}

@media (min-width: 1200px){
  .navbar{ padding: 22px 0; }
  .navbar.is-scrolled{ padding: 14px 0; }
}

/* =========================================================
   MOBILE MENU / SIDEBAR DRAWER
========================================================= */
.mobile-menu-backdrop{
  position: fixed; inset: 0;
  background: rgba(20, 12, 8, .55);
  z-index: 890;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-m) var(--ease), visibility var(--dur-m) var(--ease);
}
.mobile-menu-backdrop.is-open{ opacity: 1; visibility: visible; }

.mobile-menu{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(420px, 88vw);
  height: 100dvh;
  background: var(--c-espresso);
  z-index: 900;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 88px 30px 36px;
  transform: translateX(-100%);
  transition: transform var(--dur-m) var(--ease);
  overflow-y: auto;
  box-shadow: 24px 0 60px rgba(0,0,0,.28);
}
.mobile-menu.is-open{ transform: translateX(0); }

.mobile-menu__close{
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(251,248,243,.08);
  border: 1px solid var(--c-line-light);
  border-radius: 50%;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring);
}
.mobile-menu__close:hover{ background: rgba(251,248,243,.16); transform: rotate(90deg); }
.mobile-menu__close span{
  position: absolute;
  width: 16px; height: 1.5px;
  background: var(--c-offwhite);
  border-radius: 1px;
}
.mobile-menu__close span:nth-child(1){ transform: rotate(45deg); }
.mobile-menu__close span:nth-child(2){ transform: rotate(-45deg); }

.mobile-menu__nav{ display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.mobile-menu__nav a{
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-display);
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.15;
  color: var(--c-offwhite);
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line-light);
  opacity: 0; transform: translateX(-16px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}
.mobile-menu.is-open .mobile-menu__nav a{ opacity: 1; transform: translateX(0); }
.mobile-menu__nav a.is-active{ color: var(--c-gold-soft); }
.mobile-menu__nav a span{
  font-family: var(--f-body); font-size: 13px; color: var(--c-gold); font-weight: 700;
}
.mobile-menu__footer p{
  color: var(--c-beige-2); font-size: 14px; max-width: 280px;
}
.mobile-menu__footer{ display: flex; flex-direction: column; gap: 18px; }
.mobile-menu__social{ display: flex; gap: 20px; }
.mobile-menu__social a{
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-gold-soft);
  position: relative; padding-bottom: 3px;
  transition: color var(--dur-s) var(--ease);
}
.mobile-menu__social a::after{ content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right var(--dur-s) var(--ease); }
.mobile-menu__social a:hover{ color: var(--c-offwhite); }
.mobile-menu__social a:hover::after{ right: 0; }

/* =========================================================
   HERO
   Struktur baru: NAVBAR -> HERO IMAGE 16:9 -> INDICATOR -> TEXT -> CTA
   Gambar dan teks sengaja dipisah total agar tidak ada overlap.
========================================================= */
.hero{
  position: relative;
  padding-top: 72px; /* ruang untuk navbar fixed solid di atas konten */
  background: var(--c-cream);
  overflow: hidden;
}

/* --- Frame gambar / slideshow, wajib 16:9 di semua breakpoint --- */
.hero__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-espresso);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
}
.hero__media{ position: absolute; inset: 0; }
.hero__img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* object-fit: contain (bukan cover) — jaminan mutlak seluruh gambar asli
     selalu terlihat utuh, tidak ada bagian yang terpotong, apa pun rasio
     container-nya. Karena .hero__frame sudah dipaksa aspect-ratio 16:9 —
     rasio asli semua asset hero (1600x900) — dalam praktiknya tidak akan
     ada letterbox sama sekali; ini hanya jaring pengaman tambahan. */
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter: blur(10px);
  transform: none;
  transition: opacity 1.1s var(--ease), filter 1.3s var(--ease);
  will-change: opacity, filter;
}
.hero__img.is-active{
  opacity: 1;
  filter: blur(0);
  z-index: 1;
}
.hero__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,14,10,.28) 0%, rgba(24,14,10,.02) 30%, rgba(24,14,10,.05) 70%, rgba(24,14,10,.4) 100%);
  pointer-events: none;
}

/* --- Desktop: hero widens with the viewport but ALWAYS keeps the exact
   16:9 aspect ratio of the source images (all hero slides are native
   1600x900 / 16:9). Because the container ratio matches the image ratio
   exactly, object-fit: cover never has to crop anything — it just scales.
   No fixed pixel height here on purpose: a fixed height at a wide
   max-width would force a wider-than-16:9 box and crop the images. --- */
@media (min-width: 992px){
  .hero{ padding-top: 108px; }
  .hero__frame{
    aspect-ratio: 16 / 9;
    max-width: var(--container);
    margin: 0 auto;
    border-radius: var(--radius-l);
  }
  .hero__content{ max-width: var(--container); }
}
@media (min-width: 992px){
  .hero__desc{ font-size: 18px; max-width: 500px; }
}

.hero__badge{
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  width: 78px; height: 78px;
  color: var(--c-offwhite);
  opacity: .9;
  animation: stampSpin 30s linear infinite;
}
.hero__badge-ring{ fill: rgba(24,14,10,.3); stroke: currentColor; stroke-width: 1; }
.hero__badge-dot{ fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 4; }
.hero__badge text{ font-size: 8px; letter-spacing: .08em; fill: currentColor; font-family: var(--f-body); font-weight: 700; }
@media (max-width: 780px){ .hero__badge{ display: none; } }

/* --- Slide indicator: baris terpisah, di antara gambar dan teks --- */
.hero__dots{
  padding: 18px 0 4px;
}
.hero__dots button{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-line);
  border: none; padding: 0;
  transition: width var(--dur-s) var(--ease-spring), background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring);
}
.hero__dots button:hover{ background: var(--c-gold-soft); }
.hero__dots button.is-active{
  width: 22px;
  border-radius: 4px;
  background: var(--c-gold);
}

/* --- Text content: full di bawah gambar, tidak overlap --- */
.hero__content{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter) 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__text{ width: 100%; }

/* --- Foto pendamping di sisi kanan teks hero, mengisi ruang kosong ---
   Mobile-first: stack di bawah teks, ukuran wajar (tidak kegedean).
   Di desktop (≥992px) baru pindah jadi grid dua kolom di samping teks. */
.hero__side{
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 16px 36px rgba(36,22,17,.14);
}
.hero__side img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .8s var(--ease);
}
.hero__side:hover img{ transform: scale(1.05); }

@media (min-width: 992px){
  .hero__content{
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: clamp(40px, 6vw, 84px);
    padding-top: 20px;
  }
  .hero__side{ max-width: none; aspect-ratio: 3 / 2; }
}

.hero__content .eyebrow{ color: var(--c-gold); }
.hero__content .eyebrow::before{ background: var(--c-gold); }
.hero__headline{
  font-size: clamp(32px, 5.6vw, 60px);
  line-height: 1.12;
  color: var(--c-espresso);
  margin-bottom: 22px;
}
.hero__headline .line{
  display: block;
  overflow: hidden;
}
.hero__headline .line{
  position: relative;
  transform: translateY(110%);
  animation: lineReveal var(--dur-l) var(--ease) forwards;
  animation-delay: .3s;
}
.hero__headline .line:nth-child(2){ animation-delay: .48s; }
@keyframes lineReveal{
  to{ transform: translateY(0); }
}
/* JS-driven typewriter takes over the reveal; disable the slide-mask fallback
   once script.js confirms it will type the headline in (progressive enhancement,
   the slide-up animation above remains the no-JS / reduced-motion fallback). */
.hero__headline.is-typewriter .line{
  animation: none;
  transform: none;
  opacity: 1;
}
.hero__caret{
  display: inline-block;
  width: 2px;
  height: .78em;
  margin-left: 3px;
  background: var(--c-gold);
  vertical-align: -0.05em;
  animation: caretBlink .95s steps(1) infinite;
}
.hero__caret.is-done{
  animation: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
@keyframes caretBlink{ 50%{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){
  .hero__caret{ display: none; }
}
.hero__desc{
  max-width: 460px;
  font-size: 17px;
  color: var(--c-coffee-2);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-m) var(--ease) .75s, transform var(--dur-m) var(--ease) .75s;
}
.hero__desc.is-visible{ opacity: 1; transform: translateY(0); }
.hero__url{
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero__cta{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-m) var(--ease) .95s, transform var(--dur-m) var(--ease) .95s;
}
.hero__cta.is-visible{ opacity: 1; transform: translateY(0); }
.hero__content .btn--ghost{
  color: var(--c-espresso);
  border-color: var(--c-line);
}
.hero__content .btn--ghost:hover{ border-color: var(--c-coffee); }

@media (max-width: 780px){
  .hero{ padding-top: 64px; }
  .hero__frame{ border-radius: 0 0 var(--radius-m) var(--radius-m); }
  .hero__content{ padding-top: 4px; padding-bottom: 48px; }
}

/* =========================================================
   ABOUT
   Sekarang berupa "kotak" tersendiri (background + border +
   shadow) supaya setiap section terlihat sebagai panel terpisah,
   bukan menyambung tanpa batas ke section berikutnya.
========================================================= */
.about{
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 52px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  background: var(--c-offwhite);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(36,22,17,.07);
}
.about__media{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.about__media img,
.about__media video{
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.about__content h2{ font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin-bottom: 22px; }
.about__text{ color: var(--c-coffee-2); font-size: 16px; margin-bottom: 16px; max-width: 480px; }
.about__stats{
  display: flex; gap: 40px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.about__stats div{ display: flex; flex-direction: column; gap: 4px; }
.about__stats strong{ font-family: var(--f-display); font-size: 32px; color: var(--c-coffee); }
.about__stats span{ font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-coffee-2); }

/* =========================================================
   PROFILE (paragraph + offset photo pair)
   Foto dibuat "3D" dengan tilt perspective ringan + kartu terpisah.
========================================================= */
.profile{
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 56px var(--gutter);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  background: var(--c-offwhite);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(36,22,17,.07);
}
.profile__text h2{ font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 20px; }
.profile__text p{ color: var(--c-coffee-2); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; max-width: 460px; }
.profile__gallery{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  perspective: 1400px;
}
.profile__gallery-img{
  aspect-ratio: 3/4;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(36,22,17,.2);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.profile__gallery-img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.profile__gallery-img:hover{ transform: rotateY(0deg) rotateX(0deg) scale(1.03); box-shadow: 0 40px 80px rgba(36,22,17,.28); }
.profile__gallery-img:hover img{ transform: scale(1.06); }
.profile__gallery-img--offset{ transform: translateY(30px) rotateY(8deg) rotateX(-2deg); }
.profile__gallery-img--offset:hover{ transform: translateY(30px) rotateY(0deg) rotateX(0deg) scale(1.03); }
@media (max-width: 780px){
  .profile__gallery-img{ transform: rotateY(-4deg) rotateX(1deg); }
  .profile__gallery-img--offset{ transform: translateY(20px) rotateY(4deg) rotateX(-1deg); }
}
@media (prefers-reduced-motion: reduce){
  .profile__gallery-img,
  .profile__gallery-img--offset{ transform: none; }
}

/* =========================================================
   VISI & MISI
========================================================= */
.vision{
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 52px var(--gutter);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background: var(--c-offwhite);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(36,22,17,.07);
}
.vision__media{
  aspect-ratio: 4/3;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.vision__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vision__media:hover img{ transform: scale(1.05); }
.vision__content{ display: flex; flex-direction: column; gap: 32px; }
.vision__text{ font-size: 18px; line-height: 1.65; color: var(--c-espresso); max-width: 540px; }
.vision__list{ display: flex; flex-direction: column; gap: 13px; max-width: 540px; }
.vision__list li{
  position: relative; padding-left: 28px;
  font-size: 15px; color: var(--c-coffee-2); line-height: 1.65;
}
.vision__list li::before{
  content: ''; position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--c-gold);
  background: linear-gradient(180deg, var(--c-gold-soft), var(--c-gold));
}

/* =========================================================
   ORIGINS (carousel)
========================================================= */
.origins{ padding: 40px 0 64px; }
.origins__carousel-wrap{ position: relative; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.origins__carousel{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  cursor: grab;
  /* Center the card group when it fits the viewport (desktop) so it doesn't
     hug the left edge; falls back to normal scrollable start alignment on
     browsers without `safe` support, and never clips the first card when
     the group overflows on smaller screens. */
  justify-content: center;
  justify-content: safe center;
}
.origins__carousel.is-dragging{ cursor: grabbing; scroll-snap-type: none; }
.origins__carousel::-webkit-scrollbar{ display: none; }

.origin-card{
  flex: 0 0 clamp(240px, 28vw, 310px);
  scroll-snap-align: start;
}
.origin-card__img{
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--c-beige);
  transition: transform var(--dur-m) var(--ease-spring), box-shadow var(--dur-m) var(--ease);
}
.origin-card:hover .origin-card__img{ transform: translateY(-6px) scale(1.015); box-shadow: 0 22px 44px rgba(36,22,17,.16); }
.origin-card__img img{ width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; transition: transform .7s var(--ease); }
.origin-card:hover .origin-card__img img{ transform: scale(1.07); }
.origin-card__stamp{
  position: absolute; top: 16px; right: 16px;
  width: 74px; height: 74px;
  color: var(--c-offwhite);
  opacity: .92;
  animation: stampSpin 26s linear infinite;
}
@keyframes stampSpin{ to{ transform: rotate(360deg); } }
.origin-card__stamp-ring{ fill: rgba(36,22,17,.38); stroke: currentColor; stroke-width: 1; }
.origin-card__stamp text{ font-size: 8.4px; letter-spacing: .08em; fill: currentColor; font-family: var(--f-body); font-weight: 700; }
.origin-card__body{ padding: 16px 2px 0; }
.origin-card__body h3{ font-size: 19px; margin-bottom: 5px; }
.origin-card__meta{ font-size: 11px; letter-spacing: .04em; color: var(--c-gold); text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.origin-card__body p{ color: var(--c-coffee-2); font-size: 13.5px; line-height: 1.6; }

.carousel-nav{
  display: flex; gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.carousel-nav__btn{
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-coffee);
  display: grid; place-items: center;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.carousel-nav__btn svg{ width: 18px; height: 18px; }
.carousel-nav__btn:hover{ background: var(--c-coffee); color: var(--c-offwhite); border-color: var(--c-coffee); }

/* =========================================================
   PRODUCTS
========================================================= */
.products{ background: var(--c-offwhite); padding: 90px 0 100px; }
.products__filter{
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: var(--container); margin: 0 auto 40px; padding: 0 var(--gutter);
}
.filter-chip{
  padding: 9px 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  background: transparent; color: var(--c-coffee-2);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.filter-chip{ transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform .25s var(--ease-spring); }
.filter-chip:hover{ border-color: var(--c-coffee); color: var(--c-espresso); }
.filter-chip:active{ transform: scale(.93); }
.filter-chip.is-active{ background: var(--c-espresso); color: var(--c-offwhite); border-color: var(--c-espresso); }
.products__carousel-wrap{ max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* Product grid — responsive column count (2 mobile / 3 tablet / 4 desktop).
   Not a carousel: no overflow-x, no scroll-snap, no drag/prev-next behavior
   attached in JS. */
.products__carousel{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2.6vw, 22px);
}
@media (min-width: 820px){
  .products__carousel{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px){
  .products__carousel{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

.product-card{
  background: var(--c-cream);
  border-radius: var(--radius-m);
  border: 1px solid var(--c-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-s) var(--ease-spring), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
  will-change: transform;
  user-select: none;
}
/* Quiet, refined hover — premium catalog feel. No 3D tilt on product cards. */
.product-card:hover{ box-shadow: 0 24px 48px rgba(36,22,17,.14); border-color: var(--c-gold-soft); }
@media (hover: hover) and (pointer: fine){
  .product-card:hover{ transform: translateY(-6px); }
}
@media (hover: none), (pointer: coarse){
  .product-card:active{ transform: translateY(-4px) scale(1.01); }
}
@media (prefers-reduced-motion: reduce){
  .product-card{ transform: none !important; }
}
.product-card__visual{
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background: var(--c-beige);
  cursor: pointer;
}
.product-card__visual img{
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-card__visual img{ transform: scale(1.06); }
.product-card__visual--empty{
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-beige-2), var(--c-beige));
}
.product-card__visual--empty::after{
  content: 'Foto segera hadir';
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: .03em; color: var(--c-coffee-2);
}
.product-card__badge{
  position: absolute; top: 10px; left: 10px;
  background: var(--c-gold); color: var(--c-espresso);
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  transition: transform var(--dur-s) var(--ease);
}
.product-card:hover .product-card__badge{ transform: translateY(-2px); }
.product-card__body{ padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card__origin{ font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--c-gold); font-weight: 700; margin-bottom: 4px; }
.product-card__body h3{
  font-size: 15px; line-height: 1.28; margin-bottom: 3px; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__type{ font-size: 12px; color: var(--c-coffee-2); margin-bottom: 8px; }
.product-card__rating{
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--c-coffee-2); margin-bottom: 10px;
}
.product-card__rating svg{ width: 12px; height: 12px; color: var(--c-gold); }
.product-card__weights{ display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.weight-chip{
  padding: 4px 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  background: transparent; color: var(--c-coffee-2);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.weight-chip{ transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform .25s var(--ease-spring); }
.weight-chip:hover{ border-color: var(--c-coffee); }
.weight-chip:active{ transform: scale(.92); }
.weight-chip.is-active{ background: var(--c-espresso); color: var(--c-offwhite); border-color: var(--c-espresso); }
.product-card__footer{
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px; border-top: 1px solid var(--c-line);
}
.product-card__price{ font-family: var(--f-display); font-size: 15.5px; color: var(--c-espresso); line-height: 1.2; }
.product-card__price span{ font-family: var(--f-body); font-size: 10px; color: var(--c-coffee-2); display: block; font-weight: 600; }
.product-card__add{
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--c-espresso); color: var(--c-offwhite);
  display: grid; place-items: center; border: none;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.product-card__add:hover{ background: var(--c-gold); color: var(--c-espresso); transform: scale(1.06); }
.product-card__add:active{ transform: scale(.9); transition-duration: .12s; }
.product-card__add svg{ width: 14px; height: 14px; }

@media (max-width: 480px){
  .product-card__body{ padding: 10px 10px 12px; }
  .product-card__body h3{ font-size: 13.5px; }
  .product-card__type{ font-size: 11px; margin-bottom: 6px; }
  .product-card__rating{ font-size: 10.5px; margin-bottom: 8px; }
  .product-card__price{ font-size: 14px; }
  .product-card__add{ width: 30px; height: 30px; }
}

@media (min-width: 1200px){
  .product-card__body{ padding: 14px 16px 16px; }
  .product-card__weights{ margin-bottom: 12px; }
}

/* =========================================================
   WHY
========================================================= */
.why{ padding: 72px 0; max-width: var(--container); margin: 0 auto; }
.why__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 56px;
  margin: 0 var(--gutter);
}
@media (min-width: 700px){
  .why__grid{ grid-template-columns: repeat(2, 1fr); }
}
.why__item{
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
  padding: 0;
  border: none;
  transition: transform var(--dur-m) var(--ease-spring);
}
.why__item:hover{ transform: translateX(3px); }
.why__icon{
  display: grid; place-items: center;
  width: 50px; height: 50px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  color: var(--c-coffee);
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring);
}
.why__icon svg{ width: 22px; height: 22px; }
.why__item:hover .why__icon{ background: var(--c-espresso); color: var(--c-offwhite); transform: scale(1.08) rotate(-6deg); }
.why__item-text h3{ font-size: 17px; margin-bottom: 6px; }
.why__item-text p{ font-size: 14px; color: var(--c-coffee-2); line-height: 1.6; margin: 0; }

/* =========================================================
   KIOS / OUTLET
========================================================= */
.kios{
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 0;
}
.kios__carousel-wrap{ position: relative; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.kios__carousel{
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  cursor: grab;
}
.kios__carousel.is-dragging{ cursor: grabbing; scroll-snap-type: none; }
.kios__carousel::-webkit-scrollbar{ display: none; }

.kios-slide{
  flex: 0 0 clamp(320px, 62vw, 760px);
  scroll-snap-align: start;
}
.kios-slide__img{
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--c-beige);
  transition: transform var(--dur-m) var(--ease-spring), box-shadow var(--dur-m) var(--ease);
}
.kios-slide:hover .kios-slide__img{ transform: translateY(-6px) scale(1.012); box-shadow: 0 22px 44px rgba(36,22,17,.16); }
.kios-slide__img img{
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  user-select: none; -webkit-user-drag: none;
  transition: transform .7s var(--ease);
}
.kios-slide:hover .kios-slide__img img{ transform: scale(1.05); }
.kios-slide__label{
  margin: 18px 4px 0;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-gold); font-weight: 700;
}

/* =========================================================
   MOMENT (immersive)
========================================================= */
.moment{
  position: relative;
  height: 68vh;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.moment__media{ position: absolute; inset: 0; }
.moment__media img{
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.moment__overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,14,10,.5), rgba(24,14,10,.72));
}
.moment__quote{
  position: relative; z-index: 2;
  margin: 0; padding: 0 var(--gutter);
  max-width: 780px; text-align: center;
}
.moment__quote p{
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.4;
  color: var(--c-offwhite);
}

/* =========================================================
   BLOG
========================================================= */
/* =========================================================
   JURNAL — editorial layout (bukan grid card generik)
   Setiap artikel adalah baris besar: nomor + gambar + judul
   editorial, disusun vertikal dengan garis pemisah tipis.
========================================================= */
.journal{ padding: 76px 0; max-width: var(--container); margin: 0 auto; }
.journal__list{ padding: 0 var(--gutter); }

.journal__row{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--c-line);
  transition: opacity var(--dur-m) var(--ease);
}
.journal__list .journal__row:last-child{ border-bottom: 1px solid var(--c-line); }

.journal__index{
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-gold);
  padding-top: 4px;
}

.journal__media{
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  overflow: hidden;
  order: -1;
}
.journal__media img{
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .7s var(--ease);
}
.journal__row:hover .journal__media img{ transform: scale(1.045); }

.journal__body{ grid-column: 1 / -1; }
.journal__meta{ display: flex; gap: 12px; align-items: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-gold); font-weight: 700; margin-bottom: 12px; }
.journal__meta time{ color: var(--c-coffee-2); font-weight: 600; text-transform: none; }
.journal__title{
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
  transition: color var(--dur-s) var(--ease);
}
.journal__row:hover .journal__title{ color: var(--c-coffee-2); }
.journal__desc{ max-width: 560px; color: var(--c-coffee-2); font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
.journal__link{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--c-espresso);
}
.journal__link svg{ width: 15px; height: 15px; transition: transform var(--dur-s) var(--ease); }
.journal__row:hover .journal__link svg{ transform: translateX(4px); }

@media (min-width: 900px){
  .journal__row{
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: center;
  }
  .journal__row:nth-child(even){ grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr); }
  .journal__row:nth-child(even) .journal__media{ order: 2; }
  .journal__row:nth-child(even) .journal__body{ order: 1; }
  .journal__media{ grid-column: auto; order: initial; }
  .journal__body{ grid-column: auto; }
}

/* =========================================================
   TESTIMONIAL
========================================================= */
.testimonial{ background: var(--c-espresso); padding: 76px 0; color: var(--c-offwhite); }
.testimonial .eyebrow{ color: var(--c-gold-soft); }
.testimonial .eyebrow::before{ background: var(--c-gold-soft); }
.testimonial .section-head h2{ color: var(--c-offwhite); }
.testimonial__wrap{ max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.testimonial__track{
  position: relative;
  min-height: 220px;
}
.testimonial-slide{
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(12px) scale(.97);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
  pointer-events: none;
}
.testimonial-slide.is-active{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; position: relative; }
.testimonial-slide__stars{ display: flex; justify-content: center; gap: 4px; margin-bottom: 22px; }
.testimonial-slide__stars svg{ width: 16px; height: 16px; color: var(--c-gold); }
.testimonial-slide p.quote{
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.55;
  color: var(--c-offwhite);
  margin-bottom: 26px;
}
.testimonial-slide__name{ font-weight: 700; font-size: 14px; }
.testimonial-slide__product{ font-size: 12.5px; color: var(--c-beige-2); margin-top: 4px; }
.testimonial__dots{ display: flex; justify-content: center; gap: 9px; margin-top: 32px; }
.testimonial__dots button{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-line-light); border: none;
  padding: 0; transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.testimonial__dots button.is-active{ background: var(--c-gold); transform: scale(1.3); }

/* =========================================================
   FINAL CTA
========================================================= */
.final-cta{
  background: linear-gradient(160deg, var(--c-coffee), var(--c-espresso));
  padding: 88px var(--gutter);
  text-align: center;
}
.final-cta h2{
  font-size: clamp(30px, 5vw, 52px);
  color: var(--c-offwhite);
  line-height: 1.2;
  margin-bottom: 40px;
}

/* =========================================================
   FOOTER
========================================================= */
.footer{ background: var(--c-espresso); color: var(--c-beige-2); padding: 90px var(--gutter) 0; }
.footer__top{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--c-line-light);
}
.footer__brand-media{
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-m);
  margin-bottom: 18px;
}
.footer__video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer__brand p{ font-size: 14px; max-width: 300px; line-height: 1.7; }
.footer__col h4{
  font-family: var(--f-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-offwhite); margin-bottom: 20px; font-weight: 700;
}
.footer__col{ display: flex; flex-direction: column; gap: 12px; }
.footer__col a{ font-size: 14px; color: var(--c-beige-2); transition: color var(--dur-s) var(--ease); width: fit-content; }
.footer__col a:hover{ color: var(--c-offwhite); }
.footer__bottom{
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 26px 0;
  font-size: 12.5px;
}
.footer__note{ color: rgba(228,213,190,.55); }
.footer__totop{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--c-offwhite);
  padding: 8px 16px;
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius-pill);
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring), border-color var(--dur-s) var(--ease);
}
.footer__totop svg{ width: 13px; height: 13px; }
.footer__totop:hover{ background: rgba(251,248,243,.1); border-color: var(--c-offwhite); transform: translateY(-3px); }

/* =========================================================
   PRODUCT DETAIL MODAL
========================================================= */
.product-modal{
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur-s) var(--ease), visibility var(--dur-s) var(--ease);
}
.product-modal.is-open{ visibility: visible; opacity: 1; }
.product-modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(20, 12, 8, .68);
}
.product-modal__panel{
  position: relative;
  background: var(--c-cream);
  max-width: 860px; width: 100%; max-height: 88vh;
  border-radius: var(--radius-l);
  overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(18px) scale(.98);
  transition: transform var(--dur-m) var(--ease);
}
.product-modal.is-open .product-modal__panel{ transform: translateY(0) scale(1); }
.product-modal__close{
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(251,248,243,.9); border: none;
  font-size: 22px; line-height: 1; color: var(--c-espresso);
  display: grid; place-items: center;
  transition: transform var(--dur-s) var(--ease-spring), background var(--dur-s) var(--ease);
}
.product-modal__close:hover{ transform: rotate(90deg) scale(1.08); background: #fff; }
.product-modal__close:active{ transform: rotate(90deg) scale(.94); }
.product-modal__media{ aspect-ratio: 1/1; background: var(--c-beige); position: relative; overflow: hidden; }
.product-modal__media img{
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.product-modal.is-open .product-modal__media img{ opacity: 1; transform: scale(1); }
.product-modal__media--empty{
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-beige-2), var(--c-beige));
}
.product-modal__media--empty::after{
  content: 'Foto segera hadir';
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  letter-spacing: .03em; color: var(--c-coffee-2);
}
.product-modal__body{ padding: 40px; display: flex; flex-direction: column; }
/* Content stagger: each direct block fades/lifts in with an increasing
   delay once the modal opens, so info reads top-to-bottom like a
   premium product reveal instead of appearing all at once. */
.product-modal__body > *{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.product-modal.is-open .product-modal__body > *{ opacity: 1; transform: translateY(0); }
.product-modal__body > *:nth-child(1){ transition-delay: .06s; }
.product-modal__body > *:nth-child(2){ transition-delay: .11s; }
.product-modal__body > *:nth-child(3){ transition-delay: .16s; }
.product-modal__body > *:nth-child(4){ transition-delay: .21s; }
.product-modal__body > *:nth-child(5){ transition-delay: .26s; }
.product-modal__body > *:nth-child(6){ transition-delay: .31s; }
.product-modal__body > *:nth-child(7){ transition-delay: .36s; }
.product-modal__origin{ font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold); font-weight: 700; margin-bottom: 8px; }
.product-modal__body h3{ font-size: 28px; margin-bottom: 8px; }
.product-modal__type{ font-size: 14px; color: var(--c-coffee-2); margin-bottom: 10px; }
.product-modal__rating{ display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-coffee-2); margin-bottom: 22px; }
.product-modal__rating svg{ width: 13px; height: 13px; flex-shrink: 0; color: var(--c-gold); }
.product-modal__weights{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.product-modal__description{ margin-bottom: 20px; }
.product-modal__description-label{
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-gold); margin-bottom: 6px;
}
.product-modal__description p{ font-size: 13.5px; line-height: 1.7; color: var(--c-coffee-2); margin: 0; }
.product-modal__footer{ margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.product-modal__price{ font-family: var(--f-display); font-size: 22px; }

/* =========================================================
   SEARCH OVERLAY
========================================================= */
.search-overlay{
  position: fixed; inset: 0; z-index: 750;
  visibility: hidden; pointer-events: none;
  /* Same fix as .cart-drawer / .auth-screen: delay the visibility flip
     until .search-overlay__panel finishes its own slide-up close. */
  transition: visibility 0s linear var(--dur-m);
}
.search-overlay.is-open{ visibility: visible; pointer-events: auto; transition: visibility 0s linear 0s; }
.search-overlay__backdrop{
  position: absolute; inset: 0;
  background: rgba(20, 12, 8, .5);
  opacity: 0; transition: opacity var(--dur-s) var(--ease);
}
.search-overlay.is-open .search-overlay__backdrop{ opacity: 1; }
.search-overlay__panel{
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--c-offwhite);
  padding: 100px var(--gutter) 22px;
  transform: translateY(-100%);
  transition: transform var(--dur-m) var(--ease);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
.search-overlay.is-open .search-overlay__panel{ transform: translateY(0); }
.search-overlay__bar{
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1.5px solid var(--c-espresso);
  padding-bottom: 12px;
}
.search-overlay__icon{ width: 20px; height: 20px; color: var(--c-coffee-2); flex-shrink: 0; }
.search-overlay__input{
  flex: 1; min-width: 0;
  border: none; background: transparent;
  font-family: var(--f-body); font-size: 16px; color: var(--c-espresso);
  outline: none;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .45s var(--ease) .12s, transform .45s var(--ease) .12s;
}
.search-overlay.is-open .search-overlay__input{ opacity: 1; transform: translateX(0); }
.search-overlay__input::placeholder{ color: var(--c-coffee-2); opacity: .6; }
.search-overlay__close{
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none;
  font-size: 20px; line-height: 1; color: var(--c-espresso);
  flex-shrink: 0;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring);
}
.search-overlay__close:hover{ background: var(--c-beige); transform: rotate(90deg); }
.search-overlay__hint{
  max-width: var(--container); margin: 10px auto 0;
  font-size: 12px; color: var(--c-coffee-2);
}
.search-overlay__hint.is-hidden{ display: none; }

/* ---- Search results dropdown (live suggestions) ---- */
.search-overlay__results{
  max-width: var(--container);
  margin: 0 auto;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-m);
  box-sizing: border-box;
}
.search-overlay__results[hidden]{ display: none; }
.search-result{
  display: flex; align-items: center; gap: 14px;
  width: 100%; box-sizing: border-box;
  padding: 10px 8px;
  background: transparent; border: none; border-radius: var(--radius-s);
  text-align: left;
  opacity: 0; transform: translateY(8px);
  animation: searchResultIn .38s var(--ease) forwards;
  transition: background .2s var(--ease);
}
.search-result:hover,
.search-result.is-active{ background: var(--c-beige); }
.search-result:active{ transform: scale(.99); }
@keyframes searchResultIn{ to{ opacity: 1; transform: translateY(0); } }
.search-result__thumb{
  flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-s);
  overflow: hidden; background: var(--c-beige);
}
.search-result__thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.search-result:hover .search-result__thumb img,
.search-result.is-active .search-result__thumb img{ transform: scale(1.1); }
.search-result__info{ min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-result__name{
  font-family: var(--f-display); font-size: 16px; font-weight: 600;
  color: var(--c-espresso);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result__meta{ font-size: 11.5px; color: var(--c-coffee-2); letter-spacing: .02em; }
.search-overlay__empty{
  max-width: var(--container); margin: 4px auto 0;
  padding: 18px 8px; font-size: 13.5px; color: var(--c-coffee-2);
}
@media (min-width: 992px){
  .search-overlay__panel{ padding-top: 128px; }
  .search-overlay__input{ font-size: 18px; }
  .search-result__name{ font-size: 17px; }
}

/* ---- Product highlight after arriving from search ---- */
.product-card.is-search-target{
  animation: productHighlightPulse 1.6s var(--ease);
  position: relative; z-index: 2;
}
@keyframes productHighlightPulse{
  0%{ box-shadow: 0 0 0 0 rgba(173,138,82,0); transform: translateY(0) scale(1); }
  18%{ box-shadow: 0 0 0 6px rgba(173,138,82,.45), 0 24px 48px rgba(36,22,17,.18); transform: translateY(-6px) scale(1.02); }
  55%{ box-shadow: 0 0 0 3px rgba(173,138,82,.3), 0 24px 48px rgba(36,22,17,.14); transform: translateY(-4px) scale(1.01); }
  100%{ box-shadow: 0 0 0 0 rgba(173,138,82,0); transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .search-result{ opacity: 1; transform: none; animation: none; }
  .product-card.is-search-target{ animation: none; }
}

/* =========================================================
   CART DRAWER
========================================================= */
.cart-drawer{
  position: fixed; inset: 0; z-index: 800;
  visibility: hidden;
  /* Same fix as .auth-screen below: without this, visibility snapped to
     hidden instantly on close and cut off .cart-drawer__panel's slide-out
     transition (var(--dur-m)) mid-flight. Delay the flip to match it. */
  transition: visibility 0s linear var(--dur-m);
}
.cart-drawer.is-open{ visibility: visible; transition: visibility 0s linear 0s; }
.cart-drawer__backdrop{
  position: absolute; inset: 0;
  background: rgba(20, 12, 8, .55);
  opacity: 0; transition: opacity var(--dur-s) var(--ease);
}
.cart-drawer.is-open .cart-drawer__backdrop{ opacity: 1; }
.cart-drawer__panel{
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--c-offwhite);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-m) var(--ease);
}
.cart-drawer.is-open .cart-drawer__panel{ transform: translateX(0); }
.cart-drawer__head{ display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; border-bottom: 1px solid var(--c-line); }
.cart-drawer__head h3{ font-size: 20px; }
.cart-drawer__close{ width: 32px; height: 32px; border-radius: 50%; background: transparent; border: none; font-size: 20px; color: var(--c-espresso); }
.cart-drawer__items{ flex: 1; overflow-y: auto; padding: 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.cart-drawer__items[hidden]{ display: none; }
.cart-drawer__empty{ color: var(--c-coffee-2); font-size: 14px; text-align: center; margin-top: 40px; }
.cart-item{
  display: flex; gap: 14px;
  animation: cartItemIn .42s var(--ease) both;
}
@keyframes cartItemIn{
  from{ opacity: 0; transform: translateX(16px); }
  to{ opacity: 1; transform: translateX(0); }
}
/* Small "pop" used whenever a displayed price value changes (weight
   selection on a product card, or inside the product detail modal) —
   purely a class toggled briefly by script.js, not a persistent state. */
.is-price-bump{ animation: priceBump .32s var(--ease); }
@keyframes priceBump{
  0%{ transform: scale(1); }
  40%{ transform: scale(1.12); color: var(--c-gold); }
  100%{ transform: scale(1); }
}
.cart-item__img{ width: 62px; height: 62px; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; background: var(--c-beige); }
.cart-item__img img{ width: 100%; height: 100%; object-fit: cover; }
.cart-item__body{ flex: 1; }
.cart-item__body h4{ font-family: var(--f-body); font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.cart-item__meta{ font-size: 12px; color: var(--c-coffee-2); margin-bottom: 8px; }
.cart-item__row{ display: flex; align-items: center; justify-content: space-between; }
.cart-item__qty{ display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cart-item__qty button{ width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--c-line); background: transparent; display: grid; place-items: center; font-size: 13px; }
.cart-item__price{ font-size: 13px; font-weight: 700; }
.cart-drawer__footer{ padding: 22px 28px 28px; border-top: 1px solid var(--c-line); }
.cart-drawer__subtotal{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 15px; }
.cart-drawer__subtotal strong{ font-family: var(--f-display); font-size: 20px; }
.cart-drawer__checkout{ width: 100%; margin-bottom: 12px; }
.cart-drawer__note{ font-size: 12px; color: var(--c-coffee-2); text-align: center; line-height: 1.5; }

/* ---- Checkout summary view (replaces items+footer inside the same drawer,
   toggled via [hidden] from script.js — no new drawer, no page navigation) ---- */
.checkout-view{ flex: 1; overflow-y: auto; padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.checkout-view[hidden]{ display: none; }
.checkout-view__back{
  align-self: flex-start; background: none; border: none; padding: 0;
  font-size: 13px; font-weight: 700; color: var(--c-coffee-2);
  transition: color var(--dur-s) var(--ease);
}
.checkout-view__back:hover{ color: var(--c-espresso); }
.checkout-view__items{ display: flex; flex-direction: column; gap: 18px; }
.checkout-view__account{ padding: 14px 16px; background: var(--c-beige); border-radius: var(--radius-m); }
.checkout-view__account-label{ font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-coffee-2); margin-bottom: 2px; }
.checkout-view__account-name{ font-family: var(--f-body); font-weight: 700; font-size: 14px; }
.checkout-view__account-email{ font-size: 12.5px; color: var(--c-coffee-2); }
.checkout-view__subtotal{ display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.checkout-view__subtotal strong{ font-family: var(--f-display); font-size: 20px; }
.checkout-view__submit{ width: 100%; text-align: center; }

/* ---- Payment method selector (WhatsApp / QRIS) ---- */
.payment-method{ display: flex; flex-direction: column; gap: 8px; }
.payment-method__label{ font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-coffee-2); }
.payment-method__options{ display: flex; gap: 10px; flex-wrap: wrap; }
.payment-method__option{
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: var(--c-offwhite); border: 1px solid var(--c-line);
  border-radius: var(--radius-m); cursor: pointer; font-family: var(--f-body);
  font-weight: 700; font-size: 13.5px; color: var(--c-espresso);
  transition: border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.payment-method__option:hover{ border-color: var(--c-coffee); }
.payment-method__option.is-selected{ border-color: var(--c-coffee); background: var(--c-beige); box-shadow: 0 0 0 1px var(--c-coffee) inset; }
.payment-method__radio{
  width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%;
  border: 1.5px solid var(--c-line); position: relative;
  transition: border-color var(--dur-s) var(--ease);
}
.payment-method__option.is-selected .payment-method__radio{ border-color: var(--c-coffee); }
.payment-method__option.is-selected .payment-method__radio::after{
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-coffee);
}

/* ---- QRIS payment panel ---- */
.qris-panel{ display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qris-panel[hidden]{ display: none; }
.qris-panel__instruction{ font-size: 13px; color: var(--c-coffee-2); line-height: 1.5; }
.qris-panel__image-wrap{ width: 100%; max-width: 260px; }
.qris-panel__image{ width: 100%; height: auto; max-width: 100%; display: block; border-radius: var(--radius-m); border: 1px solid var(--c-line); }

/* =========================================================
   ACCOUNT MENU (navbar icon + dropdown)
   These classes existed in the HTML/JS before this pass but had
   no CSS at all — the dropdown was rendering completely unstyled.
========================================================= */
.account-menu{ position: relative; }
.icon-btn__avatar{ width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.icon-btn.icon-btn--has-avatar svg{ display: none; }
.account-dropdown{
  position: absolute; top: calc(100% + 14px); right: 0;
  width: 264px;
  background: var(--c-offwhite);
  border-radius: var(--radius-m);
  box-shadow: 0 24px 60px rgba(20,12,8,.28);
  padding: 20px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring), visibility var(--dur-s);
  z-index: 600;
}
.account-dropdown.is-open{ opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.account-dropdown__guest p{ font-size: 13.5px; color: var(--c-coffee-2); margin-bottom: 14px; line-height: 1.5; }
.account-dropdown__profile{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.account-dropdown__avatar{ width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--c-beige); }
.account-dropdown__id{ min-width: 0; }
.account-dropdown__name{ font-family: var(--f-body); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-dropdown__email{ font-size: 12px; color: var(--c-coffee-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   TOAST NOTIFICATIONS (replaces alert())
========================================================= */
.toast-stack{
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1200;
  display: flex; flex-direction: column-reverse; gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(360px, 92vw);
}
.toast{
  pointer-events: auto;
  background: var(--c-espresso);
  color: var(--c-offwhite);
  font-size: 13.5px; font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px rgba(20,12,8,.3);
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring);
  text-align: center;
}
.toast.is-visible{ opacity: 1; transform: translateY(0) scale(1); }
.toast--error{ background: #5C2A22; }
.toast--info{ background: var(--c-coffee); }

/* =========================================================
   AUTHENTICATION EXPERIENCE (full-screen)
   Replaces the old bare login modal. Same brand palette/type as
   the rest of the site — brand visual left, form right.
========================================================= */
.auth-screen{
  position: fixed; inset: 0; z-index: 950;
  visibility: hidden;
  /* Was switching to hidden instantly (no transition), which cut off
     .auth-screen__panel-wrap's own closing fade/scale mid-flight. Delaying
     the visibility flip until the longest child transition (.55s, the
     panel-wrap transform below) finishes gives the close animation the
     same weight as the open one. Opening still flips visibility on
     immediately (0s delay) via the .is-open override right below. */
  transition: visibility 0s linear .55s;
}
.auth-screen.is-open{ visibility: visible; transition: visibility 0s linear 0s; }
.auth-screen__backdrop{
  position: absolute; inset: 0;
  background: rgba(18,11,7,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.auth-screen.is-open .auth-screen__backdrop{ opacity: 1; }
.auth-screen__frame{
  position: relative; height: 100%; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
  overscroll-behavior: contain; /* don't let an internal scroll chain into the page behind it */
}
@supports (height: 100dvh){
  .auth-screen{ height: 100dvh; }
  .auth-screen__frame{ height: 100dvh; }
}
.auth-screen__panel-wrap{
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  margin: auto;
  background: var(--c-offwhite);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 50px 120px rgba(18,11,7,.45);
  opacity: 0; transform: translateY(28px) scale(.96);
  transition: opacity .5s var(--ease), transform .55s var(--ease-spring);
}
.auth-screen.is-open .auth-screen__panel-wrap{ opacity: 1; transform: translateY(0) scale(1); }
.auth-screen__close{
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--c-espresso);
  display: grid; place-items: center; font-size: 20px; border: none;
  transition: transform var(--dur-s) var(--ease-spring), background var(--dur-s) var(--ease);
}
.auth-screen__close:hover{ background: #fff; transform: rotate(90deg) scale(1.06); }

.auth-screen__visual{
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px 44px;
  color: var(--c-offwhite);
}
.auth-screen__visual-img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.09);
  transition: transform 7s var(--ease);
}
.auth-screen.is-open .auth-screen__visual-img{ transform: scale(1); }
.auth-screen__visual-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(41,34,27,.35) 0%, rgba(20,13,8,.88) 100%);
}
.auth-screen__visual-content{ position: relative; z-index: 1; }
.auth-screen__visual .eyebrow{ color: var(--c-gold-soft); }
.auth-screen__visual-title{
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2;
  margin-bottom: 16px;
}
.auth-screen__visual-quote{ font-size: 14px; color: rgba(251,248,243,.78); line-height: 1.6; max-width: 320px; }

.auth-screen__panel{ padding: 52px 48px; overflow-y: auto; max-height: calc(100vh - 48px); overscroll-behavior: contain; }
@supports (height: 100dvh){ .auth-screen__panel{ max-height: calc(100dvh - 48px); } }
.auth-screen__head{ margin-bottom: 18px; }
.auth-screen__head h3{ font-size: 26px; }
.auth-screen__context{ font-size: 13px; color: var(--c-coffee-2); background: var(--c-beige); border-radius: var(--radius-m); padding: 11px 14px; margin-bottom: 20px; line-height: 1.5; }

/* Layered content entrance: header, tabs, Google button and the divider
   each lift in with their own delay once the panel is open — the login/
   register forms themselves are handled separately below (crossfade,
   also used when switching tabs, not just on first open). */
.auth-screen__head,
.auth-screen__context,
.auth-screen__tabs,
.auth-google-btn,
.auth-divider{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.auth-screen.is-open .auth-screen__head{ opacity: 1; transform: translateY(0); transition-delay: .12s; }
.auth-screen.is-open .auth-screen__context{ opacity: 1; transform: translateY(0); transition-delay: .15s; }
.auth-screen.is-open .auth-screen__tabs{ opacity: 1; transform: translateY(0); transition-delay: .19s; }
.auth-screen.is-open .auth-google-btn{ opacity: 1; transform: translateY(0); transition-delay: .24s; }
.auth-screen.is-open .auth-divider{ opacity: 1; transform: translateY(0); transition-delay: .28s; }

.auth-screen__tabs{ display: flex; gap: 8px; margin-bottom: 22px; background: var(--c-beige); padding: 4px; border-radius: var(--radius-pill); }
.auth-tab{ flex: 1; padding: 10px 16px; border-radius: var(--radius-pill); font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--c-coffee-2); background: transparent; border: none; transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease); }
.auth-tab.is-active{ background: var(--c-espresso); color: var(--c-offwhite); }

.auth-google-btn{
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--c-espresso);
  transition: border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease-spring), box-shadow var(--dur-s) var(--ease);
}
.auth-google-btn:hover{ border-color: var(--c-coffee-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36,22,17,.1); }
.auth-google-btn:active{ transform: translateY(0) scale(.98); }
.auth-google-btn__icon{ width: 20px; height: 20px; flex-shrink: 0; }
.auth-google-btn .auth-submit__label{ display: flex; align-items: center; gap: 10px; }

.auth-divider{ display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--c-coffee-2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after{ content: ''; flex: 1; height: 1px; background: var(--c-line); }

.auth-form{
  display: flex; flex-direction: column; gap: 16px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.auth-form[hidden]{ display: none; }
/* MASUK <-> DAFTAR crossfade: js/auth.js toggles these two classes for a
   beat instead of swapping [hidden] straight away, so the tab change reads
   as a smooth horizontal cross-dissolve rather than a hard cut. */
.auth-form.auth-form--out{ opacity: 0; transform: translateX(-14px); pointer-events: none; }
.auth-form.auth-form--in{ opacity: 0; transform: translateX(14px); }
.auth-field{ display: flex; flex-direction: column; gap: 7px; }
.auth-field span{ font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-coffee-2); }
.auth-field input{
  font-family: var(--f-body); font-size: 14.5px; color: var(--c-espresso);
  padding: 13px 16px; border-radius: var(--radius-m);
  border: 1px solid var(--c-line); background: #fff;
  transition: border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), transform .15s var(--ease);
}
.auth-field input:focus{ outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(173,138,82,.18); transform: translateY(-1px); }
.auth-field input::placeholder{ color: rgba(41,34,27,.35); }
.auth-form__error{
  font-size: 12.5px; color: #8A2C1F; background: rgba(138,44,31,.08);
  border: 1px solid rgba(138,44,31,.25); border-radius: var(--radius-s);
  padding: 9px 12px;
}
.auth-form__error.is-shaking{ animation: authErrorShake .4s var(--ease); }
@keyframes authErrorShake{
  10%, 90%{ transform: translateX(-1px); }
  20%, 80%{ transform: translateX(2px); }
  30%, 50%, 70%{ transform: translateX(-4px); }
  40%, 60%{ transform: translateX(4px); }
}

.auth-submit{ position: relative; margin-top: 2px; }
.auth-submit__spinner{
  position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  opacity: 0; visibility: hidden;
  animation: authSpin .7s linear infinite;
}
.auth-google-btn .auth-submit__spinner{ border: 2px solid rgba(41,34,27,.25); border-top-color: var(--c-espresso); }
.is-loading .auth-submit__label{ opacity: 0; }
.is-loading .auth-submit__spinner{ opacity: 1; visibility: visible; }
@keyframes authSpin{ to{ transform: rotate(360deg); } }

@media (max-width: 860px){
  /* The frame fills the whole screen, so if IT were the scroll container,
     scrolling it looks and feels exactly like "the whole screen scrolls" —
     that was the actual bug. Frame is now a hard, non-scrolling viewport-
     sized box; only .auth-screen__panel below is allowed to scroll, and
     it's capped to that same fixed size so it can never spill into it. */
  .auth-screen__frame{ padding: 0; align-items: flex-start; overflow: hidden; }
  .auth-screen__panel-wrap{ grid-template-columns: 1fr; height: 100%; max-height: none; min-height: 100%; border-radius: 0; }
  .auth-screen__visual{ display: none; }
  .auth-screen__panel{ padding: 64px 26px 40px; height: 100%; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .auth-screen__close{ top: 16px; right: 16px; }
}

/* =========================================================
   LOKASI
========================================================= */
.location{ padding: 100px 0 110px; }
.location__wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: stretch;
}
.location__map{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: 0 24px 60px rgba(36,22,17,.07);
}
.location__map iframe{
  width: 100%; height: 100%;
  border: 0; display: block;
}
.location__info{
  background: var(--c-offwhite);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 36px;
  display: flex; flex-direction: column;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(36,22,17,.07);
}
.location__info h3{ font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.location__address{ color: var(--c-coffee-2); font-size: 15px; margin-bottom: 4px; }
.location__coords{ color: var(--c-coffee-2); font-size: 13px; margin-bottom: 18px; }
.location__whatsapp{ font-size: 14px; color: var(--c-espresso); margin-bottom: 22px; }
.location__whatsapp a{ font-weight: 700; color: var(--c-coffee); }
.location__actions{ display: flex; flex-wrap: wrap; gap: 12px; }
.location__actions .btn--ghost{ color: var(--c-espresso); border-color: var(--c-line); }
.location__actions .btn--ghost:hover{ border-color: var(--c-coffee); }

@media (max-width: 780px){
  .location{ padding: 64px 0 72px; }
  .location__wrap{ grid-template-columns: 1fr; }
  .location__map{ aspect-ratio: 4/3; }
  .location__info{ padding: 28px; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px){
  .about{ grid-template-columns: 1fr; padding: 44px var(--gutter); }
  .about__media{ aspect-ratio: 16/9; }
  .profile{ grid-template-columns: 1fr; padding: 40px var(--gutter); }
  .vision{ grid-template-columns: 1fr; padding: 44px var(--gutter); }
  .blog__grid{ grid-template-columns: repeat(2, 1fr); }
  .footer__top{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 780px){
  .hamburger em{ display: none; }
  /* Hanya tombol Cari (anak langsung .navbar__actions) yang disembunyikan di mobile.
     Selector lama `.icon-btn:nth-child(1)` ikut menyembunyikan tombol Akun, karena
     tombol itu juga anak pertama di dalam .account-menu. */
  .navbar__actions > .icon-btn:nth-child(1){ display: none; }
  .account-dropdown{ max-width: calc(100vw - (var(--gutter) * 2)); }

  .footer__brand-media{ max-width: 100%; }
  .footer{ padding: 60px var(--gutter) 0; }
  .footer__top{ gap: 32px; padding-bottom: 40px; }
  .footer__col{ gap: 9px; }
  .footer__bottom{ padding: 20px 0; }
  .mobile-menu{ width: min(420px, 86vw); padding: 84px 24px 32px; }

  .hero__headline{ font-size: clamp(30px, 8.6vw, 44px); }
  .hero__desc{ max-width: 100%; font-size: 15.5px; }

  .section-head{ margin-bottom: 40px; }

  .about, .profile, .vision{ margin-bottom: 28px; }

  .why{ padding: 56px 0; }
  .why__grid{ grid-template-columns: 1fr; gap: 28px; margin: 0 var(--gutter); }

  .kios{ padding: 64px 0; }
  .kios-slide{ flex-basis: 84vw; }
  .kios-slide__img{ aspect-ratio: 4/3; }

  .blog__grid{ grid-template-columns: 1fr; }

  .moment{ height: 56vh; min-height: 380px; }

  .footer__top{ grid-template-columns: 1fr; }
  .final-cta{ padding: 90px var(--gutter); }

  .product-modal__panel{ grid-template-columns: 1fr; max-height: 92vh; }
  .product-modal__media{ aspect-ratio: 4/3; }
  .product-modal__body{ padding: 28px; }
  .cart-drawer__panel{ width: 100%; }
}

@media (max-width: 480px){
  .about__stats{ gap: 24px; }

  .mobile-menu{ width: 84vw; padding: 80px 20px 28px; }
  .mobile-menu__nav a{ font-size: clamp(24px, 7.5vw, 30px); gap: 10px; padding: 8px 0; }
}

/* =========================================================
   MOBILE FIXES — auth, product detail modal, cart bottom sheet
   Semua aturan ada di dalam media query mobile, jadi desktop
   (>780px / >860px) tidak terpengaruh. Scroll-lock background
   sudah ditangani lockBodyScroll() di script.js.
========================================================= */

/* ---- AUTH (<= 860px, sama dengan breakpoint existing) ----
   Akar masalah: .auth-screen__panel-wrap adalah grid tanpa tinggi baris
   yang pasti, sehingga height:100% pada .auth-screen__panel tidak
   ter-resolve dan bagian bawah form terpotong (overflow:hidden).
   Diganti flex column: panel-wrap = tinggi viewport, panel = sisa
   ruang + scroll internal. */
@media (max-width: 860px){
  .auth-screen,
  .auth-screen__frame{ height: 100vh; height: 100dvh; }
  .auth-screen__frame{ padding: 0; overflow: hidden; }
  .auth-screen__panel-wrap{
    display: flex; flex-direction: column;
    width: 100%; height: 100%; min-height: 0; max-height: none;
    margin: 0; border-radius: 0;
  }
  .auth-screen__panel{
    flex: 1 1 auto; min-height: 0; height: auto; max-height: none;
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: calc(64px + env(safe-area-inset-top, 0px)) 22px calc(32px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: 120px;
  }
  .auth-screen__close{ top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 40px; height: 40px; }
  /* 16px mencegah iOS zoom otomatis saat input difokus (yang menggeser viewport) */
  .auth-field input{ font-size: 16px; }
  .auth-submit, .auth-google-btn{ min-height: 48px; }
  .auth-form__error{ overflow-wrap: anywhere; }
}

/* ---- PRODUCT DETAIL MODAL + CART (<= 780px) ---- */
@media (max-width: 780px){
  .product-modal{
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .product-modal__panel{
    display: flex; flex-direction: column; overflow: hidden;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .product-modal__media{
    flex: 0 0 auto; aspect-ratio: auto;
    height: clamp(150px, 30vh, 280px);
    height: clamp(150px, 30dvh, 280px);
  }
  /* Body = area yang boleh scroll (hanya bila konten lebih tinggi dari layar).
     Deskripsi menyusut lebih dulu (min 96px, scroll sendiri); footer sticky
     di dasar body sebagai pengaman untuk layar sangat pendek. */
  .product-modal__body{
    flex: 1 1 auto; min-height: 0;
    padding: 22px 22px 0;
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .product-modal__body h3{ font-size: 24px; }
  .product-modal__rating{ margin-bottom: 16px; }
  .product-modal__weights{ margin-bottom: 18px; }
  .product-modal__description{
    flex: 0 1 auto; min-height: 96px; margin-bottom: 16px;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .product-modal__footer{
    position: sticky; bottom: 0; z-index: 1;
    flex-shrink: 0; flex-wrap: wrap; gap: 10px 14px;
    margin: auto -22px 0; padding: 14px 22px 18px;
    background: var(--c-cream);
  }
  .product-modal__price{ font-size: 20px; }
  .product-modal__footer .btn{ flex: 1 1 170px; min-height: 48px; padding: 13px 20px; white-space: nowrap; }

  /* Cart: bottom sheet di mobile (desktop tetap drawer kanan) */
  .cart-drawer__panel{
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    height: 90vh; height: 90dvh; max-height: 100%;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    box-shadow: 0 -18px 50px rgba(20,12,8,.28);
    transform: translateY(100%);
  }
  .cart-drawer.is-open .cart-drawer__panel{ transform: translateY(0); }
  .cart-drawer__panel::before{
    content: ''; position: absolute; top: 8px; left: 50%;
    width: 40px; height: 4px; border-radius: 4px;
    background: rgba(41,34,27,.18); transform: translateX(-50%);
  }
  .cart-drawer__head{ flex-shrink: 0; padding: 24px 20px 14px; }
  .cart-drawer__close{ width: 40px; height: 40px; margin-right: -8px; font-size: 24px; }
  .cart-drawer__items{
    min-height: 0; padding: 16px 20px; gap: 16px;
    overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .cart-drawer__footer{
    flex-shrink: 0;
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--c-offwhite);
    box-shadow: 0 -10px 24px rgba(20,12,8,.06);
  }
  .cart-drawer__checkout{ min-height: 52px; }
  .checkout-view{
    min-height: 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .checkout-view__back{ min-height: 40px; }
  .checkout-view__submit{ min-height: 52px; }
  .cart-item{ align-items: center; }
  .cart-item__img{ width: 72px; height: 72px; }
  .cart-item__body{ min-width: 0; flex: 1; }
  .cart-item__body h4{ font-size: 14.5px; overflow-wrap: anywhere; }
  .cart-item__row{ gap: 8px; }
  .cart-item__qty{ gap: 4px; }
  .cart-item__qty button{ width: 36px; height: 36px; font-size: 18px; }
  .cart-item__qty span{ min-width: 24px; text-align: center; }
  .cart-item__price{ font-size: 14px; white-space: nowrap; }
}

/* ---- AUTH DESKTOP pada layar tidak terlalu tinggi (laptop / jendela browser pendek) ----
   Form dipadatkan supaya Masuk & Daftar muat tanpa scroll. Panel tetap
   overflow-y:auto sebagai pengaman kalau ada error message tambahan. */
@media (min-width: 861px) and (max-height: 860px){
  .auth-screen__frame{ padding: 16px; }
  .auth-screen__panel-wrap{ max-height: calc(100vh - 32px); }
  .auth-screen__panel{ padding: 28px 44px; max-height: calc(100vh - 32px); }
  .auth-screen__head{ margin-bottom: 10px; }
  .auth-screen__head h3{ font-size: 22px; }
  .auth-screen__context{ margin-bottom: 12px; padding: 8px 12px; }
  .auth-screen__tabs{ margin-bottom: 12px; }
  .auth-tab{ padding: 8px 16px; }
  .auth-google-btn{ padding: 10px 20px; }
  .auth-divider{ margin: 12px 0; }
  .auth-form{ gap: 10px; }
  .auth-field{ gap: 4px; }
  .auth-field input{ padding: 9px 14px; }
  .auth-submit{ padding: 12px 32px; margin-top: 0; }
  .auth-screen__visual{ padding: 36px 40px; }
}
@supports (height: 100dvh){
  @media (min-width: 861px) and (max-height: 860px){
    .auth-screen__panel-wrap,
    .auth-screen__panel{ max-height: calc(100dvh - 32px); }
  }
}
/* Layar sangat pendek: sembunyikan eyebrow & rapatkan lagi */
@media (min-width: 861px) and (max-height: 680px){
  .auth-screen__panel{ padding: 20px 44px; }
  .auth-screen__head .eyebrow{ display: none; }
  .auth-screen__head{ margin-bottom: 8px; }
  .auth-screen__head h3{ font-size: 20px; }
  .auth-screen__tabs{ margin-bottom: 8px; }
  .auth-divider{ margin: 8px 0; }
  .auth-form{ gap: 8px; }
  .auth-field span{ font-size: 11px; }
  .auth-field input{ padding: 8px 14px; }
  .auth-submit{ padding: 10px 32px; }
}

/* ---- AUTH DESKTOP: tinggi card tetap ----
   Card sebelumnya mengikuti tinggi form, jadi berubah tinggi (melompat)
   setiap pindah Masuk <-> Daftar. Sekarang tinggi card dikunci; panel
   mengisi card dan hanya scroll bila konten memang lebih tinggi. */
@media (min-width: 861px){
  .auth-screen__panel-wrap{ height: 760px; grid-template-rows: minmax(0, 1fr); }
  .auth-screen__panel{ height: 100%; max-height: none; }
}
@media (min-width: 861px) and (max-height: 860px){
  .auth-screen__panel-wrap{ height: calc(100vh - 32px); height: calc(100dvh - 32px); }
}

/* =========================================================
   MOTION SAFETY NET — prefers-reduced-motion
   Every new interaction/entrance animation added in this pass
   is neutralised for users who've asked the OS for reduced
   motion. Existing site behaviour (instant, fully visible)
   is untouched — nothing here changes layout, only removes
   motion for these users.
========================================================= */
@media (prefers-reduced-motion: reduce){
  .navbar.is-entering,
  .navbar.is-entered{ opacity: 1 !important; transform: none !important; filter: none !important; }
  .icon-btn__badge.is-bump,
  .icon-btn.is-bump{ animation: none !important; }
  .hero__img{ transition: opacity .3s linear !important; filter: none !important; }
  .product-modal__body > *,
  .product-modal__media img,
  .search-overlay__input{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .account-dropdown,
  .toast,
  .auth-screen__panel-wrap{
    transition: opacity .15s linear !important;
    transform: none !important;
  }
  .auth-submit__spinner{ animation: none !important; }
}