/* ============================================================
   SELF-HOSTED FONTS - Trirong / Sarabun / IBM Plex Mono
   Subsets: latin, latin-ext, thai. Served from /fonts/.
   ============================================================ */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibmplexmono-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibmplexmono-400-normal-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibmplexmono-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibmplexmono-500-normal-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: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/sarabun-400-normal-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/sarabun-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/sarabun-400-normal-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: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/sarabun-500-normal-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/sarabun-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/sarabun-500-normal-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: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/sarabun-600-normal-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/sarabun-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sarabun';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/sarabun-600-normal-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: 'Trirong';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-400-italic-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Trirong';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Trirong';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-400-italic-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: 'Trirong';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/trirong-500-italic-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Trirong';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/trirong-500-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Trirong';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/trirong-500-italic-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: 'Trirong';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-400-normal-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/trirong-400-normal-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: 'Trirong';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/trirong-500-normal-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/trirong-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/trirong-500-normal-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: 'Trirong';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/trirong-600-normal-thai.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/trirong-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Trirong';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/trirong-600-normal-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;
}

/* ============================================================
   THAILAND STOCK LOANS — SHARED STYLESHEET
   "Emerald & Antique Gold on Silk-Cream"
   Type: Trirong (serif, Latin+Thai) · Sarabun (sans, Latin+Thai)
         · IBM Plex Mono (labels). Loaded via Google Fonts in <head>.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Silk — warm cream paper, the canvas */
  --silk:       #f7f2e7;
  --silk-2:     #f0e9d8;
  --silk-3:     #e7dcc6;
  --silk-card:  #fbf8f0;

  /* Emerald — มรกต, the house colour */
  --emerald:      #0d4a38;
  --emerald-2:    #12604a;
  --emerald-deep: #07382a;
  --emerald-ink:  #15241e;   /* near-black green, body text on silk */

  /* Antique gold — temple gilding, restrained */
  --gold:       #a8853f;
  --gold-2:     #c4a35e;
  --gold-3:     #ddc183;     /* light gold, for use on emerald */
  --gold-deep:  #836626;

  /* Lotus — a sparing rose-clay accent (เลือดหมู / dok bua) */
  --lotus:      #9c4a3c;
  --lotus-2:    #b75d4d;

  /* Cream text tones on emerald */
  --cream:      #f4efe1;
  --cream-2:    #e3dcc8;
  --cream-3:    #c2bca7;

  /* Hairlines (dark-on-silk) */
  --rule:        rgba(21, 36, 30, 0.16);
  --rule-strong: rgba(21, 36, 30, 0.30);
  --rule-soft:   rgba(21, 36, 30, 0.08);
  /* Hairlines on emerald */
  --rule-cream:        rgba(244, 239, 225, 0.18);
  --rule-cream-strong: rgba(244, 239, 225, 0.34);
  --rule-cream-soft:   rgba(244, 239, 225, 0.09);

  /* Muted text */
  --muted:    #59685e;
  --muted-2:  #828d82;

  /* Type stacks */
  --serif: "Trirong", "Noto Serif Thai", "Times New Roman", Georgia, serif;
  --sans:  "Sarabun", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --max:        1320px;
  --max-narrow: 920px;
  --max-read:   720px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(80px, 8vw, 140px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--silk);
  color: var(--emerald-ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--emerald); color: var(--cream); }

/* Thai language refinements (Trirong/Sarabun cover Thai natively) */
:lang(th) { line-height: 1.85; }
:lang(th) p, :lang(th) li { line-height: 1.95; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--emerald); color: var(--cream);
  padding: 12px 20px; z-index: 1000;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--emerald);
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 600; color: var(--emerald-ink); }
h5 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
:lang(th) h1, :lang(th) h2, :lang(th) h3 { letter-spacing: 0; line-height: 1.3; }
em { font-style: italic; color: var(--gold-deep); }
strong { font-weight: 600; }
p { color: var(--emerald-ink); margin: 0 0 1em; }

.lede {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.6;
  color: var(--emerald-ink);
  max-width: 64ch;
}
:lang(th) .lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.9; max-width: 54ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
:lang(th) .eyebrow, :lang(th) .num { letter-spacing: 0.16em; }

