/* =====================================================
   THE METAL SHEET — Light Aluminum Sheen Theme
   White · Steel Blue · Cool Gray · Aluminum Reflection
   Awwwards-tier · 2026-05-30 v2
   ===================================================== */

:root {
  /* Base — Aluminum / Steel Sheet */
  --bg: #fafbfc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-mute: #f1f5f9;

  /* Text */
  --text: #0f172a;
  --text-soft: #1e293b;
  --text-dim: #475569;
  --text-mute: #94a3b8;

  /* Accent — Steel Blue */
  --accent: #1e40af;
  --accent-bright: #2563eb;
  --accent-soft: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --accent-tint: rgba(37, 99, 235, 0.06);

  /* Aluminum tones (silver/gray) */
  --alum-1: #f8fafc;
  --alum-2: #e2e8f0;
  --alum-3: #cbd5e1;
  --alum-4: #94a3b8;

  /* Steel sheen gradient */
  --sheen: linear-gradient(135deg, #ffffff 0%, #f1f5f9 30%, #cbd5e1 50%, #f1f5f9 70%, #ffffff 100%);
  --metal-stripe: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.15), transparent);

  /* Channel brand */
  --line-green: #06c755;
  --msg-blue: #0084ff;
  --phone-green: #10b981;
  --orange: #f97316;

  /* Fonts */
  --font-thai: 'Kanit', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 32px;
  --radius: 4px;
  --easing: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =====================================================
   VFX — Scroll progress · Cursor blob · Ambient blobs
   ===================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent), var(--accent-soft));
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  transition: width 0.05s linear;
}

.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  transition: opacity 0.4s;
  will-change: transform;
}
@media (hover: none) { .cursor-blob { display: none; } }

.ambient-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}
.blob-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent);
  animation: blobFloat1 20s ease-in-out infinite;
}
.blob-2 {
  width: 320px;
  height: 320px;
  top: 40%;
  left: -80px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.35), transparent);
  animation: blobFloat2 24s ease-in-out infinite;
}
.blob-3 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  right: 20%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
  animation: blobFloat3 28s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 60px) scale(1.1); }
  66% { transform: translate(30px, -40px) scale(0.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.15); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -30px) scale(0.9); }
  66% { transform: translate(-40px, 50px) scale(1.1); }
}

/* =====================================================
   MARQUEE — continuous scrolling accent strip
   ===================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg-card), var(--bg-alt), var(--bg-card));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  z-index: 2;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card), transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.marquee-track span:nth-child(even) {
  color: var(--accent-bright);
  font-weight: 700;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =====================================================
   HERO ACCENT SHAPES (geometric)
   ===================================================== */
.hero-accent-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.6;
}
.hero-shape-1 {
  top: 15%;
  right: 8%;
  animation: heroShapeFloat1 18s ease-in-out infinite;
}
.hero-shape-2 {
  bottom: 20%;
  right: 25%;
  width: 100px;
  height: 100px;
  animation: heroShapeFloat2 14s ease-in-out infinite;
}
@keyframes heroShapeFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}
@keyframes heroShapeFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -20px) rotate(-15deg); }
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top left, rgba(37, 99, 235, 0.04), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(148, 163, 184, 0.08), transparent 50%);
  color: var(--text);
  font-family: var(--font-thai);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (hover: none) { body { cursor: auto; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.small { font-size: 12px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Custom cursor ----- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: transform 0.18s var(--easing), opacity 0.2s;
}
.cursor {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.hover {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: var(--accent-bright);
  background: rgba(37, 99, 235, 0.05);
}

@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ----- Backgrounds: grid dots + lines ----- */
.grid-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(71, 85, 105, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.lines-vertical, .lines-horizontal {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.lines-vertical { display: flex; justify-content: space-between; padding: 0 var(--gutter); }
.lines-vertical span {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.12) 30%, rgba(148, 163, 184, 0.12) 70%, transparent);
}
.lines-horizontal { display: flex; flex-direction: column; justify-content: space-between; }
.lines-horizontal span {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.1) 30%, rgba(148, 163, 184, 0.1) 70%, transparent);
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 0;
  transition: all 0.4s var(--easing);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
  padding: 4px 0;
  box-shadow: 0 1px 24px rgba(15, 23, 42, 0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  height: 90px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  transition: transform 0.3s var(--easing), filter 0.3s var(--easing), height 0.4s var(--easing);
  filter: drop-shadow(0 10px 22px rgba(37, 99, 235, 0.3));
}
.nav.scrolled .nav-logo {
  height: 64px;
  filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.22));
}
.nav-brand:hover .nav-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 26px rgba(37, 99, 235, 0.4));
}
.footer-logo {
  height: 70px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.nav-brand:hover .nav-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 10px 22px rgba(37, 99, 235, 0.45));
}
.nav-name {
  display: none;
}
.footer-logo {
  height: 96px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-menu a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.3s var(--easing);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: width 0.3s var(--easing);
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 0.3s var(--easing);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-name { display: none; }
  /* Mobile: hide "ขอใบเสนอราคา" — Hero CTA + green LINE FAB ครอบคลุมแล้ว · กัน text wrap */
  .nav-cta { display: none; }
}

