/* ================================================================
   Eksiam Legal — style.css  v1.0
   Parent Brand · More elevated, minimal than sub-sites
   Design: Playfair Display + Inter + Sarabun · Deep Navy & Gold
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ── COLOR TOKENS — MOTHERSHIP (ยานแม่: แกรนด์กว่า sub-sites) ── */
:root {
  /* Navy: ลึกกว่า corporate (#0d1b3e) มาก — ระดับ midnight/prestige */
  --navy:      #050C18;   /* midnight navy — nearly black, max authority */
  --navy2:     #091526;   /* deep navy */
  --navy3:     #0D1E38;   /* mid navy */
  --navy4:     #132850;   /* for card backgrounds */

  /* Gold: warm & rich — ใช้ gradient shimmer ในบางจุด */
  --gold:      #C9A84C;   /* brand gold — เหมือนทุก site */
  --gold2:     #E8C97A;   /* light gold hover */
  --gold-warm: #D4AA50;   /* slightly warmer for emphasis */
  --gold-dark: #9A7D38;   /* deep gold for shadows */
  --gold-dim:  rgba(201,168,76,0.10);
  --gold-line: rgba(201,168,76,0.30);
  --gold-glow: rgba(201,168,76,0.18);

  /* Backgrounds: warm parchment แทน cool grey — ให้ความรู้สึก prestige */
  --light:     #F4F0E6;   /* warm parchment — main light bg */
  --light2:    #EDE8DA;   /* deeper parchment */
  --cream:     #FAF7F0;   /* very light cream for sections */

  --white:     #ffffff;
  --gray:      #6b7280;
  --gray2:     #9ca3af;
  --border:    #DDD8CC;   /* warmer border vs cool grey */
  --text:      #1A1820;   /* slightly warmer dark */

  --nav-h:     84px;      /* slightly taller navbar — more commanding */
  --radius:    3px;       /* sharper radius — more formal */
  --shadow:    0 20px 60px rgba(5,12,24,0.14);
  --shadow-sm: 0 4px 20px rgba(5,12,24,0.08);
  --transition: .25s ease;
  --max-w:     1200px;

  /* Crown line — gold top bar บน navbar */
  --crown-h:   3px;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Sarabun', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
:lang(th), .th { font-family: 'Sarabun', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.heading-xl {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.heading-lg {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.22;
  color: var(--navy);
}
.heading-md {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.heading-sm {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
.heading-xl .accent,
.heading-lg .accent { color: var(--gold); }
.section-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.subtext {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.85;
}
.subtext-lg {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.9;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.divider { width: 48px; height: 2px; background: var(--gold); margin: 20px 0 32px; border-radius: 2px; }
.divider-center { margin: 20px auto 32px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section    { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-xs { padding: 48px 0; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 36px; border-radius: 2px;
  font-family: 'Inter', 'Sarabun', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; border: none; transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ── NETWORK BAR ──────────────────────────────────────────── */
/* แถบเชื่อมทุกเว็บในเครือ Eksiam — ปรากฏบนสุดของทุกหน้าทุกเว็บ */
.network-bar {
  background: #030810;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  height: 32px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}
.network-inner {
  display: flex;
  align-items: center;
  height: 100%;
}
.network-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-right: 16px;
  border-right: 1px solid rgba(201,168,76,0.22);
  margin-right: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.network-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
}
.network-link {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.38);
  padding: 0 13px;
  height: 32px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
  border-right: 1px solid rgba(201,168,76,0.07);
  white-space: nowrap;
  gap: 6px;
}
.network-link:hover { color: rgba(250,247,240,0.78); background: rgba(201,168,76,0.04); }
.network-link.nb-current { color: var(--gold); font-weight: 600; }
.network-link .nb-dot {
  width: 4px; height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.6;
  flex-shrink: 0;
}
.network-link.nb-current .nb-dot { opacity: 1; background: var(--gold); }
.network-coming {
  font-size: 8.5px;
  color: rgba(250,247,240,0.18);
  padding: 0 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
/* Mobile: hide less-important links */
@media (max-width: 768px) {
  .network-link.nb-hide-mobile { display: none; }
  .network-coming { display: none; }
  .network-link { padding: 0 10px; font-size: 8px; }
  .network-label { padding-right: 10px; margin-right: 2px; font-size: 8px; }
}
@media (max-width: 480px) {
  .network-bar { height: 26px; }
  .network-link { height: 26px; }
  .network-link.nb-hide-sm { display: none; }
}

/* ── NAVIGATION ───────────────────────────────────────────── */
/* Crown bar — เส้น gold บนสุด: signature ยานแม่ */
nav::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--crown-h);
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-dark) 15%,
    var(--gold) 40%,
    var(--gold2) 50%,
    var(--gold) 60%,
    var(--gold-dark) 85%,
    transparent 100%
  );
}
nav {
  position: sticky; top: 0; z-index: 999;
  height: calc(var(--nav-h) + var(--crown-h));
  background: rgba(5,12,24,0.98);   /* --navy ใหม่ */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-line);
}
.nav-inner {
  display: flex; align-items: center; gap: 0;
  height: var(--nav-h);
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  margin-right: auto; text-decoration: none;
  flex-shrink: 0;
}
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.logo-main span { color: var(--gold); }
.logo-sub { display: none; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  margin-right: 36px;
}
.nav-links a {
  font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.78);
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 2px;
  cursor: pointer; margin-left: 8px;
  transition: all var(--transition);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: 16px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s;
}

/* ── HERO (HOMEPAGE) ──────────────────────────────────────── */
.hero {
  background:
    linear-gradient(160deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%);
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
}
/* Layer 1: gold atmospheric glow */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 75% 45%, rgba(201,168,76,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 80%, rgba(201,168,76,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 0%, rgba(201,168,76,0.03) 0%, transparent 70%);
  pointer-events: none;
}
/* Layer 2: gold bottom shimmer line */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold2) 50%, var(--gold) 60%, transparent 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}
.hero h1 { color: var(--white); margin-bottom: 28px; }
.hero h1 .accent { color: var(--gold); }
.hero .hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.65);
  line-height: 1.85; max-width: 520px; margin-bottom: 44px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex; gap: 48px; padding-top: 40px;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700; color: var(--gold);
  line-height: 1;
}
.stat-item .label {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* Hero Right — Site Navigator Card */
.hero-nav-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 36px 32px;
}
.hero-nav-card-title {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.nav-site-list { display: flex; flex-direction: column; gap: 8px; }
.nav-site-group-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(201,168,76,0.55);
  padding: 4px 4px 2px;
}
.nav-site-item {
  display: flex; align-items: center;
  gap: 16px; padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-site-item:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
  transform: translateX(4px);
}
.nav-site-icon {
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.nav-site-text .name {
  font-size: 13px; font-weight: 600; color: var(--white);
  margin-bottom: 2px;
}
.nav-site-text .desc {
  font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}
.nav-site-arrow {
  margin-left: auto; color: rgba(201,168,76,0.5);
  font-size: 16px; transition: color var(--transition);
}
.nav-site-item:hover .nav-site-arrow { color: var(--gold); }

/* Coming soon badge */
.badge-soon {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 8px;
  background: rgba(201,168,76,0.15); color: var(--gold);
  border-radius: 2px; margin-left: auto;
}

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar {
  background: var(--cream);          /* warm parchment */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 36px;
  font-size: 12px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.5px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-item .icon { font-size: 16px; }

/* ── ABOUT PREVIEW (homepage) ─────────────────────────────── */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.founder-quote {
  position: relative;
  padding: 36px 36px 36px 52px;
  background: var(--cream);          /* warm parchment */
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  margin-top: 32px;
}
.founder-quote::before {
  content: '"';
  position: absolute; left: 16px; top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 64px; color: var(--gold); line-height: 1;
  opacity: 0.4;
}
.founder-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-style: italic;
  color: var(--navy); line-height: 1.75;
}
.founder-quote .quote-attr {
  margin-top: 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold);
}
.credential-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.credential-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: box-shadow var(--transition);
}
.credential-item:hover { box-shadow: var(--shadow-sm); }
.cred-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gold-dim);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.cred-body .cred-title {
  font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.cred-body .cred-detail {
  font-size: 13px; color: var(--gray); line-height: 1.6;
}

/* ── PRACTICE AREAS (Homepage overview) ───────────────────── */
.practice-overview {
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  position: relative;
}
/* subtle texture overlay */
.practice-overview::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.practice-overview .badge { color: var(--gold); }
.practice-overview .heading-lg { color: var(--white); }
.practice-overview .divider { background: var(--gold); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.practice-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 40px 36px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.practice-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.4s ease;
}
.practice-card:hover { background: rgba(201,168,76,0.06); }
.practice-card:hover::after { width: 100%; }
.practice-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 700;
  color: rgba(201,168,76,0.2);
  line-height: 1; margin-bottom: 20px;
}
.practice-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
}
.practice-card p {
  font-size: 14px; color: rgba(255,255,255,0.74);
  line-height: 1.75; margin-bottom: 24px;
}
.practice-link {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap var(--transition);
}
.practice-link:hover { gap: 12px; }
.tag-soon {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 10px;
  background: rgba(201,168,76,0.12); color: var(--gold);
  border-radius: 2px; margin-bottom: 12px;
}

