/* เชื่อปากกู · TMT — red-led, confident type. Lacquer/chili red is the identity:
   full-bleed red hero, sauce and close; charcoal for the tasting scene; ivory for reading. */
.brand-tmt, .co-tmt {
  --red: #B72D26;
  --red-deep: #8E211C;
  --ivory: #FFF6E8;
  --charcoal: #181714;
  --on-red: #FFF6E8;          /* 5.4:1 on --red, safe for body text */
  --on-red-2: #F6DED6;
  --bg: var(--ivory);
  --surface: #FFFBF4;
  --ink: var(--charcoal);
  --ink-2: #3B342F;
  --rule: #DCCFBE;
  --action: var(--red);
  --action-ink: var(--ivory);
  --accent: var(--red);
  --umami: #4C3026;
  --font-head: 'Kanit', 'IBM Plex Sans Thai', sans-serif;
  --font-body: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --btn-radius: 0;
  background: var(--bg); color: var(--ink);
}
.brand-tmt .site-head { background: var(--ivory); border-bottom: 4px solid var(--red); }
.brand-tmt .cart-btn { border-radius: 0; border-width: 2px; }
.tmt-word { font: 800 1.55rem/1 var(--font-head); letter-spacing: -.01em; color: var(--red); }
.tmt-en { font: 700 .66rem/1 var(--font-body); letter-spacing: .2em; color: var(--charcoal); }
.tmt-h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.tmt-big { font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
.tmt-kicker { font: 700 .9rem/1 var(--font-body); letter-spacing: .2em; color: #F39C91; text-transform: uppercase; margin-bottom: 16px; }
.tmt-small { font-size: .9rem; color: var(--ink-2); }
.brand-tmt .btn { font-weight: 700; letter-spacing: .01em; }
.brand-tmt .btn:not(.btn-ghost):not(.btn-light):hover { background: var(--charcoal); border-color: var(--charcoal); }
.brand-tmt .text-link { color: var(--red-deep); text-decoration-color: var(--red); text-decoration-thickness: 3px; }

/* Buttons on red surfaces: ivory fill reads first, ghost stays ivory. */
.tmt-hero .btn, .tmt-sauce .btn, .tmt-close .btn { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.tmt-hero .btn:hover, .tmt-sauce .btn:hover, .tmt-close .btn:hover { background: var(--charcoal) !important; color: var(--ivory) !important; border-color: var(--charcoal) !important; }
.tmt-hero .btn-ghost { background: transparent; color: var(--ivory); border-color: var(--ivory); }

/* Video toggle in TMT's square, high-contrast language */
.brand-tmt .film-toggle { border-radius: 0; background: var(--charcoal); border: 2px solid var(--ivory); font-weight: 700; }

/* T01 hero — full-bleed red */
.brand-tmt main > section.tmt-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: end;
  max-width: none; margin: 0;
  padding: clamp(28px, 4vw, 56px) max(var(--gutter), calc((100% - 1400px) / 2)) clamp(40px, 5vw, 72px);
  background: var(--red); color: var(--on-red);
}
.tmt-hero > * { max-width: none !important; margin: 0 !important; }
.tmt-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 18px !important; }
.tmt-name strong { font: 800 1.6rem/1 var(--font-head); color: var(--on-red); }
.tmt-name span { font-size: .78rem; font-weight: 700; letter-spacing: .22em; color: var(--on-red-2); }
.tmt-eyebrow { font-weight: 600; margin-bottom: 8px !important; color: var(--on-red); }
.tmt-h1 { font-size: clamp(3.6rem, 10.5vw, 9.6rem); font-weight: 800; line-height: 1.14; padding-top: .12em; letter-spacing: -.025em; margin: 0 0 .3em; display: flex; flex-direction: column; color: var(--on-red); }
/* "กูชิมแล้ว" sits on a charcoal slab: horizontal padding only, so the line height is unchanged. */
.tmt-l2 { align-self: flex-start; background: var(--charcoal); color: var(--ivory); padding: 0 .14em; margin-left: -.14em; }
.tmt-lead { max-width: 40ch; font-size: 1.05em; color: var(--on-red); }
.tmt-promise { font: 700 1.3rem/1.3 var(--font-head); color: var(--on-red); }
.tmt-facts { display: inline-block; font-weight: 700; padding: 8px 14px; background: var(--ivory); color: var(--charcoal); margin-bottom: 22px !important; }
.tmt-hero-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 10px solid var(--charcoal); box-shadow: 18px 18px 0 var(--red-deep); }
.tmt-hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); transform-origin: 72% 62%; }
.tmt-hero-photo figcaption { position: absolute; right: 0; bottom: 0; z-index: 1; background: var(--charcoal); color: var(--ivory); font-size: .76rem; padding: 4px 10px; }

.tmt-band { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; padding: 18px var(--gutter); background: var(--charcoal); color: var(--ivory); font: 700 clamp(1rem, 2.2vw, 1.5rem)/1.2 var(--font-head); }
.tmt-band i { width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }

/* T02 signature: first bite — a full-bleed cinematic stage while scrolling.
   Live: photo fills the sticky frame, words sit large over a charcoal fade, a red bar tracks progress
   and the red stamp lands at the end. Static/reduced motion: framed photo with copy beside it. */
.brand-tmt main > section.tmt-bite { padding: 0 0 clamp(64px, 8vw, 104px); background: var(--charcoal); color: var(--ivory); }
.tmt-bite .scene-runway { max-width: none; }
.tmt-bite .scene-sticky { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: 24px var(--gutter); max-width: 1400px; margin: 0 auto; }
.tmt-stage { position: relative; aspect-ratio: 3 / 2; width: 100%; overflow: hidden; background: #2a1c15; border-top: 8px solid var(--red); }
.tmt-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tb-cut { --l1: clamp(0, calc((var(--p) - .26) / .2), 1); opacity: var(--l1); }
.tb-macro { --l2: clamp(0, calc((var(--p) - .6) / .2), 1); opacity: var(--l2); }
.tmt-stamp { position: absolute; z-index: 3; width: clamp(120px, 22%, 190px); aspect-ratio: 1; right: 5%; top: 7%; color: var(--ivory); display: grid; place-items: center; transform: rotate(-8deg); transition: opacity .45s ease, transform .55s cubic-bezier(.2, 1.4, .4, 1); }
.tmt-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tmt-stamp circle { fill: none; stroke: currentColor; stroke-width: 3; }
.tmt-stamp circle:first-of-type { fill: var(--red); stroke-width: 0; }
.tmt-stamp text { font: 700 13px/1 var(--font-body); letter-spacing: .14em; fill: currentColor; }
.tmt-stamp span { position: relative; font: 800 clamp(1.1rem, 2.6vw, 1.9rem)/1.05 var(--font-head); text-align: center; }
.scene-runway.is-live:not(.is-end) .tb-stamp { opacity: 0; transform: scale(1.7) rotate(-24deg); }
.tmt-bite-copy { min-width: 0; }
.tmt-beats { counter-reset: tb; }
.tmt-beats li { counter-increment: tb; display: flex; align-items: baseline; gap: .35em; font: 800 clamp(2rem, 4.4vw, 3.6rem)/1.15 var(--font-head); letter-spacing: -.015em; }
.tmt-beats li::before { content: '0' counter(tb); font-size: .38em; color: var(--red); letter-spacing: .04em; transform: translateY(-.9em); }
.tmt-bite .tmt-h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #F39C91; margin-top: 18px; }
.tmt-bite .scene-tail { color: #E9E1D3; }
.tmt-sign { font: 800 1.6rem/1.2 var(--font-head); color: var(--ivory); }
.tmt-sign::before { content: ''; display: block; width: 56px; height: 8px; margin: 0 auto 14px; background: var(--red); }
.btn-light { background: var(--red); color: var(--ivory); border-color: var(--red); }

/* Live scene: the photo becomes the whole frame. */
.tmt-bite .scene-runway.is-live .scene-sticky { display: block; max-width: none; padding: 0; position: sticky; }
.tmt-bite .scene-runway.is-live .tmt-stage { position: absolute; inset: 0; aspect-ratio: auto; border-top: 0; }
.tmt-bite .scene-runway.is-live .tmt-stage img { transform: scale(calc(1.12 - var(--p) * .12)); transform-origin: 62% 55%; }
.tmt-bite .scene-runway.is-live .tmt-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 23, 20, .94) 0%, rgba(24, 23, 20, .72) 30%, rgba(24, 23, 20, 0) 62%),
              linear-gradient(0deg, rgba(24, 23, 20, .6) 0%, rgba(24, 23, 20, 0) 30%);
}
.tmt-bite .scene-runway.is-live .scene-sticky::after { content: ''; position: absolute; left: 0; bottom: 0; z-index: 4; height: 8px; width: calc(var(--p) * 100%); background: var(--red); }
.tmt-bite .scene-runway.is-live .tmt-bite-copy { position: absolute; z-index: 3; left: max(var(--gutter), calc((100% - 1400px) / 2)); bottom: clamp(48px, 10vh, 120px); max-width: min(560px, 44%); }
.tmt-bite .scene-runway.is-live .tmt-beats li { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.tmt-bite .scene-runway.is-live .tmt-stamp { width: clamp(150px, 16vw, 230px); right: 7%; top: 12%; }

/* T03 proof — ivory reading block, red index numbers */
.tmt-proof h2 { max-width: 18ch; }
.tmt-proof-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-top: 10px solid var(--red); margin-top: 32px !important; margin-bottom: 28px !important; }
.tmt-proof-grid li { padding: 28px 22px 30px; border-right: 2px solid var(--ink); background: var(--surface); }
.tmt-proof-grid li:last-child { border-right: 0; }
.tp-n { display: block; font: 800 3.2rem/1 var(--font-head); color: var(--red); margin-bottom: 14px; }
.tmt-proof-grid svg { width: 48px; height: 48px; margin-bottom: 12px; color: var(--charcoal); }
.tmt-proof-grid h3 { font-size: 1.25rem; font-weight: 700; }
.tmt-proof-grid p { margin: 0; color: var(--ink-2); font-size: 1em; }