/* ----- Hero — Aluminum sheen background ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 60px;
  overflow: hidden;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 70%, var(--alum-1) 100%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
}
@media (max-width: 1024px) {
  .hero { padding: 130px var(--gutter) 60px; }
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  background:
    linear-gradient(105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.6) 45%,
      rgba(148, 163, 184, 0.08) 50%,
      rgba(255, 255, 255, 0.6) 55%,
      transparent 70%
    );
  pointer-events: none;
  animation: aluminumSheen 12s ease-in-out infinite;
}
@keyframes aluminumSheen {
  0%, 100% { transform: translateX(-15%); }
  50% { transform: translateX(15%); }
}

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

/* Hero watermark — "The Metal Sheet" handwriting (decorative background) */
.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-watermark img {
  width: 110%;
  max-width: 1600px;
  height: auto;
  opacity: 0.07;
  filter: blur(0.5px);
  transform: rotate(-3deg);
  animation: watermarkDrift 24s ease-in-out infinite;
  mix-blend-mode: multiply;
}
@keyframes watermarkDrift {
  0%, 100% { transform: rotate(-3deg) translateX(0) translateY(0); }
  50% { transform: rotate(-2.4deg) translateX(20px) translateY(-12px); }
}
.beams span {
  position: absolute;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft) 50%, transparent);
  opacity: 0.3;
  transform-origin: center;
  animation: beam 10s linear infinite;
}
.beams span:nth-child(1) { top: 20%; transform: rotate(-15deg); animation-delay: 0s; }
.beams span:nth-child(2) { top: 45%; transform: rotate(8deg); animation-delay: -2.5s; opacity: 0.2; }
.beams span:nth-child(3) { top: 70%; transform: rotate(-22deg); animation-delay: -5s; }
.beams span:nth-child(4) { top: 88%; transform: rotate(12deg); animation-delay: -7.5s; opacity: 0.15; }

@keyframes beam {
  0% { transform: translateX(-50%) rotate(var(--r, -15deg)); opacity: 0; }
  20% { opacity: 0.3; }
  80% { opacity: 0.3; }
  100% { transform: translateX(50%) rotate(var(--r, -15deg)); opacity: 0; }
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 32px; align-items: center; }
}
.hero-content > div:first-child,
.hero-content > .hero-eyebrow,
.hero-content > .hero-title,
.hero-content > .hero-tag,
.hero-content > .hero-ctas,
.hero-content > .hero-stats {
  grid-column: 1;
}

/* =====================================================
   HERO CENTERPIECE — กลาง vertical · เลื่อนซ้าย (ไม่ทับ collage)
   ===================================================== */
.hero-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: -140px;  /* shift ซ้าย · ใส่ใน text whitespace · right edge แตะ gap */
  width: 190px;
  height: 190px;
  pointer-events: none;
  z-index: 5;
}
@media (max-width: 1280px) {
  .hero-deco {
    width: 160px;
    height: 160px;
    margin-left: -120px;
  }
}
@media (max-width: 1024px) {
  .hero-deco { display: none; }
}

/* Rotating circular badge */
.deco-circle {
  position: relative;
  width: 100%;
  height: 100%;
}
.deco-circle-svg {
  width: 100%;
  height: 100%;
  animation: decoRotate 22s linear infinite;
}
@keyframes decoRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.circle-text {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 700;
  opacity: 0.9;
}
.deco-circle-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.6) 70%, transparent 80%);
  border-radius: 50%;
}
.deco-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
}
.deco-num i {
  font-style: normal;
  font-size: 24px;
  vertical-align: 14px;
}
.deco-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 9px;
  color: var(--text-mute);
  letter-spacing: 0.25em;
  margin-top: 2px;
}

/* Floating trust pills */
.deco-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-family: var(--font-thai);
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(8px);
}
.deco-pill svg { color: var(--accent-bright); flex-shrink: 0; }
.deco-pill-1 {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--orange);
  color: var(--orange);
  animation: pillFloat1 5s ease-in-out infinite;
}
.deco-pill-1 svg { color: var(--orange); }
.deco-pill-2 {
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  animation: pillFloat2 6s ease-in-out infinite;
}
.deco-pill-3 {
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--line-green);
  color: var(--line-green);
  animation: pillFloat3 5.5s ease-in-out infinite;
}
.deco-pill-3 svg { color: var(--line-green); }
@keyframes pillFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(-6px, -8px) rotate(-4deg); }
}
@keyframes pillFloat2 {
  0%, 100% { transform: translate(0, -50%) rotate(1deg); }
  50% { transform: translate(8px, -55%) rotate(3deg); }
}
@keyframes pillFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  50% { transform: translate(-5px, 6px) rotate(4deg); }
}

/* Hero photo collage (right column · 4 cells locked ratio) */
.hero-collage {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 10px;
  height: 100%;
  min-height: 560px;
  max-height: 640px;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  padding: 0;
  margin-left: 0;
  overflow: visible;
}
@media (max-width: 1024px) {
  .hero-collage {
    grid-column: 1;
    max-width: 700px;
    margin: 0 auto;
    height: 480px;
    min-height: 480px;
    align-self: center;
    justify-self: center;
  }
}
.collage-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  position: relative;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card) 50%, var(--alum-2) 100%);
  transition: transform 0.5s var(--easing), box-shadow 0.5s var(--easing), z-index 0s 0.5s;
  isolation: isolate;

  /* LOCK grid cell — ไม่ให้ภาพข้างในดัน cell ขยาย */
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  contain: layout size paint;
}
/* Skeleton shimmer ตอน swap (ไม่เห็น white blank) */
.collage-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}
.collage-photo.swapping::before {
  opacity: 1;
  animation: shimmerSwap 0.6s ease-in-out;
}
@keyframes shimmerSwap {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.collage-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--easing), opacity 0.5s ease;
  max-width: none;
  max-height: none;
}
.collage-main {
  grid-column: 1;
  grid-row: 1 / -1;
  transform: rotate(-1deg);
  z-index: 1;
}
.collage-sub-1 {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(1.5deg);
}
.collage-sub-2 {
  grid-column: 2;
  grid-row: 2;
  transform: rotate(-1.5deg);
}
.collage-sub-3 {
  grid-column: 2;
  grid-row: 3;
  transform: rotate(1.2deg);
}

