/* =========================================================
   Moustache — Lamai, Koh Samui
   Warm dark theme · one accent (warm gold) · mobile-first
   ========================================================= */

:root {
  --bg: #14110e;
  --bg-2: #1c1813;
  --line: rgba(243, 233, 215, 0.12);
  --cream: #f3e9d7;
  --muted: #a89c88;
  --gold: #c9a15b;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --thai: "Noto Serif Thai", "Leelawadee UI", "Thonburi", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --gutter: 16px;
  --max: 1240px;
  --nav-h: 64px;
  /* vertical rhythm: one value for every section */
  --section-y: 44px;
  --head-gap: 24px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --nav-h: 72px; --section-y: 60px; --head-gap: 32px; }
}
@media (min-width: 1200px) {
  :root { --section-y: 76px; --head-gap: 40px; }
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--gold); color: var(--bg); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow,
.label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.label {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.label__th {
  font-family: var(--thai);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 8vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
}

/* word-split reveal (JS adds spans) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: rgba(243, 233, 215, 0.4); }
.btn:active { transform: scale(0.97); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: #1a140c; }
.btn--gold:hover { background: #d8b373; border-color: #d8b373; }

.btn--small { min-height: 38px; padding: 0 16px; font-size: 13px; }

.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; padding: 8px 16px;
  border: 1px solid rgba(201, 161, 91, 0.45); border-radius: 999px;
  color: var(--gold); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease), transform 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(20, 17, 14, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.02em;
}
.nav__brand img { width: 44px; height: auto; }
.nav__brand span { display: none; }

.nav__links { display: none; gap: 28px; font-size: 14px; color: var(--muted); align-items: center; }
.nav__links a, .nav__menu { transition: color 0.3s; }
.nav__links a:hover, .nav__menu:hover { color: var(--cream); }
.nav__menu { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: 14px; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang {
  appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--line); color: var(--cream);
  height: 38px; min-width: 44px; padding: 0 10px; border-radius: 999px;
  font: 600 12px/1 var(--sans); letter-spacing: 0.12em;
}
.lang:hover { border-color: rgba(243, 233, 215, 0.4); }

/* Language picker: active language in gold, the 3 others drop down as round bubbles */
.langs { position: relative; }
.langs .lang { width: 38px; min-width: 0; padding: 0; color: var(--gold); border-color: rgba(201, 161, 91, 0.55); }
.langs .lang:hover, .langs.is-open .lang { border-color: var(--gold); }
.langs__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.langs__opt {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 17, 14, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cream);
  font: 600 11px/1 var(--sans); letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, border-color 0.3s, color 0.3s;
}
.langs.is-open .langs__menu li:nth-child(2) .langs__opt { transition-delay: 0.03s; }
.langs.is-open .langs__menu li:nth-child(3) .langs__opt { transition-delay: 0.06s; }
.langs.is-open .langs__menu li:nth-child(4) .langs__opt { transition-delay: 0.09s; }
.langs.is-open .langs__menu { pointer-events: auto; }
.langs.is-open .langs__opt { opacity: 1; visibility: visible; transform: none; }
.langs__opt:hover, .langs__opt:focus-visible { border-color: var(--gold); color: var(--gold); }

/* WhatsApp: icon + label on desktop, round icon-only on phones. Site colours only. */
.nav__wa { gap: 8px; }
.nav__wa svg { color: var(--gold); flex: none; }
@media (max-width: 767px) {
  .nav__wa { width: 38px; padding: 0; border-radius: 50%; }
  .nav__wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.btn[aria-disabled="true"]:hover { border-color: var(--line); }
.btn--gold[aria-disabled="true"]:hover { background: var(--gold); border-color: var(--gold); }

@media (min-width: 540px) { .nav__brand span { display: inline; } }
@media (min-width: 960px) { .nav__links { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  /* fallback image when the video can't play */
  background: var(--bg) url("assets/img/opening-desktop-poster.webp") center / cover no-repeat;
}
.hero__media {
  position: absolute; inset: -6% 0 0 0; z-index: -2;
  will-change: transform;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Warm dark veil: radial, darkest behind the text (≈55 %), lighter towards the edges (≈45 %).
   Extra layers: a fade into the page at the bottom, and (desktop) the grey background on the left darkened. */
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0) 72%, rgba(20, 17, 14, 0.92) 100%),
    radial-gradient(ellipse 65% 60% at 50% 50%, rgba(24, 16, 9, 0.58) 0%, rgba(24, 16, 9, 0.58) 45%, rgba(24, 16, 9, 0.45) 100%);
}
@media (min-width: 769px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(20, 17, 14, 0) 72%, rgba(20, 17, 14, 0.92) 100%),
      linear-gradient(90deg, rgba(20, 17, 14, 0.85) 0%, rgba(20, 17, 14, 0.5) 12%, rgba(20, 17, 14, 0) 28%),
      radial-gradient(ellipse 45% 60% at 50% 50%, rgba(24, 16, 9, 0.58) 0%, rgba(24, 16, 9, 0.58) 45%, rgba(24, 16, 9, 0.45) 100%);
  }
}
.hero__content {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 22px;
  padding: 0 var(--gutter);
}
.hero__eyebrow { color: var(--cream); text-shadow: 0 1px 12px rgba(24, 16, 9, 0.55); }
.hero__title img {
  width: min(64vw, 340px);
  height: auto;
}
.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3.4vw, 28px);
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(24, 16, 9, 0.55);
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .hero { background-image: url("assets/img/opening-mobile-poster.webp"); }
  .hero__content { gap: 18px; }
  .hero__title img { width: min(58vw, 260px); }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom));
  width: 24px; height: 40px; margin-left: -12px;
  border: 1px solid rgba(243, 233, 215, 0.45); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--cream);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.section__head { margin-bottom: var(--head-gap); }

/* ---------- Concept panels ---------- */
.concept { padding-top: calc(var(--section-y) * 1.2); }
.panels {
  display: grid;
  gap: 12px;
}
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 62vh;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  outline-offset: 4px;
}
.panel__bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--bg-2) var(--img) center / cover no-repeat;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: brightness(0.62) saturate(0.95);
}
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0) 35%, rgba(20, 17, 14, 0.88) 100%);
}
.panel__body { padding: 24px; width: 100%; }
.panel__glyph {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--serif); font-size: 44px; line-height: 1;
  color: var(--gold); opacity: 0.85;
}
.panel__glyph:lang(th) { font-family: var(--thai); font-size: 26px; }
.panel__tag {
  display: inline-block; margin-bottom: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.panel__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6.4vw, 58px); line-height: 1.02;
}
.panel__text {
  margin-top: 10px; max-width: 32ch; color: rgba(243, 233, 215, 0.84);
}

@media (hover: hover) and (min-width: 900px) {
  .panels {
    display: flex;
    height: 70vh;
    min-height: 520px;
    max-height: 760px;
  }
  .panel {
    flex: 1 1 0;
    min-height: 0;
    transition: flex-grow 1s var(--ease);
  }
  .panel__text {
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .panel__bg { filter: brightness(0.45) saturate(0.75); }
  .panels:hover .panel,
  .panels:focus-within .panel { flex-grow: 0.8; }
  .panels .panel:hover,
  .panels .panel:focus-visible,
  .panels .panel:focus-within { flex-grow: 2.2; }
  .panel:hover .panel__bg,
  .panel:focus-visible .panel__bg { transform: scale(1); filter: brightness(0.7) saturate(1); }
  .panel:hover .panel__text,
  .panel:focus-visible .panel__text { opacity: 1; transform: none; transition-delay: 0.2s; }
}

/* ---------- Coffee: video block + text, no pin ---------- */
.coffee__row {
  display: grid;
  gap: 32px;
  align-items: center;
}
.coffee__media {
  position: relative;
  width: 100%;
  max-width: 640px;            /* never upscale the 640 px source */
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  margin: 0 auto;
}
.coffee__video,
.coffee__still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.coffee__video { z-index: 1; opacity: 0; transition: opacity 0.6s var(--ease); }
.coffee__video.is-playing { opacity: 1; }
.coffee__lines {
  margin-top: 20px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3.2vw, 30px); line-height: 1.35;
  color: rgba(243, 233, 215, 0.92);
}

@media (min-width: 900px) {
  .coffee__row { grid-template-columns: minmax(0, 400px) 1fr; gap: 72px; }
  .coffee__media { max-width: 400px; margin: 0; }
}


/* ---------- Signature cards (no prices) ---------- */
.cards {
  display: grid;
  gap: 36px 20px;
}
.card__img {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  margin-bottom: 16px;
}
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__img img { transform: scale(1.04); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.card p { color: var(--muted); margin-top: 4px; font-size: 15px; }

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card:nth-child(3n + 2) { margin-top: 40px; }
}
.signature__more { margin-top: var(--head-gap); display: flex; justify-content: center; }
@media (min-width: 1024px) { .signature__more { margin-top: calc(var(--head-gap) + 40px); } } /* clears the offset middle column */

/* Signature → Ambiance: half the usual gap (the button already closes the block) */
.signature { padding-bottom: calc(var(--section-y) * 0.6); }
.ambiance { padding-top: calc(var(--section-y) * 0.6); }

/* ---------- Ambiance: native swipe gallery ---------- */
.ambiance { max-width: none; padding-left: 0; padding-right: 0; }
.ambiance .section__head { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.gallery {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging img { pointer-events: none; }
.gallery__track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter);
  width: max-content;
}
@media (min-width: 1320px) {
  .gallery__track { padding-left: calc((100vw - var(--max)) / 2); padding-right: calc((100vw - var(--max)) / 2); }
  .gallery { scroll-padding: 0 calc((100vw - var(--max)) / 2); }
}
.gallery__track li {
  flex: 0 0 auto;
  width: 76vw;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg-2);
}
.gallery__track li:nth-child(even) { aspect-ratio: 4 / 5; }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
@media (min-width: 768px) { .gallery__track li { width: 38vw; } }
@media (min-width: 1200px) { .gallery__track li { width: 26vw; } }

/* Arrows: mouse/trackpad devices only; touch keeps native swipe */
.gallery-wrap { position: relative; }
.gallery__arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery__arrow {
    position: absolute; top: 50%; z-index: 2;
    display: grid; place-items: center;
    width: 52px; height: 52px; margin-top: -26px;
    border-radius: 50%;
    border: 1px solid rgba(243, 233, 215, 0.18);
    background: rgba(20, 17, 14, 0.62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--cream);
    cursor: pointer;
    transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .gallery__arrow--prev { left: max(12px, calc((100vw - var(--max)) / 2 - 26px)); }
  .gallery__arrow--next { right: 12px; }
  .gallery__arrow:hover,
  .gallery__arrow:focus-visible {
    transform: scale(1.15);
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(20, 17, 14, 0.8);
  }
  .gallery__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .gallery__arrow:disabled { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__arrow:hover,
  .gallery__arrow:focus-visible { transform: none; }
}

/* ---------- Ratings: "★ 4.7 Google (143) · ★ 5.0 TripAdvisor" (text + gold stars, no logos) ---------- */
.ratings {
  display: flex; align-items: center;
  margin: 0;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.01em;
  color: var(--cream);
  white-space: nowrap;
}
.rating-item { display: inline-flex; align-items: center; }
.rating { white-space: nowrap; }
a.rating { border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color 0.3s var(--ease); }
a.rating:hover { border-bottom-color: rgba(201, 161, 91, 0.7); }
.rating__star { color: var(--gold); }
.rating__count { color: rgba(243, 233, 215, 0.7); }
.ratings__sep { width: 1px; height: 12px; margin: 0 8px; background: rgba(243, 233, 215, 0.28); }

/* Nav pill, right of the logo. Out of the flex flow so the centre links never move. */
.nav__left { position: relative; display: flex; align-items: center; }
.nav__ratings {
  position: absolute; left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.35);
  /* shown only once main.js has checked the room (no TripAdvisor flash), then a soft fade */
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.3s;
}
.nav__ratings.is-ready { opacity: 1; }
.nav__ratings.is-short .rating-item[data-platform="tripadvisor"] { display: none; }
.nav__ratings.is-off { visibility: hidden; }
html:not(.js-ready) .nav__ratings { opacity: 1; transition: none; }   /* no JS: plain, always visible */

/* Hero line: phones (< 768 px), or wider screens when the nav has no room for the pill */
.hero__ratings { display: none; justify-content: center; font-size: 13px; text-shadow: 0 1px 10px rgba(24, 16, 9, 0.6); }
.hero__ratings .ratings__sep { background: rgba(243, 233, 215, 0.4); }
html.ratings-in-hero .hero__ratings { display: flex; }
@media (max-width: 767px) {
  .nav__ratings { display: none; }
  .hero__ratings { display: flex; }
}

/* ---------- Visit ---------- */
.visit__grid { display: grid; gap: 32px; }
.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.visit__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.35) brightness(0.95) contrast(0.9) sepia(0.15);
}
.visit__info { display: flex; flex-direction: column; gap: 24px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted); min-height: 22px;
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
}
.status.is-open { color: var(--cream); }
.status.is-open::before { background: #7fbf7f; box-shadow: 0 0 0 4px rgba(127, 191, 127, 0.18); }
address {
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.3;
}
.hours { margin: 0; border-top: 1px solid var(--line); }
.hours div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours__closed dd { color: var(--gold); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__actions .btn { flex: 1 1 auto; }

@media (min-width: 900px) {
  .visit__grid { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
  .visit__map { aspect-ratio: auto; height: 520px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; color: var(--muted); font-size: 14px;
}
.footer img { width: 120px; height: auto; margin-bottom: 8px; opacity: 0.9; }
.footer__small { font-size: 12px; opacity: 0.8; }

/* ---------- Menu viewer ---------- */
.menu {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 10, 8, 0.97);
  color: var(--cream);
}
.menu::backdrop { background: rgba(12, 10, 8, 0.9); }
.menu[open] { display: flex; flex-direction: column; animation: menu-in 0.5s var(--ease); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  border-bottom: 1px solid var(--line);
}
.menu__title { font-family: var(--serif); font-size: 24px; }
.menu__count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; margin-left: auto; }
.menu__close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: none; cursor: pointer;
  font-size: 26px; line-height: 1;
}
.menu__track {
  flex: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
}
.menu__track::-webkit-scrollbar { display: none; }
.menu__track img {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  max-width: calc(100vw - 2 * var(--gutter));
  object-fit: contain;
  scroll-snap-align: center;
  border-radius: 6px;
}
.menu__nav {
  position: absolute; top: 50%; z-index: 2;
  width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(20, 17, 14, 0.8); cursor: pointer;
  font-size: 30px; line-height: 1;
  display: none;
}
.menu__nav--prev { left: 20px; }
.menu__nav--next { right: 20px; }
@media (hover: hover) and (min-width: 900px) { .menu__nav { display: grid; place-items: center; } }

/* ---------- Thai: fallback fonts (loaded on demand) + a little more line height for tone marks ---------- */
html[lang="th"] {
  --serif: "Cormorant Garamond", "Noto Serif Thai", "Leelawadee UI", Georgia, serif;
  --sans: "Manrope", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
}
html[lang="th"] body { line-height: 1.8; }
html[lang="th"] .title { line-height: 1.32; }
html[lang="th"] .split-word { padding-top: 0.12em; }
html[lang="th"] .panel__name,
html[lang="th"] .coffee__lines,
html[lang="th"] address { line-height: 1.45; }
/* The decorative Thai word before each label would repeat the (Thai) label itself */
html[lang="th"] .label__th { display: none; }
/* Thai has no capitals and letter-spacing pulls vowels and tone marks off their consonants */
html[lang="th"] .eyebrow,
html[lang="th"] .label,
html[lang="th"] .panel__tag,
html[lang="th"] .pill { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ---------- Motion (only when JS + motion allowed) ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
/* Hero intro in pure CSS: starts with the first paint, no wait for the JS libraries.
   The logo (LCP element) never goes transparent, it only rises; the small texts fade in. */
@media (prefers-reduced-motion: no-preference) {
  .hero__content [data-hero-in] { animation: hero-in 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero__content .hero__title { animation-name: hero-rise; }
  .hero__content [data-hero-in]:nth-child(1) { animation-delay: 0.15s; }
  .hero__content [data-hero-in]:nth-child(2) { animation-delay: 0s; }
  .hero__content [data-hero-in]:nth-child(3) { animation-delay: 0.3s; }
  .hero__content [data-hero-in]:nth-child(4) { animation-delay: 0.4s; }
  .hero__content [data-hero-in]:nth-child(5) { animation-delay: 0.5s; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-rise { from { transform: translateY(14px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-cue { display: none; }
  .langs__opt { transform: none; }
}
