@font-face {
  font-family: "At Chiang Mai";
  src: url("/assets/fonts/AtChiangMaiMelbourne.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* At Chiang Mai — Northern Thai Restaurant, Melbourne
   Brand: espresso brown, warm cream, chilli orange, banana-leaf green */
:root {
  --espresso: #3a281e;
  --espresso-2: #2a1c15;
  --espresso-3: #4a3427;
  --cream: #fff4e6;
  --paper: #f8e7cf;
  --ink: #2a1c15;
  --muted: #6e5a4c;
  --orange: #f2711c;
  --orange-ink: #b54a05;
  --leaf: #50683a;
  --line: rgba(58, 40, 30, .14);
  --line-dark: rgba(255, 244, 230, .16);
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(42, 28, 21, .45);
  --display: "At Chiang Mai", "Anton", "Impact", sans-serif; /* brand font; missing glyphs ($, quotes) fall back to Anton */
  --num: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --thai: "Pridi", "Sukhumvit Set", serif;            /* small Thai text: soft, looped, readable */
  --thai-display: "Pridi", "Sukhumvit Set", serif;   /* large Thai headings (set at weight 600) */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; }
h2.display { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--orange); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.dark .eyebrow { color: var(--orange); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.dark .lead { color: rgba(255, 244, 230, .78); }
.thai { font-family: var(--thai); font-weight: 400; }
p { margin: 0 0 1.1em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.4em; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e0600c; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(42, 28, 21, .92); color: var(--cream);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 244, 230, .1); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: .6em 1.1em; }
.nav .btn:hover { background: #e0600c; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--espresso-2); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 16px 8px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin: 16px 0 0; border-radius: 999px; border: 0; }
}

/* Sections */
section { padding-block: clamp(64px, 10vw, 120px); }
.dark { background: var(--espresso); color: var(--cream); }
.darker { background: var(--espresso-2); color: var(--cream); }
.paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.lanna-pattern { position: relative; isolation: isolate; }
.lanna-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23fff4e6' stroke-width='1.4'%3E%3Cpath d='M32 6 L40 20 L32 34 L24 20Z'/%3E%3Cpath d='M32 34 L40 48 L32 62 L24 48Z'/%3E%3Ccircle cx='32' cy='20' r='3'/%3E%3Ccircle cx='0' cy='34' r='6'/%3E%3Ccircle cx='64' cy='34' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .greeting { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--paper); margin-bottom: 1.2rem; }
.hero .greeting .thai { font-family: var(--thai-display); font-weight: 600; font-style: normal; color: var(--orange); letter-spacing: .01em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .95rem; color: rgba(255, 244, 230, .8); }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.hero-art { position: relative; padding: 0 0 48px 48px; }
.hero-art .main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-art .inset {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; object-fit: cover;
  border-radius: 22px; border: 6px solid var(--espresso); box-shadow: var(--shadow);
}
.hero-art .badge {
  position: absolute; z-index: 2; right: -8px; top: 28px; transform: rotate(4deg);
  background: var(--cream); color: var(--espresso); padding: 10px 18px; border-radius: 999px;
  font: 600 .85rem/1.2 var(--body); box-shadow: var(--shadow); white-space: nowrap;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; width: 100%; margin-inline: auto; padding: 0 0 32px 32px; }
  .hero-art .main { aspect-ratio: 1 / 1; }
  .hero-art .badge { right: 8px; }
}

/* Quick answer (AEO) */
.answer {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start;
}
.answer h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--espresso); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 820px) { .answer { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Story teaser */
.story-teaser .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.quote-card {
  position: relative; background: var(--espresso-2); border: 1px solid var(--line-dark); border-radius: 28px;
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow);
}
.quote-card .big-thai { font-family: var(--thai-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.2; color: var(--orange); margin: 0 0 .2em; }
.quote-card .roman { font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin-bottom: 1rem; }
.quote-card small { color: rgba(255, 244, 230, .7); font-size: .95rem; }
.story-teaser p { color: rgba(255, 244, 230, .82); }
.story-teaser .chapters { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 10px; counter-reset: ch; }
.story-teaser .chapters li { counter-increment: ch; display: flex; gap: 14px; align-items: baseline; color: var(--cream); font-family: var(--serif); font-size: 1.1rem; }
.story-teaser .chapters li::before { content: "0" counter(ch); font: 400 .95rem var(--num); color: var(--orange); letter-spacing: .05em; }
@media (max-width: 860px) { .story-teaser .wrap { grid-template-columns: 1fr; } }

/* Lanna signature cards */
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sig-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.sig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sig-card .photo { margin: -26px -24px 14px; aspect-ratio: 4 / 3; overflow: hidden; }
.sig-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sig-card:hover .photo img { transform: scale(1.04); }
.sig-card.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 0; }
.sig-card.feature .photo { margin: 0; aspect-ratio: auto; height: 100%; min-height: 320px; grid-row: span 5; }
.sig-card.feature .photo img { object-position: center 72%; }
.sig-card.feature > :not(.photo) { margin-right: 24px; }
.sig-card.feature .thai-name { margin-top: 28px; }
.sig-card.feature .meta { margin-bottom: 22px; }
.sig-card .thai-name { font-family: var(--thai-display); font-weight: 600; font-size: 2rem; line-height: 1.25; color: var(--espresso); }
.sig-card h3 { font: 600 1.2rem/1.25 var(--body); margin: 0; }
.sig-card p { color: var(--muted); font-size: .98rem; margin: 0; flex: 1; }
.sig-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font: 400 1.35rem/1 var(--num); color: var(--orange-ink); letter-spacing: .02em; }
.sig-card.feature { grid-column: span 2; background: var(--espresso); color: var(--cream); border: 0; }
.sig-card.feature .thai-name { color: var(--orange); font-size: 2.8rem; }
.sig-card.feature p { color: rgba(255, 244, 230, .78); font-size: 1.05rem; }
.sig-card.feature .meta { border-color: var(--line-dark); }
.sig-card.feature .price { color: var(--orange); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--espresso); }
.dark .tag, .feature .tag { background: rgba(255, 244, 230, .12); color: var(--cream); }
@media (max-width: 720px) {
  .sig-card.feature { grid-column: auto; grid-template-columns: 1fr; padding: 26px 24px 22px; }
  .sig-card.feature .photo { margin: -26px -24px 14px; min-height: 0; aspect-ratio: 4 / 3; grid-row: auto; }
  .sig-card.feature > :not(.photo) { margin-right: 0; }
  .sig-card.feature .thai-name { margin-top: 0; }
  .sig-card.feature .meta { margin-bottom: 0; }
}

/* Photo dish grid */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.dish {
  display: flex; flex-direction: column; background: var(--espresso-3); border-radius: var(--radius);
  padding: 18px 18px 20px; border: 1px solid var(--line-dark); transition: transform .25s;
}
.dish:hover { transform: translateY(-4px); }
.dish figure { margin: 0 0 12px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.dish img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .4)); }
.dish h3 { font: 600 1.08rem/1.3 var(--body); margin: 0 0 4px; }
.dish p { font-size: .92rem; color: rgba(255, 244, 230, .72); margin: 0 0 12px; flex: 1; }
.dish .price { color: var(--orange); }
.collab-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.collab-head img, .menu-group-title img { width: 110px; height: auto; background: var(--cream); border-radius: 50%; padding: 10px; }
.set-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.set-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; background: var(--orange); color: #fff; border-radius: var(--radius); padding: 20px; }
.set-card img { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.set-card h3 { font-size: 1.7rem; margin: 0 0 4px; }
.set-card p { margin: 0 0 8px; font-size: .95rem; opacity: .95; }
.set-card .price { color: #fff; font-size: 1.6rem; }
@media (max-width: 760px) { .set-cards { grid-template-columns: 1fr; } .set-card { grid-template-columns: 110px 1fr; } }

/* Photo cards */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--espresso); color: var(--cream); aspect-ratio: 3 / 4; display: flex; text-decoration: none; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover img { transform: scale(1.05); }
.pcard .cap { position: relative; margin-top: auto; width: 100%; padding: 56px 16px 16px; background: linear-gradient(transparent, rgba(30, 20, 14, .92)); }
.pcard h3 { font: 600 1.05rem/1.25 var(--body); margin: 0 0 2px; }
.pcard .thai { font-size: .85rem; opacity: .8; }
.pcard .price { display: block; color: var(--orange); margin-top: 6px; font-size: 1.15rem; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(420px, 60vw, 640px); }
.gallery figure { margin: 0; border-radius: 20px; overflow: hidden; position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(42, 28, 21, .8); color: var(--cream); font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; } .gallery figure { aspect-ratio: 3 / 4; } .gallery figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }
.collab-note { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; padding: 28px 32px; border: 2px dashed rgba(255, 244, 230, .3); border-radius: 24px; }
.collab-note h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 6px; }
.collab-note p { margin: 0; color: rgba(255, 244, 230, .78); max-width: 68ch; }
@media (max-width: 760px) { .collab-note { grid-template-columns: 1fr; } }
.story-photo { margin-bottom: 20px; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Simple list of favourites */
.fav-list { columns: 2 320px; column-gap: 48px; }
.fav { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fav h3 { font: 600 1.08rem/1.3 var(--body); margin: 0; }
.fav h3 .thai { font-size: .9rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.fav p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; }

/* Desserts */
.dessert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dessert { text-align: center; }
.dessert figure { margin: 0 auto 14px; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle, #fff 0 58%, transparent 59%); max-width: 240px; }
.dessert img { width: 78%; height: auto; filter: drop-shadow(0 14px 16px rgba(42, 28, 21, .25)); }
.dessert h3 { font: 600 1.05rem/1.3 var(--body); margin: 0 0 2px; }
.dessert .thai { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
@media (max-width: 820px) { .dessert-grid { grid-template-columns: repeat(2, 1fr); } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.review blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.review figcaption { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font: 600 1.15rem/1.4 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.9rem/1 var(--body); color: var(--orange-ink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq .ans p:last-child { margin: 0; }

/* Visit */
.visit .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.visit-card { display: grid; gap: 22px; align-content: start; }
.visit-card h3 { font: 600 .82rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; }
.visit-card p, .visit-card address { font-style: normal; margin: 0; font-size: 1.1rem; }
.visit-card .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hours { border-collapse: collapse; font-size: 1.05rem; }
.hours th { text-align: left; font-weight: 500; padding: 4px 24px 4px 0; }
.hours td { padding: 4px 0; color: rgba(255, 244, 230, .85); }
.map { border-radius: 24px; overflow: hidden; min-height: 380px; background: var(--espresso-3); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map .map-btn { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--cream); background: none; border: 0; cursor: pointer; font: 600 1rem var(--body); width: 100%; }
.map .map-btn svg { width: 40px; height: 40px; margin-inline: auto; color: var(--orange); }
.map .map-btn span { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .visit .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--espresso-2); color: rgba(255, 244, 230, .75); padding: 64px 0 110px; font-size: .95rem; }
.site-footer .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer img { width: 180px; margin-bottom: 14px; }
.site-footer h2 { font: 600 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 861px) { .site-footer { padding-bottom: 64px; } }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
  background: rgba(42, 28, 21, .94); border-radius: 999px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-bottom: calc(8px + env(safe-area-inset-bottom) * .5);
}
.action-bar .btn { min-height: 46px; width: 100%; }
.action-bar .btn-ghost { color: var(--cream); border-color: rgba(255, 244, 230, .4); }
@media (max-width: 860px) { .action-bar { display: grid; } }

/* Long-form article (story & guide) */
.page-hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); max-width: 18ch; }
.page-hero .lead { margin-top: 1rem; }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: rgba(255, 244, 230, .7); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.article { padding-block: clamp(48px, 8vw, 96px); }
.article .wrap { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: clamp(24px, 6vw, 80px); justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; }
.toc h2 { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; text-decoration: none; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--espresso); border-left-color: var(--orange); }
.prose { font-size: 1.12rem; line-height: 1.8; }
.prose h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 2.2em 0 .6em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .chap { display: block; font: 600 .8rem/1 var(--body); letter-spacing: .18em; color: var(--orange-ink); margin-bottom: 12px; }
.prose h3 { font: 600 1.3rem/1.3 var(--body); margin: 1.8em 0 .5em; scroll-margin-top: 96px; }
.prose .dropcap::first-letter { float: left; font: 400 4em/.9 var(--display); color: var(--orange); margin: .06em .12em 0 0; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--orange); font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--espresso); }
.prose .pull { margin: 2.4em -4vw; padding: 32px clamp(20px, 4vw, 40px); background: var(--espresso); color: var(--cream); border-radius: 24px; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.45; }
.prose .pull .thai { color: var(--orange); font-style: normal; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--orange-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose figure { margin: 2em 0; background: var(--espresso); border-radius: 24px; padding: 12px 12px 4px; }
.prose figure img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 16px; }
.prose figcaption { color: rgba(255, 244, 230, .75); font-size: .9rem; text-align: center; margin-top: 12px; }
.tldr { background: var(--paper); border-radius: 20px; padding: 24px 28px; margin-bottom: 2.4em; font-size: 1.05rem; }
.tldr strong:first-child { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 8px; }
.dish-entry { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dish-entry h3 { margin: 0 0 4px; }
.dish-entry .thai { font-size: 1.05rem; color: var(--muted); }
.dish-entry p { grid-column: 1 / -1; margin: 8px 0 0; }
.end-cta { margin-top: 3em; padding: 32px; border-radius: 24px; background: var(--orange); color: #fff; }
.end-cta h2 { margin-top: 0 !important; }
.end-cta .btn-primary { background: var(--espresso); }
.end-cta .btn-ghost { color: #fff; }
.end-cta div { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .article .wrap { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--paper); border-radius: 16px; padding: 20px; }
  .prose .pull { margin-inline: 0; }
}

/* Menu page */
.menu-tools { position: sticky; top: 68px; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); }
.menu-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a { flex: none; scroll-snap-align: start; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: .95rem; white-space: nowrap; background: #fff; }
.menu-tabs a.active, .menu-tabs a:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.menu-search { display: flex; align-items: center; gap: 12px; padding: 0 0 12px; }
.menu-search input { flex: 1; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px 0 44px; font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236e5a4c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center; }
.menu-search input:focus { outline: 2px solid var(--orange); border-color: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.menu-body { padding-block: 40px 80px; }
.menu-section { padding-block: 32px; scroll-margin-top: 190px; }
.menu-section > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.menu-section h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.menu-section .sec-thai { font-family: var(--thai-display); font-weight: 600; color: var(--orange-ink); font-size: 1.2rem; }
.menu-section .sec-note { flex-basis: 100%; color: var(--muted); margin: 0; }
.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.mi { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.mi .thumb { grid-row: span 3; width: 76px; height: 76px; border-radius: 14px; background: var(--espresso); display: grid; place-items: center; overflow: hidden; }
.mi .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mi:not(.has-img) { grid-template-columns: 1fr auto; }
.mi h3 { font: 600 1.06rem/1.35 var(--body); margin: 0; }
.mi .thai { font-size: .92rem; color: var(--muted); font-weight: 400; display: block; }
.mi .p { font: 400 1.2rem/1.2 var(--num); color: var(--orange-ink); text-align: right; white-space: nowrap; }
.mi .p small { display: block; font: 500 .78rem/1.5 var(--body); color: var(--muted); }
.mi p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.mi.has-img p, .mi.has-img .flags { grid-column: 2 / -1; }
.mi .options { grid-column: 1 / -1; margin: 6px 0 0; padding: 0; list-style: none; font-size: .93rem; }
.mi.has-img .options { grid-column: 2 / -1; }
.mi .options li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dotted var(--line); padding: 4px 0; }
.mi .options b { font-weight: 600; color: var(--orange-ink); }
.flags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flag { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--espresso); }
.flag.nut { background: #fde2cc; color: #8a3a00; }
.flag.hot { background: #fbd4cf; color: #8f1d12; }
.flag.sig { background: var(--espresso); color: var(--cream); }
.flag.veg { background: #dfe8d3; color: #33461f; }
.menu-group-title { margin: 48px 0 0; padding: 28px; border-radius: 24px; background: var(--espresso); color: var(--cream); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.menu-group-title h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.menu-group-title p { margin: 0; color: rgba(255, 244, 230, .78); max-width: 60ch; }
.menu-group-title img { width: 84px; }
.no-results { display: none; padding: 40px 0; text-align: center; color: var(--muted); }
.allergy { margin-top: 40px; padding: 24px 28px; border: 2px solid var(--espresso); border-radius: 20px; }
.allergy h2 { font: 600 1rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
@media (max-width: 820px) { .menu-items { grid-template-columns: 1fr; } .menu-tools { top: 68px; } }

/* Night market */
.night { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #5a3a26 0%, var(--espresso-2) 60%); color: var(--cream); }
.night .lights { position: absolute; left: -5%; right: -5%; top: 0; height: 90px; pointer-events: none; }
.night .lights svg { width: 100%; height: 100%; }
.night .lights circle { animation: twinkle 3s ease-in-out infinite; }
.night .lights circle:nth-child(3n) { animation-delay: -1s; }
.night .lights circle:nth-child(3n+1) { animation-delay: -2s; }
@keyframes twinkle { 50% { opacity: .45; } }
.night .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.night h2 .accent { color: var(--orange); }
.night .lead { color: rgba(255, 244, 230, .82); }
.night-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.night-list li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 244, 230, .06); border: 1px solid var(--line-dark); border-radius: 16px; padding: 14px 16px; }
.night-list .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(242, 113, 28, .16); color: var(--orange); }
.night-list .ico svg { width: 22px; height: 22px; }
.night-list b { display: block; font-weight: 600; }
.night-list span { font-size: .92rem; color: rgba(255, 244, 230, .72); }
.night-list .soon { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.night-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.night-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; aspect-ratio: 3 / 4; }
.night-photos img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .night .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .night-list { grid-template-columns: 1fr; } }
.plan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.5em 0; }
.plan > div { background: var(--paper); border-radius: 18px; padding: 20px 22px; font-size: 1rem; }
.plan h3 { margin-top: 0 !important; }
.plan ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 640px) { .plan { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
  .night .lights circle { animation: none; }
}

/* ==========================================================================
   Motion
   Everything below is decorative; prefers-reduced-motion switches it off.
   ========================================================================== */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes wipeIn { from { clip-path: inset(100% 0 0 0 round 28px); transform: scale(1.08); } to { clip-path: inset(0 0 0 0 round 28px); transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.4) rotate(-20deg); } 70% { transform: scale(1.08) rotate(6deg); } 100% { opacity: 1; transform: rotate(4deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-3deg) translateY(-4px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleX(1); } 30% { opacity: .75; } 100% { opacity: 0; transform: translateY(-46px) scaleX(1.4); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sway { 0%, 100% { transform: rotate(.6deg); } 50% { transform: rotate(-.6deg); } }
@keyframes shine { from { left: -60%; } to { left: 130%; } }

/* Hero entrance (pure CSS, runs on load) */
.hero .intro > * { animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero .intro > :nth-child(1) { animation-delay: .05s; }
.hero .intro > :nth-child(2) { animation-delay: .15s; }
.hero .intro > :nth-child(4) { animation-delay: .55s; }
.hero .intro > :nth-child(5) { animation-delay: .7s; }
.hero .intro > :nth-child(6) { animation-delay: .85s; }
.hero h1.display { animation: none; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .ln:nth-child(1) > span { animation-delay: .25s; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .4s; }
.hero-art .main { animation: wipeIn 1.2s cubic-bezier(.7, 0, .2, 1) .1s both; }
.hero-art .inset-wrap { position: absolute; left: 0; bottom: 0; width: 44%; animation: fadeUp 1s cubic-bezier(.2, .8, .2, 1) .8s both; }
.hero-art .inset-wrap .inset { position: static; width: 100%; animation: floaty 6s ease-in-out 2s infinite; }
.hero-art .badge { animation: popIn .8s cubic-bezier(.2, .8, .2, 1) 1.1s both, wobble 5s ease-in-out 2s infinite; }
.steam { position: absolute; left: 22%; top: -46px; width: 56%; height: 70px; pointer-events: none; }
.steam path { fill: none; stroke: rgba(255, 244, 230, .7); stroke-width: 3; stroke-linecap: round; filter: blur(1.2px); animation: steam 3.2s ease-out infinite; }
.steam path:nth-child(2) { animation-delay: 1s; }
.steam path:nth-child(3) { animation-delay: 2.1s; }
.hero-art .parallax { will-change: transform; }

/* Marquee bands */
.marquee { overflow: hidden; background: var(--orange); color: #fff; padding: 16px 0; position: relative; z-index: 2; transform: rotate(-1.5deg); margin: -14px -2% ; width: 104%; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); }
.marquee.alt { background: var(--espresso-2); color: var(--cream); transform: rotate(1.2deg); }
.marquee .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee.alt .track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font: 400 clamp(1.3rem, 2.6vw, 2rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding-inline: 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee span::after { content: ""; width: 18px; height: 18px; background: currentColor; opacity: .85; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.marquee .th { font-family: var(--thai-display); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* Scroll reveals (classes are added by JS, so content stays visible without JS) */
.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w, 0) * 55ms); }
.split.in .w > span { transform: none; }
.wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.wipe.in { clip-path: inset(0 0 0 0); }
.wipe img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.wipe.in img { transform: none; }

/* Night market: swaying lights + ember canvas */
.night .lights { transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }
.night .lights circle { filter: drop-shadow(0 0 6px currentColor); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }
.night .wrap { z-index: 1; }

/* Card tilt + glare */
.tilt { transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 55%); opacity: 0; transition: opacity .3s; }
.tilt:hover::after { opacity: 1; }
.sig-card, .dish { position: relative; }

/* Button shine */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); }
.btn-primary:hover::after { animation: shine .8s ease; }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }

/* Header on scroll + reading progress */
.site-header { transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(30, 20, 15, .97); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.site-header .brand img { transition: height .3s; }
.site-header.scrolled .brand img { height: 40px; }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Gallery + photo cards: slow zoom on hover */
.gallery img { transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.gallery figure:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .hero .intro > *, .hero h1 .ln > span, .hero-art .main, .hero-art .inset-wrap, .hero-art .inset-wrap .inset, .hero-art .badge,
  .steam path, .marquee .track, .night .lights { animation: none !important; }
  .steam { display: none; }
  .split .w > span { transform: none; }
  .wipe { clip-path: none; } .wipe img { transform: none; }
  .embers { display: none; }
  .btn-primary::after { display: none; }
}