/* Collage rotation animation states */
.collage-photo img {
  transition: opacity 0.5s ease, transform 0.7s var(--easing);
}
.collage-photo.swapping img {
  opacity: 0.15;
  filter: blur(8px);
}
.collage-photo.swapped img {
  opacity: 1;
  filter: blur(0);
  animation: photoIn 0.6s var(--easing);
}
@keyframes photoIn {
  0% { opacity: 0; transform: scale(1.04); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.collage-photo:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.3), 0 0 0 2px var(--accent-bright) inset;
  z-index: 5;
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing), z-index 0s 0s;
}
.collage-photo:hover img { transform: scale(1.08); }

.collage-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-thai);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.collage-badge {
  position: absolute;
  left: -14px;
  bottom: -14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
  font-family: var(--font-thai);
  color: var(--text);
  animation: badgeFloat 4s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.collage-badge svg { color: var(--accent-bright); flex-shrink: 0; }
.collage-badge strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--text); }
.collage-badge small { display: block; font-size: 10px; color: var(--text-mute); font-family: var(--font-mono); letter-spacing: 0.05em; margin-top: 2px; }

/* Works grid 6+ — better adaptive */
.works-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.works-more {
  margin: 32px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}
.works-more a {
  color: var(--accent-bright);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 4px;
}

/* Service Areas grid (areas/index.html) */
.areas-section { padding: 60px 0 120px; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.area-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-thai);
  font-size: 14px;
  transition: all 0.3s var(--easing);
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.06), transparent);
  transition: left 0.5s var(--easing);
}
.area-card:hover {
  border-color: var(--accent-bright);
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
  color: var(--accent);
}
.area-card:hover::before { left: 100%; }
.area-pin {
  flex-shrink: 0;
  font-size: 18px;
}
.area-name { flex: 1; font-weight: 500; }
.area-arrow {
  flex-shrink: 0;
  color: var(--text-mute);
  font-family: var(--font-mono);
  transition: transform 0.3s, color 0.3s;
}
.area-card:hover .area-arrow {
  transform: translateX(4px);
  color: var(--accent-bright);
}

/* =====================================================
   COLORFUL SECTION BACKGROUNDS — เพิ่มสีสัน
   ===================================================== */
.about {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.025), transparent 50%),
    var(--bg-alt);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  opacity: 0.4;
}

.services {
  position: relative;
  background:
    radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.04), transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(249, 115, 22, 0.025), transparent 50%);
}

.works {
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%),
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05), transparent 60%);
}

.videos {
  background:
    radial-gradient(circle at 90% 50%, rgba(255, 0, 0, 0.025), transparent 50%),
    var(--bg);
}

.articles {
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.05), transparent 50%),
    var(--bg);
}

.testimonials {
  background:
    radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.04), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(37, 99, 235, 0.04), transparent 50%);
}

.contact {
  background:
    linear-gradient(135deg, var(--bg-alt) 0%, rgba(37, 99, 235, 0.03) 100%);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-bright), var(--orange), var(--accent-bright));
  opacity: 0.5;
}

/* Section divider — corrugated wave (subtle) */
.why-us {
  position: relative;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(37, 99, 235, 0.02) 100%);
}
.why-us::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'><path d='M0 20 L60 10 L120 30 L180 10 L240 30 L300 10 L360 30 L420 10 L480 30 L540 10 L600 30 L660 10 L720 30 L780 10 L840 30 L900 10 L960 30 L1020 10 L1080 30 L1140 10 L1200 30 L1260 10 L1320 30 L1380 10 L1440 20 L1440 40 L0 40 Z' fill='rgba(37,99,235,0.04)'/></svg>");
  background-size: 1440px 40px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--accent-tint);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-bright);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-thai);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}
.hero-title span { display: block; overflow: hidden; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  display: block !important;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-top: 16px;
}
.hero-tag {
  max-width: 100%;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 32px;
}
.hero-tag strong { color: var(--text); font-weight: 500; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.hero-stats .stat { flex: 1; min-width: 0; }
@media (max-width: 1024px) {
  .hero-stats { flex-wrap: wrap; }
  .hero-stats .stat { flex: 0 1 auto; }
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-num i {
  font-style: normal;
  color: var(--accent-bright);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-mute);
}
.hero-scroll svg { animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: none;
  transition: all 0.3s var(--easing);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary {
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}
.btn-primary.magnetic { transition: transform 0.2s var(--easing); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 4px 12px rgba(37, 99, 235, 0.1);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ----- Section heads ----- */
section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
}
.section-head h2 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-strong), transparent);
}

/* ----- About ----- */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-lead {
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 24px;
}
.about-lead strong { color: var(--accent); font-weight: 500; }
.about-text p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 20px;
}
.about-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.about-points li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}