/* ── WHY SECTION ──────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.value-list { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.value-item {
  display: flex; gap: 20px; align-items: flex-start;
}
.value-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 700; color: var(--gold);
  opacity: 0.4; line-height: 1; flex-shrink: 0; width: 32px;
}
.value-body h4 {
  font-size: 15px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px;
}
.value-body p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ── STAT BAND ────────────────────────────────────────────── */
.stat-band {
  background: linear-gradient(110deg, var(--gold-dark) 0%, var(--gold) 35%, var(--gold2) 60%, var(--gold) 80%, var(--gold-dark) 100%);
  padding: 64px 0;
  position: relative;
}
/* subtle lustre overlay */
.stat-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 50%, rgba(0,0,0,0.06) 100%);
}
.stat-band-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.stat-band-item {
  padding: 0 24px;
  border-right: 1px solid rgba(10,22,40,0.15);
}
.stat-band-item:last-child { border-right: none; }
.stat-band-item .big {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 700; color: var(--navy);
  line-height: 1;
}
.stat-band-item .small {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(10,22,40,0.65);
  margin-top: 8px;
}

/* ── ARTICLES PREVIEW ─────────────────────────────────────── */
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px;
}
.article-card {
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--white);
}
.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.article-card-tag {
  padding: 28px 28px 0;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
}
.article-card-title {
  padding: 12px 28px 0;
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 600; color: var(--navy);
  line-height: 1.45;
}
.article-card-excerpt {
  padding: 12px 28px 0;
  font-size: 13px; color: var(--gray); line-height: 1.7;
}
.article-card-meta {
  padding: 20px 28px 24px;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--gray2);
}
.article-card-meta a {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
}
.article-card-meta a:hover { color: var(--navy); }
.article-card-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray2);
}

/* ── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 50%, var(--navy) 100%);
  padding: 112px 0; text-align: center;
  position: relative; overflow: hidden;
}
/* crown top + gold shimmer bottom */
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(201,168,76,0.04) 0%, transparent 30%);
}
.cta-band::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--gold-line);
}
.page-hero .heading-xl { color: var(--white); }
.page-hero .subtext { color: rgba(255,255,255,0.6); max-width: 560px; margin-top: 16px; }
.breadcrumb {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--gold2); }

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px; align-items: start;
}
.founder-photo {
  width: 100%; aspect-ratio: 3/4;
  background: var(--light2);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray2);
  overflow: hidden; position: relative;
}
.founder-photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.founder-photo-placeholder svg { opacity: 0.3; }
.founder-photo-placeholder span { font-size: 12px; color: var(--gray2); letter-spacing: 1px; }
.edu-list { display: flex; flex-direction: column; gap: 0; }
.edu-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:last-child { border-bottom: none; }
.edu-dot {
  width: 10px; height: 10px; flex-shrink: 0;
  background: var(--gold); border-radius: 50%;
  margin-top: 6px;
}
.edu-body .degree {
  font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 3px;
}
.edu-body .school {
  font-size: 13px; color: var(--gray);
}
.expertise-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 6px 14px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 2px; color: var(--navy);
  transition: all var(--transition);
}
.tag:hover { border-color: var(--gold); color: var(--gold); }
.membership-list {
  display: flex; flex-direction: column; gap: 12px; margin-top: 8px;
}
.membership-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--navy);
}
.membership-item::before {
  content: ''; width: 20px; height: 1px; flex-shrink: 0;
  background: var(--gold);
}

/* ── SERVICES PAGE ────────────────────────────────────────── */
.service-group {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.service-group:last-child { border-bottom: none; }
.service-group-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start;
}
.service-group-label {
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 72px; font-weight: 700;
  color: var(--gold); opacity: 0.15; line-height: 1;
  margin-bottom: -16px;
}
.service-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.service-item {
  padding: 24px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--white);
  transition: all var(--transition);
}
.service-item:hover {
  border-color: var(--gold); box-shadow: var(--shadow-sm);
}
.service-item h4 {
  font-size: 14px; font-weight: 600; color: var(--navy);
  margin-bottom: 8px;
}
.service-item p { font-size: 13px; color: var(--gray); line-height: 1.65; }
.service-cta-box {
  margin-top: 32px; padding: 28px 32px;
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.service-cta-box p { font-size: 14px; color: var(--navy); font-weight: 500; }

/* ── ARTICLES PAGE ────────────────────────────────────────── */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px;
}
.filter-btn {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 8px 18px;
  border: 1px solid var(--border); border-radius: 2px;
  background: var(--white); color: var(--gray);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

/* ── ARTICLES PAGE — SECTION HEADERS ─────────────────────── */
.articles-section-header {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 12px 24px; margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.articles-section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase;
}
.articles-section-label.own   { color: var(--navy); }
.articles-section-label.network { color: var(--gold); }
.ash-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ash-dot.own     { background: var(--navy); }
.ash-dot.network { background: var(--gold); }
.articles-section-desc {
  font-size: 13px; color: var(--gray);
  margin: 0; line-height: 1.5;
}
.category-intro {
  margin: 0 0 28px;
  padding: 20px 22px;
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.category-intro.is-hidden,
.articles-empty.is-hidden {
  display: none;
}
.category-intro-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.category-intro p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--navy);
  margin: 0;
}
.articles-empty {
  margin-top: 24px;
  padding: 26px 28px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.articles-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.articles-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}
.articles-empty-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.articles-empty-links a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.articles-empty-links a:hover {
  color: var(--gold-dark);
}

/* ── ARTICLES PAGE — NETWORK SECTION ─────────────────────── */
.network-articles-section {
  background: var(--light); /* warm parchment — visually distinct from own */
  border-top: 2px solid var(--gold-line);
}
.network-articles-section.is-hidden,
.network-subsection.is-hidden {
  display: none;
}
.network-subsection { margin-top: 0; }
.network-subsection + .network-subsection { margin-top: 56px; }

/* Network source badge — header strip for each site */
.network-source-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
  border-bottom: 2px solid var(--gold-line);
  margin-bottom: 24px;
}
.nsb-icon { font-size: 22px; flex-shrink: 0; }
.nsb-name {
  font-size: 13px; font-weight: 700;
  color: var(--navy); letter-spacing: 0.3px;
}
.nsb-domain {
  font-size: 11px; color: var(--gray2);
  margin-top: 2px; letter-spacing: 0.5px;
}
.nsb-all {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  transition: all var(--transition);
}
.nsb-all:hover {
  background: var(--gold); color: var(--white);
  border-color: var(--gold);
}

/* Network article card — lighter style, clearly "external" */
.article-card--network {
  background: var(--white);
  border-color: var(--border);
  opacity: 0.97;
}
.article-card--network:hover {
  border-color: var(--gold-line);
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
}
.article-card--network .article-card-tag {
  color: var(--gray); /* muted — not gold, not the site's own content */
}

/* Net-source tag in card footer */
.net-src-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.8px;
  color: var(--gray2);
  background: var(--light2);
  border-radius: 2px;
  padding: 3px 8px;
}

/* Network grid — same 3-col layout, slightly tighter gap */
.network-grid { gap: 24px; }

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 480px; gap: 80px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', 'Sarabun', sans-serif;
  font-size: 14px; color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info-card {
  background: var(--navy);
  border-radius: 4px; padding: 48px 40px;
  position: sticky; top: calc(var(--nav-h) + 32px);
}
.contact-info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600; color: var(--white);
  margin-bottom: 8px;
}
.contact-info-card .sub {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 36px;
}
.contact-detail-list { display: flex; flex-direction: column; gap: 24px; }
.contact-detail-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(201,168,76,0.1);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-detail-text .label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.contact-detail-text .value {
  font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6;
}
.map-placeholder {
  margin-top: 32px; height: 160px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.62);
  letter-spacing: 1px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--navy);    /* --navy ใหม่ = #050C18 — ลึกที่สุด */
  border-top: 1px solid var(--gold-line);
  padding: 80px 0 36px;
}
/* crown top กลับด้าน */
footer::before {
  content: '';
  display: block; width: 100%; height: var(--crown-h);
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-dark) 15%, var(--gold) 40%,
    var(--gold2) 50%, var(--gold) 60%, var(--gold-dark) 85%, transparent 100%
  );
  margin-bottom: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-main { font-size: 20px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px; color: rgba(255,255,255,0.66); line-height: 1.8;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.74);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

/* Network column — slightly highlighted vs normal footer cols */
.footer-col--network {
  border-left: 1px solid rgba(201,168,76,0.2);
  padding-left: 24px;
}
.footer-network-heading {
  /* Override standard footer-col h4 — make network label pop */
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  color: var(--gold) !important;
  display: flex; align-items: center; gap: 6px;
}
.footer-col--network a {
  display: flex; align-items: center; gap: 8px;
  border-radius: 3px;
  padding: 5px 8px 5px 0;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col--network a:hover {
  color: var(--gold2);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.62);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.68); }
