/* thisisyesplease.com: design system (T005)
   Concept: "Chiang Dao valley". Deep valley greens, garlic-skin blush, photos framed in arches
   taken from the garlic bulb silhouette. One orchestrated motion moment: the home hero. */

/* ---------- Fonts (self-hosted; Google Fonts is blocked in mainland China) ---------- */
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(/assets/fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(/assets/fonts/ibm-plex-sans-thai-thai-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(/assets/fonts/ibm-plex-sans-thai-thai-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(/assets/fonts/ibm-plex-sans-thai-thai-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Serif Thai"; src: url(/assets/fonts/noto-serif-thai-thai-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Serif Thai"; src: url(/assets/fonts/noto-serif-thai-thai-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

/* ---------- Tokens ---------- */
:root {
  --ink: #17231b;          /* valley night */
  --ink-soft: #46554a;
  --green: #56725c;        /* badge green */
  --green-deep: #213228;
  --leaf: #a9bea6;
  --mist: #eef2ec;         /* morning mist over the fields */
  --paper: #ffffff;
  --blush: #a8606e;        /* Thai garlic skin */
  --blush-soft: #f3e4e6;
  --line: rgba(23, 35, 27, 0.14);
  --line-light: rgba(255, 255, 255, 0.22);

  --serif: "EB Garamond", "Noto Serif Thai", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.3rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.6rem);

  --space: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --section: clamp(4rem, 3rem + 6vw, 9rem);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --arch: 999px 999px 18px 18px;   /* garlic-bulb arch */
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
:root:lang(th) { --serif: "Noto Serif Thai", "EB Garamond", serif; --sans: "IBM Plex Sans Thai", "Hanken Grotesk", system-ui, sans-serif; }
:root:lang(zh) {
  --serif: "EB Garamond", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Hanken Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
a, button, summary, input, select, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(168, 96, 110, 0.15); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:lang(th) body, body:lang(th) { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--blush); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
:lang(th) :is(h1, h2, h3) { line-height: 1.35; letter-spacing: 0; font-weight: 600; }
:lang(zh) :is(h1, h2, h3) { line-height: 1.25; letter-spacing: 0.02em; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 0.6em 1em; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5em; min-height: 48px; padding: 0.75em 1.5em; border-radius: 999px; background: var(--green-deep); color: #fff; font: 500 var(--step-0)/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--green); }
.btn-small { min-height: 40px; padding: 0.5em 1.1em; font-size: var(--step--1); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.link-strong { font-weight: 600; text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.site-header { padding-top: env(safe-area-inset-top, 0); }
.header-row { padding-inline: max(var(--gutter), env(safe-area-inset-left, 0)) max(var(--gutter), env(safe-area-inset-right, 0)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-badge { width: 40px; height: 40px; flex: none; }
.tiyp-logo { height: 26px; width: auto; flex: none; display: block; }
.brand-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-block: 10px; }
.brand-stack .brand-text { display: flex !important; }
.brand-stack .brand-sub { display: block !important; }
.brand-divider { width: 1px; height: 30px; background: currentColor; opacity: 0.25; flex: none; }
@media (max-width: 480px) { .tiyp-logo { height: 16px; } .brand-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-stack .brand-text { display: flex !important; }
.brand-stack .brand-sub { display: block !important; }
.brand-divider { height: 24px; } .brand-badge { width: 34px; height: 34px; } .brand { gap: 0.5rem; } .brand-text { display: none; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 600 1.05rem/1.1 "EB Garamond", Georgia, serif; letter-spacing: 0.01em; white-space: nowrap; }
.brand-sub { font-size: 0.72rem; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav-list { list-style: none; display: flex; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.6rem); }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 0.95rem; padding-block: 0.4em; }
.nav-list a:not(.btn):hover, .nav-list a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--blush); }
.nav-toggle { display: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; font-size: 0.82rem; font-weight: 600; padding: 0.3em 0.7em; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Transparent header over the home hero */
.page-home .site-header:not(.is-solid) { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.page-home .site-header:not(.is-solid) .brand-sub { color: rgba(255, 255, 255, 0.8); }
.page-home .site-header:not(.is-solid) .lang { border-color: var(--line-light); }
.page-home .site-header:not(.is-solid) .lang a[aria-current="true"] { background: #fff; color: var(--ink); }
.page-home .site-header:not(.is-solid) .nav-cta .btn { background: #fff; color: var(--ink); }
.page-home .site-header { position: fixed; inset: 0 0 auto 0; }

@media (max-width: 1000px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font: 600 0.9rem/1 var(--sans); }
  .nav-toggle-icon { width: 16px; height: 10px; border-block: 2px solid currentColor; position: relative; }
  .nav-menu.is-open .nav-toggle-icon { border-color: transparent; }
  .nav-menu.is-open .nav-toggle-icon::before, .nav-menu.is-open .nav-toggle-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transform: rotate(45deg); }
  .nav-menu.is-open .nav-toggle-icon::after { transform: rotate(-45deg); }
  .js .nav-list { display: none; }
  .js .nav-menu.is-open .nav-list { display: flex; }
  .nav-list { position: fixed; left: 0; right: 0; top: 84px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); color: var(--ink); padding: 0.5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); max-height: calc(100svh - 84px); overflow-y: auto; }
  html:not(.js) .nav-list { position: static; box-shadow: none; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; color: inherit; border: 0; }
  .nav-list li a:not(.btn) { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-cta { padding-top: 1rem; }
  .nav { gap: 0.6rem; }
  .brand-sub { display: none; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1rem; }
  .brand-text { max-width: 6.5em; }
  .lang a { padding: 0.3em 0.45em; font-size: 0.78rem; }
  .js .nav-toggle { padding: 0 0.7rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav-toggle { white-space: nowrap; }

/* ---------- Home hero (the one orchestrated moment) ---------- */
.hero { position: relative; min-height: max(620px, 100svh); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--green-deep); }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 12, 0.45) 0%, rgba(10, 18, 12, 0) 26%, rgba(10, 18, 12, 0) 45%, rgba(10, 18, 12, 0.72) 100%); }
.hero-inner { position: relative; padding-bottom: clamp(5rem, 9vw, 8rem); }
.hero-title { font-size: var(--step-4); font-weight: 500; line-height: 0.98; max-width: 19ch; letter-spacing: -0.02em; }
:lang(th) .hero-title { line-height: 1.25; max-width: 16ch; }
:lang(zh) .hero-title { line-height: 1.15; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; line-height: 0.98; }
:lang(th) .hero-title .line { line-height: 1.3; }
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 46ch; margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 1.2rem; margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }
.hero-caption::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 0.6em; }
@media (max-width: 640px) { .hero-caption { left: var(--gutter); right: auto; } }

/* ---------- Sections ---------- */
.section-title { font-size: var(--step-3); max-width: 20ch; }
.section-intro { color: var(--ink-soft); max-width: 58ch; margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; }
section { scroll-margin-top: 80px; }

.intro { padding-block: var(--section) calc(var(--section) * 0.7); }
.intro-grid { display: grid; grid-template-columns: 1fr minmax(240px, 34%); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.intro-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--arch); }
@media (max-width: 800px) { .intro-grid { grid-template-columns: 1fr; } .intro-media { max-width: 320px; } }
.intro-text { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; max-width: 34ch; }
:lang(th) .intro-text { line-height: 1.6; max-width: 40ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; border-top: 1px solid var(--ink); }
.fact { padding: 1.4rem 1.4rem 0 0; border-right: 1px solid var(--line); margin-right: 1.4rem; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact dt { font: 500 var(--step-3)/1 "EB Garamond", Georgia, serif; color: var(--green); font-variant-numeric: lining-nums tabular-nums; }
.fact dd { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: var(--step--1); max-width: 22ch; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; margin-right: 0; } .fact { padding-bottom: 1.4rem; } }

/* Business lines */
.lines { padding-block: var(--section); background: var(--mist); }
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(2rem, 4vw, 3.5rem); }
.feature-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.feature-badge { width: 84px; height: 84px; margin-bottom: 1.4rem; }
.feature-title { font-size: var(--step-3); margin-bottom: 1rem; }
.feature-title a { text-decoration: none; }
.feature-body p { max-width: 42ch; }
.line-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--ink); }
.line { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.line-title { font-size: var(--step-2); margin-bottom: 0.4rem; }
.line-title a { text-decoration: none; background: linear-gradient(var(--blush), var(--blush)) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--ease); }
.line-title a:hover { background-size: 100% 2px; }
.line p { margin: 0; color: var(--ink-soft); }
.line-quiet .line-title { font-size: var(--step-1); }
@media (max-width: 800px) { .feature, .line-list { grid-template-columns: 1fr; } .feature-media img { aspect-ratio: 1 / 1; } }

/* Process strip (a real sequence, so it is numbered) */
.process { padding-block: var(--section); overflow: hidden; }
.steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 28vw, 360px); gap: clamp(1rem, 2vw, 1.75rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: clamp(2rem, 4vw, 3rem) var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--leaf) transparent; }
@media (min-width: 1320px) { .steps { padding-inline: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); } }
.step { scroll-snap-align: start; }
.step-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.step-n { font: italic 400 var(--step-3)/1 "EB Garamond", Georgia, serif; color: var(--blush); margin: 1.1rem 0 0.3rem; }
.step-title { font-size: var(--step-1); margin-bottom: 0.35rem; }
.step-text { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.55; }