.about-card {
  position: relative;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-bright), var(--alum-3) 50%, transparent);
  border-radius: 6px;
}
.about-card-inner {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.about-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
  transform: rotate(0deg);
  animation: aluminumShine 8s linear infinite;
}
@keyframes aluminumShine {
  0% { transform: translate(-30%, -30%) rotate(0deg); }
  100% { transform: translate(-30%, -30%) rotate(360deg); }
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.card-stat { display: flex; flex-direction: column; gap: 6px; }
.card-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
}
.card-stat-val {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.card-bar {
  margin-top: 32px;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--accent-bright), var(--alum-3), transparent);
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--easing);
  overflow: hidden;
  cursor: pointer;
}
.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-bright), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--easing);
}
.service::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--easing);
  pointer-events: none;
}
.service {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--accent-bright);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}
.service:hover::before { transform: translateX(0); }
.service:hover::after { opacity: 1; }
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  position: relative;
}
.service h3 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 16px;
  line-height: 1.3;
  color: var(--text);
  position: relative;
}
.service p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 32px;
  position: relative;
}
.service-icon {
  color: var(--accent-bright);
  opacity: 0.7;
  transition: all 0.4s var(--easing);
  position: relative;
}
.service:hover .service-icon {
  opacity: 1;
  transform: scale(1.1);
  color: var(--accent);
}

/* ----- Works ----- */
.works { background: var(--bg-alt); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.work-card { cursor: pointer; }
.work-img {
  aspect-ratio: 4 / 3;
  background: var(--sheen);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-mute);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--easing);
}
.work-img.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(37, 99, 235, 0.06) 48%, rgba(37, 99, 235, 0.06) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(37, 99, 235, 0.06) 48%, rgba(37, 99, 235, 0.06) 52%, transparent 52%);
  background-size: 40px 40px;
  opacity: 0.5;
}
.work-img small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  position: relative;
}
.work-card:hover .work-img {
  border-color: var(--accent-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}
.work-meta { display: flex; align-items: center; gap: 16px; }
.work-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent-tint);
}
.work-meta h4 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 16px;
  margin: 0;
  color: var(--text);
}

/* ----- Videos ----- */
.videos-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.video-feature .video-thumb { aspect-ratio: 16 / 9; }
.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--sheen);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--text-mute);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  transition: all 0.4s var(--easing);
  cursor: pointer;
}
.video-thumb.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.04), transparent 50%);
}
.video-thumb small {
  font-family: var(--font-mono);
  font-size: 10px;
  position: relative;
}
.play-btn {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.12);
  border: 1.5px solid var(--accent-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--easing);
}
.video-card:hover .play-btn {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent-glow);
}
.video-card:hover .video-thumb {
  border-color: var(--accent-bright);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}
.video-meta { display: flex; align-items: center; gap: 14px; }
.video-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border: 1px solid var(--orange);
  border-radius: 2px;
  background: rgba(249, 115, 22, 0.06);
}
.video-meta h4 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  color: var(--text);
}

@media (max-width: 900px) {
  .videos-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   YOUTUBE BRANDING + lite-youtube-embed override
   ===================================================== */
.yt-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #FFF;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s var(--easing);
}
.yt-section-link:hover {
  border-color: #FF0000;
  color: #FF0000;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.12);
  transform: translateY(-1px);
}
.yt-logo { flex-shrink: 0; }

.yt-channel-strip {
  margin-bottom: 32px;
}
.yt-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
  border: 1px solid #fee2e2;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s var(--easing);
  position: relative;
  overflow: hidden;
}
.yt-channel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 0, 0, 0.04) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.yt-channel-card:hover {
  border-color: #FF0000;
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.15);
  transform: translateY(-2px);
}
.yt-channel-card:hover::before { opacity: 1; }
.yt-channel-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}
.yt-channel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.yt-channel-handle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.yt-channel-meta {
  font-family: var(--font-thai);
  font-size: 13px;
  color: var(--text-dim);
}
.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #FF0000;
  color: #FFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--easing);
}
.yt-channel-card:hover .yt-subscribe-btn {
  background: #CC0000;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
}

/* lite-youtube-embed visual polish */
lite-youtube {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--easing);
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  display: block;
  contain: content;
  position: relative;
}
.video-feature lite-youtube { aspect-ratio: 16 / 9; }
.video-card:hover lite-youtube {
  border-color: var(--accent-bright);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.12);
}
lite-youtube > .lty-playbtn {
  cursor: inherit;
  background-color: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="%23f00" fill-opacity="0.95"/><path d="M45 24L27 14v20" fill="%23fff"/></svg>');
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s var(--easing);
}
.video-card:hover lite-youtube > .lty-playbtn {
  transform: scale(1.1);
}

/* Video meta tweaks */
.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.video-note {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.03em;
  font-style: italic;
  margin-top: 4px;
}

.videos-cta-note {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.videos-cta-note strong { color: var(--text); font-weight: 500; }
.videos-cta-note a {
  color: #FF0000;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.videos-cta-note code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* =====================================================
   YOUTUBE WIDGET (Elfsight-style · DIY)
   ===================================================== */
.yt-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: relative;
}

.yt-widget-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.yt-widget-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.yt-widget-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.yt-widget-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}
.yt-widget-name {
  font-family: var(--font-thai);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.yt-widget-name:hover { color: var(--accent); }
.yt-widget-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.yt-widget-stats strong { color: var(--text); font-weight: 600; }
.yt-stat-dot { opacity: 0.5; }

.yt-widget-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FF0000;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s var(--easing);
}
.yt-widget-sub:hover {
  background: #CC0000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}
.yt-widget-sub-count {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 11px;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .yt-grid { grid-template-columns: 1fr; }
}

.yt-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s var(--easing);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.yt-card:hover {
  transform: translateY(-3px);
  border-color: #FF0000;
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.12);
}
.yt-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  overflow: hidden;
}
.yt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--easing);
}
.yt-card:hover .yt-card-thumb img { transform: scale(1.05); }
.yt-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}
.yt-card:hover .yt-card-play { background: rgba(0, 0, 0, 0.25); }
.yt-card-play svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}
.yt-card:hover .yt-card-play svg { transform: scale(1.15); }
.yt-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}
.yt-card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.yt-card-title {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}
.yt-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.yt-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Skeleton loading */
.yt-card-placeholder {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.yt-card-thumb-skeleton {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--bg-alt) 0%, var(--bg-card) 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: ytShimmer 1.5s ease-in-out infinite;
}
.yt-card-title-skeleton {
  height: 32px;
  margin: 12px 14px;
  background: linear-gradient(90deg, var(--bg-alt) 0%, var(--bg-card) 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: ytShimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes ytShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.yt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.yt-page-prev, .yt-page-next {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.yt-page-prev:hover:not(:disabled),
.yt-page-next:hover:not(:disabled) {
  border-color: #FF0000;
  color: #FF0000;
}
.yt-page-prev:disabled,
.yt-page-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.yt-page-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 60px;
  text-align: center;
}

.yt-widget-fallback {
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px dashed var(--border-strong);
}
.yt-widget-fallback p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.yt-widget-fallback code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .yt-channel-card { flex-direction: column; text-align: center; }
  .yt-section-link { display: none; } /* hide on tiny mobile, channel pill ทำหน้าที่แล้ว */
}

/* ----- Contact ----- */
.contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h3 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--text);
}
.contact-info > p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 32px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 80px;
}
.contact-list a, .contact-list span:last-child {
  font-size: 15px;
  color: var(--text);
  transition: color 0.3s;
}
.contact-list a:hover { color: var(--accent-bright); }

.contact-channels {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.channel {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  background: var(--bg-card);
  transition: all 0.3s var(--easing);
}
.channel:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.contact-map,
.contact-fb {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: var(--bg-card);
}
.contact-map iframe { display: block; }
.map-label {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-family: var(--font-thai);
  font-size: 13px;
  color: var(--text-dim);
}
.contact-fb iframe { background: var(--bg-alt); }
.fb-cta-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1877F2 0%, #166FE5 100%);
  color: #fff;
}
.fb-cta-header svg { flex-shrink: 0; background: #fff; border-radius: 4px; padding: 2px; }
.fb-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fb-cta-text strong {
  font-family: var(--font-thai);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
.fb-cta-text small {
  font-family: var(--font-thai);
  font-size: 11px;
  opacity: 0.9;
}
.fb-cta-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}
.fb-cta-btn:hover {
  background: #fff;
  color: #1877F2;
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .fb-cta-header { flex-wrap: wrap; }
  .fb-cta-btn { width: 100%; text-align: center; }
}

/* ===== COLOR SWATCHES — สีจริง Colorbond/BlueScope ===== */
.color-swatches {
  margin: 48px 0 32px;
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.swatches-title {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--text);
  text-align: center;
}
.brand-tag {
  display: inline-block;
  padding: 2px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.swatches-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      0deg,
      var(--c1) 0px,
      var(--c1) 9px,
      var(--c2) 9px,
      var(--c2) 13px
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.3s var(--easing);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255,255,255,0.4) inset;
  overflow: hidden;
}
.swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.swatch:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25), 0 0 0 2px var(--accent-bright) inset;
}
.swatch:hover::before { opacity: 1; }
.swatch-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink, #fff);
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}
.swatch[style*="--ink:#1a1a1a"] .swatch-name {
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  text-shadow: none;
}
.swatch-thai {
  font-family: var(--font-thai);
  font-size: 10px;
  color: var(--ink, #fff);
  margin-top: 4px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  position: relative;
  z-index: 1;
}
.swatch[style*="--ink:#1a1a1a"] .swatch-thai {
  background: rgba(255, 255, 255, 0.7);
  color: #1a1a1a;
}
.swatch-hex {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink, #fff);
  opacity: 0.75;
  margin-top: 3px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.swatch[style*="--ink:#1a1a1a"] .swatch-hex {
  text-shadow: none;
  opacity: 0.6;
}
.swatches-note {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}
.swatches-note a {
  color: var(--accent-bright);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 360px;
}
.contact-qr img {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--border);
}
.qr-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qr-label {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
}
.qr-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}
.qr-hint a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-thai);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Honeypot — hidden from users, visible to bots (anti-spam) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  z-index: 2;
  background: var(--bg-card);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { width: 40px; height: 40px; }
.footer-brand p { margin: 0; font-size: 13px; color: var(--text-dim); }
.footer-brand p.small { color: var(--text-mute); }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0; color: var(--text-mute); }
.footer-meta a { color: var(--text-mute) !important; }
.footer-meta a:hover { color: var(--accent-bright) !important; }

/* =====================================================
   FLOATING ACTION BUTTONS (FAB) — single green toggle · expand on click
   ===================================================== */