.footer-bottom a:hover { color: var(--gold); }

/* ── MOBILE NAV ───────────────────────────────────────────── */
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(5,12,24,0.99);   /* --navy ใหม่ */
  padding: 32px 24px;
  z-index: 998;
  gap: 4px;
  backdrop-filter: blur(12px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: block;
}
.mobile-menu a:hover { color: var(--gold); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-nav-card { max-width: 480px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .about-preview-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-band-item { padding: 20px; border-right: none; border-bottom: 1px solid rgba(10,22,40,0.15); }
  .stat-band-item:last-child, .stat-band-item:nth-child(2) { border-bottom: none; }
  .founder-grid { grid-template-columns: 1fr; }
  .service-group-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-group-label { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .article-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
  .nav-links, .lang-toggle { display: none; }
  .hamburger { display: flex; }
  .practice-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .article-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 8px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .service-cta-box { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ================================================================
   CONTEXTUAL NETWORK BAR (CNB) — v2.0
   Replaces thin network-bar. Context-aware, card-based, full-width.
   ================================================================ */

.cnb-section {
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.22);
}
.cnb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}


/* ═══ CNB TOPBAR — เครือข่ายเอกสยาม (redesigned) ═══ */
.cnb-topbar {
  background: #020A14;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  padding: 0 32px;
}
.cnb-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cnb-toplabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(201,168,76,0.90);
  white-space: nowrap;
  flex-shrink: 0;
}
.cnb-topbar-sep {
  width: 1px; height: 14px;
  background: rgba(201,168,76,0.25);
  flex-shrink: 0;
}
/* Quick-nav links row */
.cnb-quicknav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.cnb-qlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(250,247,240,0.50);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.cnb-qlink:hover {
  color: rgba(201,168,76,0.95);
  background: rgba(201,168,76,0.08);
}
.cnb-qlink span { font-size: 10px; }
.cnb-qdot {
  font-size: 10px;
  color: rgba(255,255,255,0.12);
  padding: 0 1px;
  user-select: none;
}
@media (max-width: 768px) {
  .cnb-topbar { padding: 0 16px; }
  .cnb-quicknav .cnb-qlink span { display: none; }
  .cnb-qlink { font-size: 13px; padding: 2px 4px; }
  .cnb-qdot { display: none; }
}


/* ── FEATURED CARD ── */
.cnb-featured {
  flex: 0 0 320px;
  background: var(--navy3);
  border: 1px solid rgba(201,168,76,0.32);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.cnb-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold) 50%, var(--gold-dark) 80%, transparent 100%);
}
.cnb-feat-badge {
  position: absolute; top: 12px; right: 14px;
  font-size: 7px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
}
.cnb-feat-header {
  display: flex; align-items: center; gap: 12px;
}
.cnb-feat-icon {
  width: 38px; height: 38px;
  background: var(--gold-dim);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  border: 1px solid var(--gold-line);
}
.cnb-feat-name {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: 14px; font-weight: 700;
  color: var(--gold); line-height: 1.2;
}
.cnb-feat-domain {
  font-size: 9.5px; color: rgba(255,255,255,0.74);
  letter-spacing: 0.04em; margin-top: 2px;
  font-family: 'Inter', sans-serif;
}
.cnb-feat-desc {
  font-size: 11.5px;
  color: rgba(250,247,240,0.82);
  line-height: 1.72;
  flex-grow: 1; /* fills available space */
}
/* Deep article links */
.cnb-feat-articles {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 11px;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.cnb-feat-art-label {
  font-size: 8px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(201,168,76,0.75);
  margin-bottom: 4px;
}
.cnb-feat-art-link {
  font-size: 11px; color: rgba(255,255,255,0.78);
  display: flex; align-items: flex-start; gap: 7px;
  padding: 4px 6px; border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  line-height: 1.45;
}
.cnb-feat-art-link:hover { color: var(--gold2); background: rgba(201,168,76,0.07); }
.cnb-feat-art-link::before {
  content: '→'; color: var(--gold); font-size: 9px; flex-shrink: 0; margin-top: 2px;
}
/* Visit CTA */
.cnb-feat-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  transition: background 0.2s, color 0.2s;
  align-self: flex-start; margin-top: 4px;
  cursor: pointer;
}
.cnb-feat-cta:hover { background: var(--gold); color: var(--navy); }

/* ── COMPANION CARDS ── */
.cnb-companions {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 14px 0;
  min-width: 0;
}
.cnb-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(201,168,76,0.20);
  border-radius: 5px;
  padding: 15px 16px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.cnb-card:hover {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.42);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,12,24,0.3);
}
.cnb-card-top {
  display: flex; align-items: center; gap: 9px;
}
.cnb-card-icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.cnb-card-name {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.cnb-card-domain {
  font-size: 10px; color: rgba(255,255,255,0.50);
  letter-spacing: 0.03em; font-family: 'Inter', sans-serif;
}
.cnb-card-desc {
  font-size: 12.5px; color: rgba(250,247,240,0.72);
  line-height: 1.7; flex-grow: 1;
}
.cnb-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cnb-card-go {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(201,168,76,0.68);
  transition: color 0.2s;
}
.cnb-card:hover .cnb-card-go { color: var(--gold); }

/* Coming-soon card */
.cnb-card.cnb-soon {
  opacity: 0.50; cursor: default; border-style: dashed;
  border-color: rgba(201,168,76,0.15);
}
.cnb-card.cnb-soon:hover { transform: none; background: rgba(255,255,255,0.045); border-color: rgba(201,168,76,0.15); box-shadow: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cnb-featured { flex: 0 0 280px; }
  .cnb-companions { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .cnb-inner {
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
  }
  .cnb-featured {
    flex: none;
    width: 100%;
    flex-direction: row;
    gap: 16px;
    padding: 16px 18px;
    margin: 12px 0 0;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
  }
  .cnb-feat-badge { display: none; }
  .cnb-feat-left { display: flex; flex-direction: column; gap: 8px; flex: 0 0 200px; }
  .cnb-feat-right { flex: 1; display: flex; flex-direction: column; gap: 8px; }
  .cnb-feat-articles { border-top: none; padding-top: 0; }
  .cnb-feat-cta { display: none; }
  .cnb-companions {
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 0 12px;
    gap: 8px;
    border-radius: 0 0 6px 6px;
  }
}

@media (max-width: 640px) {
  .cnb-featured {
    flex-direction: column;
    gap: 10px;
    border-radius: 6px;
    margin: 10px 0 0;
  }
  .cnb-feat-left, .cnb-feat-right { flex: none; width: 100%; }
  .cnb-feat-articles { display: none; }
  .cnb-companions {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 10px;
    margin-bottom: 0;
    border-radius: 0;
  }
  .cnb-card.cnb-soon { display: none; }
  .cnb-topbar { display: none; }
}

@media (max-width: 480px) {
  .cnb-companions { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cnb-card { padding: 11px 12px; }
}


/* ═══════════════════════════════════════
   PARTNERS SECTION — เครือข่ายพันธมิตร
   ═══════════════════════════════════════ */
.partners-section {
  background: #050c18;
  padding: 72px 0 64px;
  border-top: 1px solid rgba(201,168,76,0.18);
}
.partners-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.partners-header {
  text-align: center;
  margin-bottom: 48px;
}
.partners-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e2c97e;
  margin-bottom: 14px;
  font-family: 'Inter', 'Sarabun', sans-serif;
}
.partners-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
  font-family: 'Sarabun', sans-serif;
}
.partners-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.74);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: 'Sarabun', sans-serif;
}
.partners-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(226,201,126,0.82);
  margin-bottom: 16px;
  margin-top: 36px;
  font-family: 'Inter', 'Sarabun', sans-serif;
}
.partners-group-label:first-child { margin-top: 0; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 22px 20px 18px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.partner-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-2px);
}
.partner-card.lifestyle {
  border-color: rgba(120,180,120,0.15);
}
.partner-card.lifestyle:hover {
  border-color: rgba(120,200,120,0.4);
}
.partner-card.soon { opacity: 0.9; }
.pc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pc-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.pc-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(201,168,76,0.15);
  color: #e2c97e;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: 'Inter', 'Sarabun', sans-serif;
}
.pc-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  font-family: 'Inter', 'Sarabun', sans-serif;
}
.pc-domain {
  font-size: 10px;
  color: #e2c97e;
  letter-spacing: 0.5px;
  font-family: 'Inter', monospace;
  margin-bottom: 6px;
}
.pc-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.76);
  line-height: 1.65;
  font-family: 'Sarabun', sans-serif;
  flex: 1;
}
.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #e2c97e;
  margin-top: 4px;
  font-family: 'Inter', 'Sarabun', sans-serif;
  letter-spacing: 0.3px;
}
.pc-cta-soon {
  font-size: 11px;
  color: rgba(255,255,255,0.68);
  font-family: 'Inter', 'Sarabun', sans-serif;
  margin-top: 4px;
}
@media (max-width: 860px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partners-inner { padding: 0 20px; }
  .partners-title { font-size: 20px; }
}


