/* ============================================================
   Sirin Space — design system
   Mood: House of Wisdom (minimal, whitespace, editorial)
   Brand: navy + gold, "The Wind beneath your Wings"
   ============================================================ */

:root {
  --navy:        #0b1c3d;
  --navy-deep:   #061225;
  --navy-soft:   #16305c;
  --gold:        #c9a24b;
  --gold-soft:   #e0c584;
  --gold-ink:    #86671b; /* deep gold for gold text on light backgrounds — meets WCAG AA */
  --steel:       #5b7196; /* muted slate-blue for the navy-column team roles */
  --paper:       #faf8f3;
  --paper-warm:  #f2ede3;
  --ink:         #1a1a1a;
  --muted:       #6c6a64;
  --line:        #e6e1d6;
  --white:       #ffffff;

  /* Display font: Fraunces (Latin serif headline), Sukhumvit Set for Thai glyph fallback, then generic serif */
  --font-serif: "Fraunces", "Sukhumvit Set", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --prose: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Offset in-page anchor jumps (Rich Menu / nav) so the fixed header
   doesn't cover the section heading it lands on. */
section[id] { scroll-margin-top: 88px; } /* no-JS fallback; JS (main.js) measures the real header height for precise landing */
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.85rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { color: var(--muted); text-wrap: pretty; }
/* Emphasis site-wide: upright + gold by default (Option B — italics live only on .testi).
   Dark-background contexts override the color to the brighter gold-soft below. */
em { font-style: normal; color: var(--gold-ink); }
.serif { font-family: var(--font-serif); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1.6rem;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-soft); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3.5rem); }
.section { padding: clamp(5rem, 11vw, 9.5rem) 0; }
.section--tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.prose { max-width: var(--prose); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); line-height: 1.55; text-wrap: pretty; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem clamp(1.4rem, 5vw, 3.5rem);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 28, 61, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 0.85rem; padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  color: rgba(255,255,255,0.82); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.04em; position: relative; padding: 0.2rem 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold-soft); transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
/* Thai nav falls back to a system Thai font (Inter has no Thai glyphs) that renders lighter
   at weight 500 — bump to 600 so the Thai menu reads as solid as the English one. */
html[lang="th"] .nav a { font-weight: 600; }

.nav-cta {
  border: 1px solid rgba(224,197,132,0.5); color: var(--gold-soft) !important;
  padding: 0.55rem 1.2rem !important; border-radius: 100px; letter-spacing: 0.06em;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--navy-deep) !important; border-color: var(--gold); }

/* Language switch (EN · ไทย) — sits at the end of the nav */
.lang-switch { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; letter-spacing: 0.05em; }
.lang-switch a { color: rgba(255,255,255,0.58); padding: 0.15rem 0.1rem; }
.lang-switch a::after { display: none; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a.is-active { color: var(--gold-soft); font-weight: 600; }
.lang-switch span { color: rgba(255,255,255,0.28); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s var(--ease); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.95rem 1.9rem; border-radius: 100px; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn--ghost-light { border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-deep); }
.arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 0; z-index: 1; transition: opacity 1.6s ease;
  will-change: opacity;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.02);
}
.hero__slide.is-active { opacity: 1; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  z-index: 1;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.02);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(105deg, rgba(6,18,37,0.92) 0%, rgba(6,18,37,0.72) 46%, rgba(11,28,61,0.48) 100%),
    radial-gradient(120% 120% at 100% 10%, rgba(6,18,37,0) 42%, rgba(6,18,37,0.35) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}