.fab-cluster {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
@media (min-width: 768px) {
  .fab-cluster { right: 24px; bottom: 24px; }
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s var(--easing), opacity 0.25s var(--easing), box-shadow 0.3s var(--easing);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}
.fab:hover {
  transform: scale(1.12);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

/* ===== Sub-FABs: hidden by default, slide-in on .expanded ===== */
.fab-sub {
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  pointer-events: none;
}
.fab-cluster.expanded .fab-sub {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
/* Stagger reveal — bottom (closest to main) shows first */
.fab-cluster.expanded .fab-sub:nth-last-child(2) { transition-delay: 0ms; }   /* fab-line  (next to main) */
.fab-cluster.expanded .fab-sub:nth-last-child(3) { transition-delay: 50ms; }  /* fab-phone */
.fab-cluster.expanded .fab-sub:nth-last-child(4) { transition-delay: 100ms; } /* fab-chat */
.fab-cluster.expanded .fab-sub:nth-last-child(5) { transition-delay: 150ms; } /* fab-messenger */
.fab-cluster.expanded .fab-sub:nth-last-child(6) { transition-delay: 200ms; } /* fab-facebook */

/* ===== Main toggle button — always visible, LINE green ===== */
.fab-main {
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
  width: 60px;
  height: 60px;
  box-shadow: 0 10px 28px rgba(6, 199, 85, 0.45);
}
.fab-main:hover {
  box-shadow: 0 16px 40px rgba(6, 199, 85, 0.6);
}
.fab-main-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: transform 0.4s var(--easing), opacity 0.25s var(--easing);
}
.fab-main-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.fab-cluster.expanded .fab-main-icon-default {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.fab-cluster.expanded .fab-main-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}
/* Stop pulse once expanded (visual settle) */
.fab-cluster.expanded .fab-main::before {
  animation: none;
  opacity: 0;
}

/* ===== Brand colors for sub-FABs ===== */
.fab-phone {
  background: var(--phone-green);
  color: #fff;
  border-color: var(--phone-green);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.fab-phone:hover { box-shadow: 0 16px 36px rgba(16, 185, 129, 0.5); }

.fab-line {
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.35);
}
.fab-line:hover { box-shadow: 0 16px 36px rgba(6, 199, 85, 0.5); }

.fab-messenger {
  background: linear-gradient(135deg, #00C6FF 0%, #0078FF 100%);
  color: #fff;
  border-color: #0084FF;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.35);
}
.fab-messenger:hover { box-shadow: 0 16px 36px rgba(0, 132, 255, 0.5); }

.fab-facebook {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35);
}
.fab-facebook:hover { box-shadow: 0 16px 36px rgba(24, 119, 242, 0.5); }

.fab-chat {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.fab-chat:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.5);
}

/* ===== Pulse (used on main FAB by default) ===== */
.fab-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--line-green);
  animation: fabPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== Tooltip — desktop only ===== */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--text);
  color: #fff;
  font-family: var(--font-thai);
  font-size: 12px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--easing);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--text);
}
.fab:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
}

@media (max-width: 767px) {
  .fab-tooltip { display: none; }
  .fab { width: 46px; height: 46px; }
  .fab-main { width: 56px; height: 56px; }
}

/* =====================================================
   CHATBOT MINI WIDGET
   ===================================================== */
.chatbot {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 91;
  width: calc(100% - 32px);
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--easing);
  max-height: 520px;
}
.chatbot.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
@media (min-width: 768px) {
  .chatbot { right: 24px; bottom: 100px; }
}

.chatbot-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.chatbot-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  animation: aluminumShine 6s linear infinite;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.chatbot-name {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
}
.chatbot-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}
.chatbot-close {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.35); }

.chatbot-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-alt);
  max-height: 340px;
}

.chat-msg {
  display: flex;
  margin-bottom: 12px;
}
.chat-msg-user { justify-content: flex-end; }
.chat-bubble {
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 14px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.chat-msg-bot .chat-bubble {
  border-top-left-radius: 4px;
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  border-color: var(--accent);
  border-top-right-radius: 4px;
}

.chat-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.chat-quick-btn {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-thai);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-quick-btn:hover {
  border-color: var(--accent-bright);
  background: var(--accent-tint);
  color: var(--accent);
  transform: translateX(2px);
}

.chatbot-footer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.chatbot-footer input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-thai);
  font-size: 13px;
  outline: none;
}
.chatbot-footer input:disabled { opacity: 0.5; cursor: not-allowed; }
.chatbot-footer input:focus { border-color: var(--accent-bright); }
.chatbot-send {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.chatbot-send:not(:disabled) { opacity: 1; }
.chatbot-send:not(:disabled):hover { transform: scale(1.05); }

.chatbot-note {
  padding: 6px 12px;
  background: var(--bg-alt);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* =====================================================
   LINE QUICK CHAT MODAL (เปิดจาก FAB · ไม่ผ่าน QR scan page)
   ===================================================== */
.line-modal {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 91;
  width: calc(100% - 32px);
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--line-green);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(6, 199, 85, 0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--easing);
}
.line-modal.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
@media (min-width: 768px) {
  .line-modal { right: 24px; bottom: 100px; }
}

.line-modal-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}
.line-modal-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.line-modal-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-modal-name {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
}
.line-modal-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.line-modal-close {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-modal-close:hover { background: rgba(255, 255, 255, 0.35); }

.line-modal-body {
  padding: 20px;
  background: var(--bg);
}
.line-modal-greeting {
  font-family: var(--font-thai);
  font-size: 14px;
  color: var(--text);
  margin: 0 0 16px;
  text-align: center;
}

.line-modal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.3s var(--easing);
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3);
}
.line-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
}
.line-modal-cta svg { color: #fff; }
.line-modal-cta span:nth-of-type(1) {
  font-family: var(--font-thai);
  font-weight: 600;
  font-size: 15px;
}
.line-modal-cta small {
  font-family: var(--font-thai);
  font-size: 11px;
  opacity: 0.9;
}

.line-modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.line-modal-divider::before,
.line-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.line-modal-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.line-modal-qr img {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.line-modal-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.line-modal-qr-meta strong {
  font-family: var(--font-thai);
  font-size: 13px;
  color: var(--text);
}
.line-modal-qr-meta span {
  font-family: var(--font-thai);
  font-size: 11px;
  color: var(--text-mute);
}

.line-modal-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-thai);
  cursor: pointer;
  transition: all 0.2s;
}
.line-modal-copy:hover {
  border-color: var(--line-green);
  background: rgba(6, 199, 85, 0.04);
}
.line-modal-id {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--line-green);
  text-align: left;
}
.line-modal-copy-action {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}
.line-modal-copy.copied .line-modal-copy-action {
  color: var(--line-green);
}
.line-modal-copy.copied .line-modal-copy-action::after {
  content: ' ✓';
}

/* =====================================================
   WHY US — ทำไมต้องเรา (Sun's design layout)
   ===================================================== */
.why-us { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
}

.why-lead h3 {
  font-family: var(--font-thai);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--text);
}
.why-lead h3 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.why-lead p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--easing);
}
.why-list li:last-child { border-bottom: none; }
.why-list li:hover { padding-left: 8px; }
.why-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.why-list h4 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.4;
}
.why-list p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   ABOUT CARD WITH IMAGE
   ===================================================== */
.about-card-img {
  background: transparent;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
}
.about-card-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}
.about-card-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.about-card-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.badge-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.about-card-badge small {
  font-family: var(--font-thai);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* =====================================================
   WORK CARD WITH REAL IMAGE
   ===================================================== */
.work-card .work-img:not(.placeholder) {
  background: var(--bg-card);
  padding: 0;
}
.work-card .work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--easing);
}
.work-card:hover .work-img img {
  transform: scale(1.05);
}

/* =====================================================
   CONVERSION LUBRICANT STRIP (อ.เบิร์ด ข้อ 9)
   ===================================================== */
.lubricant-strip {
  padding: 28px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.lubricant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 24px;
}
.lubricant-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-thai);
}
.lubricant-grid li svg {
  flex-shrink: 0;
  color: var(--accent-bright);
}
.lubricant-grid li strong {
  color: var(--text);
  font-weight: 500;
}

/* =====================================================
   STORY (อ.เบิร์ด ข้อ 2 Sapiens)
   ===================================================== */
.about-story {
  margin: 28px 0;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card) 100%);
  border-left: 3px solid var(--accent-bright);
  border-radius: 4px;
}
.story-heading {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.4;
}
.story-heading em {
  font-style: normal;
  color: var(--accent-bright);
  font-weight: 600;
}
.about-story p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 12px;
}
.about-story p:last-child { margin-bottom: 0; }
.about-story p em {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}
.about-story strong { color: var(--accent); font-weight: 500; }

/* =====================================================
   TRUST LOGOS STRIP (อ.เบิร์ด ข้อ 10)
   ===================================================== */
.trust-logos {
  padding: 60px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  align-items: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
.trust-row-small {
  gap: 16px;
}
.trust-row-small .trust-item {
  padding: 12px;
  min-width: 80px;
}
.trust-partner {
  background: var(--bg);
  padding: 20px 24px;
  min-width: 180px;
}
.trust-partner svg,
.trust-partner img {
  margin-bottom: 8px;
}
.trust-partner small {
  font-size: 12px;
  color: var(--text-dim);
}
.trust-corp img {
  border-radius: 4px;
  object-fit: contain;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--easing);
}
.trust-item:hover {
  border-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}
.trust-item span.mono {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.1;
}
.trust-item small {
  font-family: var(--font-thai);
  font-size: 11px;
  color: var(--text-mute);
  text-align: center;
}
.trust-note {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  font-style: italic;
}

/* =====================================================
   TESTIMONIALS (อ.เบิร์ด ข้อ 11 + A6 RTB)
   ===================================================== */
.testimonials { background: var(--bg); }

.rating-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.rating-stars {
  display: flex;
  gap: 2px;
}
.rating-text {
  font-family: var(--font-thai);
  font-size: 16px;
  color: var(--text);
}
.rating-text strong { color: var(--accent); font-weight: 600; }
.rating-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-left: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: all 0.4s var(--easing);
}
.testimonial::before {
  content: '“';
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: 'Caveat', cursive;
  font-size: 80px;
  color: var(--accent-tint);
  line-height: 1;
  pointer-events: none;
}
.testimonial:hover {
  border-color: var(--accent-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.08);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: serif;
}
.testimonial blockquote {
  margin: 0 0 20px;
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  font-style: italic;
  position: relative;
}
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 16px;
}
.testimonial-name {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}
.testimonial-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}
.testimonials-note {
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.testimonials-note strong { color: var(--text); }
.testimonials-note em { color: var(--accent); font-style: normal; font-weight: 500; }

/* =====================================================
   ARTICLES / BLOG (SEO content)
   ===================================================== */
.articles { background: var(--bg); }

.section-head .section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
  transition: gap 0.3s var(--easing);
}
.section-head .section-link:hover { gap: 10px; color: var(--accent); }

.articles-intro {
  max-width: 700px;
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 48px;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr; }
}
.articles-grid-row2 {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .articles-grid-row2 { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--easing);
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-bright);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}
.article-link { display: block; height: 100%; }

.article-img {
  aspect-ratio: 16 / 10;
  background: var(--sheen);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.article-feature .article-img { aspect-ratio: 16 / 9; }
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--easing);
}
.article-card:hover .article-img img { transform: scale(1.05); }
.article-img.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0, transparent 12px, rgba(37, 99, 235, 0.04) 12px, rgba(37, 99, 235, 0.04) 13px);
}
.article-img.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(241, 245, 249, 0.6));
}
.article-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--accent-bright);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-content {
  padding: 24px 24px 28px;
}
.article-feature .article-content {
  padding: 32px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.article-dot { opacity: 0.5; }

.article-card h3 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--text);
  transition: color 0.3s;
}
.article-feature h3 { font-size: 24px; }
.article-card:hover h3 { color: var(--accent); }

