/* ===================================================================
   Top Business — site.css
   Strict 8pt scale · pixel-perfect · responsive 320 → 1440
   Brand: #80D300 (green) on #f9fafc
   =================================================================== */

/* ----- Design tokens ------------------------------------------------ */
:root {
  /* brand palette */
  --green: #80D300;
  --green-dark: #6bb200;
  --green-darker: #569000;
  --green-light: #9de025;
  --green-tint: rgba(128, 211, 0, 0.08);
  --green-tint-2: rgba(128, 211, 0, 0.05);
  --green-paper: #f9fafc;
  --ink: #1a1a1a;
  --ink-2: #1a1a1a;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-mute: #6b6b6b;
  --text-faint: #999999;
  --paper: #f9fafc;
  --surface: #f9fafc;
  --surface-2: #f9fafc;
  --surface-3: #f0f0f0;
  --border: #80D300;
  --border-soft: #e0e0e0;
  --bg-dark: #333333;
  --danger: #d44;

  /* spacing — strict 8pt scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 28px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-14: 56px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* radii */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 20px;
  --r-pill: 999px;

  /* shadows */
  --shadow-1: 0 1px 2px rgba(35, 31, 32, 0.05);
  --shadow-2: 0 4px 12px rgba(35, 31, 32, 0.06);
  --shadow-3: 0 8px 24px rgba(35, 31, 32, 0.08);
  --shadow-lift: 0 12px 36px rgba(35, 31, 32, 0.10);

  /* typography scale */
  --t-12: 12px;
  --t-13: 13px;
  --t-14: 14px;
  --t-15: 15px;
  --t-16: 16px;
  --t-18: 18px;
  --t-20: 20px;
  --t-22: 22px;
  --t-24: 24px;
  --t-28: 28px;
  --t-32: 32px;
  --t-40: 40px;
  --t-48: 48px;
  --t-56: 56px;

  /* line-heights — strict allowlist for audit */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-base: 1.4;
  --lh-relaxed: 1.7;
  --lh-loose: 1.85;

  /* container */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1320px;
  --container-pad: 24px;

  /* section rhythm */
  --section-y: 80px;

  /* transitions */
  --t-base: 200ms cubic-bezier(0.2, 0, 0, 1);
  --t-slow: 320ms cubic-bezier(0.2, 0, 0, 1);

  /* z-index scale */
  --z-header: 100;
  --z-nav: 1000;
  --z-nav-close: 1010;
  --z-toast: 1100;

  /* Font stacks + unified type roles (site-wide) */
  --font-ui: 'Kanit', Helvetica, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display-en: 'Bebas Neue', 'Kanit', Helvetica, sans-serif;
  --type-hero-display: clamp(28px, 4.2vw, 52px);
  --type-page-title: clamp(28px, 3.8vw, 40px);
  --type-section-title: clamp(24px, 2.8vw, 32px);
  --type-subsection-title: clamp(18px, 2vw, 22px);
  --type-cta-strip-title: clamp(22px, 2.6vw, 28px);
}

/* ----- Reset / base -------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  line-height: var(--lh-base);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  /* `clip` (rather than `hidden`) avoids creating a containing block
     for position:fixed descendants, which would otherwise break the
     mobile nav overlay. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--t-16);
  line-height: var(--lh-relaxed);
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
}

img,
svg,
video,
canvas { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base);
}
a:hover { color: var(--green-dark); }

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}

ul, ol { padding-left: 1.25em; }
ul[class], ol[class] { padding: 0; list-style: none; }

p { margin: 0 0 var(--s-4); line-height: var(--lh-relaxed); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  margin: 0 0 var(--s-3);
  color: var(--green);
  line-height: var(--lh-snug);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--type-page-title); line-height: var(--lh-tight); }
h2 { font-size: var(--type-section-title); }
h3 { font-size: var(--type-subsection-title); }
h4 { font-size: var(--t-18); }
h5 { font-size: var(--t-16); }
h6 { font-size: var(--t-14); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); }

::selection { background: rgba(128, 211, 0, 0.35); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: var(--s-2) var(--s-3);
  z-index: 9999;
}
.skip-link:focus { left: var(--s-2); top: var(--s-2); }

/* ----- Layout helpers ------------------------------------------------ */
.container,
.container-narrow,
.container-wide {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.container { max-width: calc(var(--container) + 2 * var(--container-pad)); }
.container-narrow { max-width: calc(var(--container-narrow) + 2 * var(--container-pad)); }
.container-wide { max-width: calc(var(--container-wide) + 2 * var(--container-pad)); }

.text-center { text-align: center; }

/* ----- Utility ------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--t-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  background: rgba(128, 211, 0, 0.12);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-3);
}

.badge {
  display: inline-block;
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--green-darker);
  background: rgba(128, 211, 0, 0.14);
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  line-height: var(--lh-snug);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--t-15);
  line-height: var(--lh-snug);
  letter-spacing: 0.01em;
  transition: all var(--t-base);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: var(--s-2) var(--s-4); font-size: var(--t-14); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-3);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--green);
  color: var(--green-dark);
}

/* ----- Header / Nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--green);
  border-bottom: 1px solid rgba(35, 31, 32, 0.10);
  box-shadow:
    0 10px 28px rgba(35, 31, 32, 0.18),
    0 2px 6px rgba(35, 31, 32, 0.10);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hide header when scrolling down (JS adds this class on mobile) */
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 72px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 6px 0;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 280ms cubic-bezier(0.2, 0, 0, 1),
              transform 280ms cubic-bezier(0.2, 0, 0, 1);
}
.site-header__logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  box-shadow: none;
}
.site-header__logo img { height: 56px; width: auto; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-2);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform var(--t-base);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top:  7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-15);
  font-weight: 500;
}
.site-nav > a:not(.site-nav__cta):not(.site-nav__brand),
.site-nav__group-toggle {
  color: #fff;
  position: relative;
  padding: var(--s-2) 0;
  transition: color var(--t-base);
}
.site-nav > a:not(.site-nav__cta):not(.site-nav__brand)::after,
.site-nav__group-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-base);
  border-radius: 2px;
}
.site-nav > a:not(.site-nav__cta):not(.site-nav__brand):hover,
.site-nav > a:not(.site-nav__cta):not(.site-nav__brand).is-active,
.site-nav__group:hover .site-nav__group-toggle,
.site-nav__group.is-active .site-nav__group-toggle {
  color: var(--ink);
}
.site-nav > a:not(.site-nav__cta):not(.site-nav__brand):hover::after,
.site-nav > a:not(.site-nav__cta):not(.site-nav__brand).is-active::after,
.site-nav__group:hover .site-nav__group-toggle::after,
.site-nav__group.is-active .site-nav__group-toggle::after {
  transform: scaleX(1);
}
.site-nav__cta {
  background: var(--green-darker);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  transition: all var(--t-base);
  font-weight: 600;
}
.site-nav__cta:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.site-nav__brand,
.site-nav__close { display: none; }

/* Services dropdown — desktop hover */
.site-nav__group {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.site-nav__group-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.site-nav__group-toggle .chev {
  width: 12px;
  height: 12px;
  transition: transform var(--t-base);
}
.site-nav__group:hover .site-nav__group-toggle .chev,
.site-nav__group.is-open .site-nav__group-toggle .chev {
  transform: rotate(180deg);
}
.site-nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -4px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-2);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s linear var(--t-base);
}
.site-nav__group:hover .site-nav__submenu,
.site-nav__group:focus-within .site-nav__submenu,
.site-nav__group.is-open .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
  transition: opacity var(--t-base), transform var(--t-base), visibility 0s;
}
.site-nav__submenu a {
  display: block;
  padding: var(--s-2) var(--s-3);
  color: var(--ink-2);
  font-size: var(--t-14);
  border-radius: var(--r-2);
  line-height: var(--lh-base);
  transition: all var(--t-base);
}
.site-nav__submenu a:hover {
  background: var(--surface-2);
  color: var(--green-dark);
}

/* ----- Hero (home — green brand canvas, animated + interactive) ---- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mx: 0;
  --my: 0;
  --scroll: 0;
}
.hero--centered {
  text-align: center;
  padding: var(--s-32) 0 var(--s-20);
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(35, 31, 32, 0.22) 0%, rgba(35, 31, 32, 0) 70%),
    linear-gradient(180deg, rgb(133, 191, 63) 0%, rgb(118, 174, 54) 60%, rgb(102, 154, 46) 100%);
}

/* Home — full-width video hero (muted loop + dark overlay + minimal copy) */
.hero--video {
  text-align: center;
  padding: var(--s-32) 0 var(--s-20);
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #131313;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #131313;
}
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.77vh;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.hero__inner--video {
  transform: translate3d(0, calc(var(--scroll) * -24px), 0);
}
.hero__super {
  margin: 0 0 var(--s-4);
  font-size: clamp(36px, 6vw, 76px);
  line-height: var(--lh-tight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.hero__sub {
  margin: 0 0 var(--s-8);
  font-size: clamp(18px, 3.2vw, 30px);
  line-height: var(--lh-snug);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.hero__cta {
  background: #fff;
  color: var(--ink);
  border-color: rgba(35, 31, 32, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.hero__cta:hover {
  background: #f6f6f6;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__iframe {
    display: none;
  }
  .hero__inner--video {
    transform: none !important;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Animated grid */
.hero__grid {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 35%, transparent 85%);
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -10px + var(--scroll) * -40px), 0);
  animation: hero-grid-drift 24s linear infinite;
  will-change: transform, background-position;
}
@keyframes hero-grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

/* Soft rotating rings */
.hero__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 8px + var(--scroll) * -20px), 0);
}
.hero__ring--1 { width: 520px; height: 520px; animation: hero-ring-spin 28s linear infinite; }
.hero__ring--2 { width: 760px; height: 760px; border-style: dashed; animation: hero-ring-spin 50s linear infinite reverse; opacity: 0.7; }
.hero__ring--3 { width: 1040px; height: 1040px; animation: hero-ring-spin 80s linear infinite; opacity: 0.45; }
@keyframes hero-ring-spin {
  to { transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 8px + var(--scroll) * -20px), 0) rotate(360deg); }
}

/* Glowing orbs */
.hero__orbs { position: absolute; inset: 0; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero__orb--1 {
  width: 380px; height: 380px;
  left: -6%; top: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 65%);
  animation: hero-orb-a 14s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * 36px), calc(var(--my) * 36px + var(--scroll) * 60px), 0);
}
.hero__orb--2 {
  width: 460px; height: 460px;
  right: -8%; top: 8%;
  background: radial-gradient(circle, rgba(243, 255, 214, 0.95) 0%, rgba(243, 255, 214, 0) 60%);
  animation: hero-orb-b 18s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * -42px), calc(var(--my) * -28px + var(--scroll) * 90px), 0);
}
.hero__orb--3 {
  width: 320px; height: 320px;
  left: 18%; bottom: -10%;
  background: radial-gradient(circle, rgba(86, 129, 42, 0.95) 0%, rgba(86, 129, 42, 0) 65%);
  animation: hero-orb-c 16s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * 28px), calc(var(--my) * -32px + var(--scroll) * -50px), 0);
  mix-blend-mode: multiply;
  opacity: 0.7;
}
.hero__orb--4 {
  width: 280px; height: 280px;
  right: 12%; bottom: -12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
  animation: hero-orb-a 22s ease-in-out infinite reverse;
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * 24px + var(--scroll) * 30px), 0);
}
@keyframes hero-orb-a {
  0%, 100% { translate: 0 0; scale: 1; }
  50%      { translate: 30px -20px; scale: 1.08; }
}
@keyframes hero-orb-b {
  0%, 100% { translate: 0 0; scale: 1; }
  50%      { translate: -40px 30px; scale: 1.12; }
}
@keyframes hero-orb-c {
  0%, 100% { translate: 0 0; scale: 1; }
  50%      { translate: 24px -28px; scale: 1.06; }
}

/* Sparkles */
.hero__sparkles { position: absolute; inset: 0; }
.hero__spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: hero-spark 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 18px), 0);
}
@keyframes hero-spark {
  0%, 100% { opacity: 0; scale: 0.6; }
  40%      { opacity: 1; scale: 1.2; }
  60%      { opacity: 0.9; scale: 1; }
}

/* Diagonal sheen sweep */
.hero__sheen {
  position: absolute;
  inset: -20% -30%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.18) 52%,
    transparent 62%
  );
  transform: translateX(-30%);
  animation: hero-sheen 8s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@keyframes hero-sheen {
  0%   { transform: translateX(-30%); opacity: 0; }
  20%  { opacity: 1; }
  60%  { transform: translateX(30%); opacity: 0.6; }
  100% { transform: translateX(60%); opacity: 0; }
}

/* Cursor-follow spotlight */
.hero__cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 60%);
  transform: translate3d(calc(var(--cx, 50%) - 260px), calc(var(--cy, 50%) - 260px), 0);
  transition: opacity 280ms cubic-bezier(0.2, 0, 0, 1);
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.hero.is-hover .hero__cursor { opacity: 1; }

/* Inner content — column stack so eyebrow sits above logo (not inline row) */
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transform: translate3d(0, calc(var(--scroll) * -40px), 0);
}

.hero__eyebrow {
  display: inline-block;
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-darker);
  background: rgba(255, 255, 255, 0.92);
  padding: var(--s-1) var(--s-4);
  border-radius: var(--r-pill);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-6);
  box-shadow: 0 8px 22px rgba(35, 31, 32, 0.18);
  animation: hero-pop 800ms cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
}

.hero__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 16px 36px;
  border-radius: 999px;
  margin: 0 auto var(--s-6);
  box-shadow:
    0 18px 38px rgba(35, 31, 32, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.10),
    inset 0 0 0 1px rgba(35, 31, 32, 0.04);
  animation: hero-pop 900ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1.05) both,
             hero-float 6s ease-in-out 1s infinite;
  transform-origin: center;
}

.hero__logo {
  display: block;
  max-width: 360px;
  width: clamp(220px, 28vw, 360px);
  height: auto;
}

.hero__title {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: var(--lh-tight);
  margin-bottom: var(--s-4);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 12px rgba(35, 31, 32, 0.20);
  animation: hero-rise 900ms 160ms cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #ffffff 0%, #f0ffd6 50%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-shimmer 3.6s ease-in-out infinite;
}
.hero__lead {
  max-width: 720px;
  margin: 0 auto var(--s-6);
  font-size: var(--t-18);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.95);
  animation: hero-rise 900ms 240ms cubic-bezier(0.2, 0.8, 0.2, 1.05) both;
}
.hero__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes hero-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes hero-shimmer {
  0%   { background-position: 200% 50%; }
  100% { background-position: -100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__grid,
  .hero__ring,
  .hero__orb,
  .hero__sheen,
  .hero__spark,
  .hero__title em,
  .hero__logo-wrap,
  .hero__eyebrow,
  .hero__title,
  .hero__lead { animation: none !important; }
  .hero__inner:not(.hero__inner--video),
  .hero__grid,
  .hero__ring,
  .hero__orb { transform: none !important; }
}

/* ----- Page hero (about/team/etc.) --------------------------------- */
.page-hero {
  padding: var(--s-16) 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero--brand {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(80% 60% at 50% 0%, rgba(128, 211, 0, 0.25) 0%, rgba(128, 211, 0, 0.05) 60%, transparent 90%),
    linear-gradient(180deg, var(--green-tint) 0%, var(--green-tint-2) 60%, var(--green-paper) 100%);
  border-bottom: 0;
}

/* ----- Animated hero background (green floating blobs, mouse + scroll reactive) ----- */
.page-hero,
.listing__hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
  --hero-scroll: 0px;
}
/* base layer: 3 large soft green blobs that float in a slow loop */
.page-hero::before,
.listing__hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(128, 211, 0, 0.32), transparent 70%),
    radial-gradient(36% 32% at 82% 28%, rgba(128, 211, 0, 0.20), transparent 72%),
    radial-gradient(48% 40% at 50% 90%, rgba(128, 211, 0, 0.24), transparent 75%);
  filter: blur(8px);
  animation: heroFloat 22s ease-in-out infinite alternate;
  transform: translate3d(0, var(--hero-scroll), 0);
  transition: transform 60ms linear;
  pointer-events: none;
}
/* mouse-following highlight on top of the base layer */
.page-hero::after,
.listing__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(420px 320px at var(--mx) var(--my),
      rgba(128, 211, 0, 0.22) 0%,
      rgba(128, 211, 0, 0.08) 35%,
      transparent 70%);
  transition: background-position 200ms ease-out;
  pointer-events: none;
}
/* keep the contents above the layers */
.page-hero > .container,
.listing__hero > .container {
  position: relative;
  z-index: 1;
}

@keyframes heroFloat {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%;
    transform: translate3d(0, var(--hero-scroll, 0px), 0) scale(1);
  }
  50% {
    background-position: 8% 6%, 92% 12%, 58% 92%;
    transform: translate3d(-12px, calc(var(--hero-scroll, 0px) - 6px), 0) scale(1.04);
  }
  100% {
    background-position: -6% 10%, 106% 4%, 44% 96%;
    transform: translate3d(8px, calc(var(--hero-scroll, 0px) + 4px), 0) scale(1.02);
  }
}

/* Brand variant (about page already has heavy gradient) — keep blobs subtle */
.page-hero--brand::before {
  opacity: 0.7;
}
.page-hero--brand::after {
  background:
    radial-gradient(420px 320px at var(--mx) var(--my),
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.15) 35%,
      transparent 70%);
}

/* Reduced motion: disable animation but keep static gradient */
@media (prefers-reduced-motion: reduce) {
  .page-hero::before,
  .listing__hero::before {
    animation: none;
    transform: none;
  }
}

/* Mobile: drop expensive animation/blur/parallax to avoid jank.
   Keeps the same green gradient look — just static. */
@media (max-width: 768px) {
  .page-hero::before,
  .listing__hero::before {
    animation: none;
    transform: none;
    filter: none;       /* remove costly blur on small screens */
    inset: 0;            /* avoid extra paint area */
  }
  /* drop the mouse-follow highlight layer entirely on touch devices */
  .page-hero::after,
  .listing__hero::after {
    display: none;
  }
}
.page-hero--centered { text-align: center; }

/* ----- Hero with portrait (team page) ------------------------------- */
.page-hero--with-portrait {
  padding: var(--s-12) 0 0;
  text-align: left;
}
.page-hero-portrait {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: var(--s-6);
}
.page-hero-portrait__text {
  padding: var(--s-8) 0 var(--s-12);
}
.page-hero-portrait__text .eyebrow {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(128, 211, 0, 0.4);
  color: var(--green-dark);
}
.page-hero-portrait__text .page-hero__title {
  font-size: var(--type-page-title);
  font-weight: 600;
  margin: var(--s-3) 0 var(--s-4);
  color: var(--ink);
}
.page-hero-portrait__text .page-hero__lead {
  margin: 0 0 var(--s-6);
  max-width: 540px;
  color: var(--text-soft);
  font-size: var(--t-16);
}
.page-hero-portrait__person {
  border-top: 2px solid rgba(128, 211, 0, 0.4);
  padding-top: var(--s-4);
  max-width: 540px;
}
.page-hero-portrait__name {
  font-size: var(--t-20);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-1);
}
.page-hero-portrait__role {
  font-size: var(--t-15);
  color: var(--green-dark);
  font-weight: 600;
  margin: 0 0 2px;
}
.page-hero-portrait__sub {
  font-size: var(--t-13);
  color: var(--text-mute);
  margin: 0;
}
.page-hero-portrait__media {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1;
}
.page-hero-portrait__media img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(35, 31, 32, 0.18));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.page-hero-portrait__media::before {
  /* soft green halo behind portrait */
  content: "";
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(128, 211, 0, 0.45) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
/* subtle hover lift */
.page-hero--with-portrait:hover .page-hero-portrait__media img {
  transform: translateY(-6px);
}

/* Mobile / tablet */
@media (max-width: 900px) {
  .page-hero--with-portrait {
    padding: var(--s-10) 0 0;
  }
  .page-hero-portrait {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    align-items: center;
    text-align: center;
  }
  .page-hero-portrait__text {
    padding: 0;
    order: 1;
  }
  .page-hero-portrait__text .page-hero__lead,
  .page-hero-portrait__person {
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero-portrait__media {
    order: 2;
    margin-top: var(--s-4);
  }
  .page-hero-portrait__media img {
    max-width: min(340px, 92vw);
  }
}
.page-hero__title {
  font-size: var(--type-page-title);
  margin-bottom: var(--s-4);
  line-height: var(--lh-tight);
}
.page-hero__lead {
  max-width: 720px;
  margin: 0 auto var(--s-5);
  color: var(--text-soft);
  font-size: var(--t-18);
  line-height: var(--lh-relaxed);
}
.page-hero__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

/* ----- Section rhythm (must be symmetric for audit rule 4) --------- */
.section {
  padding: var(--section-y) 0;
}
.section--surface { background: var(--surface); }
.page-home [data-pg-block-type="services"] { background: #fff; }
.section--dark {
  background: var(--bg-dark);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark .eyebrow { background: rgba(128, 211, 0, 0.18); color: var(--green-light); }
.section--bucket-nav {
  padding: var(--s-8) 0 !important;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}
.section__head--center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}
.section__title {
  font-size: var(--type-section-title);
  margin: 0;
  line-height: var(--lh-snug);
}
.section__title-sub {
  margin: var(--s-2) 0 0;
  color: var(--text-soft);
  font-size: var(--t-16);
  line-height: var(--lh-relaxed);
}
.section__more {
  color: var(--green-dark);
  font-weight: 600;
  font-size: var(--t-15);
  white-space: nowrap;
}
.section__more:hover { color: var(--green-darker); }

/* ----- Top Stats -------------------------------------------------------- */
.top-stats {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  color: var(--ink);
  text-align: center;
  background: var(--paper);
}
.top-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.top-stats::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background-image:
    radial-gradient(circle 2px at 20% 30%, var(--text-faint) 1px, transparent 1px),
    radial-gradient(circle 2px at 70% 20%, var(--text-faint) 1px, transparent 1px),
    radial-gradient(circle 2px at 40% 75%, var(--text-faint) 1px, transparent 1px),
    radial-gradient(circle 2px at 85% 65%, var(--text-faint) 1px, transparent 1px),
    radial-gradient(circle 1.5px at 10% 60%, var(--text-faint) 1px, transparent 1px),
    radial-gradient(circle 1.5px at 55% 10%, var(--text-faint) 1px, transparent 1px),
    radial-gradient(circle 1.5px at 90% 40%, var(--text-faint) 1px, transparent 1px),
    radial-gradient(circle 1.5px at 30% 50%, var(--text-faint) 1px, transparent 1px);
  pointer-events: none;
}
.top-stats__inner {
  position: relative;
  z-index: 1;
}
.top-stats__brand {
  font-size: var(--type-section-title);
  font-weight: 700;
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-2);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.top-stats__tagline {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  color: var(--ink-2);
  margin: 0 0 var(--s-10);
  letter-spacing: 0.04em;
}
.top-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  max-width: 800px;
  margin: 0 auto var(--s-10);
}
.top-stats__card {
  background: #fff;
  border-radius: var(--r-3);
  padding: var(--s-5) var(--s-3);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(133, 191, 63, 0.12);
}
.top-stats__card--accent {
  background: var(--green);
  border-color: var(--green);
}
.top-stats__card--accent .top-stats__num {
  color: #fff;
}
.top-stats__card--accent .top-stats__label {
  color: rgba(255, 255, 255, 0.9);
}
.top-stats__num {
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--green);
  letter-spacing: -0.02em;
}
.top-stats__label {
  display: block;
  margin-top: var(--s-1);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: var(--lh-snug);
}
.top-stats__desc {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: var(--lh-relaxed);
  color: var(--ink-2);
}

/* Legacy stats strip (kept for compat on other pages) */
.stats {
  padding: var(--s-12) 0;
  background: var(--bg-dark);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}
.stats__num {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(32px, 4vw, 48px);
  line-height: var(--lh-tight);
  font-weight: 600;
  color: var(--green-light);
  letter-spacing: -0.02em;
}
.stats__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-14);
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: var(--lh-snug);
}

/* ----- Service grid -------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.service {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--green-light);
  color: inherit;
}
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.service__icon img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.service__title {
  margin: 0;
  font-size: var(--t-20);
  line-height: var(--lh-snug);
}
.service__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--t-15);
  line-height: var(--lh-relaxed);
  flex-grow: 1;
}
.service__more {
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--green-dark);
}

/* ----- Cards (article) ---------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform var(--t-base), box-shadow var(--t-base);
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  color: inherit;
}
/* Image wrapper becomes "transparent" so badge can sit under image as a sibling */
.card__media {
  display: contents;
}
.card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--surface-2);
  transition: transform var(--t-slow);
  order: 1;
}
/* Placeholder / vector thumbnails: keep readable, may letterbox slightly */
.card__media img[src*="logo"],
.card__media img[src$=".svg"] {
  object-fit: contain;
  opacity: 0.55;
}
.card:hover .card__media img { transform: scale(1.04); }
/* Category badge pulled out to sit under the image */
.card__cat {
  order: 2;
  align-self: flex-start;
  margin: var(--s-4) var(--s-5) 0;
  background: rgba(133, 191, 63, 0.14);
  color: var(--green-darker);
  padding: 2px var(--s-3);
  font-size: var(--t-12);
  font-weight: 600;
  border-radius: var(--r-pill);
  line-height: var(--lh-snug);
}
.card__body {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5) var(--s-5);
  flex-grow: 1;
}
/* Re-order body so title sits above meta (date/author) */
.card__title  { order: 1; }
.card__meta   { order: 2; }
.card__excerpt { order: 3; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--t-13);
  color: var(--text-mute);
  line-height: var(--lh-snug);
}
.card__title {
  margin: 0;
  font-size: var(--type-subsection-title);
  line-height: var(--lh-snug);
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__excerpt {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--t-14);
  line-height: var(--lh-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature card variant — restore explicit media box for side-by-side layout */
.card--feature {
  grid-column: span 2;
  flex-direction: row;
}
.card--feature .card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  flex: 0 0 50%;
  overflow: hidden;
  background: var(--surface-2);
}
.card--feature .card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.card--feature .card__cat {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
}
.card--feature .card__body { padding: var(--s-6); }

/* ----- Home tabs ----------------------------------------------------- */
.home-tabs { display: flex; flex-direction: column; gap: var(--s-6); }
.home-tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-1);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  align-self: center;
  max-width: 100%;
}
.home-tabs__bar .tab {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-pill);
  font-family: 'Kanit', Helvetica, sans-serif;
  font-weight: 500;
  font-size: var(--t-14);
  color: var(--text-soft);
  line-height: var(--lh-snug);
  transition: all var(--t-base);
  white-space: nowrap;
}
.home-tabs__bar .tab:hover { color: var(--ink); background: var(--surface-2); }
.home-tabs__bar .tab.is-active {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.home-tabs__panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.home-tabs__more {
  margin-top: var(--s-6);
  display: flex;
  justify-content: center;
}

/* Home: tab bar straddles hero / article section (reference: floating pill on seam) */
.section--home-tabs-bridge {
  position: relative;
  z-index: 2;
}
.home-tabs--bridge {
  gap: var(--s-8);
}
.home-tabs--bridge .home-tabs__bar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-2);
  position: relative;
  z-index: 3;
  width: 100%;
}
.home-tabs--bridge .home-tabs__bar {
  width: min(960px, 100%);
  padding: var(--s-2) var(--s-3);
  gap: var(--s-1);
  box-shadow:
    0 16px 40px rgba(35, 31, 32, 0.14),
    0 4px 12px rgba(35, 31, 32, 0.08);
  justify-content: stretch;
}
.home-tabs--bridge .home-tabs__bar .tab {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--s-4) var(--s-5);
  font-size: clamp(15px, 1.25vw, var(--t-18));
  font-weight: 600;
}
@media (max-width: 960px) {
  .home-tabs--bridge .home-tabs__bar .tab {
    padding: var(--s-3) var(--s-4);
    font-size: var(--t-15);
  }
}
@media (max-width: 640px) {
  .home-tabs--bridge .home-tabs__bar {
    width: 100%;
    padding: var(--s-1);
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 16px rgba(35,31,32,0.14), 0 1px 4px rgba(35,31,32,0.08);
  }
  .home-tabs--bridge .home-tabs__bar::-webkit-scrollbar { display: none; }
  .home-tabs--bridge .home-tabs__bar .tab {
    flex: 0 0 auto;
    font-size: var(--t-14);
    padding: var(--s-3) var(--s-4);
  }
}

/* ----- Bucket nav (knowledge) -------------------------------------- */
.bucket-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
}
.bucket-nav__item {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-14);
  font-weight: 500;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--border);
  line-height: var(--lh-snug);
  transition: all var(--t-base);
}
.bucket-nav__item:hover { color: var(--green-darker); border-color: var(--green-light); }
.bucket-nav__item.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

