/* ============================================================
   BAMBÚ — Digital Menu Board System
   Portrait TV · 1080 × 1920
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  /* Brand */
  --red:      #D81F26;
  --red-deep: #A4161B;
  --ink:      #211C18;
  --ink-soft: #4A423B;
  --muted:    #978B7C;
  --paper:    #F7F2E9;
  --paper-2:  #F1E9DB;
  --line:     rgba(33, 28, 24, 0.14);
  --line-soft:rgba(33, 28, 24, 0.08);
  --sage:     #6E8B5B;
  --sage-soft:rgba(110, 139, 91, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Stage / scaling ------------------------------------- */
.stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.board {
  position: relative;
  width: 1080px; height: 1920px;
  transform-origin: center center;
  background: var(--paper);
  overflow: hidden;
  color: var(--ink);
}

/* Warm paper texture + soft vignette */
.board::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(130% 90% at 50% 115%, rgba(216,31,38,0.05), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.board::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>");
}

/* ---- Ambient layer (bamboo + drifting leaves) ------------ */
.ambient { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ambient .stalk {
  position: absolute; top: -4%; bottom: -4%; width: 2px;
  background: linear-gradient(180deg, transparent, var(--sage-soft) 12%, var(--sage-soft) 88%, transparent);
  opacity: 0.55;
}
.ambient .node {
  position: absolute; width: 14px; height: 3px; border-radius: 2px;
  background: rgba(110,139,91,0.28);
}
.leaf {
  position: absolute; top: -60px;
  color: var(--sage); opacity: 0;
  animation: drift linear infinite;
  will-change: transform, opacity;
}
@keyframes drift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg);   opacity: 0; }
  8%   { opacity: 0.5; }
  92%  { opacity: 0.5; }
  100% { transform: translateY(2040px) translateX(var(--dx, 60px)) rotate(var(--dr, 220deg)); opacity: 0; }
}

/* ---- Content frame --------------------------------------- */
.content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  padding: 74px 84px 64px;
}

/* ---- Masthead -------------------------------------------- */
.masthead { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.masthead img { height: 88px; width: auto; }
.masthead .est {
  font-size: 18px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding-left: 0.42em;
}

/* Board / cuisine title */
.board-title {
  text-align: center; margin-top: 30px;
}
.board-title .eyebrow {
  display: inline-block;
  font-family: 'Hanken Grotesk'; font-weight: 600;
  font-size: 22px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-soft); padding-left: 0.34em;
}
.board-title h1 {
  font-family: 'Bricolage Grotesque';
  font-weight: 800; font-size: 78px; line-height: 0.98;
  letter-spacing: -0.015em; color: var(--ink); margin-top: 6px;
}
.board-title h1 .hl { color: var(--red); }
.board-title .note {
  margin-top: 16px; font-size: 21px; color: var(--muted);
  font-weight: 500; letter-spacing: 0.01em;
}
.board-title .note b { color: var(--red-deep); font-weight: 700; }

/* ---- Section header -------------------------------------- */
.section { margin-top: 40px; }
.sec-head {
  display: flex; align-items: center; gap: 22px; margin-bottom: 18px;
}
.sec-head h2 {
  font-family: 'Bricolage Grotesque';
  font-weight: 700; font-size: 40px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.sec-head .rule { flex: 1; height: 2px; background: var(--line); }
.sec-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); flex: none; }
.sec-head .sub {
  font-size: 19px; color: var(--muted); font-weight: 500; white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ---- Menu grid / rows ------------------------------------ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 4px; }
.col { display: flex; flex-direction: column; }