/* T04 sauce — red block */
.brand-tmt main > section.tmt-sauce { position: relative; padding: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--red); color: var(--on-red); }
.tmt-sauce > * { max-width: none !important; margin: 0 !important; }
.tmt-sauce-photo { min-height: 520px; overflow: hidden; border-right: 10px solid var(--charcoal); }
.tmt-sauce-photo img { width: 100%; height: 100%; object-fit: cover; }
.tmt-sauce-copy { padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 64px); align-self: center; }

/* T05 pack */
.brand-tmt main > section.tmt-pack { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; }
.tmt-pack > * { margin: 0 !important; }
.tmt-spec { width: 100%; border-collapse: collapse; margin: 16px 0 20px; border-top: 6px solid var(--red); }
.tmt-spec th, .tmt-spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tmt-spec th { width: 34%; font-weight: 700; }
/* Branded vacuum pack (image from identity.js): framed like a hard-edged label shot. */
.branded-pack-tmt img { border-radius: 0; border: 8px solid var(--charcoal); box-shadow: 14px 14px 0 var(--red); background: var(--surface); }
.branded-pack-tmt figcaption { font-weight: 600; }

/* T06 reheat — type-led, giant red line on ivory */
.brand-tmt main > section.tmt-reheat { background: var(--surface); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.tmt-reheat .tmt-big { color: var(--red); }
.tmt-reheat-body { max-width: 720px !important; margin-left: 0 !important; }
.tmt-reheat-body .rs-n { background: var(--red); color: var(--ivory); border-color: var(--red); border-radius: 0; }

/* T07 offers: tasting tickets with red header bars */
.tmt-offers h2 { margin-bottom: 36px !important; }
.brand-tmt .offer { border: 2px solid var(--ink); background: var(--surface); position: relative; border-radius: 0; }
.brand-tmt .offer::before { content: ''; position: absolute; left: -2px; right: -2px; top: -2px; height: 12px; background: var(--red); }
.brand-tmt .offer-name { font-weight: 800; font-size: 1.6rem; margin-top: 10px; }
.brand-tmt .offer-amount { font-size: 2.6rem; font-weight: 800; color: var(--red); }
.brand-tmt .qty { border-color: var(--ink); border-radius: 0; }
.brand-tmt .qty-btn { border-radius: 0; }

.tmt-faq > * { max-width: 860px !important; }
.brand-tmt .faq { border-top: 4px solid var(--red); }

/* T09 close — red again so the page ends on the identity */
.brand-tmt main > section.tmt-close { text-align: center; position: relative; padding-top: clamp(80px, 10vw, 140px); background: var(--red); color: var(--on-red); }
.tmt-close > * { max-width: 900px !important; }
.tc-stamp { position: relative; right: auto; top: auto; margin: 0 auto 24px !important; width: 170px; color: var(--ivory); }
.tc-stamp circle:first-of-type { fill: var(--charcoal); }
.tmt-en-sign { margin-top: 28px; font-weight: 700; letter-spacing: .24em; font-size: .85rem; color: var(--on-red-2); }

@media (max-width: 999px) {
  .tmt-proof-grid { grid-template-columns: 1fr 1fr; }
  .tmt-proof-grid li:nth-child(2) { border-right: 0; }
  .tmt-proof-grid li:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
}
@media (max-width: 899px) {
  /* Mobile: food sits between the brand line and the headline so plate, price and CTA share the first screen. */
  .brand-tmt main > section.tmt-hero { grid-template-columns: 1fr; gap: 0; padding: 18px var(--gutter) 28px; }
  .tmt-hero-copy { display: contents; }
  .tmt-name { order: 1; margin-bottom: 6px !important; }
  .tmt-eyebrow { order: 2; margin-bottom: 12px !important; }
  .tmt-hero-photo { order: 3; aspect-ratio: 16 / 10; border: 0; border-top: 6px solid var(--charcoal); border-bottom: 6px solid var(--charcoal); box-shadow: none; margin: 0 calc(var(--gutter) * -1) !important; }
  .tmt-hero-photo img { transform: scale(1.12); transform-origin: 56% 62%; }
  .tmt-hero-photo figcaption { font-size: .7rem; }
  .brand-tmt .film-toggle { top: 8px; right: 8px; }
  .tmt-h1 { order: 4; font-size: clamp(2.9rem, 14vw, 4.4rem); margin: 4px 0 .1em !important; }
  .tmt-promise { order: 5; margin-bottom: 10px !important; }
  .tmt-facts { order: 6; justify-self: start; margin-bottom: 16px !important; }
  .tmt-hero .cta-row { order: 7; margin-bottom: 20px; }
  .tmt-lead { order: 8; margin: 0 !important; }
  .tmt-bite .scene-sticky { grid-template-columns: 1fr; padding: 0 0 16px; gap: 16px; align-content: start; }
  .tmt-stage { aspect-ratio: 4 / 3; }
  .tmt-bite-copy { padding: 0 var(--gutter); }
  .tmt-beats li { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .tmt-bite .tmt-h2 { margin-top: 8px; }
  .tmt-stamp { width: 110px; }
  /* Live on phones: photo fills the frame, words sit on a fade from the bottom. */
  .tmt-bite .scene-runway.is-live .tmt-stage::after { background: linear-gradient(0deg, rgba(24, 23, 20, .95) 0%, rgba(24, 23, 20, .78) 34%, rgba(24, 23, 20, 0) 62%); }
  .tmt-bite .scene-runway.is-live .tmt-stage img { object-position: 58% 52% !important; }
  .tmt-bite .scene-runway.is-live .tmt-bite-copy { left: 0; right: 0; bottom: 28px; max-width: none; padding: 0 var(--gutter); }
  .tmt-bite .scene-runway.is-live .tmt-beats li { font-size: clamp(2rem, 10vw, 2.8rem); }
  .tmt-bite .scene-runway.is-live .tmt-stamp { width: 120px; right: 16px; top: 16px; }
  /* Keep the words and the red progress bar clear of the mobile sticky buy bar. */
  body.has-sticky .tmt-bite .scene-runway.is-live .tmt-bite-copy { bottom: calc(100px + env(safe-area-inset-bottom)); }
  body.has-sticky .tmt-bite .scene-runway.is-live .scene-sticky::after { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .brand-tmt main > section.tmt-sauce, .brand-tmt main > section.tmt-pack { grid-template-columns: 1fr; }
  .tmt-sauce-photo { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 10px solid var(--charcoal); }
}
@media (max-width: 599px) {
  .tmt-proof-grid { grid-template-columns: 1fr; }
  .tmt-proof-grid li { border-right: 0 !important; border-bottom: 2px solid var(--ink); }
  .tmt-proof-grid li:last-child { border-bottom: 0; }
  .tmt-en { display: none; }
}

/* Visible keyboard focus on dark brand scenes. */
.tmt-hero, .tmt-sauce, .tmt-close, .tmt-bite { --focus: #FFF6E8; }