/* Inline lotus emblem (echoes the favicon) */
.lotus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--emerald); border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(196, 163, 94, 0.5);
  flex-shrink: 0; user-select: none;
}
.lotus svg { width: 60%; height: 60%; }
.lotus--sm { width: 30px; height: 30px; }
.lotus--lg { width: 64px; height: 64px; }
.lotus--inline { width: 26px; height: 26px; vertical-align: middle; margin: 0 6px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }
.wrap--read { max-width: var(--max-read); }

.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--silk-2); }

/* Inverted deep-emerald section */
.section--emerald { background: var(--emerald); color: var(--cream); }
.section--emerald h1, .section--emerald h2, .section--emerald h3, .section--emerald h4 { color: var(--cream); }
.section--emerald p { color: var(--cream-2); }
.section--emerald em { color: var(--gold-3); }
.section--emerald .eyebrow { color: var(--gold-3); }
.section--emerald .num { color: var(--cream-3); }
.section--emerald .lede { color: var(--cream); }

.section__head {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 64px; margin-bottom: 64px; align-items: start;
}
.section__head > .num { padding-top: 8px; }

/* Ornamental gold rule — three diamonds, kanok-inspired */
.kanok {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto;
  color: var(--gold);
}
.kanok::before, .kanok::after {
  content: ""; height: 1px; width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kanok::after { background: linear-gradient(90deg, var(--gold), transparent); }
.kanok span { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.kanok span:nth-child(2) { width: 8px; height: 8px; }

/* ---------- Top utility bar ---------- */
.utility {
  background: var(--emerald-deep);
  color: var(--cream-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.utility__row {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px;
}
.utility a { color: var(--cream-2); transition: color 0.2s; }
.utility a:hover { color: var(--gold-3); }
.utility__right { display: flex; gap: 24px; align-items: center; }

/* ---------- Topbar nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 231, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topbar__row {
  display: flex; justify-content: space-between; align-items: center;
  height: 74px; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--serif); font-weight: 600;
  font-size: 18px; letter-spacing: -0.005em;
  color: var(--emerald); white-space: nowrap;
}
.brand__text { display: inline-flex; flex-direction: column; line-height: 1.04; }
.brand__word { white-space: nowrap; }
.brand__word--sub {
  font-family: var(--mono); font-weight: 400;
  font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep);
}
:lang(th) .brand__word--sub { letter-spacing: 0.14em; }

nav.primary { display: flex; gap: 26px; align-items: center; }
nav.primary a {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--emerald-ink); letter-spacing: 0.01em;
  padding: 6px 0; position: relative; transition: color 0.2s;
  white-space: nowrap;
}
nav.primary a:hover, nav.primary a.active { color: var(--gold-deep); }
nav.primary a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--gold);
}

.topbar__right { display: flex; align-items: center; gap: 20px; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  flex-shrink: 0; white-space: nowrap;
}
.lang-toggle a { color: var(--muted); padding: 6px 4px; }
.lang-toggle a.active { color: var(--emerald); font-weight: 500; }
.lang-toggle a:hover { color: var(--gold-deep); }
.lang-toggle .sep { color: var(--muted-2); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: var(--emerald); color: var(--cream);
  border: 1px solid var(--emerald);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: all 0.25s; white-space: nowrap; flex-shrink: 0;
}
.btn-cta:hover { background: var(--emerald-deep); border-color: var(--gold); color: var(--gold-3); }

.menu-toggle {
  display: none; background: none; border: 0;
  color: var(--emerald);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 0; flex-shrink: 0; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(60px, 8vw, 100px);
  position: relative; overflow: hidden;
}
/* faint gilded watermark behind hero */
.hero::after {
  content: ""; position: absolute; right: -6%; top: 50%;
  width: min(46vw, 620px); aspect-ratio: 1; transform: translateY(-50%);
  background:
    radial-gradient(closest-side, rgba(168, 133, 63, 0.10), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 44px; align-items: center;
}
.hero__meta span { display: inline-flex; align-items: center; }
.hero__meta span + span::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
  margin-right: 28px;
}
:lang(th) .hero__meta { letter-spacing: 0.1em; }

.hero__headline {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 1.0; letter-spacing: -0.035em;
  color: var(--emerald);
  margin-bottom: 40px; max-width: 17ch;
}
.hero__headline em { font-style: italic; color: var(--gold-deep); font-weight: 500; }
:lang(th) .hero__headline {
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.25; letter-spacing: 0;
}

.hero__sub {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5; color: var(--emerald-ink);
  max-width: 56ch; margin-bottom: 30px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
}
:lang(th) .hero__sub { font-style: normal; line-height: 1.8; }

.hero__positioning {
  font-size: 16px; color: var(--muted);
  max-width: 60ch; line-height: 1.75; margin-bottom: 48px;
}
:lang(th) .hero__positioning { line-height: 2; max-width: 50ch; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 32px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.25s; border: 1px solid transparent;
}
.btn-primary { background: var(--emerald); color: var(--cream); border-color: var(--emerald); }
.btn-primary:hover { background: var(--emerald-deep); border-color: var(--gold); color: var(--gold-3); }
.btn-secondary { background: transparent; color: var(--emerald); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-deep); }

/* Buttons on emerald sections */
.section--emerald .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--emerald-deep); }
.section--emerald .btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.section--emerald .btn-secondary { color: var(--cream); border-color: var(--rule-cream-strong); }
.section--emerald .btn-secondary:hover { border-color: var(--gold-3); color: var(--gold-3); }

/* Inner-page hero (lighter) */
.hero--inner { padding: clamp(52px, 7vw, 92px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--rule); }
.hero--inner .hero__headline { font-size: clamp(38px, 6vw, 74px); max-width: 22ch; margin-bottom: 26px; }
.hero--inner .hero__sub { font-size: clamp(17px, 1.3vw, 21px); margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span { color: var(--rule-strong); margin: 0 8px; }

/* ---------- Credibility strip ---------- */
.strip { background: var(--emerald); border-block: 1px solid var(--emerald-deep); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-cream); }
.strip__cell { background: var(--emerald); padding: 34px var(--gutter); display: flex; flex-direction: column; gap: 8px; }
.strip__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-3); }
.strip__value { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); color: var(--cream); letter-spacing: -0.005em; }
:lang(th) .strip__value { line-height: 1.4; }

/* ---------- Grids ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card-link {
  display: block; border: 1px solid var(--rule); background: var(--silk-card);
  padding: 32px; transition: all 0.25s; position: relative;
}
.card-link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 0.3s;
}
.card-link:hover { border-color: var(--rule-strong); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(13, 74, 56, 0.10); }
.card-link:hover::before { transform: scaleY(1); }
.card-link h3 { margin-bottom: 12px; font-size: 22px; }
.card-link p { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.card-link .arrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.section--emerald .card-link { background: var(--emerald-2); border-color: var(--rule-cream); }
.section--emerald .card-link h3 { color: var(--cream); }
.section--emerald .card-link p { color: var(--cream-2); }
.section--emerald .card-link .arrow { color: var(--gold-3); }
.section--emerald .card-link:hover { border-color: var(--rule-cream-strong); box-shadow: none; }

/* Two routes / solutions */
.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.solution { background: var(--silk-card); padding: 48px 40px; }
.solution h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 20px; }
.solution h3 em { color: var(--gold-deep); }
.solution p { font-size: 15px; line-height: 1.7; margin-bottom: 24px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 24px; }
.step { background: var(--silk-card); padding: 36px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 280px; }
.step__num { font-family: var(--serif); font-weight: 600; font-size: 44px; color: var(--gold); line-height: 1; }
.step__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.step h3 { font-size: 22px; line-height: 1.2; margin: 0; }
.step p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--muted); }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 32px; }
.sector { background: var(--silk); padding: 36px 28px; min-height: 200px; }
.sector__icon { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-deep); margin-bottom: 16px; }
.sector h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; margin-bottom: 12px; color: var(--emerald); }
.sector p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Pillars list */
.pillars { list-style: none; padding: 0; margin: 0; }
.pillars li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--emerald-ink); }
.pillars li:last-child { border-bottom: 1px solid var(--rule); }
.pillars li > span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gold-deep); padding-top: 4px; }
.pillars strong { color: var(--emerald); }

/* Two-column */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 32px; }
.twocol--asym { grid-template-columns: 1fr 1.4fr; }

/* Pull quote */
.pull { border-left: 2px solid var(--gold); padding-left: 40px; }
.pull__quote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.4; color: var(--emerald); margin: 0 0 16px; }
:lang(th) .pull__quote { font-style: normal; line-height: 1.7; }
.pull__attr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faqs { border-top: 1px solid var(--rule); margin-top: 32px; }
details.faq { border-bottom: 1px solid var(--rule); }
.faq__q {
  list-style: none; display: grid; grid-template-columns: 64px 1fr 32px;
  gap: 24px; align-items: center; padding: 28px 0; cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: -0.005em; color: var(--emerald);
}
:lang(th) .faq__q { letter-spacing: 0; line-height: 1.5; }
.faq__q::-webkit-details-marker { display: none; }
.faq__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--gold-deep); }
.faq__plus { width: 24px; height: 24px; position: relative; justify-self: end; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); transition: transform 0.3s; }
.faq__plus::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__plus::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
details.faq[open] .faq__plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { padding: 0 88px 32px 88px; color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 90ch; }
:lang(th) .faq__a { line-height: 1.95; }

/* ---------- Prose (insight articles & legal) ---------- */
.prose { max-width: var(--max-read); }
.prose > * { max-width: 100%; }
.prose h2 { font-size: clamp(24px, 2.4vw, 34px); margin: 48px 0 18px; }
.prose h3 { font-size: clamp(19px, 1.8vw, 24px); margin: 36px 0 14px; color: var(--emerald-2); }
.prose p { font-size: 17px; line-height: 1.8; margin: 0 0 22px; color: var(--emerald-ink); }
:lang(th) .prose p { font-size: 16px; line-height: 2; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 22px; }
.prose li { font-size: 17px; line-height: 1.8; margin-bottom: 10px; color: var(--emerald-ink); }
:lang(th) .prose li { font-size: 16px; line-height: 1.95; }
.prose strong { color: var(--emerald); }
.prose blockquote { border-left: 2px solid var(--gold); margin: 28px 0; padding: 4px 0 4px 28px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--emerald); }
:lang(th) .prose blockquote { font-style: normal; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--lotus); }
.article__meta { display: flex; flex-wrap: wrap; gap: 12px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 0; }
.article__meta span { display: inline-flex; align-items: center; }

/* ---------- Form ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; margin-top: 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
:lang(th) .field label { letter-spacing: 0.08em; }
.field input, .field textarea, .field select {
  background: var(--silk-card); border: 1px solid var(--rule);
  color: var(--emerald-ink); font-family: var(--sans); font-size: 16px;
  padding: 13px 14px; -webkit-appearance: none; border-radius: 2px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 133, 63, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.submit {
  background: var(--emerald); color: var(--cream);
  border: 1px solid var(--emerald); padding: 18px 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer; transition: all 0.25s;
}
.submit:hover { background: var(--emerald-deep); border-color: var(--gold); color: var(--gold-3); }
.submit--done { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--emerald-deep) !important; cursor: default; }

/* ---------- Footer ---------- */
footer { background: var(--emerald-deep); color: var(--cream-2); border-top: 3px solid var(--gold); padding: 80px 0 32px; }
/* Footer column labels — non-heading (kept out of the doc outline to avoid
   heading-level skips); reproduces the previous <h5> appearance exactly. */
.foot__h {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  line-height: 1.15; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-3); margin: 0 0 18px;
}
.foot__grid { display: grid; grid-template-columns: 1.5fr 0.85fr 0.85fr 1.5fr 1.05fr; gap: 36px 40px; margin-bottom: 56px; }
/* Mid-width: use a comfortable 3-column footer until there is room for 5 without
   crowding the email in the Contact column. 5 columns only on wide screens. */
@media (min-width: 1025px) and (max-width: 1240px) {
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px 44px; }
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { color: var(--cream-2); font-size: 13px; transition: color 0.2s; overflow-wrap: anywhere; }
.foot ul li { overflow-wrap: anywhere; }
.foot ul a:hover { color: var(--gold-3); }
.foot__brand .brand { color: var(--cream); margin-bottom: 14px; }
.foot__brand .brand__word--sub { color: var(--gold-3); }
.foot__brand p { font-size: 14px; color: var(--cream-3); max-width: 42ch; margin-top: 14px; line-height: 1.7; }
.foot__brand .lotus { box-shadow: inset 0 0 0 1px rgba(196, 163, 94, 0.6); background: var(--emerald-2); }

.foot__address { display: flex; align-items: flex-start; gap: 22px; padding: 28px 0 4px; border-top: 1px solid var(--rule-cream); margin-top: 8px; font-style: normal; }
.foot__address p { font-size: 12.5px; line-height: 1.75; color: var(--cream-3); max-width: 84ch; margin: 0; }

.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule-cream);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream-3); gap: 16px; flex-wrap: wrap;
}
.foot__bottom a { color: var(--cream-3); transition: color 0.2s; }
.foot__bottom a:hover { color: var(--gold-3); }

.disclosure { padding-top: 32px; border-top: 1px solid var(--rule-cream); font-size: 12px; color: var(--cream-3); line-height: 1.75; max-width: 92ch; }
:lang(th) .disclosure { line-height: 1.95; }
.disclosure strong { color: var(--cream-2); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================
   RESPONSIVE — five tiers
     L1 ≤1024  L2 ≤820  L3 ≤720 (nav→drawer primary)  L4 ≤560  L5 ≤380
   ================================================================ */
*, *::before, *::after { min-width: 0; }
html, body { overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
.wrap, .wrap--narrow, .wrap--read { width: 100%; }

/* L1 ≤1024 */
@media (max-width: 1024px) {
  :root { --section-y: clamp(60px, 7vw, 110px); }
  .topbar__row { gap: 16px; }
  .topbar__right { gap: 14px; flex-shrink: 0; }
  /* Let the brand title wrap instead of sliding under the language toggle,
     and keep EN·TH + CTA + Menu on one row (mobile header fit). */
  .topbar .brand__word:not(.brand__word--sub) { white-space: normal; }
  .btn-cta { padding: 10px 16px; letter-spacing: 0.12em; }

  nav.primary {
    display: none; position: fixed; top: 74px; left: 0; right: 0;
    max-height: calc(100vh - 74px); overflow-y: auto;
    background: var(--silk-card); border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px; z-index: 99;
    box-shadow: 0 24px 48px rgba(13, 74, 56, 0.18);
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--rule-soft); }
  nav.primary a:last-child { border-bottom: 0; }
  nav.primary a.active::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-toggle[aria-expanded="true"] { color: var(--gold-deep); }

  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .solutions, .steps { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .twocol, .twocol--asym, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .cards-grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .sectors[style*="grid-template-columns"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* Inline 3-up steps (e.g. stock-loans key terms) collapse to 2-up on tablet,
     matching the .sectors pattern; the ≤720 rule below takes them to 1-up. */
  .steps[style*="grid-template-columns"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* L2 ≤820 */
@media (max-width: 820px) {
  :root { --section-y: clamp(56px, 6.5vw, 90px); --gutter: clamp(20px, 4vw, 40px); }
  .hero { padding: clamp(48px, 6.5vw, 88px) 0 clamp(40px, 6vw, 70px); }
  .hero--inner { padding: clamp(44px, 5.5vw, 76px) 0 clamp(28px, 4vw, 48px); }
  .hero__meta { gap: 14px 22px; margin-bottom: 32px; }
  .hero__meta span + span::before { margin-right: 18px; }
  .hero__headline { margin-bottom: 32px; }
  .hero__sub { margin-bottom: 24px; }
  .hero__positioning { margin-bottom: 32px; }
  .pillars li { grid-template-columns: 32px 1fr; gap: 12px; }
  footer { padding: 56px 0 28px; }
  .foot__grid { gap: 40px; margin-bottom: 40px; }
}

/* L3 ≤720 — primary mobile */
@media (max-width: 720px) {
  :root { --section-y: clamp(48px, 11vw, 72px); --gutter: 20px; }
  body { font-size: 15.5px; line-height: 1.62; }
  .utility { display: none; }
  .topbar__row { height: 62px; gap: 16px; }
  .brand { font-size: 16px; gap: 13px; }
  nav.primary { top: 62px; max-height: calc(100vh - 62px); }
  .topbar__right { gap: 12px; }
  .lang-toggle { font-size: 10.5px; }
  .btn-cta { padding: 9px 14px; font-size: 10.5px; letter-spacing: 0.12em; }

  .hero { padding-top: 48px; padding-bottom: 36px; }
  .hero--inner { padding-top: 48px; padding-bottom: 28px; }
  .hero__meta { font-size: 10px; letter-spacing: 0.16em; gap: 10px 18px; margin-bottom: 24px; }
  .hero__meta span + span::before { margin-right: 12px; }
  .hero__headline { margin-bottom: 24px; line-height: 1.05; }
  .hero__sub { font-size: 17px; line-height: 1.45; margin-bottom: 20px; }
  .hero__positioning { font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
  .hero__ctas { gap: 12px; }

  .btn-primary, .btn-secondary { padding: 16px 22px; font-size: 11px; letter-spacing: 0.16em; width: 100%; justify-content: center; }

  .strip__grid { grid-template-columns: 1fr; gap: 1px; }
  .strip__cell { padding: 22px var(--gutter); }
  .strip__value { font-size: 20px; }

  .solutions, .steps, .steps[style*="grid-template-columns"], .sectors, .sectors[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .solution { padding: 32px 24px; }
  .step { padding: 28px 22px; min-height: 0; }
  .step__num { font-size: 36px; }
  .sector { padding: 28px 22px; min-height: 0; }

  .cards-grid { gap: 16px; }
  .card-link { padding: 24px; }
  .card-link h3 { font-size: 19px; }

  .pillars li { grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; font-size: 14.5px; }
  .twocol, .twocol--asym, .contact__grid { gap: 32px; }

  .faq__q { grid-template-columns: 40px 1fr 22px; gap: 12px; padding: 22px 0; font-size: 16.5px; }
  .faq__a { padding: 0 52px 24px 52px; font-size: 14.5px; }

  .form { grid-template-columns: 1fr; gap: 22px; }
  .submit { width: 100%; justify-content: center; }

  .pull { padding-left: 24px; }
  .prose p, .prose li { font-size: 16px; }

  footer { padding: 48px 0 24px; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .foot__address { gap: 16px; padding: 24px 0 0; }
  .foot__bottom { flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 24px; padding-top: 20px; font-size: 10.5px; }
}

/* L4 ≤560 */
@media (max-width: 560px) {
  :root { --section-y: clamp(40px, 10vw, 60px); --gutter: 16px; }
  body { font-size: 15px; }
  /* Phones: drop the location tagline and the header CTA. Together they force
     the brand too wide and push the EN·TH toggle and Menu off the right edge;
     the Menu drawer (Contact) and hero CTA reach the same destination. */
  .topbar .brand__word--sub { display: none; }
  .topbar .btn-cta { display: none; }
  .hero__meta { font-size: 9.5px; letter-spacing: 0.14em; gap: 8px 14px; margin-bottom: 20px; }
  .hero__meta span + span::before { width: 4px; height: 4px; margin-right: 10px; }
  .hero__sub { font-size: 16px; }
  .hero__positioning { font-size: 14.5px; }
  .section__head > .num { padding-top: 0; }
  .faq__q { grid-template-columns: 32px 1fr 20px; gap: 10px; padding: 18px 0; font-size: 15.5px; }
  .faq__a { padding: 0 42px 20px 42px; font-size: 14px; line-height: 1.7; }
  .card-link { padding: 20px; }
  .strip__cell { padding: 18px var(--gutter); }
  .btn-cta { padding: 8px 12px; font-size: 10px; letter-spacing: 0.1em; }
}

/* L5 ≤380 */
@media (max-width: 380px) {
  :root { --section-y: 40px; --gutter: 14px; }
  body { font-size: 14.5px; line-height: 1.6; }
  .topbar__row { height: 58px; gap: 8px; }
  nav.primary { top: 58px; max-height: calc(100vh - 58px); }
  .btn-cta { display: none; }
  .hero__headline { letter-spacing: -0.02em; }
  .hero__sub, .hero__positioning { max-width: 100%; }
  .faq__q { grid-template-columns: 28px 1fr 18px; font-size: 15px; }
  .faq__a { padding: 0 30px 18px 30px; }
  .lotus--lg { width: 52px; height: 52px; }
}

/* Accessibility / modality */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media (hover: none) {
  .card-link:hover { transform: none; box-shadow: none; border-color: var(--rule); }
  .card-link:hover::before { transform: scaleY(0); }
  nav.primary a:hover, .utility a:hover, .foot ul a:hover, .lang-toggle a:hover { color: inherit; }
}
@media (prefers-contrast: more) {
  :root { --rule: rgba(21, 36, 30, 0.34); --rule-strong: rgba(21, 36, 30, 0.55); --muted: #3f4d44; }
}

/* ================================================================
   AEO / SEO CONTENT COMPONENTS
   Glossary · comparison tables · key-takeaway callout · author bios
   ================================================================ */

/* ---- Key-takeaway / TL;DR callout (answer-first, citable) ---- */
.callout {
  background: var(--silk-2);
  border-left: 3px solid var(--gold);
  padding: 26px 30px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}
.callout__title {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 14px;
}
.callout p { margin: 0 0 10px; color: var(--emerald-ink); }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 0; padding-left: 20px; }
.callout li { margin-bottom: 9px; color: var(--emerald-ink); line-height: 1.6; }
.callout li:last-child { margin-bottom: 0; }
.callout strong { color: var(--emerald); }
.section--emerald .callout { background: var(--emerald-2); border-left-color: var(--gold-3); }
.section--emerald .callout p, .section--emerald .callout li { color: var(--cream-2); }
.section--emerald .callout strong { color: var(--cream); }

/* ---- Comparison / data tables ---- */
.table-wrap { overflow-x: auto; margin: 30px 0; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%; border-collapse: collapse;
  font-size: 15px; min-width: 560px;
  background: var(--silk-card); border: 1px solid var(--rule);
}
.cmp caption {
  caption-side: top; text-align: left;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); padding-bottom: 12px;
}
.cmp th, .cmp td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.55;
}
.cmp thead th {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); border-bottom: 1px solid var(--rule-strong);
  background: var(--silk-2);
}
.cmp tbody th { font-family: var(--sans); font-weight: 600; color: var(--emerald); width: 26%; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--muted); }
.cmp .yes { color: var(--emerald-2); font-weight: 600; }
.cmp .no  { color: var(--lotus); font-weight: 600; }

/* ---- Glossary ---- */
.gloss-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 8px; padding: 0; list-style: none;
}
.gloss-nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-deep);
  border: 1px solid var(--rule); padding: 8px 14px; border-radius: 2px;
  transition: all 0.2s;
}
.gloss-nav a:hover { border-color: var(--gold); color: var(--emerald); background: var(--silk-2); }

.glossary { border-top: 1px solid var(--rule); margin-top: 28px; }
.gloss {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
  scroll-margin-top: 110px; margin: 0;
}
.gloss__term { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--emerald); margin: 0; }
.gloss__abbr {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-deep);
}
.gloss__def { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
:lang(th) .gloss__def { line-height: 1.95; }
.gloss__def a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.gloss__def a:hover { color: var(--lotus); }

/* ---- Author / team ---- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.author__avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--emerald); color: var(--gold-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-size: 34px;
  flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(196, 163, 94, 0.5); user-select: none;
}
.author__avatar--lg { width: 120px; height: 120px; font-size: 44px; }
.author-head { display: flex; gap: 30px; align-items: center; margin-bottom: 8px; }
.author__role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-deep); margin: 8px 0 0;
}
.author__sameas { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; list-style: none; padding: 0; }
.author__sameas a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep);
}
.author__sameas a:hover { color: var(--lotus); }
.author-card__role {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep); margin: 4px 0 14px;
}
.byline { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; }
.byline .author__avatar { width: 48px; height: 48px; font-size: 18px; }
.byline__txt { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.byline__txt a { color: var(--emerald); font-weight: 600; }
.byline__txt a:hover { color: var(--gold-deep); }

/* ---- Mobile rules for new components ---- */
@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gloss { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .gloss__def { font-size: 15px; }
  .callout { padding: 22px 22px; }
  .author-head { gap: 20px; }
  .author__avatar--lg { width: 88px; height: 88px; font-size: 32px; }
  .cmp th, .cmp td { padding: 12px 14px; }
  .cmp { font-size: 14.5px; }
  .table-wrap { margin: 24px 0; }
}
/* Small phones: stack the author header so the name never crowds the avatar */
@media (max-width: 520px) {
  .author-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .author__avatar--lg { width: 76px; height: 76px; font-size: 28px; }
}
