/* Homechew — warm editorial dinner table. */
.brand-homechew, .co-homechew {
  --bg: #F4EEE4;
  --surface: #FBF7F0;
  --ink: #292018;
  --ink-2: #4A3D31;
  --rule: #DDCFBC;
  --action: #6A4030;
  --action-ink: #FFF9F1;
  --accent: #A85D37;
  --moss: #59654B;
  --font-head: 'Noto Serif Thai', Georgia, serif;
  --font-body: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --btn-radius: 6px;
  background: var(--bg); color: var(--ink);
}
.brand-homechew .site-head { border-bottom-color: var(--rule); }
.hc-wordmark { height: 30px; width: auto; }
.hc-thai { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.hc-kicker { font: 600 .95rem/1.3 var(--font-body); letter-spacing: .06em; color: var(--accent); margin-bottom: .8em; text-transform: uppercase; }
.hc-h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -.005em; }
.hc-small { font-size: .9rem; color: var(--ink-2); }
.brand-homechew .text-link { color: var(--action); }

/* H01 hero: text left, plate right */
.brand-homechew main > section.hc-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  max-width: 1400px; margin: 0 auto; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 96px);
}
.hc-hero > * { max-width: none !important; margin: 0 !important; }
.hc-eyebrow { font-weight: 600; color: var(--accent); letter-spacing: .04em; margin-bottom: .9em !important; }
.hc-h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 700; line-height: 1.32; padding-top: .12em; margin-bottom: .35em; }
.hc-lead { font-size: 1.06em; max-width: 34ch; }
.hc-slogan { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--action); border-left: 3px solid var(--accent); padding-left: 14px; }
.hc-facts { font-weight: 600; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.hc-hero-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(41, 32, 24, .55); }
.hc-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hc-hero-photo figcaption, .hc-piece figcaption { font-size: .78rem; }
.hc-hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; background: rgba(251, 247, 240, .92); border-radius: 4px; color: var(--ink); }

/* H02 pack */
.brand-homechew main > section.hc-pack { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; }
.hc-pack > * { margin: 0 !important; }
.hc-pack-card { background: var(--surface); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--rule); box-shadow: 8px 8px 0 #E8DCCB; }
.hc-specs { list-style: none; padding: 0; margin: 20px 0; }
.hc-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--ink-2); font-weight: 500; }
.hc-specs li span:last-child { font-weight: 700; text-align: right; }

/* H03 kitchen */
.brand-homechew main > section.hc-kitchen { background: #EDE3D4; }
.hc-kitchen-head { max-width: 760px !important; text-align: center; margin-bottom: 48px !important; }
.hc-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.hc-steps li { background: var(--surface); padding: 32px 28px; border-top: 3px solid var(--accent); position: relative; }
.hc-num { font: 600 2.6rem/1 var(--font-head); color: var(--accent); display: block; margin-bottom: 8px; }
.hc-icon { position: absolute; right: 24px; top: 28px; width: 56px; height: 56px; color: var(--action); opacity: .85; }
.hc-icon svg, .tmt-proof-grid svg, .nj-chips svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hc-steps h3 { font-size: 1.4rem; font-weight: 600; }
.hc-steps p { margin: 0; color: var(--ink-2); }
.hc-chef { text-align: center; font-family: var(--font-head); font-size: 1.15rem; margin-top: 40px !important; }

/* H04 signature: the table is set as you scroll */
.brand-homechew main > section.hc-table { padding-left: 0; padding-right: 0; background: #3A2A1E; color: #FBF4E9; }
.hc-table .scene-runway { max-width: none; }
.hc-table .scene-sticky { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 24px var(--gutter); max-width: 1400px; margin: 0 auto; }
.hc-board {
  position: relative; aspect-ratio: 4 / 3; width: 100%; max-height: calc(100svh - var(--head-h) - 48px); margin: 0 auto;
  border-radius: 6px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(236, 226, 210, .9) 22% 78%, transparent 78%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, #8A5A36 0 120px, #93623D 120px 220px, #7F5231 220px 360px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .35);
}
.hc-board::after { content: ''; position: absolute; inset: 0 22%; background: repeating-linear-gradient(90deg, transparent 0 46%, rgba(80, 64, 48, .25) 46% 47%, transparent 47% 53%, rgba(80, 64, 48, .25) 53% 54%, transparent 54%); pointer-events: none; }
.hc-piece {
  --l: clamp(0, calc((var(--p) - var(--a)) / (var(--b) - var(--a))), 1);
  position: absolute; z-index: 1; margin: 0;
  transform: translate(calc((1 - var(--l)) * var(--dx)), calc((1 - var(--l)) * var(--dy))) rotate(calc(var(--r) + (1 - var(--l)) * var(--dr))) scale(calc(1 + (1 - var(--l)) * .06));
  opacity: clamp(0, calc(var(--l) * 1.6), 1);
  will-change: transform;
}
.hc-piece .crop { box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .55); }
.hc-piece figcaption { position: absolute; left: 50%; transform: translateX(-50%); bottom: -30px; white-space: nowrap; background: #FBF4E9; color: #292018; padding: 2px 10px; border-radius: 3px; font-weight: 600; }
.hc-p-plate { --a: 0; --b: .3; --dx: 0px; --dy: -60%; --r: -2deg; --dr: 6deg; left: 24%; top: 16%; width: 52%; height: 56%; z-index: 2; }
.hc-p-plate .crop { border-radius: 50%; border: 10px solid #F4EDE2; }
.hc-p-rice { --a: .25; --b: .55; --dx: -120%; --dy: 0px; --r: 0deg; --dr: -10deg; left: 3%; top: 8%; width: 24%; height: 32%; }
.hc-p-rice .crop, .hc-p-greens .crop { border-radius: 50%; border: 6px solid #EFE6D8; }
.hc-p-greens { --a: .5; --b: .8; --dx: 120%; --dy: 0px; --r: 0deg; --dr: 10deg; right: 3%; top: 10%; width: 22%; height: 29%; }
.hc-p-cut { --a: .7; --b: .95; --dx: 30%; --dy: 120%; --r: 3deg; --dr: 8deg; right: 6%; bottom: 10%; width: 30%; height: 30%; z-index: 3; }
.hc-p-cut .crop { border: 8px solid #FBF8F2; border-bottom-width: 8px; }
.hc-table-copy .hc-kicker { color: #E7B48F; }
.hc-table-copy .hc-h2 { color: #FBF4E9; }
.hc-table .beats { counter-reset: b; }
.hc-table .beats li { counter-increment: b; font: 600 clamp(1.2rem, 2vw, 1.6rem)/1.4 var(--font-head); padding: 10px 0; border-bottom: 1px solid rgba(251, 244, 233, .2); display: flex; gap: 14px; }
.hc-table .beats li::before { content: '0' counter(b); color: #E7B48F; font-size: .8em; padding-top: .2em; }
.hc-table .scene-tail { padding: 48px var(--gutter) 0; }
.hc-table .scene-tail .btn { background: #FBF4E9; color: #3A2A1E; border-color: #FBF4E9; }

/* H05 sauce */
.brand-homechew main > section.hc-sauce { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1400px; margin: 0 auto; }
.hc-sauce > * { margin: 0 !important; max-width: none !important; }
.hc-sauce-photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; }
.hc-sauce-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }

/* H06 reheat */
.brand-homechew main > section.hc-reheat { background: #EDE3D4; }
.hc-recipe { max-width: 780px !important; background: var(--surface); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -10px; }
.hc-recipe .rs-n { color: var(--accent); font-family: var(--font-head); }

/* H07 offers: menu cards */
.hc-offers header { text-align: center; margin-bottom: 40px !important; }
.brand-homechew .offer { border: 1px solid var(--rule); border-top: 4px double var(--action); background: var(--surface); }
.brand-homechew .offer-name { font-weight: 600; }
.brand-homechew .offer-amount { color: var(--action); }

/* H08 FAQ */
.hc-faq > * { max-width: 820px !important; }

/* H09 close */
.brand-homechew main > section.hc-close { padding: 0 0 clamp(64px, 8vw, 112px); position: relative; }
.hc-close-photo { max-width: none !important; aspect-ratio: 21 / 9; overflow: hidden; }
.hc-close-photo img { width: 100%; height: 100%; object-fit: cover; }
.hc-close-copy { position: relative; max-width: 720px !important; margin: -80px auto 0 !important; background: var(--bg); padding: 40px clamp(20px, 4vw, 48px) 0; text-align: center; }

@media (max-width: 899px) {
  .hc-hero-copy { display: flex; flex-direction: column; }
  .hc-hero-copy .hc-lead { order: 1; margin-top: 20px; }
  .brand-homechew main > section.hc-hero { grid-template-columns: 1fr; padding-top: 0; gap: 20px; }
  .hc-hero-photo { order: -1; margin: 0 calc(var(--gutter) * -1) !important; border-radius: 0; aspect-ratio: 16 / 11; box-shadow: none; }
  .hc-h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hc-lead { font-size: 1em; }
  .brand-homechew main > section.hc-pack, .brand-homechew main > section.hc-sauce { grid-template-columns: 1fr; }
  .hc-steps { grid-template-columns: 1fr; }
  .hc-table .scene-sticky { grid-template-columns: 1fr; align-content: center; gap: 16px; padding: 16px; }
  .hc-board { aspect-ratio: 1 / 1; width: min(100%, 54svh); max-height: none; }
  .hc-p-plate { left: 14%; top: 22%; width: 72%; height: 50%; }
  .hc-p-rice { left: 2%; top: 3%; width: 34%; height: 30%; }
  .hc-p-greens { right: 2%; top: 4%; width: 32%; height: 28%; }
  .hc-p-cut { right: 4%; bottom: 7%; width: 42%; height: 26%; }
  .hc-table .beats { display: grid; gap: 0; }
  .hc-piece figcaption { white-space: normal; width: 118%; text-align: center; font-size: .68rem; line-height: 1.3; bottom: -26px; }
  .hc-table .beats li { font-size: 1.05em; padding: 6px 0; }
  .hc-table-copy .hc-h2 { font-size: 1.4rem; margin-bottom: .3em; }
  .hc-close-photo { aspect-ratio: 4 / 3; }
  .hc-close-copy { margin-top: -40px !important; }
}

.hc-table { --focus: #F4EEE4; }
