/* Critical CSS - Inlined in <head> for above-the-fold rendering */
:root {
  --white: #FFFFFF;
  --bg: #F7F6F4;
  --bg-2: #F0EDE8;
  --surface: #FFFFFF;
  --surface-2: #FAFAF9;
  --accent: #D4703A;
  --accent-dk: #B85E2A;
  --accent-lt: #F0E6DD;
  --accent-xlt: #FBF4EF;
  --ink: #1A1714;
  --ink-md: #52504C;
  --ink-lt: #8C8880;
  --ink-xlt: #C4C0BA;
  --border: #E8E4DE;
  --border-md: #D4CFC8;
  --border-dk: #B8B2A8;
  --shadow-sm: 0 1px 3px rgba(26,23,20,.06), 0 1px 2px rgba(26,23,20,.04);
  --shadow-md: 0 4px 16px rgba(26,23,20,.08), 0 1px 4px rgba(26,23,20,.04);
  --shadow-lg: 0 12px 40px rgba(26,23,20,.10), 0 2px 8px rgba(26,23,20,.05);
  --shadow-xl: 0 24px 64px rgba(26,23,20,.12), 0 4px 16px rgba(26,23,20,.06);
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Kanit', sans-serif;
  --font-body: 'Sarabun', sans-serif;
  --text-hero: clamp(44px, 5.5vw, 78px);
  --text-section-title: clamp(28px, 3vw, 42px);
  --text-card-title: 22px;
  --text-body: 15px;
  --text-body-sm: 14px;
  --text-caption: 13px;
  --text-label: 11px;
  --text-tag: 10px;
  --space-stack-xl: 120px;
  --space-margin-desktop: 80px;
  --space-margin-mobile: 24px;
  --color-copper: var(--accent);
  --color-charcoal: var(--ink);
  --color-white: var(--white);
  --color-slate: var(--ink-lt);
  --font-mono: 'JetBrains Mono', monospace;
  --border-radius: var(--radius-sm);
  --border-width: 1px;
  --shadow-card: var(--shadow-md);
}

@media (max-width: 768px) {
  :root {
    --space-stack-xl: 72px;
    --space-margin-desktop: var(--space-margin-mobile);
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; color: var(--ink); }
h1 { font-size: var(--text-hero); font-weight: 900; line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: var(--text-section-title); font-weight: 800; line-height: 1.15; }
p { font-size: var(--text-body); line-height: 1.75; color: var(--ink-md); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: var(--text-label); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-section-title); line-height: 1.15; color: var(--ink); }

.btn-fill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  background: var(--accent); color: white; padding: 14px 28px; border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(212,112,58,.35); transition: background .2s, transform .2s, box-shadow .2s;
  cursor: pointer; border: none; text-decoration: none;
}
.btn-fill:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,112,58,.4); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink); border: 1.5px solid var(--border-md); padding: 13px 26px; border-radius: var(--radius-sm);
  background: white; transition: border-color .2s, color .2s, transform .2s; cursor: pointer; text-decoration: none;
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--white); transition: box-shadow .3s; }
#nav.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border), var(--shadow-sm); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 28px; width: auto; }
.nav-logo-label { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; color: var(--ink); }
.nav-logo-label em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--ink-md); letter-spacing: .02em; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-btn { font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 9px 20px; border-radius: var(--radius-sm); transition: all .2s; }
.nav-btn-ghost { border: 1.5px solid var(--border-md); color: var(--ink-md); background: transparent; }
.nav-btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-xlt); }
.nav-btn-solid { background: var(--accent); color: white; box-shadow: 0 2px 8px rgba(212,112,58,.3); }
.nav-btn-solid:hover { background: var(--accent-dk); box-shadow: 0 4px 16px rgba(212,112,58,.4); }
.lang-switch { min-width: 44px; text-align: center; font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; border: none; background: none; cursor: pointer; padding: 6px; }
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .nav-btn-ghost { display: none; }
}

.nav-drawer{position:fixed;top:0;right:0;width:300px;max-width:80vw;height:100vh;z-index:210;transform:translateX(100%);display:flex;flex-direction:column;padding:24px;overflow-y:auto}
.nav-overlay{position:fixed;inset:0;z-index:205;opacity:0;pointer-events:none}
#backtop{position:fixed;bottom:28px;right:28px;z-index:99;opacity:0;pointer-events:none}

@keyframes up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }