/* Phở Cột Đèn — direction: the place carries it. Charcoal ground, lamplight accent, one grotesk. */
html:not([data-lang="en"]) [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="vi"]:not(html) { display: none !important; }

:root {
  --bg: #1c1c1c;
  --surface: #262626;
  --ink: #f1f1ef;
  --muted: #a9aaa4;
  --accent: #e4ad4c;
  --accent-ink: #1c1c1c;
  --paper: #e4e2dc;
  --paper-ink: #1f1e1b;
  --paper-soft: #5d5a52;
  --field: #c8c5ba;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: 1.375rem;
  --step-head: clamp(2.25rem, 0.5rem + 3.4vw, 3.75rem);
  --step-big: clamp(3rem, 1.2rem + 6.5vw, 6rem);

  --m: clamp(20px, 2.2vw, 32px);
  --gap: 16px;
  --section: clamp(120px, 12vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.01em;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn:hover { background: #f0be63; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.link { font-weight: 500; text-decoration: underline; transition: color .2s; }
.link:hover { color: var(--accent); }

/* ---------- header ---------- */
.bar {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--m); font-size: var(--step-small);
}
.wordmark { font-weight: 500; font-size: var(--step-body); text-decoration: none; letter-spacing: -0.02em; }
.bar-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.langs { display: flex; gap: 4px; }
.langs button {
  min-width: 44px; min-height: 36px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; cursor: pointer; opacity: .6; transition: opacity .2s, background-color .2s;
}
.langs button:hover { opacity: 1; }
.langs button[aria-pressed="true"] { opacity: 1; background: var(--surface); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute; right: 0; top: 48px; min-width: 200px; padding: 12px 0;
  background: #333331;
}
.menu a { display: block; padding: 12px 20px; text-decoration: none; }

/* ---------- hero: window that opens to the edges ---------- */
.hero { position: relative; height: 100svh; }
.stage { position: relative; height: 100svh; overflow: hidden; }
.window { position: absolute; inset: 0; }
.window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.scrim { position: absolute; inset: auto 0 0 0; height: 70%; background: rgba(15, 15, 15, .55); }
.hero h1 {
  position: absolute; left: var(--m); bottom: 200px;
  font-size: var(--step-head); line-height: .98; max-width: 14ch;
}
.hero h1 span { display: block; }
.hero-side { position: absolute; left: var(--m); right: var(--m); bottom: 40px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px; }
.hero-side p { max-width: 34ch; }
.hero.gone .hero-copy { visibility: hidden; }

/* the lamp: open-now indicator */
.lamp { display: flex; align-items: center; gap: 12px; }
.lamp::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--muted);
}
.lamp.is-on::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(228, 173, 76, .22); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(228, 173, 76, .08); } }

/* with script: the window opens as the page scrolls */
html.pin .hero { height: 200svh; }
html.pin .stage { position: sticky; top: 0; }
html.pin .window {
  --w: min(36vw, 57.6svh);
  --ix: calc((100vw - var(--w)) / 2);
  --iy: calc((100svh - var(--w) * 1.25) / 2);
  clip-path: inset(calc(var(--iy) * (1 - var(--p, 0))) calc(var(--ix) * (1 - var(--p, 0))));
}
html.pin .window img { transform: scale(calc(1.08 - var(--p, 0) * .08)); }
html.pin .scrim { display: none; }
html.pin .hero-copy { opacity: calc(1 - var(--p, 0) * 2.2); transform: translateY(calc(var(--p, 0) * -60px)); }
html.pin .hero h1 { bottom: var(--iy-b, calc((100svh - min(36vw, 57.6svh) * 1.25) / 2)); max-width: calc((100vw - min(36vw, 57.6svh)) / 2 - var(--m) - 24px); }
html.pin .hero-side {
  left: auto; right: var(--m); bottom: calc((100svh - min(36vw, 57.6svh) * 1.25) / 2);
  width: calc((100vw - min(36vw, 57.6svh)) / 2 - var(--m) - 24px);
  flex-direction: column; align-items: flex-start; gap: 20px;
}
html.pin .hero-side p { max-width: 30ch; }