/* ----- Pagination --------------------------------------------------- */
.pagination {
  display: flex;
  gap: var(--s-1);
  justify-content: center;
  align-items: center;
  margin-top: var(--s-10);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-2);
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-14);
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid var(--border);
  line-height: var(--lh-snug);
  transition: all var(--t-base);
}
.pagination a:hover { color: var(--green-dark); border-color: var(--green-light); }
.pagination .is-current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* ----- Listings ------------------------------------------------------ */
.listing__hero {
  padding: var(--s-16) 0 var(--s-12);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--paper) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.listing__title {
  font-size: var(--type-page-title);
  margin: 0 0 var(--s-3);
  line-height: var(--lh-tight);
}
.listing__lead {
  max-width: 680px;
  margin: 0 auto var(--s-3);
  color: var(--text-soft);
  font-size: var(--t-18);
  line-height: var(--lh-relaxed);
}
.listing__count {
  margin: 0;
  color: var(--text-mute);
  font-size: var(--t-14);
  line-height: var(--lh-snug);
}

/* ----- Post / Page body --------------------------------------------- */
.post {
  padding: var(--s-12) var(--container-pad);
  margin: 0 auto;
}
.post__header { margin-bottom: var(--s-8); }
.post__breadcrumb {
  font-size: var(--t-13);
  color: var(--text-mute);
  margin-bottom: var(--s-3);
  line-height: var(--lh-snug);
}
.post__breadcrumb a { color: var(--text-soft); }
.post__breadcrumb a:hover { color: var(--green-dark); }
.post__title {
  font-size: var(--type-page-title);
  margin: 0 0 var(--s-4);
  line-height: var(--lh-tight);
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--t-14);
  color: var(--text-mute);
  margin-bottom: var(--s-6);
  line-height: var(--lh-snug);
}
.post__hero {
  margin: var(--s-6) 0 var(--s-8);
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post__hero--small {
  aspect-ratio: auto;
  padding: var(--s-8);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
}
.post__hero--small img {
  width: auto;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto;
}
.post__body,
.page-wrap__body {
  font-size: var(--t-16);
  line-height: var(--lh-relaxed);
  color: var(--text);
}
.post__body > *,
.page-wrap__body > * { max-width: 100%; }
.post__body img,
.page-wrap__body img {
  margin: var(--s-5) auto;
  border-radius: var(--r-3);
  max-width: min(100%, 720px);
  height: auto;
}
.post__body p,
.page-wrap__body p { margin-bottom: var(--s-4); }
.post__body h2,
.page-wrap__body h2 {
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
  font-size: var(--type-section-title);
  color: var(--green);
  font-weight: 600;
  line-height: var(--lh-snug);
}
.post__body h3,
.page-wrap__body h3 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
  font-size: var(--type-subsection-title);
  color: var(--green);
  font-weight: 600;
  line-height: var(--lh-snug);
}
.post__body ul,
.post__body ol,
.page-wrap__body ul,
.page-wrap__body ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.4em;
}
.post__body li { margin-bottom: var(--s-1); }
.post__body iframe,
.page-wrap__body iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-3);
  margin: var(--s-5) 0;
}
.post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: var(--t-14);
}
.post__body th,
.post__body td {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--border);
  text-align: left;
}
.post__footer {
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.page-wrap { padding: var(--s-12) 0; }
.page-wrap__title { font-size: var(--type-page-title); margin-bottom: var(--s-3); line-height: var(--lh-tight); }
.page-wrap__lead { color: var(--text-soft); font-size: var(--t-18); line-height: var(--lh-relaxed); margin-bottom: var(--s-6); }

/* ----- About page redesign ------------------------------------------ */
.vision-quote {
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: var(--lh-snug);
  color: var(--ink);
  font-weight: 500;
  margin: var(--s-4) auto 0;
  max-width: 760px;
  position: relative;
  padding: 0 var(--s-6);
}
.vision-quote::before,
.vision-quote::after {
  content: '"';
  font-family: 'Kanit', Helvetica, sans-serif;
  position: absolute;
  font-size: 2em;
  color: var(--green);
  font-weight: 600;
  line-height: 1;
}
.vision-quote::before { left: 0; top: -0.1em; }
.vision-quote::after  { right: 0; bottom: -0.5em; }

.about-body {
  font-size: var(--t-16);
  line-height: var(--lh-relaxed);
  color: var(--text);
}
.about-body p {
  margin: 0 0 var(--s-4);
  line-height: var(--lh-relaxed);
}
.about-body p:last-child { margin-bottom: 0; }

.about-registration {
  margin: var(--s-10) auto 0;
  max-width: 320px;
  text-align: center;
}
.about-registration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-3);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-2);
}

/* Partners — high-res logo carousel (mirrors home page) */
.logo-slider {
  position: relative;
  margin-top: var(--s-6);
  padding: 0 var(--s-7);
}
.logo-slider__viewport {
  overflow: hidden;
  width: 100%;
}
.logo-slider__track {
  display: flex;
  gap: var(--s-5);
  transition: transform 480ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.logo-slide {
  flex: 0 0 calc((100% - var(--s-5) * 3) / 4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-1);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.logo-slide:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.logo-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, opacity 200ms ease;
}
.logo-slider__nav:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.logo-slider__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.logo-slider__nav--prev { left: 0; }
.logo-slider__nav--next { right: 0; }
.logo-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
.logo-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.logo-slider__dot:hover {
  background: rgba(0, 0, 0, 0.32);
}
.logo-slider__dot.is-active {
  background: var(--green);
  transform: scale(1.25);
}

/* ---- Clients showcase (home — carousel of partner logos) ---- */
.clients-showcase {
  padding: var(--section-y) 0;
  background: #fff;
}
.clients-showcase__head {
  text-align: center;
  margin: 0 auto var(--s-10);
}
.clients-showcase__title {
  font-size: var(--type-section-title);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
@media (min-width: 1024px) {
  .clients-showcase__title { white-space: nowrap; }
}
.clients-showcase__sub {
  font-size: var(--t-15);
  line-height: var(--lh-relaxed);
  color: var(--ink-2);
  margin: 0;
}
.clients-carousel {
  position: relative;
  overflow: hidden;
}
.clients-carousel__track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.clients-carousel__page {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--logo-cols, 5), 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--s-5) var(--s-4);
  align-items: center;
  justify-items: center;
}
.clients-carousel__page img {
  max-width: 120px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter var(--t-base), transform 200ms ease;
  transform-origin: center;
}
.clients-carousel__page img:hover {
  transform: scale(1.1);
}
.clients-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
}
.clients-carousel__dot {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(133, 191, 63, 0.28);
  padding: 0;
  background: #d9dfd1;
  cursor: pointer;
  opacity: 1;
  transition:
    background var(--t-base),
    border-color var(--t-base),
    box-shadow var(--t-base),
    opacity var(--t-base);
}
.clients-carousel__dot.is-active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(133, 191, 63, 0.2);
}
.clients-carousel__dot:hover {
  opacity: 1;
}
.clients-carousel__dot:hover:not(.is-active) {
  background: #c7d1bd;
  border-color: rgba(133, 191, 63, 0.38);
}

/* Partners — clean strip, no card chrome */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: var(--s-3) var(--s-4);
  align-items: center;
  justify-items: center;
  margin-top: var(--s-6);
}
.partners-strip img {
  position: relative;
  z-index: 0;
  max-width: 176px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.3) opacity(0.85);
  transition:
    filter var(--t-base),
    transform 240ms cubic-bezier(0.2, 0, 0, 1);
  transform: scale(1);
  transform-origin: center center;
}
.partners-strip img:hover {
  z-index: 1;
  filter: none;
  transform: scale(1.14);
}

/* Legacy partners-grid (kept for compat) */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: var(--s-3) var(--s-4);
  align-items: center;
  justify-items: center;
  margin-top: var(--s-6);
}
.partners-grid img {
  position: relative;
  z-index: 0;
  max-width: 176px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.3) opacity(0.85);
  transition:
    filter var(--t-base),
    transform 240ms cubic-bezier(0.2, 0, 0, 1);
  transform: scale(1);
  transform-origin: center center;
}
.partners-grid img:hover {
  z-index: 1;
  filter: none;
  transform: scale(1.14);
}

/* Core values 4-up */
.core-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-6);
}
.core-value {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  transition: all var(--t-base);
}
.core-value:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--green-light);
}
.core-value__num {
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-32);
  font-weight: 600;
  color: var(--green);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.core-value h3 {
  margin: 0 0 var(--s-1);
  font-size: var(--t-18);
  line-height: var(--lh-snug);
}
.core-value p {
  margin: 0;
  font-size: var(--t-14);
  color: var(--text-soft);
  line-height: var(--lh-relaxed);
}