.article-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 16px;
}
.article-feature p { font-size: 15px; }

.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
  transition: gap 0.3s var(--easing);
}
.article-card:hover .article-cta { gap: 10px; }

.articles-archive {
  padding: 24px;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}
.articles-archive p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}
.articles-archive a {
  color: var(--accent-bright);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =====================================================
   ARTICLE PAGE (single article view)
   ===================================================== */
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-header,
.article-page-header {
  padding: 120px 0 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.article-page-header { padding: 120px 0 32px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb strong { color: var(--text); font-weight: 500; }

.article-header h1,
.article-page-header h1 {
  font-family: var(--font-thai);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.article-header-tag {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0;
  line-height: 1.6;
}

.article-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.article-page-cat {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.article-page-lead {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-bright);
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 0;
}
.article-page-lead strong { color: var(--text); font-weight: 500; }

.article-img-hero {
  aspect-ratio: 16 / 9;
  background: var(--sheen);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-img-hero.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 12px, rgba(37, 99, 235, 0.04) 12px, rgba(37, 99, 235, 0.04) 13px);
}
.article-img-hero .article-cat {
  position: relative;
  top: auto;
  left: auto;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
  padding-bottom: 60px;
}
.article-body h2 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 28px;
  color: var(--text);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 12px;
}
.article-body p { margin: 0 0 16px; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { font-style: normal; color: var(--accent); }
.article-body a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin: 8px 0; }

.comparison-table {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}
.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.comparison-table th {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover { background: var(--bg-alt); }

.article-cta-box {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--accent-tint), var(--bg-card));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta-box h3 {
  margin: 0 0 8px;
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
}
.article-cta-box p {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 15px;
}
.article-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-related {
  margin: 48px 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.article-related h3 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--text);
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-link {
  display: block;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--easing);
}
.related-link:hover {
  border-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}
.related-link .article-cat {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.related-link h4 {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.articles-list-section {
  padding: 60px 0 120px;
}

.articles-cat-title {
  font-family: var(--font-thai);
  font-weight: 500;
  font-size: 24px;
  margin: 48px 0 24px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.articles-cat-title:first-child { margin-top: 0; }

.article-soon {
  opacity: 0.6;
  filter: grayscale(0.3);
  cursor: default;
}
.article-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

/* =====================================================
   LEGACY CONTENT (WP imports — ของเก่าจาก backup)
   ===================================================== */
.legacy-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
}
.legacy-content h1,
.legacy-content h2,
.legacy-content h3,
.legacy-content h4,
.legacy-content h5 {
  font-family: var(--font-thai);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin: 32px 0 12px;
}
.legacy-content h1 { font-size: 32px; }
.legacy-content h2 { font-size: 26px; }
.legacy-content h3 { font-size: 20px; }
.legacy-content h4 { font-size: 17px; }
.legacy-content p { margin: 0 0 16px; }
.legacy-content strong { color: var(--text); font-weight: 500; }
.legacy-content em { font-style: italic; }
.legacy-content a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legacy-content ul, .legacy-content ol {
  margin: 16px 0;
  padding-left: 28px;
}
.legacy-content li { margin: 8px 0; }
.legacy-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--accent-bright);
  background: var(--bg-alt);
  border-radius: 4px;
  font-style: italic;
  color: var(--text-dim);
}
.legacy-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 16px 0;
  border: 1px solid var(--border);
}
.legacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.legacy-content table th,
.legacy-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.legacy-content table th {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
}
.legacy-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.legacy-content > *:first-child { margin-top: 0; }

/* ----- Reveal animations (used by JS) ----- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal-line] { display: block; transform: translateY(110%); }

/* ----- Selection ----- */
::selection { background: var(--accent-bright); color: #fff; }

/* =====================================================
   ADDITIONAL VFX (Sun's gold polish requests)
   ===================================================== */

/* Article card light sweep (on hover) */
.article-card {
  position: relative;
  overflow: hidden;
}
.article-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transition: left 0.7s var(--easing);
  pointer-events: none;
  z-index: 1;
}
.article-card:hover::after { left: 150%; }

/* Work card light sweep */
.work-card .work-img { position: relative; }
.work-card .work-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transition: left 0.6s var(--easing);
  pointer-events: none;
  z-index: 2;
}
.work-card:hover .work-img::after { left: 150%; }

/* Testimonial card subtle pulse on hover */
.testimonial {
  will-change: transform;
}

/* Stat number hover */
.stat-num {
  cursor: default;
  transition: color 0.3s, transform 0.3s;
}

/* Video card hover lift */
.video-card { will-change: transform; }

/* Service icon rotate */
.service:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

/* Make CTAs magnetic-ready */
.btn-primary, .nav-cta, .article-cta { will-change: transform; }

/* Section scroll-fade in direction alternative */
.why-us [data-reveal] { transform: translateX(-30px); opacity: 0; }
.services [data-reveal] { transform: translateY(30px); opacity: 0; }
.works [data-reveal] { transform: translateX(30px); opacity: 0; }
.videos [data-reveal] { transform: scale(0.95); opacity: 0; }
.testimonials [data-reveal] { transform: translateY(30px); opacity: 0; }

/* =====================================================
   ACCESSIBILITY — prefers-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;
  }
  .marquee-track,
  .blob,
  .hero-shape,
  .beams span,
  .ambient-blobs,
  .about-card-inner::before,
  .chatbot-header::before { animation: none !important; }
  .cursor-blob, .cursor, .cursor-dot { display: none !important; }
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }
