/* Hallmark · shape: one shelf seen two ways, then the evidence · genre: modern-minimal · theme: custom · job: hire · idea: "drag the line and the shelf turns into what the surveyor writes down" · vibe: "fresh, exact, green ink, one orange"
 * paper: oklch(98.6% 0.012 135) · accent: oklch(78.5% 0.168 127) · display: Bai Jamjuree · body: Bai Jamjuree · hero: the head on one line of the grid, a four-bay shelf edge to edge under it with a dragged split · nav: edge-aligned · footer: mast · imagery: generated drawings in one green ink at the client's request, the product sample in report · signature: the split shelf, real on one side and boxed and counted on the other
 * axes: light/geometric-sans/chromatic-lime · posture: full palette (field mint, seal lime, signal tangerine, ink forest) · contrast: pass · fold: pass · v2.0.0 · brand: ME (spec 2026-11-13) · copy: verbatim */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: R, two accents instead of one, so tangerine is kept to the ABC product and what was found */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/BaiJamjuree-400-thai.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/BaiJamjuree-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/BaiJamjuree-500-thai.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/BaiJamjuree-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/BaiJamjuree-600-thai.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/BaiJamjuree-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* type: one family, three weights; heads opened to 1.2 for Thai marks */
body { color: var(--color-ink-2); font-synthesis: none; }
h1, h2, h3 { color: var(--color-ink); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.2; }
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-section); }
b, th { font-weight: 600; }
h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.lead { max-width: 52ch; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.5; }
small { font-size: var(--text-sm); }
.num { font-weight: 500; }
.nb { white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.sec { padding-top: var(--section-gap); }
.sec--l { padding-top: var(--section-gap-l); }
.sec--s { padding-top: var(--section-gap-s); }
.head { display: grid; gap: var(--space-md); align-content: start; }
/* the survey box: the one frame the page uses, taken from the boxed facings in the hero */
.box { border: 2px solid var(--color-ink); border-radius: var(--radius-card); }
.box--found { border-color: var(--color-signal); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-ctl); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1.2 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--line { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink); }
.btn--line:hover { background: var(--color-paper-3); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } }

.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.chip--found { background: var(--color-signal-soft); color: var(--color-signal-ink); }

.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.brand img { width: auto; height: 34px; }
.brand b { font-size: var(--text-lg); font-weight: 600; }
.wordmark { font-size: var(--text-md); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-size: var(--text-md); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__link:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* hero: the head on the grid, the shelf running edge to edge beneath it */
.hero { padding-block: var(--space-xl) var(--space-3xl); }
.hero__head { grid-column: 1 / 9; }
.hero__side { grid-column: 9 / -1; display: grid; gap: var(--space-lg); align-content: end; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.scene { max-width: calc(var(--scene-h) * 3.55); margin: var(--space-xl) auto 0; --split: 50%; --scene-h: clamp(300px, min(34vw, 52svh), 760px); --art-w: calc(var(--scene-h) * 3.9886); }
.scene__stage { position: relative; height: var(--scene-h); overflow: hidden; }
.scene__sheet { position: absolute; top: 0; left: calc(42% - 0.3739 * var(--art-w)); width: var(--art-w); height: 100%; }
.scene__sheet img { width: 100%; height: 100%; max-width: none; }
.scene__reveal { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.scene__range { position: absolute; inset: 0; z-index: var(--z-raised); width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.scene__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--color-ink); pointer-events: none; }
.scene__grip { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); transform: translate(-50%, -50%); }
.scene__grip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene__range:focus-visible ~ .scene__handle .scene__grip { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.scene__caps { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--gutter) 0; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
.tag { position: absolute; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-ctl); background: var(--color-signal); color: var(--color-accent-ink); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; transform: translate(-50%, 0); }

/* the survey: two measured figures on the mint field */
.field { padding-block: var(--section-gap-s); background: var(--color-paper-2); color: var(--color-ink-2); }
.field__head { grid-column: 1 / 6; }
.figs { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; }
.fig { display: grid; gap: var(--space-xs); padding-block: var(--space-lg); }
.fig--found { padding: var(--space-lg); }
.fig__n { color: var(--color-ink); font-size: clamp(4.5rem, 11vw, 10rem); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1; }
.fig--found .fig__n { color: var(--color-signal-ink); }
.fig__n span { font-size: 0.45em; }
.fig__l { max-width: 24em; }
.sowhat { grid-column: 1 / 11; display: grid; gap: var(--space-xs); }
.sowhat__line { max-width: 30em; color: var(--color-ink); font-size: var(--text-title); font-weight: 500; line-height: 1.5; }

/* what shoppers do: six stay in the same shop, one leaves */
.outs__head { grid-column: 1 / 9; }
.stay { grid-column: 1 / 10; display: grid; gap: var(--space-md); align-content: start; }
.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.outs li { display: grid; gap: var(--space-sm); align-content: start; }
.outs img { width: 100%; padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); }
.outs__line { color: var(--color-ink); font-weight: 500; }
.leave { grid-column: 10 / -1; display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-md); padding: var(--space-lg); }
.leave img { width: 100%; align-self: center; }
.cats { grid-column: 1 / -1; display: grid; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.cats h3 { font-size: var(--text-title); }
.cats ul { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; color: var(--color-ink); font-weight: 500; }
.cats img { width: 100%; }

/* two accounts from the field */
.accounts__head { grid-column: 1 / 9; }
.account { grid-column: span 6; display: grid; gap: var(--space-md); align-content: start; margin: 0; }
.account img { width: 100%; padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.account figcaption { display: grid; gap: var(--space-xs); align-content: start; }

/* the four answers and the sample report */
.answers__head { grid-column: 1 / 9; }
.report { grid-column: 1 / -1; padding: var(--space-lg) var(--space-xl); background: var(--color-paper); }
.report__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); padding-bottom: var(--space-md); }
.report__title { color: var(--color-ink); font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.seg__tab { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-ctl); background: var(--color-paper-2); color: var(--color-ink); font: 500 var(--text-md)/1.2 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.seg__tab:hover { background: var(--color-paper-3); }
.seg__tab:active { transform: translateY(1px); }
.seg__tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg__tab:disabled { opacity: 0.55; cursor: not-allowed; }
.seg__tab[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); }
table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--color-ink); font-size: var(--text-sm); line-height: 1.4; }
th, td { height: 56px; padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: middle; transition: background-color var(--dur-short) var(--ease-out); }
thead th { height: 44px; color: var(--color-muted); font-weight: 500; white-space: nowrap; }
tbody th { color: var(--color-ink); font-weight: 600; }
tbody th small { display: block; color: var(--color-muted); font-weight: 400; }
td { color: var(--color-ink); }
.report[data-view="shelf"] [data-col="shelf"],
.report[data-view="offtake"] [data-col="offtake"],
.report[data-view="media"] [data-col="media"],
.report[data-view="price"] [data-col="price"] { background: var(--color-paper-2); }
.report__say { padding-top: var(--space-md); color: var(--color-ink); font-size: var(--text-lg); font-weight: 500; line-height: 1.5; }
.report__say > span { display: none; }
.report[data-view="shelf"] .report__say > [data-view="shelf"],
.report[data-view="offtake"] .report__say > [data-view="offtake"],
.report[data-view="media"] .report__say > [data-view="media"],
.report[data-view="price"] .report__say > [data-view="price"] { display: inline; }
html:not(.js) .report__say > span { display: block; }

/* what ME tracks: the picture holds still while the rows choose it */
.tracks__head { grid-column: 1 / 9; }
.view { grid-column: 1 / 7; align-self: start; position: sticky; top: var(--space-3xl); display: grid; gap: var(--space-md); margin: 0; padding: var(--space-xl); background: var(--color-paper-2); }
.view img { width: 100%; }
.view figcaption { color: var(--color-ink); font-weight: 500; }
.tabs { grid-column: 7 / -1; display: grid; align-content: start; border-top: 2px solid var(--color-ink); }
.row { display: grid; gap: var(--space-3xs); justify-items: start; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.tab { min-height: 44px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-ctl); background: transparent; color: var(--color-ink); font: 600 var(--text-lg)/1.2 var(--font-body); white-space: nowrap; text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.tab:hover { background: var(--color-paper-3); }
.tab:active { transform: translateY(1px); }
.tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tab:disabled { opacity: 0.55; cursor: not-allowed; }
.tab[aria-selected="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
.row__line { padding-inline: var(--space-sm); font-size: var(--text-sm); }
.roles { grid-column: 7 / -1; display: grid; gap: var(--space-xs); margin: 0; }
.roles dt { color: var(--color-muted); font-size: var(--text-sm); }
.roles dd { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; color: var(--color-ink); font-weight: 500; }

/* did you know: each fact under the picture that shows it */
.know__head { grid-column: 1 / 9; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: var(--space-xs); align-content: start; }
.facts img { width: 100%; padding: var(--space-sm); border-radius: var(--radius-card); background: var(--color-paper-2); }

/* the close: the surveyor's street, six questions, a plain contact beside them */
.close { padding-block: var(--section-gap-s); background: var(--color-paper-2); color: var(--color-ink-2); }
.street { grid-column: 1 / -1; margin: 0; }
.street img { width: 100%; }
.close__head { grid-column: 1 / -1; }
.asks { grid-column: 1 / 8; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--color-ink); }
.asks li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); font-size: var(--text-lg); line-height: 1.5; }
.contact { grid-column: 9 / -1; display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-sm); border-top: 2px solid var(--color-ink); }
.contact__line { max-width: none; color: var(--color-ink); font-size: var(--text-3xl); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.3; }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* footer: a mast */
.foot { padding-block: var(--section-gap-s) var(--space-2xl); }
.foot__mast { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); color: var(--color-ink); font-size: var(--text-display-s); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.1; }
.foot__mast img { width: auto; height: 1.1em; }
.foot__cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-xl) var(--gap-columns); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 2px solid var(--color-ink); }
.foot h3 { font-size: var(--text-md); }
.foot ul { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--color-ink-2); }
.foot__col { display: grid; gap: var(--space-sm); align-content: start; }
.colophon { max-width: 44ch; font-size: var(--text-md); }
.legal { font-size: var(--text-md); }

@media (max-width: 60rem) {
  .scene { --split: 66%; }
  .cols { row-gap: var(--space-lg); }
  .cols > * { grid-column: 1 / -1; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .view { top: 64px; z-index: var(--z-raised); padding: var(--space-md); }
  .view img { max-height: 26dvh; object-fit: contain; }
  .outs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { padding: var(--space-lg); }
  .cats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
  .wordmark { display: none; }
  .report { padding: var(--space-md); }
}
@media (max-width: 40rem) {
  .nav__link { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .facts li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr; column-gap: var(--space-md); }
  .facts img { grid-row: 1 / span 2; }
  .cats ul { gap: var(--space-sm); font-size: var(--text-sm); }
  .street img { height: 112px; object-fit: cover; object-position: 0 50%; }
  .tag { font-size: var(--text-xs); }
  .report [data-col] { display: none; }
  .report[data-view="shelf"] [data-col="shelf"],
  .report[data-view="offtake"] [data-col="offtake"],
  .report[data-view="media"] [data-col="media"],
  .report[data-view="price"] [data-col="price"] { display: table-cell; }
}