.hero__inner { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 4rem; }
.hero h1 { color: var(--white); max-width: 26ch; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
/* Thai headings: the global negative letter-spacing collides with stacked
   vowels/tone marks, so reset tracking to normal and give a little more
   line-height for multi-line Thai headlines. English keeps its tight tracking. */
/* Thai headings: use natural wrapping, NOT text-wrap:balance. Balance freely picks any ICU
   break point to equalize line lengths, which lands mid-compound in Thai (e.g. หน้า|งาน, โปรเจ|กต์).
   Natural wrap keeps compounds intact. */
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4 { letter-spacing: normal; text-wrap: wrap; line-height: 1.3; }
/* Thai headings: hl() wraps whole compound words in .nb so the ICU line-breaker
   can't split them mid-word (e.g. เป้า|หมาย, ผลัก|ดัน). Breaks still happen freely
   between words, so long headings wrap naturally. */
.nb { white-space: nowrap; }
html[lang="th"] .hero h1 { line-height: 1.28; word-spacing: 0.05em; text-wrap: wrap; }
/* Thai: enlarge the section kicker (e.g. "I. ที่ปรึกษาธุรกิจ") so it reads as a real label,
   and tame the display H2 which renders bulkier in the Thai fallback font. */
/* Thai: positive tracking makes the fallback Thai font look jittery/uneven on
   mobile (variable cluster widths + stacked marks). Reset to normal like the
   Thai headings/quote — English keeps its 0.28em luxury tracking. */
html[lang="th"] .eyebrow { font-size: 1rem; letter-spacing: normal; }
html[lang="th"] h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.hero__sub {
  margin-top: 2rem; max-width: 46ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,0.82); line-height: 1.6; text-wrap: pretty;
}
.hero__actions { margin-top: 2.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__wind {
  margin-top: 3.5rem; display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-serif); font-style: normal; font-size: 1.05rem; color: var(--gold-soft);
}
.hero__wind::before { content: ""; width: 46px; height: 1px; background: var(--gold); }
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1;
  color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: cue 2s infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   PHILOSOPHY quote block
   ============================================================ */
.philosophy { background: var(--paper); text-align: center; }
.philosophy .quote {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.2; color: var(--ink); max-width: 20ch; margin: 0 auto; letter-spacing: -0.015em;
  text-wrap: balance;
}
.philosophy .quote em { font-style: normal; color: var(--gold-ink); }
/* Thai: the big philosophy quote has extra-tight tracking that collides with
   Thai marks — reset to normal and loosen line-height for it. */
html[lang="th"] .philosophy .quote { letter-spacing: normal; line-height: 1.3; text-wrap: wrap; }
.philosophy .attribution { margin-top: 2.2rem; font-size: 0.95rem; color: var(--muted); }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--navy); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-soft); line-height: 1; }
.stat__label { margin-top: 0.9rem; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); text-wrap: pretty; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 2.6rem 2.2rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(11,28,61,0.4); border-color: transparent; }
.svc__pct { font-family: var(--font-serif); font-size: 3rem; color: var(--gold-ink); line-height: 1; }
.svc h3 { margin: 1.1rem 0 0.9rem; font-size: clamp(1.55rem, 2.6vw, 1.9rem); line-height: 1.2; }
.svc p { font-size: 1.02rem; line-height: 1.65; }
.svc__tags { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.svc__tags span { font-size: 0.72rem; letter-spacing: 0.04em; padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }

/* ============================================================
   SPLIT (image + text) — used for About / case studies
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: 6px; }
.split__body h2 { margin-bottom: 1.5rem; }

/* founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.founder { background: var(--paper-warm); border-radius: 6px; overflow: hidden; }
.founder img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; }
.founder__cap { padding: 1.4rem 1.5rem; }
.founder__cap .name { font-family: var(--font-serif); font-size: 1.3rem; }
.founder__cap .role { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); margin-top: 0.3rem; }
.founder__cap p { font-size: 0.9rem; margin-top: 0.8rem; }

/* the team — editorial two-panel, white-cut-out portraits standing on colour bars */
.team-sec { background: var(--white); }
.team__layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.team__intro { position: sticky; top: 7rem; }
.team__intro .lede { margin-top: 1.4rem; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 2.5vw, 2.2rem); }
.team-card { display: flex; flex-direction: column; }
.team-card__rule { display: block; height: 3px; width: 100%; background: var(--gold); }
.team-card__head { padding-top: 0.7rem; height: 5.1rem; display: flex; flex-direction: column; justify-content: flex-start; }
.team-card__name { color: var(--navy); font-weight: 700; font-size: clamp(0.95rem, 1.1vw, 1.1rem); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-card__role { font-family: var(--font-serif); font-style: normal; font-size: 0.95rem; color: var(--gold-ink); margin-top: 0.15rem; }
.team-card__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-top: 0.5rem;
  display: flex; align-items: flex-end; justify-content: center; background: var(--white); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.team-card__initial { font-family: var(--font-serif); font-size: 3rem; color: var(--gold-soft); align-self: center; }
.team-card__floor { display: block; height: 6px; width: 100%; background: var(--gold); }
.team-card__bio { margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.55; color: var(--steel); }
/* right-hand column: navy accents + steel-blue role */
.team-card:nth-child(even) .team-card__rule,
.team-card:nth-child(even) .team-card__floor { background: var(--navy); }
.team-card:nth-child(even) .team-card__role { color: var(--steel); }

/* ============================================================
   WORK — client grid + case studies
   ============================================================ */
.work { background: var(--paper-warm); }
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.client {
  background: var(--white); border-radius: 6px; padding: 1.8rem 1.5rem; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.client:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(11,28,61,0.45); }
.client .name { font-family: var(--font-serif); font-size: 1.15rem; }
.client .meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; text-wrap: pretty; }
.client .sector { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }

/* Client logos — even grid, minimal grayscale ("trusted by" pattern).
   Column counts are exact divisors of 18 (6 / 3 / 2) so every row is always full —
   no lone orphan logo on the last row. minmax(0,1fr) lets tracks shrink below the
   logos' width, so nothing can ever be clipped or pushed off-screen on mobile.
   No boxes/borders — logos sit straight on the paper for an editorial feel.

   Optical sizing (equal-AREA): each logo's height = base unit (--lh) × a per-logo
   scale (--m). --m is derived from the logo's aspect ratio (m ∝ 1/sqrt(ratio),
   clamped) so wide wordmarks (Krungthai, Samitivej) sit shorter and narrow/tall
   marks (Yongsanguan, DIPROM) fill the height. The result: every logo occupies
   roughly the same visual area — not just the same height, which made wide logos
   look huge. Per-logo --m is set via [src*="..."] so it stays pure CSS (no markup
   change) and works identically in preview and on live. --lh shrinks at each
   breakpoint, scaling the whole wall proportionally. */
.logo-wall {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3rem 2rem; margin-top: 3.4rem; align-items: center; justify-items: center;
  --lh: 53px; /* base optical height unit; per-logo --m scales it */
}
.logo-cell {
  min-width: 0; width: 100%; display: flex; align-items: center; justify-content: center;
}
.logo-cell img {
  width: auto; height: auto;
  max-height: calc(var(--lh) * var(--m, 0.85));
  max-width: 138px; object-fit: contain;
  transition: transform 0.35s var(--ease);
}
.logo-cell:hover img { transform: scale(1.04); }

/* Per-logo optical scale — smaller = shorter (wide logos), ~1 = tall (narrow logos). */
.logo-cell img[src*="krungthai"]            { --m: 0.43; }
.logo-cell img[src*="samitivej"]            { --m: 0.53; }
.logo-cell img[src*="tsuta"]                { --m: 0.55; }
.logo-cell img[src*="osmep"]                { --m: 0.56; }
.logo-cell img[src*="triple-i-logistics"]   { --m: 0.62; }
.logo-cell img[src*="thti"]                 { --m: 0.65; }
.logo-cell img[src*="molnlycke"]            { --m: 0.67; }
.logo-cell img[src*="house-of-wisdom"]      { --m: 0.69; }
.logo-cell img[src*="ais"]                  { --m: 0.78; }
.logo-cell img[src*="salad-factory"]        { --m: 0.80; }
.logo-cell img[src*="maguro"]               { --m: 0.82; }
.logo-cell img[src*="bangkok-university"]   { --m: 0.82; }
.logo-cell img[src*="10cc-coffee"]          { --m: 0.91; }
.logo-cell img[src*="penpark"]              { --m: 0.91; }
.logo-cell img[src*="tceb"]                 { --m: 0.94; }
.logo-cell img[src*="university-of-phayao"] { --m: 0.96; }
.logo-cell img[src*="diprom"]               { --m: 1.00; }
.logo-cell img[src*="yongsanguan"]          { --m: 1.04; }

@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.8rem 1.6rem; --lh: 48px; } }
@media (max-width: 480px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 1.4rem; margin-top: 2.6rem; --lh: 46px; } }

.case {
  margin-top: 4rem; background: var(--navy); color: var(--white); border-radius: 8px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
}
.case--reverse { grid-template-columns: 1fr 1.1fr; }
/* cases now live in their own section — cancel the stacked top margin */
.case--flush { margin-top: 0; }

/* pillar dividers — I / II / III, centred editorial intros */
.pillar { text-align: center; }
.pillar h2 { margin-top: 0.5rem; }
.pillar .lede { margin: 1.2rem auto 0; max-width: 48ch; }
.pillar__media {
  margin: 2.8rem auto 0; max-width: 960px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 50px -24px rgba(11,28,61,0.45);
}
.pillar__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: center;
}
@media (max-width: 620px) {
  .pillar__media { margin-top: 2rem; border-radius: 10px; }
  .pillar__media img { aspect-ratio: 4 / 3; }
}
.case__media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.case__body { padding: clamp(2.2rem, 4vw, 3.5rem); align-self: center; }
.case__body h3 { color: var(--white); margin: 0.6rem 0 1.2rem; }
.case__body p { color: rgba(255,255,255,0.78); }
.case__stats { display: flex; gap: 2.5rem; margin: 1.8rem 0; }
.case__stats b { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-soft); display: block; line-height: 1; }
.case__stats small { font-size: 0.75rem; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; }
.testi { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--gold-soft); border-left: 2px solid var(--gold); padding-left: 1.2rem; margin-top: 1.5rem; text-wrap: pretty; }
/* Thai has no true italic — italic forces an ugly mechanical slant on the fallback font. Keep it upright. */
html[lang="th"] .testi { font-style: normal; }