/* ----- Team page ---------------------------------------------------- */
/* ── Team Hero (background = owner photo) ─────────────────────────────────── */
.team-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a2a3a;
}
.team-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.team-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(10, 24, 40, 0.88) 0%,
      rgba(10, 24, 40, 0.70) 45%,
      rgba(10, 24, 40, 0.10) 100%);
}
.team-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
}
.team-hero__text {
  max-width: 560px;
}
.team-hero__eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
}
.team-hero__title {
  font-size: var(--type-hero-display);
  margin: var(--s-3) 0 var(--s-4);
  line-height: var(--lh-tight);
  color: #fff;
  font-weight: 600;
}
.team-hero__lead {
  max-width: 520px;
  margin: 0 0 var(--s-6);
  color: rgba(255, 255, 255, 0.80);
  font-size: var(--t-16);
  line-height: var(--lh-relaxed);
}
.team-hero__ceo {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: var(--s-4);
  margin-top: var(--s-2);
}
.team-hero__ceo-name {
  font-size: var(--t-20);
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--s-1);
}
.team-hero__ceo-title {
  font-size: var(--t-15);
  color: rgb(133, 191, 63);
  font-weight: 600;
  margin: 0 0 2px;
}
.team-hero__ceo-sub {
  font-size: var(--t-13);
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-6);
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  transition: all var(--t-base);
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--green-light);
}
.team-card__photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 263px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-2);
  background: var(--surface-2);
  margin: 0 auto var(--s-2);
  align-self: center;
}
.team-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  color: var(--green-darker);
  font-size: var(--t-12);
  font-weight: 600;
  line-height: var(--lh-snug);
}
.team-card__badge svg { width: 14px; height: 14px; }
.team-card__name {
  font-size: var(--t-16);
  margin: 0;
  color: var(--ink);
  line-height: var(--lh-snug);
}
.team-card__role {
  font-size: var(--t-13);
  color: var(--text-soft);
  margin: 0;
  line-height: var(--lh-base);
}
.team-card__bio {
  font-size: var(--t-13);
  color: var(--text-mute);
  margin: 0;
  line-height: var(--lh-base);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Contact page ------------------------------------------------- */
.page-contact .page-hero {
  padding: var(--s-16) 0 var(--s-12);
  text-align: center;
  background: linear-gradient(160deg, var(--paper) 60%, #f0f7e6 100%);
  border-bottom: 1px solid var(--border-soft);
}
.page-contact .page-hero__title {
  font-size: var(--type-page-title);
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-2) 0 var(--s-3);
  line-height: var(--lh-snug);
}
.page-contact .page-hero__lead {
  font-size: var(--t-18);
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-12);
  align-items: start;
}

/* Channels column */
.contact-channels {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-7) var(--s-6);
}
.contact-channels__title {
  font-size: var(--t-20);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-channel:last-of-type { border-bottom: none; }

.contact-channel__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f0f7e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-top: 2px;
}
.contact-channel__icon svg { width: 17px; height: 17px; }

.contact-channel__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-channel__label {
  font-size: var(--t-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mute);
  font-family: 'Kanit', Helvetica, sans-serif;
}
.contact-channel__value {
  font-size: var(--t-15);
  color: var(--green-dark);
  text-decoration: none;
  line-height: var(--lh-snug);
  font-weight: 500;
}
.contact-channel__value:hover { color: var(--green-darker); text-decoration: underline; }
.contact-channel__value--text { color: var(--ink); font-weight: 400; }
.contact-channel__value--text:hover { text-decoration: none; color: var(--ink); }

.contact-quick-actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
.contact-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

/* Right column */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.contact-map {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.contact-tagline {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-3);
  padding: var(--s-7) var(--s-6);
}
.contact-tagline__eyebrow {
  font-size: var(--t-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin: 0 0 var(--s-2);
}
.contact-tagline__heading {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 var(--s-4);
  color: #fff;
}
.contact-tagline__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}
.contact-tagline__points li {
  font-size: var(--t-14);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.contact-tagline__points li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Legacy — kept for backward compatibility */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-10);
}
.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-6);
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--s-3);
  line-height: var(--lh-snug);
}
.contact-info dd {
  margin: var(--s-1) 0 0;
  font-size: var(--t-15);
  line-height: var(--lh-relaxed);
}
.contact-info a { color: var(--green-dark); }
.contact-info a:hover { color: var(--green-darker); }

/* ----- Testimonials slider ------------------------------------------ */
.section--testi { background: var(--paper); }
.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
}
.section__head--center .section__title-sub {
  color: var(--text-soft);
  font-size: var(--t-16);
  margin-top: var(--s-1);
}

/* ===== Home page — green underline accent under section titles ====== */
.page-home .clients-showcase__head::after,
.page-home .section__head--center::after,
.page-home .section__head:not(.section__head--center) > div::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
  margin-top: var(--s-5);
}
.page-home .clients-showcase__head::after,
.page-home .section__head--center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ----- Testimonials — video player + playlist sidebar ---------------- */
.testi-playlist {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

/* LEFT: main video only, stretches to match sidebar height */
.testi-playlist__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.testi-playlist__player {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #000;
  border-radius: var(--r-3) 0 0 var(--r-3);
  overflow: hidden;
}
.testi-playlist__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* RIGHT: dark sidebar — drives the height */
.testi-playlist__side {
  display: flex;
  flex-direction: column;
  background: #2a2a2a;
  border-radius: 0 var(--r-3) var(--r-3) 0;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  max-height: 520px;
}
.testi-playlist__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}
.testi-playlist__head-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-playlist__head-icon svg {
  width: 14px;
  height: 14px;
}
.testi-playlist__head-title {
  font-size: var(--t-13);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.testi-playlist__head-count {
  font-size: var(--t-12);
  opacity: 0.85;
  line-height: 1.2;
  margin-top: 2px;
}

/* Scrollable item list */
.testi-playlist__items {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.testi-playlist__items::-webkit-scrollbar { width: 6px; }
.testi-playlist__items::-webkit-scrollbar-track { background: transparent; }
.testi-playlist__items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.testi-playlist__item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 96px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
}
.testi-playlist__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.testi-playlist__item.is-active {
  background: rgba(133, 191, 63, 0.18);
  color: #fff;
}
.testi-playlist__item.is-active::before {
  content: '';
  position: absolute;
}
.testi-playlist__item-num {
  font-size: var(--t-13);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.testi-playlist__item.is-active .testi-playlist__item-num {
  color: var(--green-light);
}
.testi-playlist__item-thumb {
  width: 96px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--r-1);
  background: #000;
  display: block;
}
.testi-playlist__item-text { min-width: 0; }
.testi-playlist__item-title {
  font-weight: 600;
  font-size: var(--t-14);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.testi-playlist__item-sub {
  font-size: var(--t-12);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Educational videos section */
.section--edu-videos { background: #fff; }

/* Tablet/mobile responsive — stack vertically */
@media (max-width: 1023px) {
  .testi-playlist {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .testi-playlist__player {
    border-radius: var(--r-3) var(--r-3) 0 0;
    aspect-ratio: 16 / 9;
    flex: none;
  }
  .testi-playlist__side {
    max-height: 380px;
    min-height: auto;
    border-radius: 0 0 var(--r-3) var(--r-3);
  }
}
@media (max-width: 639px) {
  .testi-playlist__name { font-size: var(--t-18); }
  .testi-playlist__quote { font-size: var(--t-14); }
  .testi-playlist__item {
    grid-template-columns: 20px 80px 1fr;
    gap: var(--s-2);
  }
  .testi-playlist__item-thumb {
    width: 80px;
    height: 46px;
  }
  .testi-playlist__item-title { font-size: var(--t-13); }
}

/* ----- CTA strip ---------------------------------------------------- */
.cta-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-10);
  border-radius: var(--r-4);
  background: linear-gradient(135deg, var(--ink) 0%, #1a1718 100%);
  color: #fff;
  overflow: hidden;
  flex-wrap: wrap;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 80% at 110% 50%, rgba(128, 211, 0, 0.45) 0%, transparent 70%),
    radial-gradient(40% 80% at -10% 50%, rgba(128, 211, 0, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip__content { flex: 1; min-width: 0; }
.cta-strip__title {
  margin: 0;
  color: #fff;
  font-size: var(--type-cta-strip-title);
  line-height: var(--lh-snug);
}
.cta-strip__actions {
  display: flex;
  gap: var(--s-3);
  flex-shrink: 0;
}
.cta-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-2);
  font-weight: 600;
  font-size: var(--t-15);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cta-strip__btn svg { flex-shrink: 0; }
.cta-strip .btn-primary {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  box-shadow: 0 4px 18px rgba(128, 211, 0, 0.4);
}
.cta-strip .btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.cta-strip .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.cta-strip .btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ----- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--s-16) 0 var(--s-6);
  font-size: var(--t-14);
  line-height: var(--lh-relaxed);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--s-10);
  margin-bottom: var(--s-10);
}
.site-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--s-3);
}
.site-footer__about {
  font-size: var(--t-14);
  color: rgba(255, 255, 255, 0.62);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--s-4);
}
.site-footer__social {
  display: flex;
  gap: var(--s-2);
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  transition: all var(--t-base);
}
.site-footer__social a:hover { background: var(--green); color: #fff; }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer h4 {
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-14);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s-3);
  color: #fff;
  line-height: var(--lh-snug);
}
.site-footer ul li { margin-bottom: var(--s-1); }
.site-footer ul li a { color: rgba(255, 255, 255, 0.65); }
.site-footer ul li a:hover { color: var(--green-light); }
.site-footer__contact li {
  margin-bottom: var(--s-3);
  line-height: var(--lh-base);
}
.site-footer__contact span {
  display: block;
  font-size: var(--t-12);
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  line-height: var(--lh-snug);
}
.site-footer__contact a { color: rgba(255, 255, 255, 0.92); }
.site-footer__contact-cta a {
  display: inline-block;
  margin-top: var(--s-1);
  color: var(--green-light);
  font-weight: 600;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--t-13);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--lh-snug);
}
.site-footer__bottom-links {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.site-footer__bottom-links a:hover { color: var(--green-light); }

/* ----- Body lock when nav open -------------------------------------- */
body.nav-open { overflow: hidden; }
/* ===================================================================
   Responsive
   =================================================================== */

/* Wide desktops */
@media (min-width: 1281px) {
  :root { --container-pad: 32px; }
}

/* Tablet — collapse 4-up to 3-up, 3-up to 2-up */
@media (max-width: 1024px) {
  :root { --section-y: 64px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
  .top-stats__grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .core-values { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-hero { min-height: 420px; }
  .team-hero__overlay {
    background: linear-gradient(90deg,
      rgba(10, 24, 40, 0.92) 0%,
      rgba(10, 24, 40, 0.82) 55%,
      rgba(10, 24, 40, 0.25) 100%);
  }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-8); }
  .site-footer__brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .contact-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .card--feature { grid-column: span 2; flex-direction: column; }
  .card--feature .card__media { flex: none; aspect-ratio: 16 / 9; }
}

/* Mobile breakpoint — hamburger + full-screen overlay nav */
@media (max-width: 960px) {
  /* Full-screen menu + header chrome above chat/scroll FABs */
  body.nav-open .site-header { z-index: var(--z-nav); }

  :root { --container-pad: 20px; --section-y: 48px; }

  .site-header__inner { height: 64px; }
  .site-header__logo { padding: 5px 0; }
  .site-header__logo img { height: 56px; }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    /* Below .site-nav overlay so the menu covers the hamburger; clicks still work when closed (nav uses pointer-events: none). */
    z-index: 2;
  }

  /* Mobile nav: full-screen overlay above ALL content */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-nav);
    isolation: isolate;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px var(--s-6) var(--s-8);
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 180ms;
    pointer-events: none;
    visibility: hidden;
    width: 100%;
    height: 100%;
  }
  .site-nav.is-open {
    transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0s;
  }
  .site-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav__brand,
  .site-nav__close { display: inline-flex; }
  .site-nav__brand {
    position: absolute;
    top: 14px;
    left: var(--s-6);
    z-index: var(--z-nav-close);
  }
  .site-nav__brand img { height: 56px; width: auto; }
  .site-nav__close {
    position: absolute;
    top: 14px;
    right: var(--s-6);
    width: 36px;
    height: 36px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: var(--z-nav-close);
  }
  .site-nav__close:hover { background: rgba(35, 31, 32, 0.14); color: var(--ink); }

  .site-nav > a:not(.site-nav__cta):not(.site-nav__brand),
  .site-nav__group {
    display: block;
    padding: var(--s-3) 0;
    font-size: var(--t-18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    width: 100%;
  }
  .site-nav > a:not(.site-nav__cta):not(.site-nav__brand)::after { display: none; }

  /* Mobile services accordion */
  .site-nav__group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .site-nav__group-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: var(--s-3) 0;
    font-size: var(--t-18);
    font-family: 'Kanit', Helvetica, sans-serif;
    font-weight: 500;
    color: #fff;
  }
  .site-nav__group-toggle::after { display: none; }
  .site-nav__group-toggle .chev { width: 16px; height: 16px; }

  .site-nav__submenu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: var(--r-2);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height var(--t-slow), padding var(--t-base);
  }
  .site-nav__group.is-open .site-nav__submenu {
    max-height: 600px;
    padding: var(--s-2);
    margin-bottom: var(--s-2);
  }
  .site-nav__submenu a {
    padding: var(--s-2) var(--s-3);
    font-size: var(--t-15);
    color: #fff;
  }

  .site-nav__submenu a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--ink);
  }

  .site-nav__cta {
    margin-top: var(--s-4);
    text-align: center;
    padding: var(--s-3) var(--s-6);
    font-size: var(--t-16);
    align-self: stretch;
  }
}

/* Tablet — small */
@media (max-width: 880px) {
  .section__head:not(.section__head--center) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .section__head:not(.section__head--center) .section__more {
    align-self: center;
  }
  .page-home .section__head:not(.section__head--center) > div::after {
    margin-left: auto;
    margin-right: auto;
  }
  .stats__grid { gap: var(--s-6); }
  .core-values { gap: var(--s-4); }
  .cta-strip { padding: var(--s-8); flex-direction: column; align-items: flex-start; gap: var(--s-5); }
  .cta-strip__actions { width: 100%; }
}

/* Mobile — small (768) */
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-hero { min-height: 360px; }
  .team-hero__title { font-size: var(--type-page-title); }
  .team-hero__lead { font-size: var(--t-15); }
  .partners-strip,
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: var(--s-3) var(--s-4); }
  .logo-slide { flex: 0 0 calc((100% - var(--s-5) * 2) / 3); }
}

/* Mobile — compact (640) */
@media (max-width: 640px) {
  :root { --container-pad: 16px; --section-y: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .service {
    align-items: center;
    text-align: center;
  }
  .card-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .core-values { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .site-footer__brand { grid-column: 1 / -1; }
  .home-tabs__bar {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--r-3);
    overflow: visible;
    gap: var(--s-2);
  }
  .home-tabs__bar .tab {
    flex: 1 1 calc(50% - var(--s-2));
    text-align: center;
    justify-content: center;
    font-size: var(--t-13);
    padding: var(--s-2) var(--s-3);
  }
  .partners-strip img,
  .partners-grid img { max-height: 64px; max-width: 132px; }
  .logo-slider { padding: 0 var(--s-6); }
  .logo-slide { flex: 0 0 calc((100% - var(--s-5)) / 2); }
  .team-hero { min-height: auto; }
  .team-hero__bg img { object-position: 65% top; }
  .team-hero__overlay {
    background: linear-gradient(180deg,
      rgba(10, 24, 40, 0.88) 0%,
      rgba(10, 24, 40, 0.75) 100%);
  }
  .team-hero__text { max-width: 100%; }
  .team-hero__lead { display: none; }
}

/* Mobile — extra small (460) */
@media (max-width: 460px) {
  .cta-strip__actions { flex-direction: column; }
  .cta-strip__btn { justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .stats__num { font-size: 32px; }
  .post__hero--small img { max-height: 200px; }
  .hero--centered,
  .hero--video { padding: var(--s-16) 0 var(--s-12); min-height: 480px; }
  .hero__lead { font-size: var(--t-16); }
  .partners-strip,
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-slider {
    padding: 0;
  }
  .logo-slider__nav {
    width: 36px;
    height: 36px;
  }
  .logo-slider__nav--prev { left: -6px; }
  .logo-slider__nav--next { right: -6px; }
  .logo-slide { flex: 0 0 100%; }
}

/* Mobile — tiny (360) */
@media (max-width: 360px) {
  :root { --container-pad: 14px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   Services — unified page styles
   =================================================================== */

/* Sticky tab bar */
.services-tabs {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

/* Desktop: single centered row */
.services-tabs__bar {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.services-tabs__bar::-webkit-scrollbar { display: none; }

.services-tab {
  flex: 0 0 auto;
  padding: var(--s-4) var(--s-6);
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-14);
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
  white-space: nowrap;
  text-align: center;
}
.services-tab:hover { color: var(--green); }
.services-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Mobile tab bar: 3-column grid of pill buttons, stays sticky */
@media (max-width: 640px) {
  .services-tabs {
    /* stays sticky; top is set via --header-h JS variable, fallback 0 */
    top: var(--header-h, 0px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-1);
    padding: var(--s-3) 0;
    background: var(--paper);
  }
  .services-tabs__bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-2);
    overflow: visible;
    padding: 0 var(--s-4);
  }
  .services-tab {
    flex: none;
    padding: var(--s-3) var(--s-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    border-radius: var(--r-2);
    background: var(--paper);
    color: var(--text-soft);
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }
  .services-tab:hover {
    border-color: var(--green-light);
    background: var(--green-tint-2);
  }
  .services-tab.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
  }
}

/* ===== Floating Contact FAB ===== */
.chat-fab {
  position: fixed;
  bottom: var(--s-8);
  right: var(--s-8);
  z-index: 210;
  --chat-fab-toggle-size: 56px;
  pointer-events: none;
}

.chat-fab__toggle {
  width: var(--chat-fab-toggle-size);
  height: var(--chat-fab-toggle-size);
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(128, 211, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease, transform 200ms ease, box-shadow 200ms ease;
  pointer-events: auto;
}
.chat-fab__toggle:hover { background: var(--green-dark); transform: translateY(-2px); }
.chat-fab__toggle:focus-visible {
  outline: 3px solid rgba(128, 211, 0, 0.35);
  outline-offset: 2px;
}
.chat-fab__toggle svg { width: 24px; height: 24px; }
.chat-fab__icon-close { display: none; }
.chat-fab.is-open .chat-fab__icon-open { display: none; }
.chat-fab.is-open .chat-fab__icon-close { display: block; }

/* Menu (3 pills above the toggle) */
.chat-fab__menu {
  position: absolute;
  right: 0;
  bottom: calc(var(--chat-fab-toggle-size) + var(--s-3));
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}
.chat-fab.is-open .chat-fab__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chat-fab__menu li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}
.chat-fab.is-open .chat-fab__menu li {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-fab.is-open .chat-fab__menu li:nth-child(1) { transition-delay: 60ms; }
.chat-fab.is-open .chat-fab__menu li:nth-child(2) { transition-delay: 30ms; }
.chat-fab.is-open .chat-fab__menu li:nth-child(3) { transition-delay: 0ms; }

.chat-fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  color: #1f2a44;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(35, 31, 32, 0.18), 0 1px 3px rgba(35, 31, 32, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.chat-fab__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(35, 31, 32, 0.22), 0 2px 4px rgba(35, 31, 32, 0.1);
}
.chat-fab__label { line-height: 1; }
.chat-fab__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-fab__icon svg { width: 100%; height: 100%; display: block; }
.chat-fab__icon--call {
  background: #DCEEFF;
  color: #0084FF;
}
.chat-fab__icon--call svg { width: 18px; height: 18px; }

/* Mobile tweaks */
@media (max-width: 480px) {
  .chat-fab { bottom: var(--s-5); right: var(--s-5); }
  .chat-fab { --chat-fab-toggle-size: 52px; }
  .chat-fab__item { padding: 6px 6px 6px 16px; font-size: 14px; }
  .chat-fab__icon { width: 32px; height: 32px; }
}

/* ===== Scroll-to-top FAB (injected by site.js) ===== */
.scroll-top-fab {
  position: fixed;
  right: var(--s-8);
  bottom: var(--s-8);
  z-index: 209;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(35, 31, 32, 0.12), 0 2px 4px rgba(35, 31, 32, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    visibility 200ms ease,
    transform 200ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease;
}
.scroll-top-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-fab:hover {
  background: rgba(128, 211, 0, 0.14);
  border-color: var(--green-dark);
  color: var(--green-darker);
  box-shadow: 0 6px 18px rgba(128, 211, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.scroll-top-fab:focus-visible {
  outline: 3px solid rgba(128, 211, 0, 0.35);
  outline-offset: 2px;
}
.scroll-top-fab svg {
  width: 22px;
  height: 22px;
}
/* Sit above contact FAB when both are present (home) */
.scroll-top-fab.scroll-top-fab--stacked {
  bottom: calc(var(--s-8) + 56px + var(--s-3));
}
@media (max-width: 480px) {
  .scroll-top-fab {
    right: var(--s-5);
    bottom: var(--s-5);
    width: 44px;
    height: 44px;
  }
  .scroll-top-fab.scroll-top-fab--stacked {
    bottom: calc(var(--s-5) + 52px + var(--s-3));
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top-fab {
    transition: none;
  }
}

/* Section wrapper */
.services-section {
  padding: var(--s-20) 0 var(--s-24);
  /* header-h (72px) + tabs (~56px) + small buffer */
  scroll-margin-top: calc(var(--header-h, 72px) + 60px);
}
.services-section--alt {
  background: var(--surface);
}

/* Section header */
.services-section__header {
  text-align: center;
  margin-bottom: var(--s-12);
}
.services-section__header h2 {
  font-size: var(--type-section-title);
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-3) 0 var(--s-4);
}
.services-section__lead {
  font-size: var(--t-16);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* Image blocks inside sections */
.services-img-block {
  text-align: center;
  margin-bottom: var(--s-10);
}
.services-img-block img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-3);
}
.services-img-block--wide img { max-width: min(100%, 761px); }
.services-img-block__label {
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: var(--s-4);
  font-size: var(--t-15);
}

/* Subsection title */
.services-subsection-title {
  font-size: var(--type-subsection-title);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-8);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.services-subsection-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: var(--t-12);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Service item grid */
.service-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-10);
}
.service-item-grid--lg {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.service-item {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-3);
  padding: var(--s-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.service-item:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}
.service-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.service-item strong {
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
  line-height: var(--lh-snug);
}
.service-item p {
  font-size: var(--t-13);
  color: var(--text-soft);
  line-height: var(--lh-base);
  margin: 0;
}

/* 4-step process (Franchise) */
.service-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-12);
  position: relative;
}
.service-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--green-light));
}
.service-step {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-3);
  padding: var(--s-6);
  text-align: center;
  position: relative;
}
.service-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: #fff;
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-18);
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: var(--s-3);
  position: relative;
  z-index: 1;
}
.service-step__title {
  display: block;
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.service-step__desc {
  font-size: var(--t-13);
  color: var(--text-soft);
  line-height: var(--lh-base);
  margin: 0;
}

/* OMOS hero layout */
.omos-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
  margin-bottom: var(--s-16);
}
.omos-logo-label {
  margin-bottom: var(--s-5);
}
.omos-logo-label__line {
  display: block;
  font-size: var(--t-14);
  color: var(--text-soft);
  font-weight: 500;
}
.omos-logo-label__brand {
  display: block;
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-48);
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.omos-hero__quote {
  font-size: var(--t-16);
  color: var(--text-soft);
  line-height: var(--lh-relaxed);
  border-left: 3px solid var(--green);
  padding-left: var(--s-5);
  margin: 0 0 var(--s-6);
}
.omos-hero__ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.omos-hero__img img {
  width: 100%;
  height: auto;
  border-radius: var(--r-3);
}

/* OMOS problem + stats */
.omos-problem {
  text-align: center;
  margin-bottom: var(--s-12);
}
.omos-problem__title {
  font-size: var(--t-24);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.omos-problem__sub {
  font-size: var(--t-16);
  color: var(--text-soft);
  margin-bottom: var(--s-8);
}
.omos-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  max-width: 720px;
  margin: 0 auto;
}
.omos-stat {
  background: var(--green-tint);
  border-radius: var(--r-3);
  padding: var(--s-6) var(--s-4);
  text-align: center;
}
.omos-stat__num {
  display: block;
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-32);
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.omos-stat__label {
  font-size: var(--t-13);
  color: var(--text-soft);
  font-weight: 500;
}

/* OMOS suitable for */
.omos-suitable {
  text-align: center;
  margin-bottom: var(--s-12);
}
.omos-suitable__title {
  font-size: var(--t-18);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.omos-suitable__grid {
  display: flex;
  justify-content: center;
  gap: var(--s-8);
  flex-wrap: wrap;
}
.omos-suitable__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--text);
}
.omos-suitable__item img { width: 56px; height: 56px; object-fit: contain; }

/* OMOS checklist panels */
.omos-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.omos-checklist__panel {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-3);
  padding: var(--s-8);
}
.omos-checklist__title {
  font-size: var(--t-18);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.omos-checklist__title span { color: var(--green); }
.omos-checklist__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.omos-checklist__list li {
  font-size: var(--t-15);
  color: var(--text);
  line-height: var(--lh-base);
  padding-left: var(--s-7);
  position: relative;
}
.omos-checklist__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px;
}

/* btn-outline variant */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 11px var(--s-6);
  border-radius: var(--r-pill);
  font-family: 'Kanit', Helvetica, sans-serif;
  font-size: var(--t-15);
  font-weight: 500;
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .service-steps { grid-template-columns: repeat(2, 1fr); }
  .service-steps::before { display: none; }
  .omos-hero { grid-template-columns: 1fr; }
  .omos-stats { grid-template-columns: repeat(2, 1fr); }
  .omos-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-section { padding: var(--s-12) 0 var(--s-16); }
  .service-item-grid { grid-template-columns: repeat(2, 1fr); }
  .service-steps { grid-template-columns: 1fr; }
  .omos-stats { grid-template-columns: repeat(2, 1fr); }
  .omos-suitable__grid { gap: var(--s-5); }
}

/* ===================================================================
   Home page — Events carousel section
   =================================================================== */
.home-events { background: #fff; }

.home-events__carousel {
  position: relative;
  margin-top: var(--s-6);
}
.home-events__viewport {
  overflow: hidden;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  background: #0a3a2a;
}
.home-events__track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.home-events__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: #0a3a2a;
}
.home-events__slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: transform 400ms ease;
}
.home-events__slide:hover img {
  transform: scale(1.02);
}

.home-events__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.home-events__dot {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(133, 191, 63, 0.28);
  padding: 0;
  background: #d9dfd1;
  cursor: pointer;
  transition:
    background var(--t-base),
    border-color var(--t-base),
    box-shadow var(--t-base);
}
.home-events__dot.is-active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(133, 191, 63, 0.2);
}
.home-events__dot:hover:not(.is-active) {
  background: #c7d1bd;
  border-color: rgba(133, 191, 63, 0.38);
}

/* Hide dots when there's only one slide */
.home-events__carousel[data-single="true"] .home-events__dots { display: none; }

.home-events__more {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}

@media (max-width: 640px) {
  .home-events__slide img { aspect-ratio: 4 / 3; }
}

/* ===================================================================
   Events — listing + landing page
   =================================================================== */

/* ----- Events listing toolbar ----- */
.events-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: var(--s-3);
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-3);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-6);
  box-shadow: var(--shadow-1);
  flex-wrap: wrap;
}
.events-toolbar__search {
  position: relative;
  display: flex;
  align-items: center;
}
.events-toolbar__search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  pointer-events: none;
}
.events-toolbar__search input {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: var(--surface-3);
  border-radius: var(--r-2);
  padding: 10px 14px 10px 36px;
  font-family: inherit;
  font-size: var(--t-14);
  color: var(--ink);
  transition: border-color var(--t-base), background var(--t-base);
}
.events-toolbar__search input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.events-toolbar__view,
.events-toolbar__filter {
  display: inline-flex;
  align-items: center;
  background: var(--surface-3);
  border-radius: var(--r-2);
  padding: 4px;
  gap: 2px;
}
.events-toolbar__view button,
.events-toolbar__filter button {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  font-family: inherit;
  font-size: var(--t-13);
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-1);
  transition: background var(--t-base), color var(--t-base);
}
.events-toolbar__view button.is-active,
.events-toolbar__filter button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.events-toolbar__view button:not(.is-active):hover,
.events-toolbar__filter button:not(.is-active):hover {
  color: var(--ink);
}

/* Calendar nav (Today + month label + prev/next) */
.events-cal-nav {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.events-cal-nav__today {
  appearance: none;
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  padding: 8px 16px;
  font-family: inherit;
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-base);
}
.events-cal-nav__today:hover { background: #e6e6e6; }
.events-cal-nav__arrow {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: var(--r-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background var(--t-base);
}
.events-cal-nav__arrow:hover { background: var(--surface-3); }
.events-cal-nav__arrow svg { width: 16px; height: 16px; }
.events-cal-nav__label {
  font-weight: 600;
  font-size: var(--type-section-title);
  color: var(--ink);
  margin: 0;
}

/* Section heading inside events page (Upcoming / Latest Past) */
.events-section-heading {
  font-size: var(--type-section-title);
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-8) 0 var(--s-5);
  position: relative;
  padding-left: 14px;
}
.events-section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--green);
}

/* ----- Events list view ----- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.event-row {
  display: grid;
  grid-template-columns: 90px 1fr 200px;
  gap: var(--s-5);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.event-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}
.event-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-soft);
}
.event-row.is-featured::before { background: var(--green); }
.event-row__date {
  text-align: center;
  border-right: 1px solid var(--border-soft);
  padding-right: var(--s-4);
}
.event-row__date-month {
  font-size: var(--t-13);
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}
.event-row__date-day {
  font-size: var(--t-32);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin: 0;
}
.event-row__date-year {
  font-size: var(--t-12);
  color: var(--text-soft);
  margin: 4px 0 0;
}
.event-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-row__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--t-12);
  font-weight: 600;
  background: var(--green-tint);
  color: var(--green-darker);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.event-row__title {
  font-size: var(--type-subsection-title);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: var(--lh-snug);
}
.event-row__venue {
  font-size: var(--t-13);
  color: var(--text-soft);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-row__venue svg { width: 14px; height: 14px; flex-shrink: 0; }
.event-row__excerpt {
  font-size: var(--t-13);
  color: var(--text-soft);
  margin: 0;
  line-height: var(--lh-base);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-row__thumb {
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--surface-3);
  align-self: center;
}
.event-row__thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.event-empty {
  background: var(--surface-3);
  border: 1px dashed var(--border-soft);
  border-radius: var(--r-3);
  padding: var(--s-8);
  text-align: center;
  color: var(--text-soft);
  font-size: var(--t-15);
}

/* ----- Events month view ----- */
.events-month {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-3);
  overflow: hidden;
}
.events-month__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--surface-3);
  border-bottom: 1px solid var(--border-soft);
}
.events-month__weekday {
  padding: var(--s-3);
  text-align: center;
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.events-month__grid {
  display: flex;
  flex-direction: column;
}
.events-month__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 100px;
  border-bottom: 1px solid var(--border-soft);
}
.events-month__week:last-child { border-bottom: none; }
.events-month__cell {
  grid-row: 1;
  padding: var(--s-2);
  border-right: 1px solid var(--border-soft);
  position: relative;
  background: #fff;
}
.events-month__cell:nth-child(7) { border-right: none; }
.events-month__cell.is-other-month { background: #fafafa; color: #c0c0c0; }
.events-month__cell.is-today .events-month__day-num {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.events-month__day-num {
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
}
.events-month__event-bar {
  display: block;
  align-self: start;
  margin: 2px 3px;
  padding: 3px 8px;
  background: var(--green);
  color: #fff;
  font-size: var(--t-12);
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.events-month__event-bar:hover { background: var(--green-dark); }
.events-month__event-bar.continues-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
}
.events-month__event-bar.continues-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
}

/* ----- Events list responsive ----- */
@media (max-width: 768px) {
  .events-toolbar {
    grid-template-columns: 1fr;
  }
  .event-row {
    grid-template-columns: 76px 1fr;
    gap: var(--s-4);
    align-items: start;
  }
  /* Cover image row above date + body (thumbnail optional per event) */
  .event-row:has(.event-row__thumb) {
    grid-template-areas:
      "thumb thumb"
      "date body";
    row-gap: var(--s-4);
    column-gap: var(--s-4);
  }
  .event-row:has(.event-row__thumb) .event-row__thumb {
    grid-area: thumb;
    width: calc(100% + 2 * var(--s-5));
    margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-3);
    align-self: stretch;
    border-radius: var(--r-3) var(--r-3) var(--r-2) var(--r-2);
  }
  .event-row:has(.event-row__thumb) .event-row__date {
    grid-area: date;
  }
  .event-row:has(.event-row__thumb) .event-row__body {
    grid-area: body;
  }
  .event-row__thumb {
    display: block;
  }
  .event-row__thumb img {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    width: 100%;
    display: block;
    object-fit: cover;
  }
  .event-row__date { padding-right: var(--s-3); }
  .event-row__date-day { font-size: var(--t-28); }
  .events-month__week { min-height: 70px; }
  .events-month__event-bar { font-size: 10px; padding: 2px 4px; }
}

/* ===================================================================
   Event landing page (single event)
   =================================================================== */

.event-page {
  padding-bottom: var(--s-16);
}
.event-page__breadcrumb {
  font-size: var(--t-13);
  color: var(--text-soft);
  margin: var(--s-4) 0 var(--s-3);
}
.event-page__breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}
.event-page__breadcrumb a:hover { color: var(--green-dark); }
.event-page__breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

.event-page__head {
  text-align: left;
  margin-bottom: var(--s-6);
}
.event-page__eyebrow {
  display: inline-block;
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-darker);
  background: var(--green-tint);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}
.event-page__title {
  font-size: var(--type-page-title);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--s-2);
  line-height: var(--lh-snug);
}
.event-page__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-soft);
  margin: 0;
}

.event-page__hero-img {
  width: 100%;
  margin-bottom: var(--s-8);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: #0a3a2a;
}
.event-page__hero-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1728 / 750;
  object-fit: cover;
}
/* Variant for poster-style covers — preserve full image without cropping */
.event-page__hero-img--cover img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 720px;
  margin: 0 auto;
}

.event-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s-8);
  align-items: start;
}

/* Sidebar (sticky) */
.event-page__sidebar {
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
}
.event-info-card {
  background: #1f1f1f;
  color: #fff;
  border-radius: var(--r-3);
  padding: var(--s-6);
  box-shadow: var(--shadow-3);
}
.event-info-card__head {
  font-weight: 700;
  font-size: var(--t-14);
  color: var(--green-light);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.event-info-card__ended {
  color: var(--danger);
  font-weight: 700;
}
.event-info-card__list {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.event-info-card__item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.event-info-card__icon {
  width: 32px;
  height: 32px;
  background: rgba(128, 211, 0, 0.15);
  color: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-info-card__icon svg { width: 16px; height: 16px; }
.event-info-card__label {
  font-size: var(--t-12);
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.event-info-card__value {
  font-size: var(--t-15);
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: var(--lh-snug);
}
.event-info-card__map {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--t-12);
  color: var(--green-light);
  text-decoration: none;
  margin-top: 4px;
}
.event-info-card__map:hover { text-decoration: underline; }
.event-info-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.event-info-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-2);
  font-weight: 600;
  font-size: var(--t-14);
  text-decoration: none;
  transition: background var(--t-base), border-color var(--t-base);
}
.event-info-card__btn--primary {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
}
.event-info-card__btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.event-info-card__btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.event-info-card__btn--ghost:hover { border-color: rgba(255, 255, 255, 0.5); }
.event-info-card__btn svg { width: 16px; height: 16px; }

/* Main content body */
.event-page__body section {
  margin-bottom: var(--s-12);
}
.event-page__lead {
  font-size: var(--t-18);
  line-height: var(--lh-relaxed);
  color: var(--text-soft);
  margin: 0 0 var(--s-6);
}
.event-page__lead strong { color: var(--ink); }

.event-page__section-title {
  font-size: var(--t-24);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  position: relative;
  padding-bottom: var(--s-3);
}
.event-page__section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.event-page__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.event-stat {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-3);
  padding: var(--s-5);
  text-align: center;
  box-shadow: var(--shadow-1);
}
.event-stat__num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin: 0 0 6px;
}
.event-stat__label {
  font-size: var(--t-13);
  color: var(--text-soft);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-page__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.event-page__bullets li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--green-tint);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  font-size: var(--t-15);
  line-height: var(--lh-relaxed);
  color: var(--ink);
}
.event-page__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.event-page__schedule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.event-page__schedule img {
  width: 100%;
  height: auto;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  display: block;
  transition: transform var(--t-base);
}
.event-page__schedule img:hover { transform: scale(1.02); }
[data-lightbox] img { cursor: zoom-in; }

.event-page__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.event-page__gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-2);
  display: block;
  transition: transform var(--t-base);
}
.event-page__gallery img:hover { transform: scale(1.03); }

/* Landing responsive */
@media (max-width: 960px) {
  .event-page__layout {
    grid-template-columns: 1fr;
  }
  .event-page__sidebar {
    position: static;
    order: -1;
  }
  .event-page__stats { grid-template-columns: repeat(2, 1fr); }
  .event-page__schedule { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .event-page__gallery { grid-template-columns: repeat(2, 1fr); }
  .event-page__gallery img { height: 160px; }
}
@media (max-width: 480px) {
  .event-page__stats { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .event-page__gallery img { height: 130px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .site-nav, .cta-strip, .pagination, .chat-fab, .scroll-top-fab { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ===================================================================
   Lightbox — fullscreen image viewer with prev/next
   =================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(8, 10, 12, 0.94);
  opacity: 0;
  transition: opacity 200ms ease;
}
.lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 8vw, 96px) clamp(56px, 6vw, 88px);
  box-sizing: border-box;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-out;
  transition: opacity 150ms ease;
}
.lightbox__img.is-loading { opacity: 0; }

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease;
}
.lightbox__btn:hover {
  background: rgba(133, 191, 63, 0.85);
  border-color: var(--green);
}
.lightbox__btn:active { transform: translateY(-50%) scale(0.96); }
.lightbox__btn svg { width: 22px; height: 22px; pointer-events: none; }
.lightbox__btn--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__btn--next { right: clamp(8px, 2vw, 24px); }
.lightbox__btn--close {
  top: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  transform: none;
  width: 44px;
  height: 44px;
}
.lightbox__btn--close:active { transform: scale(0.96); }
.lightbox__btn[hidden] { display: none; }

.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(12px, 2vw, 24px);
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-ui);
  font-size: var(--t-13);
  padding: 0 clamp(56px, 8vw, 96px);
  pointer-events: none;
}
.lightbox__counter {
  display: inline-block;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

body.has-lightbox { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox__stage { padding: 64px 16px 72px; }
  .lightbox__btn { width: 40px; height: 40px; }
  .lightbox__btn svg { width: 18px; height: 18px; }
  .lightbox__caption { font-size: var(--t-12); padding: 0 16px; }
}

/* English-only snippets: mark with lang=\"en\" (inherits Bebas Neue at regular weight via cascade) */
:lang(en) {
  font-family: var(--font-display-en);
}
h1:lang(en),
h2:lang(en),
h3:lang(en),
h4:lang(en),
h5:lang(en),
h6:lang(en),
.hero__super:lang(en),
.hero__sub:lang(en) {
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
