/* Baksey Coffee — public website.
   Brand guide: brand/BRAND.md. Cream page (60%), latte/espresso (25%), olive (10%), photo colour.
   Type: Fraunces (display) + Inter (UI); Kantumruy Pro for Khmer text, Dangrek for Khmer display.
   Contrast: white text sits on espresso (#764A39, ~7:1) or darker. Latte (#A9744F) carries only
   large or decorative things; small olive text uses olive-600/700. */

@font-face { font-family: Fraunces; src: url(../assets/fonts/Fraunces-latin.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url(../assets/fonts/Fraunces-italic-latin.woff2) format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url(../assets/fonts/Inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Kantumruy Pro"; src: url(../assets/fonts/KantumruyPro-khmer.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }
@font-face { font-family: Dangrek; src: url(../assets/fonts/Dangrek-khmer.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC; }

:root {
  --cream: #F7F1EA;
  --paper: #FFFCF8;
  --latte-50: #FBF6F1;
  --latte-100: #F4E9DD;
  --latte-200: #E8D3BD;
  --latte-300: #D6B593;
  --latte: #A9744F;
  --latte-d: #8F5E3E;
  --espresso: #764A39;
  --latte-800: #5A372B;
  --roast: #3B241C;
  --ink: #2B1D16;
  --muted: #6B5448;
  --olive: #7E7F26;
  --olive-6: #686A1E;
  --olive-7: #535418;
  --olive-l: #C9CB6E;
  --olive-100: #ECECC8;
  --olive-50: #F7F7E8;
  --line: #E8D3BD;

  --display: Fraunces, "Kantumruy Pro", Georgia, serif;
  --body: Inter, "Kantumruy Pro", system-ui, sans-serif;
  --km-display: Dangrek, "Kantumruy Pro", sans-serif;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 10px 30px rgba(118, 74, 57, .10);
  --shadow-l: 0 24px 60px rgba(43, 29, 22, .20);
  --wrap: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* The logo's leaf-and-bean tiling as a quiet section texture. */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23764A39'%3E%3Cpath d='M10 60C10 36 24 20 50 20c0 26-16 40-40 40z'/%3E%3Cellipse cx='112' cy='40' rx='11' ry='15' transform='rotate(28 112 40)'/%3E%3Ccircle cx='70' cy='92' r='4'/%3E%3Cpath d='M150 150c0-22-13-38-38-38 0 24 14 38 38 38z'/%3E%3Cellipse cx='36' cy='124' rx='10' ry='14' transform='rotate(-24 36 124)'/%3E%3Ccircle cx='140' cy='84' r='3'/%3E%3C/g%3E%3Cg fill='none' stroke='%23F7F1EA' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 55L42 28M146 145L120 120M118 29c-9 6 3 16-12 24M42 112c-10 3 1 14-12 24'/%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 600px) { :root { --gutter: 32px; } }

html[lang="km"] { --display: "Kantumruy Pro", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.6 var(--body); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[lang="km"] body { line-height: 1.7; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--roast); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
[lang="km"] { font-family: "Kantumruy Pro", var(--body); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--espresso); margin: 0; line-height: 1.08; letter-spacing: -.015em; font-weight: 600; font-variation-settings: "SOFT" 60; }
html[lang="km"] :is(h1, h2) { font-family: var(--km-display); font-weight: 400; line-height: 1.5; letter-spacing: 0; }
html[lang="km"] :is(h3, h4) { font-family: "Kantumruy Pro", sans-serif; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--olive-6);
}
html[lang="km"] .eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }
.eyebrow::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37C3 17 15 3 37 3c0 22-14 34-34 34z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37C3 17 15 3 37 3c0 22-14 34-34 34z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 28px; max-width: 80ch; }
.fine.light { color: rgba(247, 241, 234, .72); }

.pattern { position: absolute; inset: 0; background: var(--tile) 0 0 / 160px; opacity: .035; pointer-events: none; }
.pattern.light { opacity: .035; filter: invert(1) brightness(1.6); }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--espresso); color: #fff; box-shadow: 0 10px 24px rgba(118, 74, 57, .28); }
.btn-primary:hover { background: var(--latte-800); transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--roast); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); }
.btn-cream svg { transition: transform .25s var(--ease); }
.btn-cream:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-light { background: var(--paper); color: var(--espresso); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-light:hover { box-shadow: inset 0 0 0 1.5px var(--espresso); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font: 600 15px/1 var(--body); color: var(--espresso); transition: all .18s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--espresso); }
.chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.chip svg { width: 17px; height: 17px; }
.chip .n { font-size: 12px; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font: 600 12px/1.3 var(--body); white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-sig { background: var(--roast); color: var(--olive-l); }
.badge-best { background: var(--olive-100); color: var(--olive-7); }
.badge-temp { background: rgba(255, 252, 248, .92); color: var(--espresso); }

/* ---------- announcement + header ---------- */
.announce { background: var(--roast); color: var(--latte-100); font: 500 14px/1 var(--body); overflow: hidden; }
.announce .track { display: flex; gap: 48px; padding: 11px 0; width: max-content; animation: marquee 44s linear infinite; }
.announce span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.announce svg { width: 14px; height: 14px; color: var(--olive-l); }
.announce:hover .track { animation-play-state: paused; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 234, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(118, 74, 57, .08); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font: 600 24px/1 Fraunces, serif; color: var(--espresso); letter-spacing: -.01em; }
.brand-text small { font: 500 11.5px/1.3 var(--body); color: var(--olive-6); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.brand-text small span { text-transform: none; letter-spacing: 0; font-size: 12px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 13px; border-radius: 999px; text-decoration: none;
  font: 500 15px/1 var(--body); color: var(--espresso); transition: background .15s;
}
.nav a:hover { background: var(--latte-100); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 42px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font: 600 14px/1 var(--body); color: var(--espresso);
}
.lang:hover { border-color: var(--espresso); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); }
.burger svg { margin: auto; width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-content: end; color: var(--cream); overflow: hidden; background: var(--roast); isolation: isolate; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 60%; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(59, 36, 28, .88) 0%, rgba(59, 36, 28, .62) 38%, rgba(59, 36, 28, 0) 70%),
    linear-gradient(0deg, rgba(59, 36, 28, .85) 0%, rgba(59, 36, 28, 0) 38%);
}
.leaves { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.leaf { position: absolute; color: var(--olive-l); opacity: .5; --vein: var(--roast); will-change: transform; }
.leaf.l1 { width: 120px; height: 120px; left: -30px; top: 12%; opacity: .35; }
.leaf.l2 { width: 56px; height: 56px; left: 44%; top: 8%; color: var(--latte-300); opacity: .45; }
.leaf.l3 { width: 70px; height: 70px; left: 36%; bottom: 26%; opacity: .3; transform: rotate(80deg); }
.leaf.l4 { width: 48px; height: 48px; right: 6%; top: 10%; color: var(--cream); opacity: .45; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: 96px 0 36px; }
.hero-copy { max-width: 640px; }
.greeting { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(247, 241, 234, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 14px/1.3 var(--body); color: var(--cream); }
.greeting .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive-l); box-shadow: 0 0 0 0 rgba(201, 203, 110, .7); animation: pulse 2s infinite; }
.greeting.closed .dot { background: var(--latte-300); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(201, 203, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 203, 110, 0); } }
.hero h1 { color: var(--cream); font-size: clamp(52px, 9vw, 112px); font-weight: 500; line-height: .98; margin: 22px 0 14px; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero h1 em { font-style: italic; color: var(--olive-l); font-weight: 400; }
html[lang="km"] .hero h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.45; letter-spacing: 0; }
html[lang="km"] .hero h1 em { font-style: normal; }
.hero-km { font: 400 clamp(20px, 2.4vw, 28px)/1.6 var(--km-display); color: var(--latte-200); margin-bottom: 16px; }
html[lang="km"] .hero-km { display: none; }
.hero .lead { color: rgba(247, 241, 234, .86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn-ghost { color: var(--cream); }
.hero-card {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; text-align: left; border: 0;
  background: rgba(255, 252, 248, .95); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-l);
  animation: bob 6s ease-in-out infinite; max-width: 320px; transition: transform .25s var(--ease);
}
.hero-card:hover { animation-play-state: paused; transform: translateY(-4px); }
.hero-card img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.hero-card b { display: block; font: 600 19px/1.2 var(--display); color: var(--espresso); }
.hero-card small { display: block; font-size: 13.5px; color: var(--muted); }
.hero-card .badge { margin-bottom: 6px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-facts { position: relative; z-index: 2; list-style: none; margin: 0 auto; padding: 22px 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid rgba(247, 241, 234, .2); }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts b { font: 500 30px/1.1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 14px; color: rgba(247, 241, 234, .75); }

/* ---------- marquee strip ---------- */
.strip { background: var(--olive); color: var(--cream); padding: 16px 0; overflow: hidden; }
.strip .track { display: flex; gap: 28px; width: max-content; animation: marquee 70s linear infinite; }
.strip .item { display: flex; align-items: center; gap: 28px; font: italic 400 24px/1 Fraunces, serif; white-space: nowrap; }
.strip .item span[lang="km"] { font: 400 20px/1.3 var(--km-display); font-style: normal; opacity: .85; }
.strip svg { width: 20px; height: 20px; color: var(--olive-l); --vein: var(--olive); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- best-sellers ---------- */
.picks { background: var(--latte-50); }
.pick-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 1fr; gap: 20px; }
.pick {
  position: relative; display: flex; flex-direction: column; padding: 0; text-align: left; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pick:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.pick .img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--latte-100); }
.pick .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pick:hover .img img { transform: scale(1.05); }
.pick .rank { position: absolute; right: 14px; top: 8px; font: italic 500 64px/1 Fraunces, serif; color: var(--cream); text-shadow: 0 4px 20px rgba(43, 29, 22, .45); }
.pick .body { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; align-content: start; }
.pick h3 { font-size: 22px; }
.pick .km { color: var(--muted); font-size: 14.5px; }
.pick .meter { height: 6px; border-radius: 6px; background: var(--latte-100); overflow: hidden; margin-top: 6px; }
.pick .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--olive), var(--olive-l)); border-radius: 6px; transition: width 1.2s var(--ease) .2s; }
.pick.in .meter i, .reveal.in .pick .meter i { width: var(--w); }
.pick .cups { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.pick .cups b { color: var(--olive-7); font-weight: 600; }
.pick.first { grid-row: span 2; }
.pick.first .img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.pick.first .img img { object-position: 50% 30%; }
.pick.first h3 { font-size: 30px; }
.pick.first .body { flex: none; }

/* ---------- menu ---------- */
.menu-section { background: var(--cream); overflow: hidden; }
.menu-bar { display: grid; gap: 14px; margin-bottom: 28px; position: relative; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; flex: 1; min-width: min(300px, 100%); max-width: 420px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
}
.search:focus-within { border-color: var(--espresso); }
.search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search input { border: 0; background: transparent; outline: 0; font: 500 16px var(--body); color: var(--ink); width: 100%; min-width: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--latte-100); gap: 2px; }
.seg button { border: 0; background: transparent; height: 40px; padding: 0 14px; border-radius: 999px; font: 600 14px/1 var(--body); color: var(--muted); transition: all .2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--espresso); box-shadow: 0 3px 10px rgba(118, 74, 57, .14); }
.cat-title { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 16px; }
.cat-title:first-child { margin-top: 0; }
.cat-title h3 { font-size: 28px; }
.cat-title span { color: var(--muted); font-size: 14px; }
.drinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.drink {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.drink:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: var(--latte-200); }
.drink .img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--latte-100); }
.drink .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.drink:hover .img img { transform: scale(1.06); }
.drink .tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.drink .temp { position: absolute; right: 10px; top: 10px; }
.drink .body { padding: 12px 16px 16px; display: grid; gap: 2px; flex: 1; }
.drink h4 { font-size: 19px; font-weight: 600; line-height: 1.2; }
.drink .alt { font-size: 14px; color: var(--muted); }
.drink .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 12px; gap: 8px; }
.price { font: 600 22px/1 var(--body); color: var(--espresso); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price-alt { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.plus { width: 38px; height: 38px; border-radius: 50%; background: var(--latte-100); color: var(--espresso); display: grid; place-items: center; transition: background .2s, color .2s, transform .3s var(--ease); flex: none; }
.drink:hover .plus { background: var(--espresso); color: #fff; transform: rotate(90deg); }
.plus svg { width: 18px; height: 18px; }
.empty { text-align: center; padding: 56px 0; color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.empty svg { width: 64px; height: 64px; color: var(--olive-l); --vein: var(--cream); }

/* ---------- signatures ---------- */
.spotlight { background: var(--roast); color: var(--cream); overflow: hidden; }
.spotlight::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 500px at 20% 50%, rgba(126, 127, 38, .35), transparent 70%); }
.spotlight .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.spotlight h2 { color: var(--cream); margin: 14px 0 16px; }
.spotlight .eyebrow { color: var(--olive-l); }
.spotlight .lead { color: rgba(247, 241, 234, .8); }
.spot-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.spot-art .ring { position: absolute; inset: 0; animation: spin 50s linear infinite; }
.spot-art .ring text { font: 600 10.5px Inter, sans-serif; letter-spacing: 3.2px; fill: var(--olive-l); }
.spot-art .big { position: absolute; inset: 13%; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.spot-art .big img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: opacity .35s; }
@keyframes spin { to { transform: rotate(360deg); } }
.spot-list { display: grid; gap: 12px; margin-top: 30px; }
.spot-item {
  display: flex; gap: 16px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 20px; text-align: left;
  background: rgba(247, 241, 234, .07); border: 1px solid rgba(247, 241, 234, .14); color: var(--cream); transition: background .2s, transform .25s var(--ease);
}
.spot-item:hover, .spot-item:focus-visible { background: rgba(247, 241, 234, .14); transform: translateX(4px); }
.spot-item img { width: 72px; height: 72px; border-radius: 16px; flex: none; object-fit: cover; }
.spot-item b { font: 600 20px/1.25 var(--display); display: block; }
.spot-item small { color: rgba(247, 241, 234, .72); font-size: 14px; display: block; }
.spot-item .price { color: var(--olive-l); margin-left: auto; font-size: 20px; text-align: right; }
.spot-item .price small { font-size: 12px; font-weight: 500; }

/* ---------- story ---------- */
.story { background: var(--cream); }
.story .intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-media { position: relative; padding-bottom: 96px; }
.film { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--roast); box-shadow: var(--shadow-l); }
.film img, .film video { width: 100%; height: 100%; object-fit: cover; }
.big-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0;
  background: var(--cream); color: var(--espresso); box-shadow: 0 0 0 12px rgba(247, 241, 234, .25); transition: transform .2s var(--ease);
}
.big-play:hover { transform: scale(1.07); }
.big-play svg { width: 30px; height: 30px; margin: auto; transform: translateX(2px); }
.story-inset { position: absolute; right: -14px; bottom: 0; width: 27%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; border: 6px solid var(--cream); box-shadow: var(--shadow-l); }
.story .text { display: grid; gap: 18px; }
.quote { font: 400 30px/1.5 var(--km-display); color: var(--olive); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(48px, 7vw, 80px); }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; background: var(--olive-50); color: var(--olive); --vein: var(--olive-50); }
.pillar:nth-child(even) .ic { background: var(--latte-100); color: var(--espresso); --vein: var(--latte-100); }
.pillar .ic svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 21px; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.counter { border-radius: var(--radius); padding: 24px; background: var(--espresso); color: var(--cream); position: relative; overflow: hidden; }
.counter::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 90px; height: 90px; background: var(--tile) 0 0 / 160px; opacity: .12; filter: invert(1); border-radius: 50%; }
.counter b { font: 500 46px/1 var(--display); color: var(--olive-l); display: block; font-variant-numeric: tabular-nums; }
.counter span { font-size: 15px; color: rgba(247, 241, 234, .85); }
.timeline { list-style: none; padding: 0; margin: clamp(48px, 7vw, 80px) 0 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: repeating-linear-gradient(90deg, var(--latte-300) 0 8px, transparent 8px 14px); }
.tl { position: relative; padding-top: 44px; }
.tl::before { content: ""; position: absolute; top: 4px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 4px solid var(--olive); }
.tl.soon::before { border-style: dashed; border-color: var(--latte); }
.tl b { font: 500 15px/1 var(--body); color: var(--olive-6); letter-spacing: .04em; }
.tl h4 { font-size: 20px; margin: 8px 0 4px; }
.tl p { font-size: 15px; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery-section { background: var(--latte-50); }
.gallery { columns: 4 240px; column-gap: 16px; }
.shot { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--latte-100); break-inside: avoid; position: relative; }
.shot img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .4s; }
.shot:hover img { transform: scale(1.04); filter: saturate(1.1); }
.shot::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13.5px; color: var(--cream); text-align: left; background: linear-gradient(0deg, rgba(59, 36, 28, .8), transparent); opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }

/* ---------- perches ---------- */
.perches { background: var(--cream); }
.perch-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.perch { background: var(--paper); border-radius: 28px; border: 1px solid var(--line); overflow: hidden; display: grid; }
.perch.open-card { grid-template-columns: .8fr 1.2fr; }
.perch .photo { position: relative; min-height: 100%; background: var(--roast); }
.perch .photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.perch .info { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.perch h3 { font-size: 28px; }
.perch .sub { color: var(--muted); font-size: 15px; margin-top: -8px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.status.is-open { color: var(--olive-7); }
.status.is-closed { color: var(--latte-800); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.is-open .dot { background: var(--olive); animation: pulse 2s infinite; }
.facts { display: grid; gap: 8px; font-size: 15.5px; }
.facts div { display: flex; gap: 10px; align-items: flex-start; }
.facts svg { width: 18px; height: 18px; color: var(--olive); flex: none; margin-top: 3px; }
.facts a { text-decoration: none; font-weight: 600; color: var(--espresso); }
.hours { display: flex; gap: 3px; margin-top: 2px; }
.hours i { flex: 1; height: 8px; border-radius: 3px; background: var(--latte-100); }
.hours i.on { background: var(--olive-l); }
.hours i.now { background: var(--olive); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--olive); }
.hours-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.services { display: flex; gap: 8px; flex-wrap: wrap; }
.services span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--olive-50); font: 500 13.5px/1.2 var(--body); color: var(--olive-7); }
.services svg { width: 15px; height: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.map { margin-top: 4px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--latte-100) var(--tile) 0 0 / 120px; position: relative; display: grid; place-items: center; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(244, 233, 221, .9); }
.map button { position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map small { position: absolute; left: 12px; bottom: 8px; font-size: 12px; color: var(--muted); }
.perch.soon { border: 2px dashed var(--latte-300); background: var(--latte-50); place-content: center; text-align: center; padding: clamp(24px, 4vw, 40px); gap: 14px; justify-items: center; }
.perch.soon .nest-art { width: 120px; height: 120px; color: var(--olive-l); --vein: var(--latte-50); position: relative; }
.perch.soon .nest-art svg { position: absolute; }
.perch.soon p { color: var(--muted); max-width: 34ch; }
.tag-soon { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--olive-100); color: var(--olive-7); font: 600 13px/1.2 var(--body); }