/* ================================================================
   HOMEPAGE v2 — NEW SECTIONS
   Redesigned from scratch · eksiamlegal.com
   ----------------------------------------------------------------
   TEMPORARY: fonts and palette use existing tokens.
   To change palette: update :root variables in the color block above.
   To change fonts: update the @import and references below.
   ================================================================ */

/* ── SHARED hp- utilities ──────────────────────────────────── */
.hp-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.9;
}
.hp-label--gold-dim { opacity: 0.6; }

.hp-section-title {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}
.hp-section-sub {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.85;
  max-width: 540px;
}

/* ── SECTION 1: HERO ──────────────────────────────────────── */
.hp-hero {
  background: #060d18;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px 0 108px;
  position: relative;
  overflow: hidden;
}
/* warm atmospheric glow — เบาและ subtle */
.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 25% 55%, rgba(201,168,76,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 80% 30%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}
/* bottom shimmer line */
.hp-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.4) 25%,
    var(--gold) 50%,
    rgba(201,168,76,0.4) 75%,
    transparent 100%
  );
}
.hp-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hp-hero-eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201,168,76,0.75);
  margin-bottom: 32px;
}
.hp-hero-headline {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 32px;
}
.hp-hero-headline .hp-hero-sub-line {
  display: block;
  font-size: 0.58em;
  font-weight: 400;
  font-style: italic;
  opacity: .8;
  line-height: 1.55;
  margin-top: 18px;
  letter-spacing: 0;
}
.hp-hero-sub {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(250, 247, 240, 0.68);
  max-width: 560px;
  margin: 0 auto 48px;
  font-family: 'Sarabun', 'Inter', sans-serif;
}
.hp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 17px 44px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.hp-hero-cta:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,168,76,0.3);
}

/* ── SECTION 2: POSITIONING ───────────────────────────────── */
.hp-positioning {
  background: var(--cream);
  padding: 112px 0;
  border-bottom: 1px solid var(--border);
}
.hp-positioning-inner {
  max-width: 660px;
  margin: 0 auto;
}
.hp-positioning-p {
  font-size: 17px;
  line-height: 1.95;
  color: #2a2630;
  font-family: 'Sarabun', 'Inter', sans-serif;
  margin-bottom: 28px;
}
.hp-positioning-callout {
  margin-top: 40px;
  padding: 28px 32px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.04);
}
.hp-positioning-callout p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--navy3);
  font-family: 'Sarabun', 'Inter', sans-serif;
  margin: 0;
}

/* ── SECTION 3: EXPERTISE ─────────────────────────────────── */
.hp-expertise {
  background: var(--white);
  padding: 112px 0;
}
.hp-expertise-header {
  margin-bottom: 64px;
}
/* 3×3 grid — 9 areas, equal visual weight, no grouping */
.hp-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hp-exp-item {
  padding: 40px 40px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
/* Last column: no right border */
.hp-exp-item:nth-child(3n) {
  border-right: none;
}
/* Last row (items 7–9): no bottom border */
.hp-exp-item:nth-last-child(-n+3) {
  border-bottom: none;
}
.hp-exp-rule {
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
  border-radius: 1px;
}
.hp-exp-name {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}
.hp-exp-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray);
  font-family: 'Sarabun', 'Inter', sans-serif;
}