/* Products */
.products { padding-block: var(--section) calc(var(--section) * 0.6); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin: clamp(2rem, 4vw, 3.5rem) 0 2rem; }
.product-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.product-title { font-size: var(--step-2); margin: 1.2rem 0 0.4rem; }
.product p { color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) { .product-grid { grid-template-columns: 1fr; } .product-media img { aspect-ratio: 5 / 4; border-radius: 280px 280px 14px 14px; } }

/* Full-bleed photo band */
.band { position: relative; min-height: clamp(360px, 52vw, 640px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--green-deep); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 12, 0) 35%, rgba(10, 18, 12, 0.7) 100%); }
.band-inner { position: relative; z-index: 1; padding-bottom: clamp(2rem, 5vw, 4rem); }
.band-text { font: italic 400 var(--step-3)/1.15 var(--serif); max-width: 22ch; margin: 0; }
:lang(th) .band-text, :lang(zh) .band-text { font-style: normal; line-height: 1.4; }

/* Where to buy */
.buy { padding-block: var(--section); background: var(--mist); }
.shops { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
.shop-country { font-size: var(--step-1); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.flag { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.06em; padding: 0.35em 0.5em; border-radius: 6px; background: var(--ink); color: #fff; }
.shop-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.shop { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem 1.2rem; min-height: 84px; background: #fff; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--line); border-left: 5px solid var(--c, var(--green)); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.shop:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(23, 35, 27, 0.45); }
.shop-name { font-weight: 600; }
.shop-handle { font-size: var(--step--1); color: var(--ink-soft); }
.shop-shopee { --c: #ee4d2d; } .shop-lazada { --c: #1a1a8f; } .shop-tiktok { --c: #111; } .shop-facebook { --c: #1877f2; }
@media (max-width: 800px) { .shops { grid-template-columns: 1fr; } }

/* Singapore note (garlic page) */
.sg-note { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--blush-soft); max-width: 640px; }
.sg-note h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.sg-note p { margin: 0 0 0.6rem; }
.sg-note p:last-child { margin: 0; }

/* Contact channels */
.contact-band { padding-block: var(--section); background: var(--green-deep); color: #fff; }
.contact-band .section-intro { color: rgba(255, 255, 255, 0.78); }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.channel { padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-light); }
.channel-h { font-size: var(--step-2); }
.channel-note { color: rgba(255, 255, 255, 0.74); font-size: var(--step--1); margin: 0.5rem 0 1.2rem; }
.channel-list { list-style: none; display: grid; gap: 0.6rem; }
.chip { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; min-height: 52px; padding: 0.7rem 1rem; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; font: inherit; border: 0; cursor: pointer; text-align: left; transition: background 0.2s; }
.chip:hover { background: var(--blush-soft); }
.chip-k { font-weight: 600; }
.chip-v { font-size: var(--step--1); color: var(--ink-soft); overflow-wrap: anywhere; text-align: right; }
.chip.is-copied .chip-v { color: var(--green); font-weight: 600; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr; } }
/* channels on light pages */
.on-light .channel { background: var(--mist); border-color: var(--line); }
.on-light .channel-note { color: var(--ink-soft); }
.on-light .chip { border: 1px solid var(--line); }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 6rem) var(--section); background: var(--mist); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem); line-height: 1.02; }
:lang(th) .page-hero h1 { line-height: 1.3; font-size: var(--step-3); }
:lang(zh) .page-hero h1 { line-height: 1.2; }
.page-hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; margin-top: 1.4rem; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
@media (max-width: 800px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-media { order: -1; } .page-hero-media img { aspect-ratio: 4 / 3; border-radius: 400px 400px 14px 14px; } }
.page-hero.simple { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.block { padding-block: var(--section); }
.block.tint { background: var(--mist); }
.block.dark { background: var(--green-deep); color: #fff; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split.flip { grid-template-columns: 7fr 5fr; }
@media (max-width: 800px) { .split, .split.flip { grid-template-columns: 1fr; } }
.prose { max-width: 62ch; }
.prose p { font-size: var(--step-1); line-height: 1.6; }
.prose-lg p { font-family: var(--serif); font-size: var(--step-2); line-height: 1.4; }
:lang(th) .prose-lg p { line-height: 1.7; }
.photo img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-wide img { aspect-ratio: 21 / 9; }
@media (max-width: 800px) { .photo-wide img { aspect-ratio: 4 / 3; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.card { padding: clamp(1.2rem, 2vw, 1.6rem) clamp(0.5rem, 1.5vw, 1.5rem) 0 0; border-top: 2px solid var(--ink); background: transparent; }
.card h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); margin: 0; }
.dark .card { border-color: rgba(255, 255, 255, 0.7); }
.dark .card p, .dark .section-intro { color: rgba(255, 255, 255, 0.78); }

.range { display: grid; gap: clamp(3rem, 6vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.range-item { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.range-item:nth-child(even) { grid-template-columns: 7fr 5fr; }
.range-item:nth-child(even) .range-media { order: 2; }
.range-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--arch); }
.range-item h3 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.range-item p { color: var(--ink-soft); font-size: var(--step-1); }
.ticks { list-style: none; display: grid; gap: 0.5rem; margin-top: 1rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50% 50% 45% 45%; background: var(--blush); }
@media (max-width: 800px) { .range-item, .range-item:nth-child(even) { grid-template-columns: 1fr; } .range-item:nth-child(even) .range-media { order: 0; } .range-media img { aspect-ratio: 4 / 3; } }

.steps-v { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
.steps-v li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.steps-v li::before { content: counter(s); display: block; font: italic 400 var(--step-3)/1 "EB Garamond", Georgia, serif; color: var(--blush); margin-bottom: 0.6rem; }
.steps-v h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps-v p { color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) { .steps-v { grid-template-columns: 1fr; } }

.spec { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); }
.spec h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }

.dl-table { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.dl-table dt, .dl-table dd { padding: 0.9rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl-table dt { color: var(--ink-soft); padding-right: 2rem; }

.cta-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--radius); background: var(--green-deep); color: #fff; }
.cta-panel h2 { font-size: var(--step-3); max-width: 18ch; }
.cta-panel p { color: rgba(255, 255, 255, 0.8); max-width: 48ch; margin: 0.8rem 0 0; }

/* Route map (logistics) */
.route { position: relative; }
.route svg { width: 100%; height: auto; max-height: 560px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font: 500 var(--step-1)/1.35 var(--serif); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--blush); flex: none; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.3rem; color: var(--ink-soft); max-width: 60ch; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(86, 114, 92, 0.25); outline-offset: 0; }
.consent { grid-column: 1 / -1; display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 0.2em; accent-color: var(--green); flex: none; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="err"] { color: #9b2c2c; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.legal { max-width: 70ch; }
.legal h2 { font-size: var(--step-2); margin: 2rem 0 0.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.86); padding-top: clamp(3.5rem, 6vw, 5.5rem); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-brand .tiyp-logo { height: 44px; color: #fff; }
.footer-sub-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.4rem; text-decoration: none; padding: 0.5rem 0.9rem 0.5rem 0.5rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; }
.footer-sub-brand:hover { border-color: rgba(255, 255, 255, 0.5); }
.footer-sub-brand img { width: 44px; height: 44px; }
.footer-sub-t { font: 500 1rem/1.3 "EB Garamond", Georgia, serif; }
.footer-sub-k { font: 400 0.72rem/1.2 var(--sans); color: rgba(255, 255, 255, 0.6); }
.footer-tagline { font: italic 400 var(--step-1)/1.3 "EB Garamond", Georgia, serif; margin-top: 1rem; max-width: 18ch; }
.footer-h { font: 600 0.8rem/1.2 var(--sans); color: rgba(255, 255, 255, 0.6); margin-bottom: 1rem; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a, .footer-address a { text-decoration: none; }
.footer-links a:hover, .footer-address a:hover { text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.8; }
.footer-reg { margin-top: 1rem; color: rgba(255, 255, 255, 0.6); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.anim .hero-media { clip-path: circle(9% at 50% 46%); }
.anim .hero-title, .anim [data-hero-rise] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