/* ---------- nest ---------- */
.nest { background: linear-gradient(160deg, var(--espresso), var(--roast) 70%); color: var(--cream); overflow: hidden; }
.nest .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.nest h2 { color: var(--cream); margin: 14px 0 16px; }
.nest .eyebrow { color: var(--olive-l); }
.nest .lead { color: rgba(247, 241, 234, .82); }
.steps { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps li { padding: 16px; border-radius: 18px; background: rgba(247, 241, 234, .07); border: 1px solid rgba(247, 241, 234, .13); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--olive-l); color: var(--roast); font: 600 15px/1 var(--body); margin-bottom: 10px; }
.steps b { display: block; font: 600 17px/1.3 var(--display); color: var(--cream); }
html[lang="km"] .steps b { font-family: "Kantumruy Pro", sans-serif; }
.steps span { font-size: 14.5px; color: rgba(247, 241, 234, .75); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-radius: 16px; background: #120b08; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .22); transition: transform .2s var(--ease); }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store b { font: 600 18px/1.1 var(--body); }
.phone-wrap { display: grid; place-items: center; }
.phone {
  width: min(310px, 100%); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 11px; background: #120b08;
  box-shadow: 0 50px 90px rgba(0, 0, 0, .5), inset 0 0 0 2px #4a3328; transform: rotate(4deg); transition: transform .6s var(--ease);
}
.phone:hover { transform: rotate(0); }
.screen { height: 100%; border-radius: 34px; background: var(--cream); overflow: hidden; padding: 38px 16px 16px; display: grid; gap: 14px; align-content: start; color: var(--ink); position: relative; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #120b08; }
.app-top { display: flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--display); color: var(--espresso); }
.app-top img { width: 34px; height: 34px; border-radius: 10px; background: var(--latte); padding: 4px; }
.nest-card { border-radius: 20px; padding: 16px; background: linear-gradient(140deg, var(--olive), var(--olive-7)); color: var(--cream); position: relative; overflow: hidden; }
.nest-card::after { content: ""; position: absolute; inset: 0; background: var(--tile) 0 0 / 110px; opacity: .1; filter: invert(1); }
.nest-head { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 1; }
.nest-head b { font: italic 500 24px/1 Fraunces, serif; }
.nest-head span { font-size: 13px; opacity: .85; font-variant-numeric: tabular-nums; }
.feathers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 10px; position: relative; z-index: 1; }
.feathers i { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(247, 241, 234, .5); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.feathers i svg { width: 60%; height: 60%; color: var(--olive-7); --vein: var(--cream); opacity: 0; transform: scale(.3) rotate(-40deg); transition: all .45s var(--ease); }
.feathers i.on { background: var(--cream); border-style: solid; border-color: var(--cream); }
.feathers i.on svg { opacity: 1; transform: none; }
.feathers i.free { border-color: var(--olive-l); background: rgba(201, 203, 110, .25); }
.feathers i.free svg { opacity: 1; transform: none; color: var(--olive-l); }
.nest-card p { font-size: 12.5px; opacity: .9; position: relative; z-index: 1; }
.app-list { display: grid; gap: 8px; }
.app-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.app-item img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.app-item b { font-size: 13.5px; display: block; color: var(--espresso); line-height: 1.25; }
.app-item span { font-size: 12px; color: var(--muted); }
.app-item em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 13px; color: var(--espresso); }

/* ---------- group orders ---------- */
.groups .card { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border-radius: 32px; background: var(--olive-50); border: 1px solid var(--olive-100); }
.groups .art { position: relative; min-height: 320px; }
.groups .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.groups .text { padding: clamp(24px, 5vw, 56px); display: grid; gap: 16px; align-content: center; justify-items: start; }
.packs { display: grid; gap: 10px; width: 100%; }
.pack { display: flex; align-items: center; gap: 14px; background: var(--paper); padding: 10px 16px 10px 10px; border-radius: 18px; border: 1px solid var(--olive-100); }
.pack .cups { display: flex; flex: none; }
.pack .cups img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); margin-left: -14px; }
.pack .cups img:first-child { margin-left: 0; }
.pack > div { flex: 1; min-width: 0; }
.pack b { font: 600 17px/1.25 var(--display); color: var(--espresso); display: block; }
html[lang="km"] .pack > div { flex: 1; min-width: 0; }
.pack b { font-family: "Kantumruy Pro", sans-serif; }
.pack small { color: var(--muted); font-size: 13.5px; }
.pack .price { margin-left: auto; font-size: 19px; text-align: right; }
.pack .price small { display: block; font-weight: 500; }

/* ---------- faq + contact ---------- */
.faq-contact { background: var(--latte-50); }
.faq-contact .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font: 600 19px/1.35 var(--display); color: var(--espresso); }
html[lang="km"] .faq summary { font-family: "Kantumruy Pro", sans-serif; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); color: var(--olive); margin-top: 2px; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.contact-card { background: var(--paper); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 10px; }
.contact-card h3 { font-size: 30px; }
.contact-card > p { color: var(--muted); }
.contact-card form { display: grid; gap: 14px; margin-top: 10px; }
.contact-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--espresso); }
.field :is(input, select, textarea) {
  width: 100%; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream);
  padding: 13px 14px; font: 500 16px var(--body); color: var(--ink); outline: 0;
}
.field :is(input, select, textarea):focus { border-color: var(--espresso); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.hotline a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--espresso); font-size: 18px; }
.hotline svg { width: 20px; height: 20px; color: var(--olive); }
.contact-card .btn { justify-self: start; }

/* ---------- footer ---------- */
.footer { background: var(--roast); color: rgba(247, 241, 234, .75); padding: 72px 0 30px; font-size: 15px; position: relative; overflow: hidden; }
.footer .wrap { position: relative; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h4 { color: var(--cream); font-size: 18px; margin-bottom: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--olive-l); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-brand img { width: 120px; height: auto; }
.footer .about { margin: 18px 0 0; max-width: 30ch; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid rgba(247, 241, 234, .2); background: rgba(247, 241, 234, .07); color: #fff; padding: 0 18px; font: 500 15px var(--body); }
.newsletter .btn { background: var(--cream); color: var(--roast); box-shadow: none; }
.footer .legal { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; border-top: 1px solid rgba(247, 241, 234, .12); margin-top: 48px; padding-top: 22px; font-size: 13.5px; }

/* ---------- modal + toast ---------- */
.modal { border: 0; padding: 0; border-radius: 28px; width: min(900px, 100% - 24px); max-height: min(92vh, 900px); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-l); overflow: hidden; }
.modal::backdrop { background: rgba(43, 29, 22, .62); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal .grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal .art { background: var(--latte-100); position: relative; }
.modal .art img { width: 100%; height: 100%; object-fit: cover; }
.modal .content { padding: 30px; display: grid; gap: 14px; align-content: start; overflow: auto; max-height: min(92vh, 900px); }
.modal .close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); box-shadow: var(--shadow); z-index: 3; }
.modal .close svg { width: 20px; height: 20px; margin: auto; }
.modal h3 { font-size: 32px; }
.modal .alt { color: var(--muted); margin-top: -8px; }
.modal h5 { margin: 6px 0 0; font: 600 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="km"] .modal h5 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.modal .prices { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.modal .prices .price { font-size: 34px; }
.temp-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--latte-100); gap: 2px; justify-self: start; }
.temp-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 14.5px/1 var(--body); color: var(--muted); }
.temp-toggle button svg { width: 17px; height: 17px; }
.temp-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--espresso); box-shadow: 0 3px 10px rgba(118, 74, 57, .14); }
.sweet { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sweet span { text-align: center; padding: 8px 0 6px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--line); position: relative; font-variant-numeric: tabular-nums; }
.sweet span i { display: block; height: 4px; margin: 5px 6px 0; border-radius: 3px; background: var(--latte-300); transform-origin: left; }
.sweet span.def { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.sweet span.def i { background: var(--olive-l); }
.note { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--olive); }
.lightbox { position: relative; background: var(--roast); display: grid; place-items: center; }
.lightbox img { max-height: min(84vh, 860px); width: auto; margin: auto; }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 70px 18px 20px; color: var(--cream); background: linear-gradient(0deg, rgba(59, 36, 28, .85), transparent); font-size: 15px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(247, 241, 234, .9); color: var(--espresso); display: grid; place-items: center; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); z-index: 100;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 16px; max-width: calc(100% - 32px);
  background: var(--roast); color: #fff; font-weight: 500; box-shadow: var(--shadow-l);
  visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s var(--ease); }
.toast svg { width: 20px; height: 20px; color: var(--olive-l); flex: none; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--espresso); color: #fff; box-shadow: var(--shadow-l); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; margin: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- careers + staff card check (careers.html, verify.html) ---------- */
.page-intro { background: var(--latte-50); padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.page-intro .wrap { position: relative; }
.page-intro h1 { font-size: clamp(38px, 6vw, 64px); }
html[lang="km"] .page-intro h1 { font-family: var(--km-display); font-weight: 400; line-height: 1.5; letter-spacing: 0; font-size: clamp(30px, 4.6vw, 48px); }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.why svg { width: 28px; height: 28px; flex: none; color: var(--olive); --vein: var(--paper); }
.why b { display: block; color: var(--espresso); font-weight: 600; }
.why span { display: block; color: var(--muted); font-size: 15px; }
.jobs-section { padding-top: clamp(32px, 5vw, 56px); }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.jobs-state { grid-column: 1 / -1; color: var(--muted); display: grid; gap: 14px; justify-items: start; max-width: 62ch; }
.job { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.job h2 { font-size: clamp(24px, 3vw, 30px); }
html[lang="km"] .job h2 { font-family: "Kantumruy Pro", sans-serif; font-weight: 600; font-size: 24px; line-height: 1.5; }
.job-branch { display: flex; align-items: center; gap: 6px; color: var(--olive-7); font-weight: 600; font-size: 15px; margin-top: 4px; }
.job-branch svg { width: 16px; height: 16px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-meta span { background: var(--latte-100); color: var(--espresso); border-radius: 999px; padding: 4px 10px; font-size: 13.5px; font-weight: 600; }
.job-desc { color: var(--muted); white-space: pre-line; }
.job .btn { justify-self: start; }
.modal-form { width: min(640px, 100% - 24px); }
.modal-form .content { padding: clamp(22px, 4vw, 34px); max-height: min(92vh, 900px); overflow: auto; }
.modal-form h3 { font-size: 28px; padding-right: 48px; }
html[lang="km"] .modal-form h3 { font-size: 22px; }
.modal-form form { display: grid; gap: 14px; }
.modal-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-form .btn { justify-self: start; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.field-error { color: #b91c1c; font-size: 13.5px; font-weight: 600; }
.form-error { background: #fee2e2; color: #7f1d1d; border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.form-error .detail { font-size: 13.5px; opacity: .85; }
.form-ok { display: flex; gap: 10px; align-items: flex-start; background: var(--olive-50); color: var(--olive-7); border: 1px solid var(--olive-100); border-radius: 14px; padding: 14px; font-weight: 600; }
.form-ok svg { width: 22px; height: 22px; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--espresso); }
/* The honeypot: off-screen, out of the tab order and of the accessibility tree (aria-hidden on its box). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.footer .cols.cols-short { grid-template-columns: 1.3fr 1fr 1fr; }
.footer-slim { padding: 8px 0 26px; }
.footer-slim .legal { margin-top: 0; }
.hotline-light a { color: var(--cream); font-weight: 600; font-size: 18px; }
.verify-card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); max-width: 640px; display: grid; gap: 18px; }
.verify-card.valid { border-color: #6ee7b7; }
.verify-card.invalid { border-color: #fca5a5; }
.verify-badge { display: flex; gap: 14px; align-items: flex-start; }
.verify-badge svg { width: 44px; height: 44px; flex: none; }
.verify-badge.ok svg { color: #047857; }
.verify-badge.bad svg { color: #b91c1c; }
.verify-badge.info svg { color: var(--olive); width: 28px; height: 28px; }
.verify-badge h2 { font-size: clamp(26px, 4vw, 34px); }
html[lang="km"] .verify-badge h2 { font-family: "Kantumruy Pro", sans-serif; font-weight: 600; font-size: 24px; line-height: 1.5; }
.verify-badge p { color: var(--muted); }
.verify-rows { margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.verify-row { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; }
.verify-row dt { color: var(--muted); font-size: 14.5px; }
.verify-row dd { margin: 0; font-weight: 600; color: var(--espresso); font-size: 18px; }
.verify-row .other { display: block; font-weight: 500; font-size: 15px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-actions .btn-primary { display: none; }
  .nav.open {
    display: grid; position: absolute; top: 72px; left: 0; right: 0; padding: 10px var(--gutter) 18px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open a { padding: 14px; font-size: 17px; }
  .nav a.active::after { display: none; }
  .header-actions { margin-left: auto; }
  .pillars, .counters { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .perch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-inner, .spotlight .wrap, .story .intro, .nest .wrap, .faq-contact .wrap, .groups .card { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 160px; }
  .hero-shade { background: linear-gradient(0deg, rgba(59, 36, 28, .95) 0%, rgba(59, 36, 28, .75) 45%, rgba(59, 36, 28, .15) 80%); }
  .hero-photo img { object-position: 50% 30%; }
  .hero-card { justify-self: start; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .pick.first { grid-column: span 2; grid-row: auto; }
  .pick.first .img { aspect-ratio: 16 / 9; min-height: 0; }
  .modal .grid { grid-template-columns: 1fr; }
  .modal .art { max-height: 260px; overflow: hidden; }
  .modal .content { max-height: none; }
  .modal { overflow: auto; }
  .spot-art { max-width: 400px; }
  .phone { width: min(280px, 80%); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .timeline::before { display: none; }
  .groups .card { grid-template-columns: minmax(0, 1fr); }
  .groups .art { min-height: 260px; aspect-ratio: 16 / 10; }
  .perch.open-card { grid-template-columns: 1fr; }
  .perch .photo { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-text b { font-size: 21px; }
  .brand-text small { font-size: 10.5px; }
  .hero h1 { font-size: 54px; }
  html[lang="km"] .hero h1 { font-size: 40px; }
  .hero-inner { padding-top: 200px; gap: 24px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-card { max-width: none; width: 100%; }
  .hero-facts b { font-size: 24px; }
  .strip .item { font-size: 20px; }
  /* Best-sellers become a swipeable row on phones. */
  .pick-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .pick-grid::-webkit-scrollbar { display: none; }
  .pick, .pick.first { flex: 0 0 78%; scroll-snap-align: center; }
  .pick.first .img { aspect-ratio: 4 / 3; flex: none; }
  .pick.first h3 { font-size: 22px; }
  .pick .rank { font-size: 52px; }
  .drinks { grid-template-columns: 1fr 1fr; gap: 12px; }
  .drink { border-radius: 18px; }
  .drink .body { padding: 10px 12px 12px; }
  .drink h4 { font-size: 16px; }
  html[lang="km"] .drink h4 { font-size: 15px; }
  .drink .alt { font-size: 12.5px; }
  .drink .tags .badge:nth-child(n+2) { display: none; }
  .drink .temp { display: none; }
  .badge { font-size: 11px; padding: 3px 8px; }
  .price { font-size: 18px; }
  .price-alt { font-size: 12px; }
  .plus { width: 32px; height: 32px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .menu-tools { flex-wrap: nowrap; }
  .search { min-width: 0; }
  .seg button { padding: 0 10px; font-size: 13px; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .counter { padding: 18px; }
  .story-media { padding-bottom: 70px; }
  .story-inset { width: 34%; }
  .counter b { font-size: 32px; }
  .story-inset { width: 38%; right: -6px; }
  .gallery { columns: 2; column-gap: 10px; }
  .shot { margin-bottom: 10px; border-radius: 14px; }
  .contact-card .row, .modal-form .row { grid-template-columns: 1fr; }
  .jobs, .why, .footer .cols.cols-short { grid-template-columns: 1fr; }
  .verify-row { grid-template-columns: 1fr; gap: 2px; }
  .footer .cols { grid-template-columns: 1fr; }
  .lang { padding: 0 10px; }
  .map { aspect-ratio: 4 / 3; }
  .pack { align-items: flex-start; }
  .pack .cups img:nth-child(n+2) { display: none; }
  .modal .content { padding: 22px; }
  .modal h3 { font-size: 26px; }
  .sweet span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .pick .meter i { width: var(--w); }
}

/* Phones: the portrait tray photo sits on top in full, the words land below it. */
@media (max-width: 700px) {
  .hero-photo { bottom: auto; height: 128vw; }
  .hero-photo img { object-position: 50% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(59, 36, 28, .35) 0, rgba(59, 36, 28, 0) 22%, rgba(59, 36, 28, 0) calc(128vw - 200px), var(--roast) calc(128vw - 10px)); }
  .hero-inner { padding-top: calc(128vw - 100px); }
  .leaf.l3 { display: none; }
}