/* ── SECTION 4: FOUNDER ───────────────────────────────────── */
.hp-founder {
  background: var(--light);
  padding: 112px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hp-founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.hp-founder-name {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}
.hp-founder-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hp-founder-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
  border-radius: 1px;
}
.hp-founder-p {
  font-size: 16.5px;
  line-height: 1.9;
  color: #2a2630;
  font-family: 'Sarabun', 'Inter', sans-serif;
  margin-bottom: 32px;
}
.hp-founder-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(5,12,24,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hp-founder-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}
/* Founder right column — education list */
.hp-founder-right {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Section label above edu list */
.hp-edu-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.45;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
/* List container */
.hp-edu-list {
  margin-bottom: 32px;
}
/* Each degree row */
.hp-edu-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.hp-edu-item:first-child {
  border-top: none;
}
/* Separator: visual gap between ปริญญาโท and ปริญญาตรี */
.hp-edu-item--sep {
  margin-top: 8px;
  border-top: 1px dashed var(--border);
}
.hp-edu-degree {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Sarabun', 'Inter', sans-serif;
  line-height: 1.45;
  margin-bottom: 3px;
}
.hp-edu-school {
  font-size: 12px;
  color: var(--gray);
  font-family: 'Sarabun', 'Inter', sans-serif;
  line-height: 1.5;
}
/* Benchers membership credential — single item at bottom */
.hp-founder-credential {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hp-cred-dash {
  color: var(--gold);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'Playfair Display', serif;
}
.hp-cred-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: 'Sarabun', 'Inter', sans-serif;
  line-height: 1.4;
}
.hp-cred-sub {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.55;
  font-family: 'Sarabun', 'Inter', sans-serif;
}

/* ── SECTION 5: NETWORK ───────────────────────────────────── */
.hp-network {
  background: var(--white);
  padding: 112px 0;
}
.hp-network-intro {
  margin-bottom: 56px;
}
.hp-network-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.45;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hp-network-group-label--spaced {
  margin-top: 64px;
}
/* Legal grid — 4 columns desktop */
.hp-network-legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.hp-nw-item {
  background: var(--white);
  padding: 24px 28px;
  text-decoration: none;
  transition: background 0.2s;
  display: block;
}
.hp-nw-item:hover {
  background: var(--cream);
}
.hp-nw-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Sarabun', 'Inter', sans-serif;
  margin-bottom: 5px;
  line-height: 1.4;
}
.hp-nw-domain {
  font-size: 11px;
  color: var(--gray2);
  letter-spacing: 0.2px;
}
.hp-nw-item:hover .hp-nw-name { color: var(--gold); }
/* Other projects list */
.hp-network-other-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hp-nw-other {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.hp-nw-other:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.03);
}
.hp-nw-other-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Sarabun', 'Inter', sans-serif;
}
.hp-nw-other-domain {
  font-size: 11px;
  color: var(--gray2);
}

/* ── SECTION 6: CONTACT ───────────────────────────────────── */
.hp-contact {
  background: var(--navy);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.hp-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hp-contact-inner {
  position: relative;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.hp-contact-headline {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hp-contact-sub {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(250,247,240,0.6);
  margin-bottom: 36px;
  font-family: 'Sarabun', 'Inter', sans-serif;
}
.hp-contact-tel {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 36px;
  text-decoration: none;
  transition: color 0.2s;
}
.hp-contact-tel:hover { color: var(--gold2); }
.hp-contact-cta-wrap { display: flex; justify-content: center; }
.hp-contact-cta {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.hp-contact-cta:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--gold);
}

/* ── HOMEPAGE v2 RESPONSIVE ───────────────────────────────── */

/* Tablet: ~1024px */
@media (max-width: 1024px) {
  .hp-network-legal-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet: ~768px */
@media (max-width: 768px) {
  .hp-hero { min-height: auto; padding: 100px 0 80px; }
  .hp-hero-inner { text-align: left; }
  .hp-hero-sub { margin-left: 0; margin-right: 0; }

  .hp-positioning { padding: 80px 0; }
  .hp-positioning-callout { padding: 22px 24px; }

  /* Expertise: 3-col → 2-col at tablet */
  .hp-expertise { padding: 80px 0; }
  .hp-expertise-grid { grid-template-columns: repeat(2, 1fr); }
  /* Restore last-row border rules for 2-col layout (last 2 items) */
  .hp-exp-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .hp-exp-item:nth-last-child(-n+2) { border-bottom: none; }
  /* Restore right-border rules for 2-col */
  .hp-exp-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .hp-exp-item:nth-child(2n) { border-right: none; }
  /* If 9 items in 2-col: row 5 has 1 item (item 9) — remove its bottom border */
  .hp-exp-item:last-child { border-bottom: none; }

  .hp-founder { padding: 80px 0; }
  .hp-founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .hp-founder-right { padding-top: 0; }

  .hp-network { padding: 80px 0; }
  .hp-network-legal-grid { grid-template-columns: repeat(2, 1fr); }

  .hp-contact { padding: 80px 0; }
  .hp-contact-inner { text-align: left; }
  .hp-contact-cta-wrap { justify-content: flex-start; }
}

/* Mobile: ~480px */
@media (max-width: 480px) {
  .hp-hero { padding: 88px 0 72px; }
  .hp-hero-headline { font-size: clamp(24px, 7vw, 36px); }
  .hp-hero-cta { padding: 16px 32px; font-size: 11px; width: 100%; justify-content: center; }

  .hp-positioning-inner { max-width: 100%; }

  /* Expertise: 2-col → 1-col at mobile */
  .hp-expertise-grid { grid-template-columns: 1fr; }
  .hp-exp-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
  }
  .hp-exp-item:last-child { border-bottom: none; }

  .hp-network-legal-grid { grid-template-columns: 1fr; }
  .hp-network-other-list { flex-direction: column; }
  .hp-nw-other { width: 100%; }
}

/* ── DATA-REVEAL SCROLL ANIMATION ─────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