/* ---------- about: wide photo, colour tile, facts ---------- */
.about { padding-top: var(--section); }
.about h2 { font-size: var(--step-head); max-width: 16ch; }
.about .lead { margin-top: 24px; font-size: var(--step-lead); max-width: 50ch; line-height: 1.45; }
.tiles { margin-top: 72px; align-items: start; }
.tile-photo { grid-column: 1 / 9; position: relative; }
.tile-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-photo p {
  position: absolute; top: 0; right: 0; width: 320px; padding: 20px;
  background: var(--paper); color: var(--paper-ink);
}
.tile-side { grid-column: 9 / 13; }
.tile-colour { background: var(--field); aspect-ratio: 4 / 3.1; display: grid; place-items: center; }
.tile-colour svg { width: 82%; height: auto; }
.facts { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-size: var(--step-lead); letter-spacing: -0.02em; margin-top: 2px; }

/* ---------- menu: the printed sheet ---------- */
.menu-band { margin-top: var(--section); position: relative; padding: 120px var(--m); }
.menu-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-wrap { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sheet { grid-column: 7 / 13; justify-self: end; width: min(640px, 100%); color: var(--paper-ink); }
.scallop { display: block; width: 100%; height: 14px; fill: var(--paper); }
.sheet-body { background: var(--paper); padding: 52px 64px 64px; text-align: center; }
.sheet h2 { font-size: var(--step-head); }
.sheet .note { margin-top: 10px; font-size: var(--step-small); color: var(--paper-soft); }
.group { margin-top: 56px; }
.group h3 { font-size: var(--step-lead); letter-spacing: -0.02em; font-weight: 500; }
.items { margin: 20px auto 0; max-width: 420px; text-align: left; display: grid; gap: 16px; }
.items li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
.items b { font-weight: 500; }
.items .price { font-variant-numeric: tabular-nums; }
.items small { grid-column: 1 / -1; font-size: var(--step-small); color: var(--paper-soft); line-height: 1.4; }
.sheet .hours { margin-top: 56px; }
.sheet .hours p + p { margin-top: 4px; }

/* ---------- intro: heading captions a panorama ---------- */
.pano { padding-top: var(--section); }
.pano h2 { font-size: var(--step-big); line-height: .95; max-width: 15ch; }
.captions { margin-top: 28px; display: flex; gap: 48px; flex-wrap: wrap; }
.captions p { width: 300px; }
.pano-img { margin-top: 48px; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- faq beside a tall photograph ---------- */
.faq { background: var(--surface); padding: var(--section) 0 0; margin-top: 0; }
.faq .grid { align-items: start; }
.faq-text { grid-column: 1 / 6; padding-bottom: var(--section); }
.faq h2 { font-size: var(--step-head); }
.faq .known { margin-top: 24px; display: grid; gap: 6px; }
.qa { margin-top: 40px; display: grid; gap: 28px; }
.qa summary {
  list-style: none; cursor: pointer; font-size: var(--step-lead); letter-spacing: -0.02em; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.qa details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa details p { margin-top: 10px; max-width: 52ch; }
.faq-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.faq-pics { grid-column: 7 / 13; position: relative; margin-top: calc(var(--section) * -1); margin-bottom: 80px; }
.faq-pics .tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq-pics .square {
  position: absolute; left: -40px; bottom: -40px; width: 34%; aspect-ratio: 1; object-fit: cover;
  border: 8px solid var(--surface);
}

/* ---------- contact: visit card on a photograph ---------- */
.visit { position: relative; min-height: 100svh; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card {
  position: sticky; top: 60px; margin: 0 var(--m) 0 auto; transform: translateY(60px);
  width: 400px; max-width: calc(100% - 2 * var(--m)); background: var(--paper); color: var(--paper-ink);
  border-radius: 0; padding: 32px 32px 0; z-index: 1;
}
.visit-inner { position: relative; padding: 60px 0 120px; }
.card h2 { font-size: var(--step-lead); }
.card address { font-style: normal; margin-top: 14px; }
.card .rows { margin-top: 20px; display: grid; gap: 6px; }
.card .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; margin: 0 -8px; }
.card .rows div.is-today { background: #ddd7c8; }
.card .rows dd { font-variant-numeric: tabular-nums; }
.card .lines { margin-top: 18px; display: grid; gap: 4px; }
.card .lamp { margin-top: 18px; }
.card .lamp::before { background: #9b978c; }
.card .lamp.is-on::before { background: #c98a1c; }
.card .btn { margin: 24px -32px 0; width: calc(100% + 64px); min-height: 56px; }

/* ---------- footer: the back of the card ---------- */
.foot { padding: var(--section) var(--m) 48px; }
.back { max-width: 1120px; margin: 0 auto; color: var(--paper-ink); }
.back .scallop { height: 30px; }
.back-body {
  background: var(--paper); padding: 48px clamp(24px, 4vw, 64px) 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.back h2 { font-size: var(--step-head); }
.back .msg { margin-top: 16px; max-width: 40ch; }
.addr { position: relative; padding-top: 0; display: grid; gap: 12px; align-content: start; padding-right: 110px; }
.addr a { text-decoration: none; transition: color .2s; }
.addr a:hover { text-decoration: underline; }
.stamp { position: absolute; top: 0; right: 0; width: 88px; padding: 6px; background: var(--paper); outline: 2px dashed #b9b3a3; outline-offset: -2px; }
.stamp img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.imprint { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--paper-soft); display: grid; gap: 6px; }
.credits { line-height: 1.5; max-width: 72ch; margin: 0 auto; }

/* ---------- motion ---------- */
html.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-r].in { opacity: 1; transform: none; }
.drift { transition: transform 1.2s var(--ease); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  html.pin .window {
    clip-path: inset(calc(24svh * (1 - var(--p, 0))) calc(22vw * (1 - var(--p, 0))) calc((76svh - 70vw) * (1 - var(--p, 0))) calc(22vw * (1 - var(--p, 0))));
  }
  html.pin .hero h1 { top: 96px; bottom: auto; max-width: none; font-size: 7vw; }
  html.pin .hero-side { left: var(--m); right: var(--m); width: auto; bottom: 32px; flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  html.pin .hero-side p { max-width: 36ch; }
  .tile-photo { grid-column: 1 / -1; }
  .tile-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; align-items: start; }
  .facts { margin-top: 0; }
  .sheet { grid-column: 1 / -1; justify-self: center; }
  .faq-text { grid-column: 1 / -1; padding-bottom: 80px; }
  .faq-pics { grid-column: 1 / -1; grid-row: 1; margin: 0 0 80px; }
  .faq-pics .tall { aspect-ratio: 4 / 3; }
  .faq-pics .square { left: auto; right: 24px; width: 28%; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .bar-right { gap: 8px; }
  .hero h1 { font-size: 10.5vw; }
  html.pin .hero h1 { font-size: 10.5vw; }
  html.pin .window {
    clip-path: inset(calc(30svh * (1 - var(--p, 0))) calc(11vw * (1 - var(--p, 0))) calc((70svh - 97.5vw) * (1 - var(--p, 0))) calc(11vw * (1 - var(--p, 0))));
  }
  html.pin .hero h1 { top: 84px; bottom: auto; left: 20px; max-width: none; }
  html.pin .hero-side { left: 20px; right: 20px; width: auto; bottom: 18px; gap: 12px; }
  html.pin .hero-side p { max-width: none; }
  html.pin .hero-side .btn { width: 100%; }
  .tile-photo p { position: static; width: auto; padding: 20px 0 0; background: none; color: var(--ink); }
  .tile-photo img { aspect-ratio: 4 / 3; }
  .tile-side { grid-template-columns: 1fr; }
  .tile-colour { aspect-ratio: 3 / 2; }
  .menu-band { padding: 64px 10px; }
  .sheet-body { padding: 36px 28px 44px; }
  .pano h2 { font-size: 12vw; }
  .captions { gap: 12px; }
  .captions p { width: auto; }
  .pano-img { aspect-ratio: 4 / 5; }
  .faq-pics .tall { aspect-ratio: 4 / 5; }
  .faq-pics .square { width: 38%; right: 0; border-width: 6px; }
  .qa { gap: 24px; }
  .faq-actions .btn { width: 100%; }
  .visit { min-height: 0; }
  .visit > img { position: relative; height: 70svh; }
  .visit-inner { padding: 0 0 40px; margin-top: -80px; }
  .card { position: relative; top: 0; transform: none; margin: 0 16px; max-width: none; width: auto; }
  .back-body { grid-template-columns: 1fr; padding: 36px 24px 28px; gap: 32px; }
  .addr { padding-right: 76px; }
  .stamp { width: 64px; padding: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.pin .hero { height: 100svh; }
  html.pin .window { clip-path: none; }
  html.pin .window img { transform: none; }
  html.pin .hero-copy { opacity: 1; transform: none; }
  html.js [data-r] { opacity: 1; transform: none; transition: none; }
  .lamp.is-on::before { animation: none; }
}