/* ============================================================
   PROGRAMS
   ============================================================ */
.prog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 3rem; }
.prog {
  display: flex; gap: 1.3rem; padding: 1.7rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.prog:hover { border-color: var(--gold); transform: translateY(-3px); }
.prog__no { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold-ink); line-height: 1; min-width: 2.4rem; }
.prog h4 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.4rem; }
.prog p { font-size: 0.88rem; }
.prog .cat { font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; display: inline-block; }

.wanted { margin-top: 3.5rem; }
.wanted__list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.wanted__list span {
  font-size: 0.85rem; padding: 0.6rem 1.1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 100px; transition: 0.3s var(--ease);
}
.wanted__list span:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Service showcase (Consulting / Training / PM) — optional title, pill list, image cards */
.showcase { margin-top: 3rem; }
.showcase__title {
  font-family: var(--font-serif); font-style: normal; font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--navy); line-height: 1.3; text-align: center; margin: 0 auto; max-width: 40ch;
}
.showcase__pills { justify-content: center; margin-top: 1.5rem; }

/* PM showcase — client example cards with images */
/* auto-fit + centered track: 4 cards fill the row, but 1–3 cards center
   instead of left-aligning with an empty gap on desktop. */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; gap: 1.2rem; margin-top: 1.8rem; }
.pm-card {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pm-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.pm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pm-card figcaption { padding: 0.85rem 0.95rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pm-card figcaption b { font-size: 0.92rem; color: var(--navy); line-height: 1.3; }
.pm-card figcaption span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 520px) { .pm-grid { grid-template-columns: minmax(0, 340px); } }

/* ============================================================
   SIRIN TABLE
   ============================================================ */
.table-sec { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.table-sec .split__media img { border: 1px solid rgba(255,255,255,0.1); }
.table-sec h2 { color: var(--white); }
.table-sec p { color: rgba(255,255,255,0.78); }
.table-tags { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.table-tags span { font-family: var(--font-serif); font-style: normal; color: var(--gold-soft); font-size: 1.05rem; }
.table-tags span:not(:last-child)::after { content: "·"; margin-left: 0.7rem; color: rgba(255,255,255,0.3); }
.table-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.table-gallery__item { margin: 0; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.table-gallery__item img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform 0.6s ease; }
.table-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .table-gallery { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; } }
@media (max-width: 460px) { .table-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { text-align: center; }
.partners__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.partners__row .p {
  padding: 1.2rem 2rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  font-family: var(--font-serif); font-size: 1.2rem;
}
.partners__row .p small { display: block; font-family: var(--font-sans); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.3rem; text-transform: none; text-wrap: pretty; }
/* Logo variant: partner supplied a logo image instead of a text name. */
.partners__row .p--logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; min-width: 260px; flex: 1 1 260px; max-width: 340px; }
.partners__row .p--logo img { width: 100%; height: auto; max-width: 280px; max-height: 130px; object-fit: contain; display: block; }
.partners__row .p--logo small { margin-top: 0; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
/* where we're going · 2027 */
.future { background: var(--paper-warm); text-align: center; }
.future__inner { max-width: 46ch; margin: 0 auto; }
.future h2 { margin-bottom: 1.2rem; }
.future p { color: var(--muted); }
.future__stat { margin-top: 2.4rem; }
.future__stat b { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold-ink); display: block; line-height: 1; }
.future__stat small { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 0.6rem; }

.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white); text-align: center;
}
.cta h2 { color: var(--white); max-width: 32ch; margin: 0 auto 1.4rem; text-wrap: balance; }
.cta h2 em { font-style: normal; color: var(--gold-soft); }
.cta p { color: rgba(255,255,255,0.78); max-width: 46ch; margin: 0 auto; }
.cta__methods { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 3rem 0 2.5rem; }
.cta__method { text-align: left; }
.cta__method .k { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.cta__method .v { font-family: var(--font-serif); font-size: 1.25rem; margin-top: 0.35rem; }
.cta__method a:hover { color: var(--gold-soft); }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 3rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.footer img { height: 34px; }
.footer .fnote { font-size: 0.82rem; }
.footer .wings { font-family: var(--font-serif); font-style: normal; color: var(--gold-soft); }
.footer__legal { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1px; transition: color .2s ease, border-color .2s ease; }
.footer__legal:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
/* Fail-safe: never let scroll-reveal hide content on phones. Mobile browsers can
   skip the IntersectionObserver trigger on tall elements (e.g. the logo wall),
   leaving them stuck at opacity:0. On small screens, show everything up front. */
@media (max-width: 700px) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .services__grid { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .team__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .team__intro { position: static; }
  .prog__grid { grid-template-columns: 1fr; }
  .split, .svc-head { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--rev .split__media { order: 0; }
  .case, .case--reverse { grid-template-columns: 1fr; }
  .case--reverse .case__media { order: -1; }
  .case__media img { min-height: 240px; }
  .founders { grid-template-columns: 1fr; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--navy-deep); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.6rem; padding: 2rem 2.4rem;
    transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 101; }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .clients__grid { grid-template-columns: 1fr; }
  .team__grid { gap: 1.5rem 1rem; }
  .team-card__head { height: 4.6rem; padding-top: 0.55rem; }
  .team-card__role { font-size: 0.85rem; }
  .cta__methods { flex-direction: column; align-items: center; }
  .cta__method { text-align: center; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.9rem; line-height: 1.2; max-width: none; }
}

/* ============================================================
   Floating LINE CTA — persistent add-friend / chat button
   ============================================================ */
.line-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: 100px;
  background: #06C755; color: #fff;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600;
  line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 6px 22px rgba(6,199,85,0.38), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.line-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(6,199,85,0.46), 0 3px 8px rgba(0,0,0,0.2); }
.line-fab:focus-visible { outline: 3px solid rgba(6,199,85,0.4); outline-offset: 3px; }
.line-fab__icon { display: block; flex: none; }
/* Hide the FAB while the mobile menu overlay is open so it doesn't sit on top. */
#header.menu-open ~ .line-fab { display: none; }
@media (max-width: 560px) {
  .line-fab { right: 0.9rem; bottom: 0.9rem; padding: 0.85rem; gap: 0; }
  .line-fab__label { display: none; }   /* collapse to a clean circle on phones */
}
@media (prefers-reduced-motion: reduce) {
  .line-fab, .line-fab:hover { transition: none; transform: none; }
}

/* Free-assessment offer in the Contact section — editorial, borderless,
   quietly inviting rather than promotional. */
.cta__offer {
  max-width: 40ch; margin: 2.4rem auto 0; text-align: center;
}
.cta__offer-badge {
  display: inline-block; font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem;
}
html[lang="th"] .cta__offer-badge { letter-spacing: 0.08em; }
.cta__offer-text b {
  display: block; font-family: var(--font-serif); font-weight: 500;
  font-size: 1.35rem; line-height: 1.45; color: #fff; margin-bottom: 0.55rem;
  text-wrap: balance;
}
html[lang="th"] .cta__offer-text b { text-wrap: wrap; }
.cta__offer-text span {
  display: block; font-size: 0.92rem; line-height: 1.65;
  color: rgba(255,255,255,0.6); max-width: 38ch; margin: 0 auto;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .cta__offer { margin-top: 2rem; }
  .cta__offer-text b { font-size: 1.2rem; }
}

/* Add-friend QR inside the dark Contact section — QR must sit on white to scan.
   Kept quiet: small, soft shadow, so it reads as a refined detail not a banner. */
.cta__qr { margin-top: 3.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.95rem; }
/* Touch devices can't scan their own screen, and the tap buttons already open LINE
   in-app there — so the QR is redundant. Show it only where scanning-with-phone is
   the useful path (mouse/desktop). */
@media (hover: none) and (pointer: coarse) { .cta__qr { display: none; } }
.qr-card {
  display: block; background: #fff; padding: 0.8rem; border-radius: 10px;
  line-height: 0; box-shadow: 0 6px 20px rgba(0,0,0,0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.qr-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }
.qr-card img { width: 128px; height: 128px; display: block; }
.cta__qr-cap { text-align: center; font-size: 0.82rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.72); line-height: 1.5; }
.cta__qr-cap span { display: inline-block; margin-top: 0.2rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.cta__qr-cap b { color: var(--gold-soft); font-weight: 600; }