.item {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 8px 16px; padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.item:last-child { border-bottom: none; }
.item .name {
  font-weight: 700; font-size: 29px; color: var(--ink); letter-spacing: -0.005em;
  line-height: 1.12;
}
.item .name .vn { font-style: italic; font-weight: 500; color: var(--ink-soft); }
.item .desc {
  grid-column: 1 / 2; font-size: 19.5px; color: var(--muted);
  font-weight: 500; line-height: 1.3; margin-top: 3px; max-width: 90%;
}
.item .price {
  font-weight: 800; font-size: 29px; color: var(--red); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Tiered price chips (e.g. 1 · $3   2 · $6) */
.tiers { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.tier {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-variant-numeric: tabular-nums;
}
.tier .q { font-size: 17px; font-weight: 700; color: var(--muted); }
.tier .p { font-size: 27px; font-weight: 800; color: var(--red); }

/* Two-value price (regular / jumbo, half / full) */
.dual { display: flex; gap: 30px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.dual .v { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.dual .v .k { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.dual .v .p { font-size: 28px; font-weight: 800; color: var(--red); }

/* Portion table (Thai / China) */
.portion-head {
  display: grid; align-items: end; margin-bottom: 6px;
  font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.portion-head span { text-align: right; }
.portion-head span:first-child { text-align: left; }
.ptable .item { grid-template-columns: 1fr 130px 130px; }
.ptable .item .price { text-align: right; }
.ptable .item .price.empty { color: var(--line); font-weight: 700; }
.ptable.airy .item { padding: 26px 0; }
.ptable.mid .item { padding: 18px 0; }
.ptable.mid .item .name { font-size: 30px; }
.ptable.mid .item .price { font-size: 30px; }
.ptable.airy .item .name { font-size: 31px; }
.ptable.airy .item .price { font-size: 31px; }
.ptable.fill { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }

/* Meta row (spice scale + GF note) */
.metarow {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  flex-wrap: nowrap; white-space: nowrap;
}
.metarow .lbl { font-size: 16px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.metarow .gf { font-size: 18px; font-weight: 800; color: var(--red-deep); }
.metarow .vbar { width: 1px; height: 26px; background: var(--line); }

/* ---- Dietary marker -------------------------------------- */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; min-width: 22px; padding: 0 6px; margin-left: 9px;
  border: 1.5px solid var(--sage); border-radius: 5px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--sage); vertical-align: middle; transform: translateY(-2px);
}

/* ---- Info card (add-ons / substitutes) ------------------- */
.card {
  background: rgba(255,255,255,0.5); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 26px;
}
.card h3 {
  font-family: 'Bricolage Grotesque'; font-weight: 700;
  font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red-deep); margin-bottom: 14px;
}
.card .rows { display: grid; grid-template-columns: 1fr auto; gap: 9px 18px; }
.card .rows span { font-size: 20px; font-weight: 500; color: var(--ink-soft); }
.card .rows .p { color: var(--red); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.card .rows .full { grid-column: 1 / -1; }

.cardblock { margin-bottom: 16px; }
.cardblock:last-child { margin-bottom: 0; }
.cardblock h4 {
  font-size: 14px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.card .rows.two { grid-template-columns: 1fr auto 1fr auto; gap: 8px 14px; }
.card .rows.two .p { margin-right: 4px; }
.card .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.card .pill {
  font-size: 16px; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px;
}
.cardnote {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 17px; font-weight: 700; color: var(--red-deep);
}

/* English gloss on a Vietnamese dish name */
.item .en { display: block; font-size: 19.5px; font-weight: 500; font-style: italic; color: var(--ink-soft); margin-top: 2px; }

/* ---- Pills (spice levels, shared) ------------------------ */
.pills { display: flex; gap: 9px; flex-wrap: wrap; }
.pill {
  font-size: 16px; font-weight: 700; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 15px;
  white-space: nowrap;
}

/* ---- Horizontal options band (Thai / China) -------------- */
.optband {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.55); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.optband .ob-col { flex: 1; padding: 22px 28px; border-right: 1px solid var(--line); }
.optband .ob-col:last-child { border-right: none; }
.optband .ob-col.wide { flex: 1.5; }
.optband h4 {
  font-size: 14px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 13px;
}
.optband .rows { display: grid; grid-template-columns: 1fr auto; gap: 9px 18px; }
.optband .rows.two { grid-template-columns: 1fr auto 1fr auto; gap: 9px 16px; }
.optband .rows span { font-size: 20px; font-weight: 500; color: var(--ink-soft); }
.optband .rows .p { color: var(--red); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.optband .obgf {
  margin-top: 14px; font-size: 17px; font-weight: 800; color: var(--red-deep);
}

/* ---- Spice scale ----------------------------------------- */
.spice {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 18px; color: var(--muted); font-weight: 600;
}
.spice .pips { display: inline-flex; gap: 4px; }
.spice .pip { width: 9px; height: 18px; border-radius: 3px; background: var(--line); }
.spice .pip.on { background: var(--red); }

/* ---- Footer ---------------------------------------------- */
.foot {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.foot .legend { display: flex; gap: 28px; font-size: 16px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.foot .legend i { font-style: normal; color: var(--sage); font-weight: 800; margin-right: 6px; }
.foot .order {
  font-family: 'Bricolage Grotesque'; font-weight: 600;
  font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-deep);
  white-space: nowrap;
}
.foot .contact { display: flex; align-items: center; gap: 24px; font-size: 24px; font-weight: 700; color: var(--ink); }
.foot .contact .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---- Reveal animation ------------------------------------ */
.cuisine-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 54px; align-items: start; }
.divline { height: 2px; background: var(--line); margin-top: 34px; }
.board-title.mid { margin-top: 26px; }
.board-title.mid h1 { font-size: 56px; }
.board-title.mid .eyebrow { font-size: 19px; }

.reveal { opacity: 0; transform: translateY(22px); }
.revealed .reveal { animation: rise 0.9s cubic-bezier(0.16, 0.8, 0.26, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
