/* =================================================================
   Imperial Fire Engineering — Engineered Light
   Quiet Authority / Engineered Confidence
   ================================================================= */

:root{
  --bg:#FAFAF8;          /* page — warm near-white (whiter) */
  --surface:#FDFDFC;     /* lighter sections — almost white */
  --ink:#17171A;         /* near-black text */
  --ink-2:#1C1C20;       /* dark bands */
  --muted:#6F6F75;       /* secondary text */
  --muted-2:#71706B;     /* mono labels (light bg) — AA-compliant ~4.8:1 */
  --muted-3:#9A9AA2;     /* labels on dark */
  --line:#E4E2DD;        /* hairline borders */
  --line-2:#ECEAE5;      /* faint divider */
  --red:#C8102E;         /* signature accent */
  --red-dark:#A50E26;    /* button hover */
  --red-deep:#6E0A1D;    /* deepest red — hero panel gradient anchor */
  --red-soft:#E2566A;    /* accent text on dark */
  --brand-gray:#A7AAAC;  /* neutral gray lifted from the logo's own fade detail */

  --sans:'Anuphan',sans-serif;                    /* body */
  --sans-en:'Anuphan',sans-serif;                 /* display headings + numerals (single-family) */
  --mono:'Anuphan',monospace;                      /* technical labels / codes */

  /* ---- type scale — base 16px = 1rem; rem respects the user's zoom / font settings (a11y).
     6 fixed steps (UI + body) + 6 fluid heading steps. Nothing below 12px, no half-pixels. ---- */
  --text-caption:0.875rem;   /* 14px · mono labels, captions, meta — the floor (raised from 12 for readability 2026-08) */
  --text-small:1rem;         /* 16px · secondary text, dense UI labels — merged with body for a 16px base */
  --text-body:1rem;          /* 16px · body — BASE */
  --text-lead:1.125rem;      /* 18px · lead paragraphs, large body, list titles */
  --text-title-xs:1.25rem;   /* 20px · small titles, prominent labels */
  --text-title-sm:1.5rem;    /* 24px · sub-headings, small card titles */
  --fluid-h5:clamp(1.25rem,1.7vw,1.5rem);    /* 20 → 24 */
  --fluid-h4:clamp(1.375rem,2.2vw,2rem);     /* 22 → 32 */
  --fluid-h3:clamp(1.5rem,3vw,2.5rem);       /* 24 → 40 */
  --fluid-h2:clamp(1.75rem,4vw,3rem);        /* 28 → 48 */
  --fluid-h1:clamp(2rem,4.5vw,3.5rem);       /* 32 → 56 */
  --fluid-display:clamp(2.5rem,5vw,4rem);    /* 40 → 64 · hero numerals, biggest display */

  /* ---- line-height scale — 6 steps, tight for display, loose for prose ---- */
  --lh-none:1;         /* big display numerals */
  --lh-tight:1.15;     /* display + section headings */
  --lh-snug:1.3;       /* sub-headings, list titles */
  --lh-normal:1.5;     /* compact UI text, small descriptions */
  --lh-relaxed:1.7;    /* body */
  --lh-loose:1.85;     /* long-form body */

  --pad:40px;            /* horizontal gutter (responsive) */
  --maxw:1400px;
  --stats-cut:84px;      /* diagonal blend between hero & KPI band */

  /* The hero/about clip-path diagonals are drawn as "150px over 100% height" (see .hero-media,
     .hero-slice) — a slope that changes with viewport height, NOT a fixed angle. Any decorative
     line sharing that diagonal has to be computed the same way or it visibly drifts out of parallel
     as the window is resized. atan2 gives the exact angle for the CURRENT hero height; the fallback
     (~81°, the angle at a common ~950px-tall hero) covers browsers without trig-function support. */
  --hero-diag: atan2((75px - 100vh),150px);
  /* same line, expressed as a transform:rotate() angle (different convention from a gradient angle) —
     for elements we rotate directly (the accent ticks) rather than paint as a gradient. */
  --hero-diag-rotate: atan2(150px,(100vh - 75px));
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{margin:0;padding:0;overflow-x:clip;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:var(--text-body);
  line-height:var(--lh-relaxed);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,p{margin:0;}
a{color:inherit;text-decoration:none;}
/* keyboard focus visibility (a11y) — brand red ring, follows element shape */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--red);outline-offset:3px;}
.cat-card:focus-visible,.btn-red:focus-visible,.cta-pill:focus-visible{outline-offset:4px;}
img{display:block;max-width:100%;}
::selection{background:var(--red);color:#fff;}

/* ---- layout helpers ---- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);}
.arrow{font-family:var(--mono);}

/* ---- skip-to-content — hidden until keyboard focus, then reveals as a top-left chip.
   Screen readers and Tab-first users hit this before the header nav, giving them an
   immediate escape past the site chrome into the page's real content. ---- */
.skip-link{position:fixed;top:12px;left:12px;z-index:1000;
  padding:10px 16px;background:var(--ink);color:#fff;
  font-family:var(--sans);font-size:var(--text-small);font-weight:500;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
  transform:translateY(-140%);transition:transform .18s cubic-bezier(.16,.84,.3,1);}
.skip-link:focus{transform:translateY(0);outline:2px solid var(--red);outline-offset:2px;}

/* ---- eyebrow label ---- */
.eyebrow{display:flex;align-items:center;gap:14px;margin-bottom:20px;}
.eyebrow .dash{width:30px;height:3px;background:var(--red);display:block;transform:skewX(-26deg);flex:0 0 auto;}
.eyebrow .label{font-family:var(--sans);font-weight:600;font-size:var(--text-small);letter-spacing:.005em;color:var(--red-dark);}
.eyebrow--up .label{text-transform:none;}
.eyebrow--center{justify-content:center;margin-bottom:16px;}
.eyebrow--center .dash{width:24px;}
.label--soft{color:var(--red-soft);}

/* ---- section headings ---- */
/* headings + big numerals carry the display face (Bai Jamjuree); body stays Anuphan */
.hero-title,.h-section,.cta-title,.card-title,.sol-stage-title{font-family:var(--sans-en);}
.h-section{font-weight:700;font-size:var(--fluid-h2);line-height:var(--lh-tight);letter-spacing:0;color:var(--ink);text-wrap:balance;}
.h-section--nowrap{text-wrap:nowrap;}
.h-mark{color:var(--red);}

.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:clamp(36px,4vw,52px);}
.sec-head--stack{display:block;}
.sec-head--stack .sec-head-lead{margin-top:20px;max-width:52ch;}
.sec-head-lead{max-width:44ch;font-size:var(--text-lead);line-height:var(--lh-relaxed);color:#3A3A40;font-weight:500;}

/* ====== BUTTON SYSTEM ==========================================
   primary  .btn-red            red fill / white text  (brand notch)
   ↳ invert .btn-red.btn-invert white fill / red text  (on red·dark bands)
   secondary.btn-outline        hairline outline / ink (clean square)
   utility  .btn-dark           compact ink fill       (persistent chrome)
   tertiary .link-underline     inline text + arrow
   size     .btn-lg             large (hero / CTA band)
   one shared base → identical motion everywhere
   =============================================================== */
.btn-red,.btn-dark,.btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:46px;padding:0 24px;
  font-family:inherit;font-weight:500;font-size:var(--text-small);letter-spacing:.005em;white-space:nowrap;cursor:pointer;
  transition:background .22s ease,border-color .22s ease,color .22s ease,transform .22s cubic-bezier(.16,.84,.3,1),box-shadow .22s ease;}
.btn-red:hover,.btn-dark:hover,.btn-outline:hover{transform:translateY(-1px);}
.btn-red .arrow,.btn-dark .arrow,.btn-outline .arrow{transition:transform .22s cubic-bezier(.16,.84,.3,1);}
.btn-red:hover .arrow,.btn-dark:hover .arrow,.btn-outline:hover .arrow{transform:translateX(3px);}

/* PRIMARY — red fill (brand notch) */
.btn-red{background:var(--red);color:#fff;border:1px solid var(--red);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);}
.btn-red:hover{background:var(--red-dark);border-color:var(--red-dark);}

/* PRIMARY · inverted — for red / dark bands */
.btn-red.btn-invert{background:#fff;color:var(--red);border-color:#fff;box-shadow:0 7px 22px rgba(58,0,8,.26);}
.btn-red.btn-invert:hover{color:var(--red-dark);box-shadow:0 14px 34px rgba(52,0,6,.36);}

/* SECONDARY — hairline outline (clean square) */
.btn-outline{background:transparent;border:1px solid #D9D7D2;color:var(--ink);}
.btn-outline:hover{border-color:var(--ink);}

/* UTILITY — compact ink, persistent header / nav */
.btn-dark{height:40px;padding:0 22px;font-size:var(--text-small);background:var(--ink);color:#fff;border:1px solid var(--ink);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);}
.btn-dark:hover{background:#000;}

/* size · large */
.btn-lg{height:54px;padding:0 30px;font-size:var(--text-body);}
.btn-red.btn-lg{clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);}
.btn-outline.btn-lg{padding:0 28px;}
/* size · small — the paired header CTAs (catalog + consult) */
.btn-sm{height:40px;padding:0 18px;font-size:var(--text-small);gap:8px;letter-spacing:0;}
.btn-red.btn-sm{clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);}

/* TERTIARY — inline text link */
.link-underline{display:inline-flex;align-items:center;gap:8px;margin-top:34px;font-weight:500;font-size:var(--text-small);color:var(--ink);
  border-bottom:2px solid var(--red);padding-bottom:6px;transition:gap .22s cubic-bezier(.16,.84,.3,1);}
.link-underline:hover{gap:13px;}
.link-underline .arrow{color:var(--red);}

/* =================================================================
   HEADER
   ================================================================= */
.site-header{position:sticky;top:0;z-index:900;background:rgba(252,251,250,.9);border-bottom:1px solid var(--line);
  backdrop-filter:saturate(1.4) blur(8px);-webkit-backdrop-filter:saturate(1.4) blur(8px);
  transition:transform .32s cubic-bezier(.16,.84,.3,1);will-change:transform;}
.site-header.is-hidden{transform:translateY(-100%);}
.header-inner{height:92px;display:flex;align-items:center;justify-content:space-between;}

.brand{display:flex;align-items:center;gap:13px;}
.brand-mark{width:14px;height:22px;background:var(--red);clip-path:polygon(34% 0,100% 0,66% 100%,0 100%);display:block;flex:0 0 auto;}
.brand-text{display:flex;flex-direction:column;line-height:var(--lh-none);}
.brand-name{font-family:var(--sans-en);font-weight:700;font-size:var(--text-title-xs);letter-spacing:.02em;color:var(--ink);}
.brand-sub{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.4em;color:var(--muted);margin-top:3px;}
/* real wordmark logo (navbar + footer) */
.brand-logo{display:block;height:48px;width:auto;}
.site-footer .brand-logo{height:46px;}

.main-nav{display:flex;align-items:center;gap:32px;}
.main-nav a{font-size:var(--text-body);font-weight:500;color:var(--muted);transition:color .2s;}
.main-nav a:hover{color:var(--ink);}
.main-nav a.is-active{color:var(--ink);}
/* not-yet-live nav items: rendered as plain text (no link affordance) + a "coming soon" tag */
.nav-soon{display:inline-flex;align-items:center;gap:7px;font-size:var(--text-small);font-weight:500;
  color:var(--muted-3);cursor:default;white-space:nowrap;}
.nav-soon-tag{flex:none;font-family:var(--mono);font-style:normal;font-size:9px;letter-spacing:.04em;
  color:var(--muted-3);background:#EFEEEA;border:1px solid var(--line);border-radius:4px;padding:2px 6px;}

.header-actions{display:flex;align-items:center;gap:16px;}
/* header lang toggle — temporarily hidden site-wide until EN copy is ready */
.nav-lang{display:none;}
.nav-lang .lang-on{padding:4px 7px;background:var(--red);color:#fff;}
.nav-lang .lang-off{padding:4px 7px;color:var(--muted);}

/* header ISO / certification badges — sit right of the primary CTA */
.header-iso{display:flex;align-items:center;gap:14px;padding-left:16px;border-left:1px solid var(--line);}
.header-iso img{display:block;height:48px;width:auto;object-fit:contain;}
/* header only: bigger CTA + roomier side padding vs the rest of the site */
.site-header .nav-cta{height:48px;padding:0 22px;font-size:var(--text-body);}
.site-header .wrap{padding-inline:clamp(24px,5.5vw,80px);max-width:none;}
@media (max-width:1200px){
  .header-iso img{height:38px;}
  .header-iso{gap:10px;padding-left:12px;}
  .site-header .nav-cta{height:44px;padding:0 18px;}
}
@media (max-width:960px){
  .header-iso{display:none;}
}

/* hamburger (mobile only) */
.nav-toggle{display:none;width:42px;height:40px;border:1px solid var(--line);background:#fff;cursor:pointer;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0;}
.nav-toggle span{display:block;width:18px;height:2px;background:var(--ink);transition:transform .25s,opacity .2s;}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-nav{display:none;flex-direction:column;border-top:1px solid var(--line);background:rgba(252,251,250,.98);padding:8px var(--pad) 16px;}
/* the header is sticky — an expanded menu taller than the screen would push its last links + CTA out of reach,
   so cap it at the space under the 92px bar and let it scroll on its own */
.mobile-nav{max-height:calc(100vh - 92px);max-height:calc(100dvh - 92px);overflow-y:auto;overscroll-behavior:contain;}
.mobile-nav > *{flex-shrink:0;}  /* scroll, don't squash the accordion */
.mobile-nav a{padding:13px 2px;font-size:var(--text-body);font-weight:500;color:var(--ink);border-bottom:1px solid var(--line-2);}
.mobile-nav a:last-child{border-bottom:none;}
.mobile-nav .nav-lang{align-self:stretch;justify-content:center;gap:0;
  margin:16px 0 6px;font-size:var(--text-body);letter-spacing:.06em;}
.mobile-nav .nav-lang .lang-on,.mobile-nav .nav-lang .lang-off{flex:1;padding:14px 0;
  text-align:center;cursor:pointer;}
.mobile-nav .m-nav-soon{display:flex;align-items:center;gap:10px;padding:13px 2px;
  font-size:var(--text-body);font-weight:500;color:var(--muted-3);cursor:default;
  border-bottom:1px solid var(--line-2);}
.mobile-nav .m-nav-soon .nav-soon-tag{margin-left:auto;}
/* mobile CTA = the header's two buttons, stacked full-width */
.mobile-nav .mobile-nav-cta{margin-top:16px;padding:0;border:none;background:none;display:flex;flex-direction:column;gap:10px;}
.mobile-nav .mobile-nav-cta a{width:100%;height:52px;padding:0 20px;justify-content:center;font-size:var(--text-body);font-weight:500;}
.mobile-nav .mobile-nav-cta .btn-outline{border:1px solid #D9D7D2;color:var(--ink);}
.mobile-nav .mobile-nav-cta .btn-red{border:1px solid var(--red);color:#fff;}

/* mobile "สินค้า" accordion — 8 products expand inline (injected by megamenu.js) */
.m-acc{border-bottom:1px solid var(--line-2);}
.m-acc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  padding:13px 2px;font-family:inherit;font-size:var(--text-body);font-weight:500;color:var(--ink);
  background:none;border:none;cursor:pointer;text-align:left;}
.m-acc-chev{display:flex;color:var(--muted-3);transition:transform .25s ease,color .25s ease;}
.m-acc[data-open="true"] .m-acc-head{color:var(--red);}
.m-acc[data-open="true"] .m-acc-chev{transform:rotate(90deg);color:var(--red);}
.m-acc-panel{max-height:0;overflow:hidden;transition:max-height .32s cubic-bezier(.4,0,.2,1);}
.m-acc-list{padding:2px 0 12px;}
.mobile-nav .m-acc-item{display:flex;align-items:center;gap:13px;padding:10px 4px;border-bottom:none;}
.m-acc-no{font-family:var(--mono);font-size:var(--text-caption);font-weight:600;color:var(--red);min-width:18px;letter-spacing:.02em;}
.m-acc-tx{display:flex;flex-direction:column;gap:1px;min-width:0;}
.m-acc-th{font-size:var(--text-small);font-weight:500;color:var(--ink);line-height:var(--lh-snug);}
.m-acc-en{font-family:var(--mono);font-size:var(--text-caption);font-weight:500;letter-spacing:.08em;color:var(--muted-3);text-transform:uppercase;}
.mobile-nav .m-acc-all{display:inline-flex;align-items:center;gap:6px;margin-top:2px;padding:11px 4px 4px;border-bottom:none;
  font-family:var(--mono);font-size:var(--text-caption);font-weight:600;letter-spacing:.06em;color:var(--red);text-transform:uppercase;}
.m-acc-all svg{width:13px;height:13px;}

/* mobile level-2 — a category's sub-products nested inside the "สินค้า" accordion */
.m-acc2{border-top:1px solid var(--line-2);}
.m-acc-list > .m-acc2:first-child{border-top:none;}
.m-acc2-head{display:flex;align-items:center;gap:13px;width:100%;padding:11px 4px;
  font-family:inherit;font-size:var(--text-body);font-weight:500;color:var(--ink);background:none;border:none;cursor:pointer;text-align:left;}
.m-acc2-chev{margin-left:auto;flex:none;display:flex;color:var(--muted-3);transition:transform .25s ease,color .25s ease;}
.m-acc2[data-open="true"] .m-acc2-chev{transform:rotate(90deg);color:var(--red);}
.m-acc2[data-open="true"] .m-acc-th{color:var(--red);}
.m-acc2-panel{max-height:0;overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1);}
.m-acc2-list{padding:0 0 10px 31px;}
.mobile-nav .m-acc2-item{display:flex;align-items:center;gap:10px;padding:9px 4px;border-bottom:none;}
.m-acc2-item .msub-tx{display:flex;flex-direction:column;gap:1px;min-width:0;}
.m-acc2-item .msub-th{font-size:var(--text-small);font-weight:500;color:var(--ink);line-height:var(--lh-snug);}
.m-acc2-item .msub-en{font-family:var(--mono);font-size:var(--text-caption);font-weight:500;letter-spacing:.06em;color:var(--muted-3);text-transform:uppercase;}
.m-acc2-item.is-soon{opacity:.55;}
.m-acc2-item .msub-soon{margin-left:auto;flex:none;font-size:var(--text-caption);color:var(--muted-3);border:1px solid var(--line);border-radius:5px;padding:2px 8px;}
.mobile-nav .m-acc2-all{display:inline-flex;align-items:center;gap:6px;padding:9px 4px 3px;border-bottom:none;
  font-family:var(--mono);font-size:var(--text-caption);font-weight:600;letter-spacing:.05em;color:var(--red);text-transform:uppercase;}
.m-acc2-all svg{width:13px;height:13px;}

/* =================================================================
   HERO
   ================================================================= */
.hero{position:relative;overflow:hidden;background:linear-gradient(112deg,var(--red-deep) 0%,var(--red) 62%);min-height:calc(100vh - 75px);display:flex;align-items:center;}
/* engineered diagonal ruling, angled to match the hero-media/hero-slice clip-path exactly (--hero-diag),
   not the smaller 26° skew used on the eyebrow dash/hero dots — that's a different, steeper family. */
.hero-grid-lines{position:absolute;inset:0;pointer-events:none;background:
  repeating-linear-gradient(var(--hero-diag,-81deg),transparent 0 118px,rgba(255,255,255,.05) 118px 119px),
  repeating-linear-gradient(var(--hero-diag,-81deg),transparent 0 39px,rgba(167,170,172,.045) 39px 40px);}
/* engineering reference bands — two thick diagonal bands per cluster (one long, one short),
   FLUSH (zero gap). The whole cluster rotates to the brand diagonal (--hero-diag-rotate) as ONE
   unit, so the two bands stay perfectly aligned rather than staggering (which they would if each
   band rotated around its own corner). Each band fades from opaque (anchored end) to transparent.
   z-index 1 keeps them behind the copy (hero-inner is z-index 2). --bar-w is the band thickness. */
.hero-accent{position:absolute;z-index:1;pointer-events:none;left:clamp(22px,3vw,64px);
  --bar-w:clamp(46px,5.4vw,82px);}
.hero-accent::before,.hero-accent::after{content:"";position:absolute;width:var(--bar-w);}

/* TOP-RIGHT — inside the diagonal split, dropping from the top; opaque at top → faint at bottom.
   Band nearest the split (::before) is long; the shorter (::after) is flush to its left.
   Right-anchored to track the split's top point (at 50% + 150px from the left) at every width. */
.hero-accent--tr{top:0;left:auto;right:calc(50% - 150px);
  transform:rotate(var(--hero-diag-rotate,10deg));transform-origin:top right;
  animation:accentIn 1s cubic-bezier(.16,.84,.3,1) .35s both;}
.hero-accent--tr::before,.hero-accent--tr::after{top:0;transform-origin:top;}
.hero-accent--tr::before{right:0;height:clamp(250px,44vh,440px);
  background:linear-gradient(to bottom,rgba(255,255,255,.5),rgba(255,255,255,0));}
.hero-accent--tr::after{right:var(--bar-w);height:clamp(150px,27vh,264px);
  background:linear-gradient(to bottom,rgba(210,212,213,.5),rgba(210,212,213,0));}

/* BOTTOM-LEFT — mirrored: rising from the bottom; opaque at bottom → faint at top.
   Leftmost band (::before) is long; the shorter (::after) is flush to its right. */
.hero-accent--bl{bottom:0;left:0;transform:rotate(var(--hero-diag-rotate,10deg));transform-origin:bottom left;
  animation:accentIn 1s cubic-bezier(.16,.84,.3,1) .5s both;}
.hero-accent--bl::before,.hero-accent--bl::after{bottom:0;transform-origin:bottom;}
.hero-accent--bl::before{left:0;height:clamp(210px,38vh,360px);
  background:linear-gradient(to top,rgba(255,255,255,.5),rgba(255,255,255,0));}
.hero-accent--bl::after{left:var(--bar-w);height:clamp(116px,22vh,208px);
  background:linear-gradient(to top,rgba(210,212,213,.5),rgba(210,212,213,0));}

/* scroll-linked stretch (the "yืดหด" motion): bands lengthen/shorten with hero scroll progress.
   Only scaleY here — the cluster's rotation lives on the container, so scaleY doesn't override it.
   Progressive enhancement: no effect where scroll-driven animations aren't supported. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .hero-accent--tr::before,.hero-accent--tr::after{animation:accentStretchTop linear both;
      animation-timeline:view();animation-range:cover;}
    .hero-accent--bl::before,.hero-accent--bl::after{animation:accentStretchBottom linear both;
      animation-timeline:view();animation-range:cover;}
  }
}
@keyframes accentStretchTop{ from{transform:scaleY(.82);} to{transform:scaleY(1.14);} }
@keyframes accentStretchBottom{ from{transform:scaleY(1.14);} to{transform:scaleY(.82);} }
/* load-in: the whole cluster fades in and grows out from its anchored corner (scaleY from the
   transform-origin). Lives on the container so it doesn't fight the bands' scroll-stretch. */
@keyframes accentIn{
  from{opacity:0;transform:rotate(var(--hero-diag-rotate,10deg)) scaleY(.35);}
  to{opacity:1;transform:rotate(var(--hero-diag-rotate,10deg)) scaleY(1);}
}
/* right-side diagonal panel now holds the hero image + KPI stats overlay */
.hero-media{position:absolute;top:0;right:0;bottom:0;width:50%;clip-path:polygon(150px 0,100% 0,100% 100%,0 100%);overflow:hidden;
  background:repeating-linear-gradient(135deg,#24242A 0 16px,#1B1B20 16px 32px);}
.hero-slides{position:absolute;inset:0;}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:100% 100%;}
/* auto-sliding hero shots — crossfade + slow settle, same easing family as the sol stage */
.hero-slide{opacity:0;transform:scale(1.045);transition:opacity .9s cubic-bezier(.16,.84,.3,1),transform 2.4s cubic-bezier(.16,.84,.3,1);}
.hero-slide.is-active{opacity:1;transform:scale(1);}
/* slide counter — diagonal ticks in the brand's 26° language; active = long red slab */
.hero-dots{position:absolute;bottom:clamp(38px,4.4vw,58px);right:clamp(40px,4.4vw,60px);z-index:3;display:flex;gap:8px;}
.hero-dot{width:14px;height:5px;border:0;padding:0;background:rgba(255,255,255,.42);transform:skewX(-26deg);cursor:pointer;
  transition:background .3s ease,width .5s cubic-bezier(.16,.84,.3,1);}
.hero-dot:hover{background:rgba(255,255,255,.8);}
.hero-dot.is-active{width:34px;background:var(--red);}
.hero-media-scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(9,9,11,.72) 0%,rgba(9,9,11,.52) 16%,rgba(9,9,11,.22) 38%,rgba(9,9,11,.04) 58%,rgba(9,9,11,0) 74%),
             linear-gradient(to bottom,rgba(9,9,11,.32) 0%,rgba(9,9,11,0) 22%);}
/* per-slide caption — names the system shown, syncs with the carousel (no KPI).
   Sits at the bottom-right, stacked above the bullets with a clear gap between them. */
.hero-cap{position:absolute;left:clamp(80px,9vw,140px);bottom:clamp(38px,4.4vw,58px);z-index:2;
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:60%;text-align:left;pointer-events:none;}
.hero-cap.is-swap{animation:heroCapIn .55s cubic-bezier(.16,.84,.3,1);}
@keyframes heroCapIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.hc-en{display:inline-flex;align-items:center;gap:9px;font-family:var(--sans);font-weight:700;font-size:var(--text-title-sm);letter-spacing:.06em;
  text-transform:uppercase;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.5);}
/* engineered annotation tick — the brand's diagonal red moment */
.hc-en::before{content:"";width:14px;height:2px;background:var(--red);transform:skewX(-26deg);flex:0 0 auto;}
.hc-th{font-family:var(--sans);font-weight:600;font-size:var(--fluid-h4);line-height:var(--lh-snug);color:#fff;
  text-shadow:0 1px 18px rgba(0,0,0,.55);}
.hero-slice{position:absolute;top:0;right:0;bottom:0;width:50%;background:var(--red);clip-path:polygon(150px 0,156px 0,6px 100%,0 100%);}

.hero-inner{position:relative;z-index:2;width:100%;padding-left:clamp(16px,2vw,28px);}
.hero-copy{max-width:720px;}
.hero-title{font-weight:700;font-size:var(--fluid-h3);line-height:var(--lh-snug);letter-spacing:0;color:#fff;text-wrap:balance;}
.hero-title .accent{color:#fff;}  /* same white as the rest of the heading */
/* Lead clause — bumped to the largest display size and forced onto its own line above the rest of the title. */
.hero-title .ht-lead{display:block;font-size:var(--fluid-display);line-height:var(--lh-tight);letter-spacing:-.01em;margin-bottom:clamp(10px,1.2vw,18px);}
/* Thai has no inter-word spaces, so browsers break anywhere by default — including inside real
   words. Wrap words that must stay whole (ดับเพลิง, ของประเทศไทย) so the break jumps to the
   nearest space (the <br>s / phrase boundary) instead of splitting the word. */
.hero-title .ht-word{white-space:nowrap;}
.hero-lead{margin-top:28px;max-width:30em;font-size:var(--text-lead);line-height:var(--lh-relaxed);color:rgba(255,255,255,.86);}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:36px;}
/* on-red overrides — copy panel is now a red field, so labels/buttons need dark-bg treatment */
.hero .eyebrow .dash{background:var(--brand-gray);}
.hero .eyebrow .label{color:rgba(255,255,255,.92);}
.hero .hero-actions .btn-red{background:#fff;color:var(--red);border-color:#fff;box-shadow:0 7px 22px rgba(40,0,6,.28);}
.hero .hero-actions .btn-red:hover{color:var(--red-dark);box-shadow:0 14px 34px rgba(36,0,5,.38);}
.hero .hero-actions .btn-outline{border-color:rgba(255,255,255,.4);color:#fff;}
.hero .hero-actions .btn-outline:hover{border-color:#fff;}

/* entrance: right image panel slides in (reveal), overlays stagger up after */
@keyframes heroSlideIn{from{transform:translateX(14%)}to{transform:translateX(0)}}
@keyframes heroImgSettle{from{transform:scale(1.14)}to{transform:scale(1)}}
@keyframes heroRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.hero-media{animation:heroSlideIn 1.05s cubic-bezier(.16,.84,.3,1) .12s both;}
.hero-slides{animation:heroImgSettle 1.8s cubic-bezier(.16,.84,.3,1) .12s both;}   /* on the stack, not each slide — slides own their crossfade transform */
.hero-slice{animation:heroSlideIn .95s cubic-bezier(.16,.84,.3,1) .24s both;}
/* (the KPI stats now live as an overlay on the hero image — see .hero-stats) */

/* =================================================================
   ABOUT
   ================================================================= */
/* Full-bleed image on the LEFT whose red diagonal is the SAME LINE as the hero's:
   - join point: image right edge sits at viewport 50% at the top = where the
     hero's diagonal lands at its base (also 50%), and the sections are adjacent
   - same slope: section height = 0.72 × hero height, so offset 0.72×150 = 108px
     gives an identical angle at every viewport size (the hero-height cancels) */
.about{position:relative;overflow:hidden;background:var(--surface);
  --about-diag-rotate:10deg;
  padding-top:clamp(50px,5vw,80px);padding-bottom:clamp(50px,5vw,80px);}
/* Panel 1 (initial view): 2-col — team photo LEFT (portrait) | copy RIGHT */
.about-grid{position:relative;z-index:1;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:clamp(56px,6.5vw,120px);align-items:center;}
.about-photo-wrap{position:relative;margin:0;overflow:hidden;
  aspect-ratio:2/3;
  background:#17171A;}
.about-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;}
.about-media-tag{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;color:var(--muted);}
.about-text{width:100%;padding-left:0;container-type:inline-size;}
/* Company-name heading never splits mid-name. Wide column: the whole name on one line,
   scaled to fit. Narrow column: break only after "บริษัท". The cqi factors come from the
   measured Anuphan-700 widths: full name = 15.75em, "อิมพีเรียล…จำกัด" = 13.06em. */
.about-company-name{white-space:nowrap;}
.about-company{font-size:min(var(--fluid-h2),7.5cqi);}
@container (min-width:480px){.about-company{font-size:min(var(--fluid-h2),6.25cqi);}}
.about-p{margin-top:24px;font-size:var(--text-body);line-height:var(--lh-loose);color:var(--muted);}
.about-p + .about-p{margin-top:18px;}
/* mission-statement lead paragraph — one step up in the type scale (body 16 → lead 18),
   darker ink, medium weight, tighter line-height for a more assertive read. */
.about-p--lead{font-size:var(--text-lead);color:var(--ink);font-weight:500;line-height:var(--lh-relaxed);}
.about-kicker{font-family:var(--sans-en);font-weight:600;font-size:var(--text-body);letter-spacing:.01em;color:var(--red);margin-bottom:12px;}
/* tenure statement — one loud red line, single-line credential above the mission paragraph.
   Size capped so the phrase always fits the About column without wrapping. */
.about-tenure{font-family:var(--sans-en);font-weight:700;
  font-size:clamp(1.15rem,1.8vw,1.55rem);line-height:1.3;letter-spacing:-.01em;
  color:var(--red);
  margin:clamp(22px,2.6vw,32px) 0 clamp(24px,2.8vw,34px);}
/* the clip reveals by sliding in from the LEFT (mirror of the hero) */
.about-media[data-reveal]{opacity:0;transform:translateX(-14%);}
.about-media[data-reveal].is-in{opacity:1;transform:none;}

/* about-accent — mirror of the hero's diagonal-bar pattern (long + short bars per cluster,
   flush at the anchored edge, brand-diagonal rotation), placed on the RIGHT side of the white
   text panel. RED gradient (echoes the section's red seam) instead of hero's white. z-index 0
   sits behind the .about-content (z:1) so text stays legible on top. */
.about-accent{position:absolute;z-index:0;pointer-events:none;
  --bar-w:clamp(42px,4.8vw,72px);}
.about-accent::before,.about-accent::after{content:"";position:absolute;width:var(--bar-w);}

/* TOP-RIGHT — bars drop from the top-right corner, opaque red at top → transparent at bottom */
.about-accent--tr{top:0;right:0;transform:rotate(var(--about-diag-rotate,10deg));transform-origin:top right;}
.about-accent--tr::before,.about-accent--tr::after{top:0;transform-origin:top;}
.about-accent--tr::before{right:0;height:clamp(260px,42vh,420px);
  background:linear-gradient(to bottom,rgba(200,16,46,.82),rgba(200,16,46,0) 85%);}
.about-accent--tr::after{right:var(--bar-w);height:clamp(160px,26vh,260px);
  background:linear-gradient(to bottom,rgba(200,16,46,.58),rgba(200,16,46,0) 85%);}

/* BOTTOM-LEFT — bars rise from the viewport's LEFT edge (full-bleed, no wrap padding). */
.about-accent--bl{bottom:0;left:0;transform:rotate(var(--about-diag-rotate,10deg));transform-origin:bottom left;}
.about-accent--bl::before,.about-accent--bl::after{bottom:0;transform-origin:bottom;}
.about-accent--bl::before{left:0;height:clamp(220px,36vh,360px);
  background:linear-gradient(to top,rgba(200,16,46,.82),rgba(200,16,46,0) 85%);}
.about-accent--bl::after{left:var(--bar-w);height:clamp(130px,22vh,210px);
  background:linear-gradient(to top,rgba(200,16,46,.58),rgba(200,16,46,0) 85%);}

/* scroll-linked reveal — bars fade in and lengthen as the about section enters view.
   Progressive enhancement: no effect where scroll-driven animations aren't supported. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .about-accent--tr::before,.about-accent--tr::after,
    .about-accent--bl::before,.about-accent--bl::after{
      animation:aboutAccentIn linear both;
      animation-timeline:view();
      animation-range:entry 0% cover 40%;}
  }
}
@keyframes aboutAccentIn{
  from{transform:scaleY(.35);opacity:0;}
  to{transform:scaleY(1);opacity:1;}
}

/* text-only variant (about.html STORY): swaps the photo column for an eyebrow + h2 head */
.about--text{padding-top:clamp(44px,5vw,72px);padding-bottom:clamp(44px,5vw,72px);}
.about--text .about-grid{align-items:start;}
.about--text .about-tenure{margin-top:0;}

/* mobile: single column stack, video card renders inline (no pin) */
@media (max-width:640px){
  .about-grid{grid-template-columns:1fr;gap:32px;}
  .about-photo-wrap{aspect-ratio:4/3;}
  /* anchor to bottom so the team stays in frame when the crop shortens */
  .about-photo{object-position:50% 100%;}
}

/* =================================================================
   ABOUT PIN — Panel 1 (photo + text) is visible first, then video card
   slides in from the right during pin scroll. Desktop only (≤900px = normal flow).
   ================================================================= */
.about-pin{position:relative;background:var(--surface);
  --pin-ad:clamp(72px,8vw,120px);}
.about-pin-stage{position:sticky;position:-webkit-sticky;top:0;height:100vh;overflow:hidden;background:var(--surface);}
.about-pin-stage > .about{position:absolute;inset:0;min-height:0;height:100%;
  padding-top:0;padding-bottom:0;
  display:flex;align-items:center;will-change:transform;}
.about-pin-stage > .about > .wrap{width:100%;}

/* video card — full-viewport panel that slides in from right on pin scroll.
   Card itself is transparent so the animation reads as "video sliding in", not "white curtain wiping in". */
.about-gallery{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3;}
.ag-card{position:absolute;top:0;bottom:0;height:100%;right:0;width:100vw;
  overflow:hidden;background:transparent;
  will-change:transform,opacity;opacity:0;
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:14px;
  padding:clamp(50px,5vw,80px) var(--pad);}
.ag-card--video .about-video{position:relative;width:100%;max-width:min(1280px,88vw);aspect-ratio:16/9;
  overflow:hidden;background:#17171A;border-radius:2px;box-shadow:0 12px 40px rgba(0,0,0,.18);}
.ag-card--video .about-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:auto;}

/* pin scroll-hint — pill nudging users that video is one scroll away */
.ap-scrollhint{position:absolute;z-index:20;pointer-events:none;
  left:50%;bottom:clamp(40px,5vh,64px);transform:translateX(-50%);
  display:flex;align-items:center;gap:11px;padding:9px 16px;
  background:rgba(23,23,25,.86);border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;text-transform:uppercase;
  color:#fff;white-space:nowrap;
  opacity:0;transition:opacity .6s cubic-bezier(.16,.84,.3,1) .3s;
  animation:apHintBob 2.2s ease-in-out infinite;}
.about-pin[data-hint="show"] .ap-scrollhint{opacity:1;}
.ap-scrollhint svg{color:var(--red);flex:0 0 auto;}
@keyframes apHintBob{
  0%,100%{transform:translate(-50%,0);}
  50%{transform:translate(-50%,-3px);}
}

@media (max-width:900px){
  /* pin disabled below 900px — fall back to normal flow, video shown inline after copy */
  .ap-scrollhint{display:none;}
  .about-pin{height:auto !important;}
  .about-pin-stage{position:static;height:auto;overflow:visible;background:var(--surface);}
  .about-pin-stage > .about{position:relative;transform:none !important;height:auto;display:block;
    padding-top:clamp(50px,5vw,80px);padding-bottom:clamp(50px,5vw,80px);}
  .about-gallery{position:relative;inset:auto;pointer-events:auto;background:var(--surface);padding:0 var(--pad) clamp(40px,6vw,80px);}
  .ag-card{position:relative;top:auto;bottom:auto;right:auto;width:100% !important;height:auto;
    opacity:1 !important;transform:none !important;padding:0;background:transparent;}
  .ag-card--video .about-video{max-width:100%;box-shadow:none;}
}
@media (prefers-reduced-motion:reduce){
  .ap-scrollhint{display:none;}
  .about-pin{height:auto !important;}
  .about-pin-stage{position:static;height:auto;overflow:visible;background:var(--surface);}
  .about-pin-stage > .about{position:relative;transform:none !important;height:auto;display:block;
    padding-top:clamp(50px,5vw,80px);padding-bottom:clamp(50px,5vw,80px);}
  .about-gallery{position:relative;inset:auto;pointer-events:auto;background:var(--surface);padding:0 var(--pad) clamp(40px,6vw,80px);}
  .ag-card{position:relative;top:auto;bottom:auto;right:auto;width:100% !important;height:auto;
    opacity:1 !important;transform:none !important;padding:0;background:transparent;}
  .ag-card--video .about-video{max-width:100%;box-shadow:none;}
}

/* =================================================================
   SOLUTIONS
   ================================================================= */
.solutions{background:var(--bg);border-top:1px solid var(--line);}
.solutions .wrap{padding-top:clamp(42px,4.5vw,72px);padding-bottom:clamp(42px,4.5vw,72px);}
.sol-grid{display:grid;grid-template-columns:0.82fr 1.18fr;gap:clamp(24px,3vw,44px);align-items:start;}

/* left: interactive image stage — a layered photo set over a dark engineered backdrop;
   the active layer cross-fades on hover with the same settle easing as the hero.
   Sticky + viewport-capped height so the whole card (incl. its bottom caption) stays
   on-screen no matter how tall the product list gets or how short the device is. */
.sol-stage{position:sticky;position:-webkit-sticky;top:clamp(78px,10vh,100px);
  /* fill the viewport below the sticky offset — top offset + height = 100vh exactly,
     so the panel bottom sits flush with the viewport bottom while pinned. */
  height:min(800px, calc(100dvh - clamp(78px,10vh,100px)));min-height:400px;
  overflow:hidden;background:var(--ink-2);--cut:clamp(40px,5vw,76px);
  clip-path:polygon(0 0,100% 0,calc(100% - var(--cut)) 100%,0 100%);}
.sol-stage-hatch{position:absolute;inset:0;background:repeating-linear-gradient(135deg,#24242A 0 16px,#1B1B20 16px 32px);opacity:.6;}
.sol-stage-shots{position:absolute;inset:0;}
.sol-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.045);
  transition:opacity .6s cubic-bezier(.16,.84,.3,1),transform 1.3s cubic-bezier(.16,.84,.3,1);}
.sol-shot.is-active{opacity:1;transform:scale(1);}
.sol-stage-scrim{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(to top,rgba(9,9,11,.88) 0%,rgba(9,9,11,.52) 24%,rgba(9,9,11,.1) 50%,rgba(9,9,11,0) 70%);}
/* red seam hugging the diagonal cut — the page's signature diagonal.
   Drawn cleanly top->bottom on reveal via an inset wipe (the red strip itself never distorts) */
.sol-stage-seam{position:absolute;inset:0;z-index:5;pointer-events:none;
  clip-path:inset(0 0 100% 0);transition:clip-path .9s cubic-bezier(.16,.84,.3,1) .12s;}
.sol-stage-seam::before{content:"";position:absolute;inset:0;background:var(--red);
  clip-path:polygon(calc(100% - 7px) 0,100% 0,calc(100% - var(--cut)) 100%,calc(100% - var(--cut) - 7px) 100%);}
.sol-stage[data-reveal].is-in .sol-stage-seam{clip-path:inset(0 0 0 0);}
.sol-stage-cap{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:30px 32px;}
.sol-stage-cap.is-swap{animation:solCap .55s cubic-bezier(.16,.84,.3,1);}
@keyframes solCap{from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:none}}
.sol-stage-num{display:flex;align-items:baseline;gap:9px;font-family:var(--sans-en);}
.sol-stage-num .n{font-weight:600;font-size:var(--fluid-display);line-height:var(--lh-none);color:#fff;letter-spacing:-.02em;}
.sol-stage-num .u{font-family:var(--sans);font-weight:500;font-size:var(--text-small);letter-spacing:.02em;color:var(--muted-3);}
.sol-stage-title{margin-top:9px;font-weight:600;font-size:var(--fluid-h5);line-height:var(--lh-snug);color:#fff;max-width:18ch;}
.sol-stage-chip{margin-top:16px;display:inline-flex;align-items:center;gap:9px;padding:8px 13px;border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.28);font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.12em;color:#fff;}
.sol-stage-chip .dot{width:6px;height:6px;background:var(--red);border-radius:50%;flex:0 0 auto;}

.sol-list{border-bottom:1px solid var(--line);}
/* the list's reveal is only a stagger trigger — container stays visible, rows cascade in */
.sol-list[data-reveal]{opacity:1;transform:none;}
.sol-list.is-in .sol-row{animation:solRowIn .6s cubic-bezier(.16,.84,.3,1) backwards;animation-delay:calc(var(--i,0) * 55ms);}
@keyframes solRowIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
/* Mobile-only elements — hidden on desktop */
.sol-row-img,.sol-dots,.proj-dots,.testi-dots{display:none;}
.sol-row{position:relative;display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:22px;padding:32px 18px 32px 26px;border-top:1px solid var(--line);
  transition:background .5s cubic-bezier(.16,.84,.3,1),opacity .45s ease;}
.sol-row.is-active{background:#fff;}
/* active marker = the brand flag glyph scaling in (not a side-stripe) */
.sol-row::before{content:"";position:absolute;left:6px;top:50%;width:11px;height:21px;background:var(--red);
  clip-path:polygon(34% 0,100% 0,66% 100%,0 100%);transform:translateY(-50%) scaleX(0);transform-origin:left center;
  opacity:0;transition:transform .42s cubic-bezier(.16,.84,.3,1),opacity .3s;}
.sol-row.is-active::before{transform:translateY(-50%) scaleX(1);opacity:1;}
/* focus one, fade the rest — makes it clear which system you're inspecting */
.sol-list:has(.sol-row.is-active) .sol-row:not(.is-active){opacity:.38;}
.sol-row .sol-no{font-family:var(--sans-en);font-weight:600;font-size:var(--text-title-sm);letter-spacing:-.01em;color:#8A867D;transition:color .35s ease;}
.sol-row.is-active .sol-no{color:var(--red);}
/* English product name — small mono label above the Thai title (the formal name) */
.sol-row .sol-en{display:block;font-family:var(--mono);font-size:var(--text-small);letter-spacing:.06em;color:var(--muted-2);margin-bottom:10px;transition:color .3s ease;}
.sol-row.is-active .sol-en{color:var(--red);}
.sol-row h3{font-weight:700;font-size:var(--fluid-h5);line-height:var(--lh-snug);color:var(--ink);}
.sol-row .sol-desc{font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--muted);margin-top:10px;}
.sol-row .sol-right{display:flex;align-items:center;gap:18px;}
.sol-row .sol-code{position:relative;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.05em;color:var(--muted);white-space:nowrap;padding-left:16px;transition:color .3s;}
.sol-row .sol-code::before{content:"";position:absolute;left:2px;top:50%;width:2px;height:14px;background:var(--red);
  transform:translateY(-50%) skewX(-26deg);opacity:.55;transition:opacity .3s,height .35s cubic-bezier(.16,.84,.3,1);}
.sol-row.is-active .sol-code{color:var(--ink);}
.sol-row.is-active .sol-code::before{opacity:1;height:19px;}
.sol-row .sol-go{font-family:var(--mono);font-size:var(--text-body);color:var(--red);transition:transform .42s cubic-bezier(.16,.84,.3,1);}
.sol-row.is-active .sol-go{transform:translateX(6px);}
.sol-row > div:not(.sol-right){transition:transform .42s cubic-bezier(.16,.84,.3,1);}
.sol-row.is-active > div:not(.sol-right){transform:translateX(5px);}

/* =================================================================
   PROCESS
   ================================================================= */
.process{background:#F2F1EC;border-top:1px solid var(--line);}
.process .wrap{padding-top:clamp(42px,4.5vw,72px);padding-bottom:clamp(48px,6vw,90px);}

/* process: sticky heading (left) + scroll-driven step timeline (right) */
.process-layout{display:grid;grid-template-columns:0.82fr 1.5fr;gap:clamp(40px,6vw,100px);align-items:start;}
.process-aside{position:sticky;top:clamp(96px,15vh,148px);}

.timeline{position:relative;display:flex;flex-direction:column;gap:clamp(36px,5vw,72px);}
/* spine spans node-to-node; JS sets its exact top/height so there's no stub before step 1 / after step 5 */
.tl-spine{position:absolute;left:23px;top:0;bottom:0;width:2px;background:rgba(23,23,26,.12);overflow:hidden;border-radius:2px;}
.tl-fill{position:absolute;inset:0;background:var(--red);transform-origin:top;transform:scaleY(0);will-change:transform;}

.tl-step{position:relative;padding:0;--from:30px;}   /* spacing via the timeline gap; node centres on the card */

/* numbered node on the left spine */
.tl-node{position:absolute;left:23px;top:50%;z-index:2;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;
  background:var(--surface);border:2px solid rgba(23,23,26,.18);
  font-family:var(--sans-en);font-weight:700;font-size:var(--text-body);color:var(--muted-2);transform:translate(-50%,-50%);
  transition:opacity .5s ease,transform .6s cubic-bezier(.16,.84,.3,1),border-color .5s ease,color .5s ease;}
.tl-step.is-reached .tl-node{border-color:var(--red);color:var(--ink);}   /* lit when the scroll/fill reaches it */
.timeline.tl-armed .tl-node{opacity:0;transform:translate(-50%,-50%) scale(.5);}
.timeline.tl-armed .tl-step.is-in .tl-node{opacity:1;transform:translate(-50%,-50%) scale(1);}

/* card: photo on top + text below, to the right of the spine */
.tl-card{display:flex;flex-direction:column;gap:clamp(18px,2.2vw,28px);padding-left:64px;
  transition:opacity .7s ease,transform .8s cubic-bezier(.16,.84,.3,1);}
.timeline.tl-armed .tl-card{opacity:0;transform:translateX(var(--from,30px));}
.timeline.tl-armed .tl-step.is-in .tl-card{opacity:1;transform:none;}

.tl-photo{width:100%;aspect-ratio:16/9;overflow:hidden;background:rgba(23,23,26,.06);}
.tl-photo img{width:100%;height:100%;object-fit:cover;display:block;}

.tl-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;color:var(--red);}
.tl-title{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h5);line-height:var(--lh-snug);color:var(--ink);margin-top:6px;}
.tl-desc{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:var(--muted);margin-top:12px;}

/* =================================================================
   CUSTOMERS (auto-slide marquee)
   ================================================================= */
.customers{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;}
.customers-head{padding:clamp(40px,4.5vw,66px) var(--pad) clamp(30px,3vw,42px);text-align:center;}
.customers-title{text-align:center;font-size:var(--fluid-h3);line-height:var(--lh-tight);}
.customers-sub{margin:16px auto 0;max-width:58ch;text-align:center;font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--muted);}
/* static authorized-distributor grid — 18 brands, 6 per row */
.dist-grid{display:flex;flex-direction:column;gap:clamp(18px,2.2vw,30px);padding-bottom:clamp(42px,4.5vw,64px);}
/* legend chips — hoverable filters that highlight the matching logos below */
.dist-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding-bottom:clamp(6px,1vw,12px);border-bottom:1px solid var(--line);}
.dist-chip{appearance:none;background:transparent;border:0;padding:8px 14px 8px 12px;display:inline-flex;align-items:baseline;gap:9px;
  cursor:pointer;color:var(--ink);border-radius:0;position:relative;transition:background .18s ease,color .18s ease;}
.dist-chip::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:2px;background:var(--red);opacity:0;transform:skewX(-26deg) translateX(-2px);transition:opacity .18s ease,transform .18s ease;}
.dist-chip:hover,.dist-chip:focus-visible{background:rgba(200,16,46,.05);outline:none;}
.dist-chip:hover::before,.dist-chip:focus-visible::before{opacity:1;transform:skewX(-26deg) translateX(0);}
.dc-n{font-family:var(--sans-en);font-weight:700;font-size:var(--text-lead);letter-spacing:-.01em;color:var(--red);line-height:1;}
.dc-l{font-family:var(--sans);font-weight:500;font-size:var(--text-small);color:var(--muted-2);letter-spacing:.005em;}
/* logo grid — flat 6-col; each cell caps the visual footprint so wildly different
   logo aspects (tall badges vs wide wordmarks) end up looking closer in weight. */
/* 16 of the partner logos ship with an opaque white box; multiply drops that white into the
   page tone. The grid repeats the section colour so the blend still has a backdrop while a
   reveal animation (transform/opacity) isolates the group. */
.dist-grid-logos{display:grid;grid-template-columns:repeat(6,1fr);row-gap:clamp(16px,2.2vw,32px);column-gap:clamp(12px,1.5vw,24px);background:var(--bg);}
.dist-logo{position:relative;display:flex;align-items:center;justify-content:center;height:clamp(72px,7.5vw,104px);padding:8px 12px;
  transition:opacity .22s ease;}
.dist-logo img{max-width:min(100%,150px);max-height:clamp(44px,4.8vw,64px);width:auto;height:auto;object-fit:contain;transition:transform .22s ease;mix-blend-mode:multiply;}
/* hover tooltip — brand name in mono on a diagonal-clipped chip */
.dl-tip{position:absolute;bottom:100%;left:50%;transform:translate(-50%,4px);
  padding:5px 12px 5px 14px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;
  background:var(--ink);color:#fff;white-space:nowrap;pointer-events:none;
  clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);
  opacity:0;transition:opacity .18s ease,transform .18s ease;z-index:5;}
.dist-logo:hover .dl-tip{opacity:1;transform:translate(-50%,-6px);}
.dist-logo:hover img{transform:scale(1.04);}
/* legend-driven highlight: when a chip is hovered, fade non-matching logos */
#js-dist[data-hl="alarm"] .dist-logo:not([data-cat="alarm"]),
#js-dist[data-hl="gas"]   .dist-logo:not([data-cat="gas"]),
#js-dist[data-hl="water"] .dist-logo:not([data-cat="water"]),
#js-dist[data-hl="equip"] .dist-logo:not([data-cat="equip"]){opacity:.18;}
@media (max-width:900px){
  .dist-grid-logos{grid-template-columns:repeat(3,1fr);row-gap:clamp(14px,3vw,22px);}
  .dist-logo{height:clamp(60px,16vw,88px);padding:6px 8px;}
  .dist-logo img{max-height:clamp(38px,9vw,56px);max-width:min(100%,130px);}
  .dl-tip{display:none;}
  .dist-chip{padding:6px 10px;}
}
@media (prefers-reduced-motion:reduce){
  .dist-logo,.dist-logo img,.dl-tip,.dist-chip,.dist-chip::before{transition:none;}
}

@keyframes mqL{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes mqR{from{transform:translateX(-50%)}to{transform:translateX(0)}}

/* =================================================================
   PROJECTS (horizontal pinned scroller)
   ================================================================= */
.pin-wrap{position:relative;background:#fff;}
.pin-intro-mobile{display:none;}
.pin-stage{position:sticky;top:0;height:100vh;overflow:hidden;display:flex;flex-direction:column;}
.pin-track{display:flex;align-items:stretch;height:100%;will-change:transform;}
.intro-panel{flex:0 0 auto;width:min(50vw,720px);display:flex;flex-direction:column;justify-content:center;padding:0 clamp(40px,5vw,90px);}
.intro-title{font-weight:600;font-size:var(--fluid-display);line-height:var(--lh-tight);letter-spacing:-.02em;color:var(--ink);}
.intro-lead{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:#3A3A40;font-weight:500;margin-top:28px;}
.intro-lead strong{color:var(--ink);}
.intro-scroll{display:flex;align-items:center;gap:11px;margin-top:30px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;color:var(--muted-2);}

.cat-panel{flex:0 0 auto;width:min(40vw,540px);height:100%;display:flex;align-items:center;padding:clamp(28px,4vh,56px) 16px;}
.cat-card{position:relative;width:100%;height:100%;max-height:740px;background:#0F0F12;border:none;overflow:hidden;
  display:flex;flex-direction:column;}
.card-media{position:absolute;inset:0;background-image:var(--cat-img);background-size:cover;background-position:center;
  filter:saturate(.7) contrast(1.03) brightness(.9);transform:scale(1.02);will-change:transform;
  transition:transform .9s cubic-bezier(.16,.84,.3,1),filter .55s ease;}
.cat-card:is(:hover,:focus-within) .card-media{transform:scale(1.07);filter:saturate(.42) contrast(1) brightness(.4);}
.card-scrim{position:absolute;inset:0;
  background:linear-gradient(178deg,rgba(13,13,16,.88) 0%,rgba(13,13,16,.24) 32%,rgba(13,13,16,.16) 50%,rgba(13,13,16,.62) 80%,rgba(13,13,16,.97) 100%);
  transition:background .55s ease;}
.cat-card:is(:hover,:focus-within) .card-scrim{background:linear-gradient(178deg,rgba(11,11,13,.82) 0%,rgba(11,11,13,.74) 46%,rgba(11,11,13,.94) 100%);}
.card-inner{position:relative;z-index:2;display:flex;flex-direction:column;height:100%;}
.card-top{padding:34px 34px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.card-num{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.16em;color:rgba(255,255,255,.74);}
.card-arrow{width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.32);display:grid;place-items:center;color:#fff;
  transition:transform .4s,background .4s,border-color .4s,color .4s;flex:0 0 auto;}
.cat-card:is(:hover,:focus-within) .card-arrow{background:var(--red);border-color:var(--red);color:#fff;transform:rotate(-45deg);}
.card-title-wrap{padding:18px 34px 0;}
.card-title{font-weight:700;font-size:var(--fluid-h4);line-height:var(--lh-tight);letter-spacing:0;color:#fff;text-shadow:0 1px 26px rgba(0,0,0,.45);}
.card-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;color:rgba(255,255,255,.76);text-transform:uppercase;margin-top:12px;}
.card-count{padding:22px 34px 0;display:flex;align-items:baseline;gap:9px;}
.card-count .n{font-family:var(--sans-en);font-weight:600;font-size:var(--fluid-display);line-height:var(--lh-none);letter-spacing:-.03em;color:#fff;text-shadow:0 1px 26px rgba(0,0,0,.45);}
.card-count .u{font-size:var(--text-small);color:rgba(255,255,255,.82);}
.card-hint{margin-top:auto;padding:24px 34px 32px;display:flex;align-items:center;gap:9px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.1em;color:rgba(255,255,255,.86);transition:opacity .3s;}
.cat-card:is(:hover,:focus-within) .card-hint{opacity:0;}
.card-list{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:18px 34px 30px;max-height:0;opacity:0;overflow-y:auto;
  transition:max-height .5s ease,opacity .35s ease .05s,padding .4s ease;}
.cat-card:is(:hover,:focus-within) .card-list{max-height:64%;opacity:1;}
.card-list::-webkit-scrollbar{width:4px;}
.card-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:4px;}
.proj-item{display:grid;grid-template-columns:30px 1fr;align-items:baseline;gap:14px;padding:11px 0;border-top:1px solid rgba(255,255,255,.1);color:#D9D7D1;transition:color .2s,padding-left .2s;}
.proj-item:first-child{border-top:none;}
.proj-item:hover{color:#fff;padding-left:5px;}
.proj-item .pn{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.08em;color:#7A7A82;}
.proj-item .pt{font-weight:500;font-size:var(--text-small);line-height:var(--lh-snug);}
.proj-item .pl{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.1em;color:#7A7A82;text-transform:uppercase;margin-top:3px;}

/* closing CTA panel */
.cat-card--cta{background:linear-gradient(135deg,#CE1430 0%,#C8102E 46%,#A40E25 100%);border-color:#C8102E;justify-content:center;align-items:flex-start;padding:0 34px;}
.cat-card--cta:hover{background:linear-gradient(135deg,#CE1430 0%,#C8102E 46%,#A40E25 100%);border-color:#C8102E;}
.cta-hatch{position:absolute;inset:0;background:repeating-linear-gradient(116deg,rgba(255,255,255,.07) 0 1.5px,transparent 1.5px 16px);}
.cta-body{position:relative;}
.cta-num{display:flex;align-items:baseline;gap:10px;}
.cta-num .n{font-family:var(--sans-en);font-weight:600;font-size:var(--fluid-display);line-height:var(--lh-none);letter-spacing:-.03em;color:#fff;}
.cta-num .u{font-size:var(--text-body);color:rgba(255,255,255,.7);}
.cta-headline{font-weight:600;font-size:var(--text-title-sm);line-height:var(--lh-snug);color:#fff;margin-top:20px;max-width:320px;}
/* closing-card pill = inverted primary; this class only positions it */
.cta-pill{margin-top:24px;}

/* pinned footer ui */
.pin-meta{position:absolute;left:clamp(40px,5vw,90px);bottom:58px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;color:var(--muted-2);}
.pin-progress{position:absolute;left:clamp(40px,5vw,90px);right:clamp(40px,5vw,90px);bottom:46px;height:2px;background:rgba(23,23,26,.14);}
.pin-progress .fill{position:absolute;left:0;top:0;bottom:0;width:0%;background:var(--red);transition:width .08s linear;}
.pin-scrollhint{position:absolute;right:clamp(40px,5vw,90px);bottom:58px;display:flex;align-items:center;gap:10px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;color:var(--muted-2);}

/* =================================================================
   TESTIMONIALS (premium marquee — taller cards, larger avatars)
   ================================================================= */
.testimonials{background:var(--bg);border-top:1px solid var(--line);padding-top:clamp(30px,3.5vw,48px);}
.testimonials .sec-head{margin-bottom:clamp(26px,3vw,40px);}
.testi-vp{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);padding-bottom:clamp(30px,3vw,45px);padding-top:0;}
.testi-mq{display:flex;gap:22px;width:max-content;animation:mqL 80s linear infinite;}
.testi-vp:hover .testi-mq{animation-play-state:paused;}
.testi-card{flex:0 0 auto;width:clamp(380px,92vw,560px);background:#fff;border:1px solid var(--line);box-shadow:0 6px 24px rgba(23,23,26,.06);
  padding:clamp(28px,3vw,38px) clamp(30px,3.2vw,40px);display:flex;flex-direction:column;gap:clamp(18px,2vw,24px);
  transition:border-color .25s,box-shadow .25s,transform .25s;font:inherit;color:inherit;text-align:left;cursor:pointer;}
.testi-card:hover{border-color:var(--red);box-shadow:0 10px 32px rgba(23,23,26,.09);transform:translateY(-2px);}
.testi-card:focus-visible{outline:2px solid var(--red);outline-offset:3px;}
.testi-card .tc-quote{font-size:var(--text-body);line-height:var(--lh-relaxed);color:#33333A;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;}
.testi-card .tc-more{margin-top:-6px;font-family:var(--sans-en);font-size:var(--text-caption);font-weight:600;letter-spacing:.02em;color:var(--red);opacity:0;transition:opacity .2s ease;}
.testi-card:hover .tc-more,.testi-card:focus-visible .tc-more{opacity:1;}
@media (hover:none){.testi-card .tc-more{opacity:1;}}
.testi-card .tc-foot{margin-top:auto;display:flex;align-items:center;gap:16px;padding-top:clamp(16px,1.8vw,20px);border-top:1px solid var(--line-2);}
.testi-card .tc-av{width:clamp(88px,10vw,120px);height:clamp(88px,10vw,120px);flex:0 0 auto;border-radius:50%;overflow:hidden;background:#E7E4DF;}
.testi-card .tc-av image-slot{--is-bg:#E7E4DF;width:100%;height:100%;display:block;}
.testi-card .tc-av img{width:100%;height:100%;object-fit:cover;display:block;}
.testi-card .tc-meta{min-width:0;}
.testi-card .tc-name{font-weight:700;font-size:var(--text-lead);color:var(--ink);line-height:var(--lh-snug);}
.testi-card .tc-role{font-size:var(--text-caption);color:var(--muted);margin-top:3px;line-height:var(--lh-snug);}
.testi-card .tc-company{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--muted);margin-top:6px;line-height:var(--lh-snug);}

/* Testimonial modal — opens on card click, closes on backdrop / X / ESC */
.testi-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:clamp(16px,3vw,32px);
  opacity:0;transition:opacity .22s ease;}
.testi-modal[hidden]{display:none;}
.testi-modal.is-open{opacity:1;}
.testi-modal-backdrop{position:absolute;inset:0;background:rgba(17,17,20,.62);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);cursor:pointer;}
.testi-modal-card{position:relative;background:#fff;border-radius:14px;max-width:min(720px,100%);width:100%;max-height:min(84vh,860px);overflow:auto;
  padding:clamp(28px,3.6vw,44px) clamp(28px,3.6vw,52px);box-shadow:0 24px 68px rgba(0,0,0,.32);
  transform:translateY(12px) scale(.98);transition:transform .28s cubic-bezier(.16,.84,.3,1);}
.testi-modal.is-open .testi-modal-card{transform:none;}
.testi-modal-close{position:absolute;top:14px;right:14px;width:38px;height:38px;display:grid;place-items:center;border:none;border-radius:50%;
  background:transparent;color:var(--ink);cursor:pointer;transition:background .18s ease;}
.testi-modal-close:hover{background:rgba(23,23,26,.06);}
.testi-modal-card .tm-head{display:flex;align-items:center;gap:20px;padding-bottom:24px;border-bottom:1px solid var(--line-2);margin-bottom:26px;}
.testi-modal-card .tm-av{width:clamp(104px,12vw,136px);height:clamp(104px,12vw,136px);flex:0 0 auto;border-radius:50%;overflow:hidden;background:#E7E4DF;}
.testi-modal-card .tm-av image-slot{--is-bg:#E7E4DF;width:100%;height:100%;display:block;}
.testi-modal-card .tm-av img{width:100%;height:100%;object-fit:cover;display:block;}
.testi-modal-card .tm-meta{min-width:0;}
.testi-modal-card .tm-name{font-weight:700;font-size:var(--fluid-h5);color:var(--ink);line-height:var(--lh-snug);}
.testi-modal-card .tm-role{font-size:var(--text-small);color:var(--muted);margin-top:4px;line-height:var(--lh-snug);}
.testi-modal-card .tm-company{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--muted);margin-top:8px;line-height:var(--lh-snug);}
.testi-modal-card .tm-quote{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:#2C2C33;white-space:pre-wrap;margin:0;}
@media (max-width:900px){
  /* touch: swipe through testimonials (no auto-scroll), snap each card to center */
  .testi-vp{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:none;mask-image:none;scrollbar-width:none;scroll-padding-inline:var(--pad);padding-inline:var(--pad);}
  .testi-vp::-webkit-scrollbar{display:none;}
  .testi-mq{animation:none;}
  .testi-card{scroll-snap-align:center;}
  /* on mobile the marquee's second half is dead weight — hide clones so we get exactly 6 slides */
  .testi-card[data-clone]{display:none;}
  /* dot pagination beneath the carousel — same treatment as .sol-dots / .proj-dots */
  .testi-dots{display:flex;justify-content:center;align-items:center;gap:8px;padding:26px 0 clamp(72px,14vw,110px);}
  .testi-dot{width:8px;height:8px;border-radius:50%;background:rgba(23,23,26,.2);transition:background .18s ease,width .18s ease;cursor:pointer;}
  .testi-dot.is-active{background:var(--red);width:26px;border-radius:8px;}
}
@media (max-width:560px){
  /* card fits within the viewport */
  .testi-card{width:84vw;min-width:0;max-width:none;gap:14px;padding:22px 20px;}
  .testi-card .tc-av{width:64px;height:64px;flex:0 0 64px;}
  .testi-card .tc-quote{-webkit-line-clamp:6;}
  .testi-card .tc-name{font-size:var(--text-body);}
}

/* =================================================================
   STANDARDS (red proof band)
   ================================================================= */
/* red band — deepened for the "experienced/heavy" brand: layered background pairs a diagonal
   red-dark → red-deep base with a soft radial highlight in the top-left, giving the surface
   dimension and lifting the top-left brand corner while sinking the bottom-right for gravitas.
   Text stays #fff at font-weight:500+; the darker floor (#4E0713) pushes white-on-red contrast
   well past WCAG AA in every zone. */
.standards{position:relative;overflow:hidden;color:#fff;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(200,16,46,.32) 0%, transparent 55%),
    linear-gradient(135deg, var(--red-dark) 0%, #7A0A1E 55%, var(--red-deep) 100%);
  padding:clamp(34px,4.2vw,64px) 0 0;}
.std-slab{position:absolute;top:-30%;bottom:-30%;right:-6%;width:42%;background:rgba(74,7,19,.32);
  transform:skewX(-26deg);pointer-events:none;}
.std-inner{position:relative;z-index:2;display:grid;grid-template-columns:0.96fr 1.04fr;gap:clamp(32px,4.5vw,68px);align-items:start;}
.std-left{display:flex;flex-direction:column;}
.std-figure{margin:clamp(20px,2.6vw,34px) 0 0;}
.std-figure img{display:block;width:100%;max-width:clamp(248px,28vw,344px);height:auto;}
.standards .eyebrow .dash{background:#fff;}
.standards .eyebrow .label{color:#fff;}
/* removed text-shadow: red-on-red isn't visible, only added blur to the glyphs. */
.std-title{font-weight:700;font-size:var(--fluid-h3);line-height:var(--lh-tight);letter-spacing:0;color:#fff;}
/* body copy on red: full-white + slightly heavier weight for Thai glyphs, no transparency.
   The 84% alpha version measured ~4.5:1 against the old lightest stop — right on the AA line. */
.std-sub{margin-top:16px;font-size:var(--text-body);line-height:var(--lh-relaxed);color:#fff;font-weight:500;max-width:40ch;}
.std-list{display:flex;flex-direction:column;align-self:center;}
/* stronger row divider (was 16% white → nearly invisible) — reinforces the list structure
   without needing more color contrast on the copy itself. */
.std-row{display:grid;grid-template-columns:clamp(74px,8vw,112px) 1fr;gap:clamp(16px,2vw,28px);align-items:center;
  padding:clamp(15px,1.9vw,22px) 0;border-top:1px solid rgba(255,255,255,.28);}
.std-row:first-child{border-top:none;padding-top:2px;}
.std-abbr{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h2);line-height:var(--lh-none);letter-spacing:-.01em;color:#fff;}
.std-name{font-weight:600;font-size:var(--text-title-xs);line-height:var(--lh-snug);color:#fff;}
/* was 14px @ 86% white — 14px Thai body needs the extra weight + full opacity to breathe on red. */
.std-desc{margin-top:6px;font-size:var(--text-small);font-weight:500;line-height:var(--lh-normal);color:#fff;}
@media (max-width:900px){
  /* people image sits flush at the section's bottom edge; order = head → list → image */
  .standards{padding-bottom:0;}
  .std-inner{display:flex;flex-direction:column;gap:clamp(26px,5vw,38px);}
  .std-left{display:contents;}
  .std-head{order:0;}
  .std-list{order:1;}
  .std-figure{order:2;align-self:center;width:clamp(240px,56vw,322px);margin:0;}
}
@media (max-width:560px){
  /* stack the abbreviation above the name so long codes (NFPA) never collide */
  .std-row{grid-template-columns:1fr;gap:7px;}
  .std-abbr{font-size:var(--fluid-h2);}
}

/* =================================================================
   CTA
   ================================================================= */
.cta{position:relative;background:linear-gradient(135deg,#CE1430 0%,#C8102E 44%,#A20D24 100%);overflow:hidden;
  --cut:clamp(40px,5vw,64px);clip-path:polygon(var(--cut) 0,100% 0,100% 100%,0 100%);}
/* band wipes in from the right; left end is a brand "/" diagonal (top-left cut, like the hero panel). Visible by default for no-JS/reduced-motion safety */
.cta.cta-armed{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%);transition:clip-path 1.05s cubic-bezier(.22,1,.36,1);}
.cta.cta-armed.cta-in{clip-path:polygon(var(--cut) 0,100% 0,100% 100%,0 100%);}
/* diagonal darker-red slab behind the headline (brand motif + contrast) */
.cta::before{content:"";position:absolute;top:-25%;bottom:-25%;left:-10%;width:48%;background:rgba(120,8,21,.26);
  transform:skewX(-26deg);pointer-events:none;}
.cta-texture{position:absolute;top:0;bottom:0;right:0;width:clamp(220px,34vw,440px);
  background:repeating-linear-gradient(116deg,rgba(255,255,255,.085) 0 1.5px,transparent 1.5px 15px);pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 70%);mask-image:linear-gradient(90deg,transparent,#000 70%);}
.cta-inner{position:relative;z-index:2;padding:clamp(20px,2.2vw,30px) var(--pad) clamp(20px,2.2vw,30px) clamp(48px,6.5vw,76px);display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;
  transition:transform 1.05s cubic-bezier(.22,1,.36,1),opacity .8s ease;}
.cta.cta-armed .cta-inner{transform:translateX(60px);opacity:0;}
.cta.cta-armed.cta-in .cta-inner{transform:none;opacity:1;}
.cta .eyebrow{margin-bottom:10px;}
.cta-title{font-weight:700;font-size:var(--fluid-h4);line-height:var(--lh-snug);letter-spacing:0;color:#fff;text-shadow:0 2px 26px rgba(80,0,8,.24);}
.cta .eyebrow .dash{background:#fff;}
.cta .eyebrow .label{color:#fff;}
.cta-actions{display:flex;flex-direction:column;gap:12px;}
/* CTA-band primary uses the shared .btn-red.btn-invert modifier */
.cta-contact{font-family:var(--sans);font-size:var(--text-caption);font-weight:500;color:rgba(255,255,255,.85);text-align:center;}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer{background:#fff;background-image:
  repeating-linear-gradient(90deg,transparent 0 79px,rgba(23,23,26,.03) 79px 80px),
  repeating-linear-gradient(0deg,transparent 0 79px,rgba(23,23,26,.03) 79px 80px);}
.footer-grid{padding:clamp(34px,4vw,52px) var(--pad) clamp(30px,3.4vw,44px);display:grid;grid-template-columns:1.3fr 1fr 2.4fr;gap:48px;}
.footer-addr{margin-top:20px;font-size:var(--text-small);line-height:var(--lh-relaxed);color:var(--muted);max-width:30ch;}
/* same face, size and weight as the address above it, so 02-319-6000 and 10250 read alike */
.footer-contact{margin-top:16px;font-family:var(--sans);font-size:var(--text-small);line-height:var(--lh-relaxed);color:var(--ink);}
.footer-contact a,.cta-contact a{color:inherit;text-decoration:none;}
.footer-contact a:hover{color:var(--red);}
.cta-contact a:hover{color:#fff;text-decoration:underline;}
.footer-h{font-family:var(--sans);font-size:var(--text-caption);letter-spacing:.1em;color:var(--ink);margin-bottom:20px;}
.footer-links{display:flex;flex-direction:column;gap:12px;}
.footer-links a{font-size:var(--text-small);color:var(--muted);transition:color .2s;}
.footer-links a:hover{color:var(--red);}
.partners-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px;}
.partners-grid a,.partners-grid span{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;line-height:1.4;color:var(--muted);}  /* wraps — no "IMPERIAL FIRE EXT…" truncation */
.partners-grid a{transition:color .2s ease;}
.partners-grid a:hover{color:var(--red);}

/* Social icons — red squares with brand color per CI */
.footer-social{margin-top:22px;display:flex;gap:14px;}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;color:var(--red);border-radius:12px;transition:background .18s ease,transform .18s ease;}
.footer-social a:hover{background:rgba(200,16,46,.08);transform:translateY(-1px);}
.footer-social svg{display:block;width:34px;height:34px;}
.footer-bottom{padding:20px var(--pad);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;}
.footer-bottom span{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;color:var(--muted);}
.footer-legal{font-size:var(--text-caption);color:var(--muted);text-decoration:underline;text-underline-offset:3px;}
.footer-legal:hover{color:var(--red);}

/* =================================================================
   FLOATING SECTION NAV — subtle bar, diagonal bullet on active
   ================================================================= */
.section-nav{
  position:fixed;bottom:24px;left:50%;z-index:900;
  transform:translateX(-50%);
  display:flex;align-items:center;gap:2px;
  padding:6px 10px;
  border-radius:6px;
  background:rgba(10,10,12,.68);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  backdrop-filter:blur(18px) saturate(1.4);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 4px 20px rgba(0,0,0,.35);
  opacity:0;pointer-events:none;
  transition:opacity .4s cubic-bezier(.2,.7,.2,1);
}
.section-nav.is-visible{opacity:1;pointer-events:auto;}

.sn-item{
  position:relative;
  display:flex;align-items:center;gap:6px;
  padding:5px 12px;
  text-decoration:none;
  font-family:var(--sans);font-size:11.5px;font-weight:500;letter-spacing:.01em;
  color:rgba(255,255,255,.42);
  white-space:nowrap;
  transition:color .3s cubic-bezier(.2,.7,.2,1);
}
.sn-item:hover{color:rgba(255,255,255,.72);}
.sn-item:focus-visible{outline:2px solid var(--red);outline-offset:2px;}

.sn-item::before{
  content:"";display:block;flex:0 0 auto;
  width:0;height:10px;
  background:var(--red);
  clip-path:polygon(30% 0,100% 0,70% 100%,0 100%);
  opacity:0;
  transition:width .3s cubic-bezier(.2,.7,.2,1),opacity .3s;
}
.sn-item.is-active{color:rgba(255,255,255,.92);}
.sn-item.is-active::before{
  width:10px;opacity:1;
}

.sn-label{position:relative;z-index:1;}

.sn-sep{
  width:1px;align-self:center;height:14px;flex:0 0 auto;
  background:rgba(255,255,255,.08);
  transform:skewX(-12deg);
}

@media (max-width:900px){.section-nav{display:none;}}
@media (prefers-reduced-motion:reduce){
  .section-nav{transition:none;}
  .sn-item::before{transition:none;}
}

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
[data-reveal]{opacity:0;transform:translateY(24px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);}
[data-reveal].is-in{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none;transition:none;}
  .testi-mq{animation:none;}
  .hero-slides{animation:none !important;}
  .hero-slide{transition:none !important;}
  .hero-media,.hero-img,.hero-slice{animation:none !important;}
  .hero-accent{animation:none !important;}
  .hero-accent::before,.hero-accent::after{animation:none !important;transform:none !important;}
  .about-accent::before,.about-accent::after{animation:none !important;transform:none !important;}
  .sol-shot{transform:none !important;transition:opacity .2s linear;}
  .sol-stage-cap.is-swap{animation:none;}
  .sol-list.is-in .sol-row{animation:none;}
  .sol-stage-seam{transition:none;}
  .tl-card{transition:none!important;opacity:1!important;transform:none!important;}
  .tl-node{transition:none!important;opacity:1!important;transform:translate(-50%,-50%)!important;}
  .tl-svg .d,.tl-svg .r{stroke-dashoffset:0!important;}
  .tl-fill{transform:scaleY(1)!important;}
  .card-media{transform:none!important;transition:none!important;}
  .cta.cta-armed{clip-path:polygon(var(--cut,64px) 0,100% 0,100% 100%,0 100%)!important;}
  .cta.cta-armed .cta-inner{transform:none!important;opacity:1!important;}
  .std-sheen{animation:none!important;opacity:0;}
  html{scroll-behavior:auto;}
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

/* ---- large tablet / small desktop ---- */
@media (max-width:1040px){
  :root{--pad:32px;}
}

/* ---- tablet ---- */
@media (max-width:900px){
  .main-nav{display:none;}
  .nav-toggle{display:flex;}
  .header-actions .nav-cta{display:none;}  /* catalog + consult CTAs live in the hamburger menu on mobile */

  /* process: stack the sticky heading above the steps */
  .process-layout{grid-template-columns:1fr;gap:clamp(26px,6vw,42px);}
  .process-aside{position:static;}
  .tl-spine{left:19px;}
  .tl-node{left:19px;width:40px;height:40px;font-size:var(--text-small);}
  .timeline{gap:clamp(40px,10vw,64px);}
  .tl-step{--from:22px;padding:0;}
  .tl-card{gap:14px;padding-left:50px;}

  /* hero: stack copy above the image; KPI stats stay overlaid on the image */
  .hero{flex-direction:column;align-items:stretch;min-height:0;padding:0;}
  .hero-grid-lines,.hero-slice,.hero-accent{display:none;}
  .hero-inner{order:1;padding-top:clamp(48px,11vw,84px);}
  .hero-copy{max-width:100%;}
  /* mobile: image is full-width below the copy, so reveal with a gentle rise (no horizontal slide) */
  .hero-media{position:relative;order:2;width:100%;height:clamp(340px,68vw,470px);clip-path:none;margin-top:clamp(30px,6vw,46px);
    animation:heroRise .8s ease .12s both;}

  /* stats: 2 columns */
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:30px 24px;}

  /* about: stack */
  .about{display:block;min-height:0;}
  /* stacked layout has no side-by-side diagonal → keep the video rectangular and
     drop the red join line (it only makes sense in the desktop split) */
  /* show the FULL 16/9 video frame (fit, not crop) so the in-video labels aren't clipped */
  .about-media{position:relative;top:auto;bottom:auto;width:100%;height:auto;aspect-ratio:16/9;clip-path:none;}
  .about-video iframe{width:100%;height:100%;min-width:0;}
  .about-media-slice,.about-accent{display:none;}
  .about-content{padding:clamp(40px,8vw,64px) var(--pad);}
  .about-text{width:100%;margin-left:0;padding-left:0;}
  .about-media[data-reveal]{transform:translateY(20px);}

  /* solutions: hide the desktop stage/default cover — mobile shows a horizontal
     swipeable carousel with a photo per category and dot pagination beneath. */
  .sol-grid{grid-template-columns:1fr;}
  .sol-stage{display:none;}
  .sol-list{border-bottom:none;border-top:none;display:flex;flex-wrap:nowrap;overflow-x:auto;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    scroll-padding-inline:var(--pad);gap:14px;padding:6px var(--pad) 4px;margin:0 calc(-1 * var(--pad));}
  .sol-list::-webkit-scrollbar{display:none;}
  .sol-row{flex:0 0 86%;max-width:420px;scroll-snap-align:center;
    display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;margin-top:0;
    background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 18px rgba(23,23,26,.06);
    overflow:hidden;transition:border-color .2s ease,transform .2s ease;}
  .sol-row:active{border-color:var(--red);transform:scale(.992);}
  .sol-row::before{display:none;}
  .sol-list:has(.sol-row.is-active) .sol-row:not(.is-active){opacity:1;}
  .sol-row-img{display:block;width:100%;aspect-ratio:4/5;background:#EDEBE6 center/cover no-repeat;}
  .sol-row .sol-no{position:absolute;top:14px;left:16px;z-index:2;
    padding:4px 10px;border-radius:20px;background:rgba(23,23,26,.55);color:#fff;
    font-family:var(--sans-en);font-weight:700;font-size:var(--text-caption);}
  .sol-row{position:relative;}
  .sol-row-body{padding:22px 20px 16px;display:flex;flex-direction:column;gap:8px;}
  .sol-row .sol-en{font-size:var(--text-caption);margin-bottom:0;}
  .sol-row h3{font-size:var(--fluid-h5);}
  .sol-row .sol-desc{font-size:var(--text-body);margin-top:0;}
  /* Tap affordance — "ดูรายละเอียด →" label at bottom of the card, red per brand */
  .sol-row .sol-right{display:flex;margin:0 20px;padding:14px 0 18px;border-top:1px solid var(--line-2);
    font-family:var(--sans-en);font-weight:600;font-size:var(--text-small);color:var(--red);
    align-items:center;gap:8px;}
  .sol-row .sol-right::before{content:"ดูรายละเอียด";}
  .sol-row .sol-go{font-size:var(--text-lead);transition:transform .25s ease;}
  .sol-row:active .sol-go{transform:translateX(4px);}

  /* dot pagination beneath the carousel */
  .sol-dots{display:flex;justify-content:center;align-items:center;gap:8px;padding:22px 0 4px;}
  .sol-dot{width:8px;height:8px;border-radius:50%;background:rgba(23,23,26,.2);transition:background .18s ease,width .18s ease;}
  .sol-dot.is-active{background:var(--red);width:26px;border-radius:8px;}

  /* ---- projects: horizontal snap-swipe on mobile (was: vertical stack) ---- */
  .pin-wrap{height:auto !important;background:#fff;}
  .pin-intro-mobile{display:block;padding:clamp(48px,7vw,72px) 0 clamp(24px,3vw,32px);}
  .pin-intro-mobile .intro-title{margin-top:16px;}
  .pin-stage{position:static;height:auto;overflow-x:auto;overflow-y:hidden;
    padding:0;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .pin-stage::-webkit-scrollbar{display:none;}
  .pin-track{flex-direction:row;align-items:stretch;height:auto;transform:none !important;
    gap:14px;padding:0 var(--pad);}
  .intro-panel{display:none;}
  .intro-scroll{display:none;}
  .cat-panel{flex:0 0 82vw;width:82vw;height:auto;padding:0;scroll-snap-align:start;}
  .cat-card{display:flex;flex-direction:column;height:auto;min-height:clamp(520px,115vw,640px);max-height:none;}
  .card-media{transform:none;}
  /* on mobile: tap the card = navigate. no accordion, no hover-reveal (touch spuriously
     triggers :hover on desktop-only CSS above, causing the panel to "burst" open). */
  .cat-card:hover .card-list,.cat-card:focus-within .card-list{max-height:0;opacity:0;padding:0;}
  .card-hint{display:none;}
  .card-list{display:none;}
  .card-top{padding:22px 22px 0;}
  .card-title-wrap{padding:14px 22px 0;}
  .card-inner{flex:1;}
  .card-count{padding:18px 22px 22px;margin-top:auto;}
  .cat-card--cta{padding:34px;}
  .cat-card--cta:hover{background:#17171A;}
  /* meta + progress hidden on mobile; hint stays and moves below the swipe track */
  .pin-meta,.pin-progress{display:none;}

  /* dot pagination beneath the projects carousel — same treatment as .sol-dots */
  .proj-dots{display:flex;justify-content:center;align-items:center;gap:8px;padding:26px 0 clamp(72px,14vw,110px);}
  .proj-dot{width:8px;height:8px;border-radius:50%;background:rgba(23,23,26,.2);transition:background .18s ease,width .18s ease;cursor:pointer;}
  .proj-dot.is-active{background:var(--red);width:26px;border-radius:8px;}
  .pin-scrollhint{position:static;left:auto;right:auto;bottom:auto;
    display:flex;justify-content:center;margin:14px auto 0;padding:0;
    color:var(--muted-3);}

  /* CTA + footer */
  .footer-grid{grid-template-columns:1fr 1fr;gap:36px;}
}

/* ---- mobile ---- */
@media (max-width:640px){
  :root{--pad:22px;}
  .header-actions{gap:10px;}
  .header-actions .nav-lang{display:none;}   /* hide the desktop toggle at ≤640px; the mobile-nav copy stays */

  .hero-title{font-size:var(--fluid-h1);}
  .hero-lead{font-size:var(--text-body);}
  .hero-actions .btn-lg{width:100%;justify-content:center;}

  /* slide caption: tighter on narrow screens */
  /* caption stacked above the bullets, both bottom-right, with edge margin + gap */
  .hero-cap{left:24px;right:auto;bottom:calc(26px + 26px);max-width:76%;gap:3px;}
  .hc-en{font-size:var(--text-title-xs);}
  .hc-th{font-size:var(--fluid-h5);}
  .hero-dots{bottom:26px;left:24px;right:auto;}

  .stats-grid{gap:26px 20px;}
  .stat{padding-left:20px;}

  .sec-head{display:block;}
  .sec-head-lead{margin-top:18px;max-width:none;}

  .testi-card{width:clamp(280px,90vw,420px);gap:16px;padding:24px 24px;}
  .testi-card .tc-quote{-webkit-line-clamp:6;}

  .cta-inner{flex-direction:column;align-items:flex-start;gap:28px;}
  .cta-actions{width:100%;}
  .cta-actions .btn-lg{width:100%;justify-content:center;}
  .cta-texture{width:140px;opacity:.6;}

  .footer-grid{grid-template-columns:1fr;gap:34px;}
  .partners-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:6px;}
}

@media (max-width:380px){
  .tl-title{font-size:var(--text-lead);}
}

/* =================================================================
   CONTACT PAGE
   ================================================================= */
.contact-main{background:var(--bg);}
/* Contact hero — same red-slab treatment as about/solution/product for a consistent page-hero language */
.contact-hero{position:relative;overflow:hidden;background:linear-gradient(112deg,var(--red-deep,#6E0A1D) 0%,var(--red) 62%);color:#fff;
  padding:clamp(54px,7vw,104px) 0 clamp(40px,4.5vw,68px);}
.contact-grid-lines,.contact-seam{display:none;}
.contact-hero-inner{position:relative;z-index:1;}
.contact-title{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h1);line-height:var(--lh-tight);letter-spacing:0;color:#fff;margin-top:6px;text-wrap:balance;}
.contact-lead{margin-top:clamp(16px,1.8vw,24px);font-size:var(--text-lead);line-height:var(--lh-relaxed);color:rgba(255,255,255,.9);max-width:56ch;}
/* breadcrumb on red hero → apply .is-on-red to the .page-crumb element (see shared rules) */
.contact-body{padding:clamp(36px,4.5vw,64px) 0 clamp(56px,7vw,100px);}
.contact-layout{display:grid;grid-template-columns:0.82fr 1.18fr;gap:clamp(40px,6vw,100px);align-items:stretch;}
.contact-info{display:flex;flex-direction:column;}
/* map lives inside the info column and fills the rest of its height (matches the form) */
.ci-map{position:relative;margin:clamp(24px,2.6vw,34px) 0 0;flex:1;min-height:clamp(240px,22vw,340px);overflow:hidden;border:1px solid var(--line);background:var(--surface);}
.ci-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0;filter:grayscale(.2) contrast(1.03);}
.ci-map-label{position:absolute;left:0;top:0;z-index:2;display:inline-flex;align-items:center;gap:8px;padding:9px 14px;
  font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--ink);background:rgba(253,253,252,.94);border-right:1px solid var(--line);border-bottom:1px solid var(--line);}
.ci-map-dot{width:8px;height:8px;background:var(--red);transform:skewX(-20deg);flex:none;}
.ci-lead{font-weight:600;font-size:var(--fluid-h5);line-height:var(--lh-snug);letter-spacing:0;color:var(--ink);}
.ci-phone{display:inline-block;margin-top:clamp(12px,1.6vw,20px);font-family:var(--sans-en);font-weight:600;font-size:var(--fluid-h2);letter-spacing:-.02em;line-height:var(--lh-none);color:var(--ink);transition:color .2s;}
.ci-phone:hover{color:var(--red);}
.ci-meta{margin-top:clamp(26px,3vw,40px);display:flex;flex-direction:column;gap:15px;}
.ci-row{display:grid;grid-template-columns:clamp(56px,6vw,72px) 1fr;gap:16px;align-items:baseline;font-size:var(--text-small);line-height:var(--lh-normal);color:var(--ink);}
.ci-row .ci-k{font-size:var(--text-caption);color:var(--muted);}
.ci-row a{color:var(--ink);transition:color .2s;}
.ci-row a:hover{color:var(--red);}
.ci-note{margin-top:clamp(26px,3vw,38px);padding-top:18px;border-top:2px solid var(--red);font-size:var(--text-small);line-height:var(--lh-relaxed);color:var(--muted);max-width:34ch;}
.contact-form-wrap{background:transparent;border:none;padding:0;}
/* TEMP: map takes the form's column while the form is hidden */
.contact-map-col{display:flex;flex-direction:column;}
.contact-map-col .ci-map{margin:0;}
.contact-form{display:flex;flex-direction:column;gap:clamp(22px,2.6vw,30px);}
.field{display:flex;flex-direction:column;gap:9px;}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,40px);}
.field label{font-size:var(--text-small);font-weight:500;letter-spacing:.01em;color:var(--muted);}
.field .req{color:var(--red);}
.field input,.field select,.field textarea{width:100%;font-family:var(--sans);font-size:var(--text-body);color:var(--ink);
  background:transparent;border:none;border-bottom:1.5px solid #D2CFC8;border-radius:0;padding:11px 2px;transition:border-color .2s;}
.field textarea{resize:vertical;min-height:84px;line-height:var(--lh-normal);}
.field input::placeholder,.field textarea::placeholder{color:var(--muted-2);}
.field input:hover,.field select:hover,.field textarea:hover{border-bottom-color:#A9A59C;}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-bottom-color:var(--red);}
.field select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:30px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317171A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 2px center;}
.contact-submit{align-self:flex-start;margin-top:clamp(10px,1.6vw,18px);}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0;}
.form-status{font-size:var(--text-small);line-height:var(--lh-normal);margin-top:2px;min-height:1em;}
.form-status.is-sending{color:var(--muted);}
.form-status.is-ok{color:#1C7A3D;}
.form-status.is-err{color:var(--red-dark);}

/* consent checkbox (PDPA) — custom box, native input kept for validation */
.field-consent{position:relative;display:flex;align-items:flex-start;gap:12px;margin-top:2px;cursor:pointer;}
.field-consent input{position:absolute;left:0;top:2px;width:20px;height:20px;margin:0;opacity:0;cursor:pointer;}
.consent-box{flex:none;width:20px;height:20px;margin-top:2px;border:1.5px solid var(--line);background:#fff;display:grid;place-items:center;transition:border-color .18s ease,background .18s ease;}
.consent-box::after{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) scale(0);margin-top:-1px;transition:transform .2s cubic-bezier(.16,.84,.3,1);}
.field-consent:hover .consent-box{border-color:var(--muted-3);}
.field-consent input:checked ~ .consent-box{background:var(--red);border-color:var(--red);}
.field-consent input:checked ~ .consent-box::after{transform:rotate(-45deg) scale(1);}
.field-consent input:focus-visible ~ .consent-box{outline:2px solid var(--red);outline-offset:2px;}
.consent-text{font-size:var(--text-small);line-height:var(--lh-normal);color:var(--muted);}
.consent-text a{color:var(--red);font-weight:500;text-decoration:underline;text-underline-offset:2px;}

@media (max-width:860px){
  .contact-layout{grid-template-columns:1fr;gap:clamp(28px,5vw,40px);}
  .contact-info{order:2;}
  .contact-map-col{order:3;}
}
@media (max-width:520px){
  .field-row{grid-template-columns:1fr;}
}

/* =================================================================
   SOLUTION DETAIL PAGE (solution.html)
   ================================================================= */
.sol-detail{background:var(--bg);}
/* solution detail hero — red slab, white text, left-aligned, flush left */
.sd-hero{position:relative;overflow:hidden;background:linear-gradient(112deg,var(--red-deep,#6E0A1D) 0%,var(--red) 62%);
  padding:clamp(54px,7vw,104px) 0 clamp(40px,4.5vw,68px);color:#fff;}
.sd-hero-inner{position:relative;z-index:2;}
.sd-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:clamp(18px,2.2vw,28px);
  font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;font-weight:500;
  color:rgba(255,255,255,.72);transition:color .2s ease,gap .2s ease;}
.sd-back:hover{color:#fff;gap:12px;}
.sd-back-arrow{font-family:var(--mono);}
/* English category name above the Thai title */
.sd-en{font-family:var(--mono);font-weight:700;font-size:var(--fluid-h5);letter-spacing:.02em;color:rgba(255,255,255,.85);text-transform:uppercase;}
.sd-title{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h2);line-height:var(--lh-tight);letter-spacing:0;color:#fff;margin-top:8px;text-wrap:balance;}
/* intro flows the full container width — no max-width, no early wrap */
.sd-intro{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:rgba(255,255,255,.9);margin-top:clamp(16px,1.6vw,22px);}

/* body: image + content */
.sd-body{padding:clamp(40px,5vw,72px) 0 clamp(18px,3vw,36px);}
.sd-grid{display:grid;grid-template-columns:0.92fr 1.08fr;gap:clamp(34px,5vw,72px);align-items:start;}
.sd-figure{position:relative;margin:0;overflow:hidden;border-radius:4px;aspect-ratio:4/3;background:var(--ink-2);
  box-shadow:0 8px 30px rgba(23,23,26,.08);}
.sd-figure img{width:100%;height:100%;object-fit:cover;display:block;}
.sd-figure-seam{position:absolute;top:0;bottom:0;left:0;width:6px;background:var(--red);z-index:2;}
.sd-content{display:flex;flex-direction:column;gap:clamp(26px,3.4vw,40px);padding-top:2px;}
.sd-h{font-weight:700;font-size:var(--text-title-xs);color:var(--ink);letter-spacing:-.01em;margin:0 0 16px;}
.sd-features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px;}
.sd-features li{position:relative;padding-left:26px;font-size:var(--text-body);line-height:var(--lh-normal);color:var(--ink);}
.sd-features li::before{content:"";position:absolute;left:0;top:8px;width:9px;height:9px;background:var(--red);
  clip-path:polygon(34% 0,100% 0,66% 100%,0 100%);}
.sd-apps{display:flex;flex-wrap:wrap;gap:10px;}
.sd-app{font-size:var(--text-small);color:var(--muted-2);background:var(--surface);border:1px solid var(--line);border-radius:2px;padding:8px 14px;}

/* CTA band */
.sd-cta{position:relative;overflow:hidden;margin-top:clamp(36px,5vw,64px);
  background:linear-gradient(135deg,#CE1430 0%,#C8102E 46%,#A40E25 100%);}
.sd-cta-hatch{position:absolute;inset:0;background:repeating-linear-gradient(116deg,rgba(255,255,255,.06) 0 1.5px,transparent 1.5px 17px);}
.sd-cta-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;
  padding:clamp(36px,4.4vw,58px) var(--pad);}
.sd-cta .eyebrow .dash{background:rgba(255,255,255,.85);}
.sd-cta .eyebrow .label{color:#fff;}
.sd-cta-title{font-family:var(--sans);font-weight:700;font-size:var(--fluid-h4);line-height:var(--lh-snug);color:#fff;margin-top:10px;}

/* =================================================================
   PRODUCT DETAIL TEMPLATE (product.html) — data-driven, one layout.
   ① hero (red)  ② body 2-col  ③ gallery + lightbox  ④ CTA+footer.
   ================================================================= */
.pd-main{background:var(--bg);}

/* BRAND TABS — prominent segmented control, centered. Sits INSIDE the hero
   between the back/crumb row and the hero body. The active tab is unmistakable
   (brand red, white text, bold) so the reader always knows which brand's
   content is on screen. */
.pd-brand-tabs-wrap{margin-top:0;margin-bottom:clamp(16px,2vw,24px);
  position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:10px;}
/* When tabs follow the back-button strip, shrink the strip's own bottom gap so the
   tabs don't sit in a sea of whitespace. The original topbar margin stays untouched
   for products that don't have brand tabs. */
.pd-hero-topbar:has(+ #pd-brand-tabs:not([hidden])){margin-bottom:clamp(14px,1.6vw,20px);}
.pd-brand-tabs-wrap[hidden]{display:none;}
.pd-brand-tabs-list{display:flex;gap:0;align-items:stretch;width:100%;
  background:#f3f3f3;padding:5px;border:1px solid var(--line);border-radius:999px;}
.pd-brand-tab{appearance:none;cursor:pointer;background:transparent;color:var(--ink-2);
  border:0;margin:0;padding:11px 32px;border-radius:999px;flex:1 1 0;
  font:inherit;font-size:1rem;font-weight:600;letter-spacing:.02em;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;}
.pd-brand-tab:hover{color:var(--ink);background:rgba(0,0,0,.04);}
.pd-brand-tab[aria-selected="true"]{background:var(--red);color:#fff;font-weight:700;
  box-shadow:0 2px 8px rgba(227,30,36,.25);transform:translateY(-1px);}
.pd-brand-tab[aria-selected="true"]:hover{background:var(--red);color:#fff;}
.pd-brand-tab-logo{height:20px;width:auto;max-width:88px;object-fit:contain;display:block;
  filter:grayscale(1) opacity(.6);transition:filter .2s ease;}
.pd-brand-tab:hover .pd-brand-tab-logo{filter:none;}
.pd-brand-tab[aria-selected="true"] .pd-brand-tab-logo{filter:brightness(0) invert(1);}
.pd-brand-tab-label,.pd-brand-tab-text{font-size:1rem;line-height:1;}
@media (max-width:640px){
  .pd-brand-tabs-list{width:100%;padding:4px;}
  .pd-brand-tab{flex:1;min-width:0;padding:10px 16px;font-size:.9rem;min-height:40px;}
  .pd-brand-tab-label,.pd-brand-tab-text{font-size:.9rem;}
}

/* ① HERO — red slab, 2-col (copy LEFT + product image RIGHT) */
.pd-hero{position:relative;overflow:hidden;background:var(--surface);color:var(--ink);border-bottom:1px solid var(--line);
  padding:clamp(28px,3vw,44px) 0 clamp(28px,3vw,42px);}
/* Top strip — back button + breadcrumb span the FULL wrap width above the 2-col grid so
   the crumb has room to sit on ONE line even for the longest paths. Each on its own row. */
.pd-hero-topbar{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(12px,1.6vw,18px);
  margin-bottom:clamp(32px,3.6vw,52px);}
.pd-hero-topbar .pd-back{align-self:flex-start;}
.pd-hero-topbar .page-crumb{width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-bottom:0;}
.pd-hero-topbar .page-crumb::-webkit-scrollbar{display:none;}
.pd-hero-topbar .page-crumb > *{flex:none;white-space:nowrap;}
.pd-hero-topbar .page-crumb-cur{color:var(--ink);font-weight:600;}
@media (max-width:640px){
  .pd-hero-topbar .page-crumb{overflow:hidden;}
  .pd-hero-topbar .page-crumb-cur{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;}
}

/* Grid: content-aware weighting so the row balances without an ad-hoc column ratio.
   align-items:center vertically centres the copy against the taller product image.
   min-height keeps the hero row consistent across products — without it, pages with a
   panoramic hero image (Solberg) end up shorter than pages with portrait product cutouts
   (Inert-Gas), and pages with 2-line xl titles push taller than either. Fixed frame absorbs
   whatever the per-product aspect ratio gives us. */
.pd-hero-grid{position:relative;z-index:2;display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,0.9fr);
  gap:clamp(32px,4.5vw,72px);align-items:center;
  min-height:clamp(440px,38vw,540px);}
.pd-hero[data-has-image="false"] .pd-hero-grid{grid-template-columns:minmax(0,1fr);}
.pd-hero[data-has-image="false"] .pd-hero-copy{max-width:68ch;}
/* Single flex gap replaces per-child margins → consistent rhythm even with any module hidden.
   Larger gap so brand/title/intro/CTA groups have room to breathe. 68ch (was 62ch) gives long
   xl-band titles enough room to keep more of the phrase on line 1 before wrapping. */
.pd-hero-copy{display:flex;flex-direction:column;gap:clamp(20px,2.4vw,32px);max-width:68ch;
  container-type:inline-size;container-name:heroCopy;}
.pd-hero-copy > *{margin:0;}

/* back button — subtle outline on light bg. Sits BELOW the breadcrumb per user spec. */
.pd-back{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;
  min-height:36px;padding:6px 14px;line-height:var(--lh-snug);   /* min-height: long category names wrap to 2 lines on phones */
  font-family:var(--sans);font-weight:500;font-size:var(--text-small);
  color:var(--muted-2);background:transparent;border:1px solid var(--line);
  transition:color .2s ease,border-color .2s ease,gap .2s ease;}
.pd-back:hover{color:var(--red);border-color:var(--red);gap:14px;}
.pd-back-arrow{font-family:var(--mono);font-size:var(--text-body);line-height:1;}

.pd-hero-headline{display:flex;flex-direction:column;gap:clamp(6px,0.8vw,12px);}
/* Title uses container-query scaling so long strings shrink within the copy column.
   For xl-band titles we RELEASE nowrap and let text-wrap:balance take 2 lines — silent
   truncation is worse than a controlled wrap. */
.pd-title{font-family:var(--sans-en),var(--sans);font-weight:700;line-height:var(--lh-tight);letter-spacing:-.005em;
  color:var(--ink);text-wrap:balance;font-size:var(--fluid-h2);margin:0;}
@container heroCopy (min-width:440px){
  .pd-title[data-title-len-band="sm"]{font-size:clamp(36px,7.2cqi,54px);white-space:nowrap;text-wrap:nowrap;}
  .pd-title[data-title-len-band="md"]{font-size:clamp(32px,6.4cqi,46px);white-space:nowrap;text-wrap:nowrap;}
  /* lg = 27-34 chars: sized to keep "Inert Gas Fire Suppression System" on one line down to
     the 440px column-width trigger; below that, container query releases and default
     text-wrap:balance takes over. */
  .pd-title[data-title-len-band="lg"]{font-size:clamp(30px,5.8cqi,42px);white-space:nowrap;text-wrap:nowrap;}
  /* xl (35+ chars) wraps on 2 lines — silent truncation is worse. text-wrap:pretty prefers
     filling each line with as many words as fit (over rigid balancing) so long modifier
     words like "Proportioning" stay on line 1 when the column has room. */
  .pd-title[data-title-len-band="xl"]{font-size:clamp(30px,5.6cqi,40px);text-wrap:pretty;}
}
/* Thai-only titles never nowrap-force — Thai has no word boundaries, forcing single-line clips glyphs. */
.pd-title[data-lang="th"]{white-space:normal;text-wrap:balance;font-size:clamp(24px,4.4cqi,36px);}

/* Hero image column — 2-row grid: certs row + image row. Image never grows into the cert
   lane regardless of aspect / cert count. Fixed height (not min-height) so every product's
   image column is the same visual frame. minmax(0,1fr) + min-height:0 on the img lets a
   695px-tall image contain-fit properly (default 1fr grows to fit content). Image is
   explicitly placed in row 2 so it stays centered in its lane even when the certs row is
   [hidden] — without grid-row:2, an auto-placed image would collapse into the empty row 1
   and stick to the top of the container. The :not(:has) rule collapses the empty cert row
   and its gap when no certs render, so the image gets the whole container to centre in. */
/* Flex column: cert logos (top) → product image (fills) → NFPA badge (bottom).
   Flex handles absent/hidden certs cleanly (display:none collapses with no leftover gap),
   so no :has() row juggling is needed. */
.pd-hero-image{margin:0;background:transparent;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  height:clamp(360px,36vw,500px);gap:clamp(10px,1.4vw,18px);
  overflow:hidden;}
.pd-hero-image img{flex:1 1 auto;
  min-height:0;min-width:0;
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;}
/* Cert row — centred above the product image so the badges always sit "above the product"
   regardless of the image's aspect ratio. Real-color badges on the surface below. */
.pd-hero-certs{flex:none;display:flex;align-items:center;gap:clamp(10px,1.2vw,16px);}
.pd-hero-certs[hidden]{display:none;}
.pd-hero-certs .pd-cert{max-height:clamp(30px,3.2vw,40px);width:auto;height:auto;display:block;}
/* NFPA install-standard badge — pill under the image */
.pd-hero-nfpa{flex:none;display:inline-flex;align-items:center;gap:10px;
  padding:8px 18px;border:1px solid var(--line);border-radius:999px;background:#fff;}
.pd-hero-nfpa[hidden]{display:none;}
/* long standards strings (NFPA 17A · NFPA 96, UL · FM · VdS · ATEX) must not push the pill past a phone's edge */
.pd-hero-nfpa{max-width:100%;flex-wrap:wrap;row-gap:2px;}
.pd-nfpa-badge{font-family:var(--sans-en);font-weight:700;font-size:var(--text-lead);letter-spacing:.01em;color:var(--red);}
.pd-nfpa-label{font-size:var(--text-caption);color:var(--muted);letter-spacing:.01em;}

/* ② BODY — 2-col: product details LEFT, spec table RIGHT.
   is-spec-heavy: when the spec table has many rows the right column stretches far below the
   feature list and leaves a lot of empty air on the left. In that case stack into 1 column
   (features on top, full-width spec table below) so both blocks read at their natural size. */
.pd-body{padding:clamp(28px,3.4vw,44px) 0;background:var(--surface);border-top:1px solid var(--line);}
.pd-body-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(48px,5.5vw,96px);align-items:start;}
.pd-body-grid.is-spec-heavy{grid-template-columns:minmax(0,1fr);gap:clamp(32px,4vw,56px);}
/* grid items default to min-width:auto → a wide spec table would stretch the single track past the viewport */
.pd-body-grid > *{min-width:0;}
.pd-block .eyebrow{margin-bottom:clamp(18px,2.2vw,26px);}
.pd-details{font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--ink);}
.pd-details p{margin:0 0 clamp(14px,1.6vw,20px);}
.pd-details p:last-child{margin-bottom:0;}
.pd-apps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;}
.pd-apps li{display:flex;align-items:flex-start;gap:14px;font-size:var(--text-body);line-height:var(--lh-snug);color:var(--ink);}
.pd-app-tick{flex:none;margin-top:8px;width:10px;height:10px;background:var(--red);clip-path:polygon(34% 0,100% 0,66% 100%,0 100%);}

/* ③ GALLERY — horizontal carousel. Items in a flex row that scroll-snaps horizontally.
   Overflowing items stay to the right; a soft fade + prev/next arrows + dot pagination
   tell the user there is more. Each item still opens the lightbox on click. */
.pd-gallery-sec{padding:clamp(28px,3.4vw,48px) 0 clamp(48px,5.5vw,80px);background:var(--bg);}
.pd-gallery-sec .eyebrow{margin-bottom:clamp(22px,2.6vw,32px);}
.pd-gallery-viewport{position:relative;}
.pd-gallery-track{display:flex;gap:clamp(14px,1.6vw,20px);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:6px;}
.pd-gallery-track::-webkit-scrollbar{display:none;}
.pd-gallery-item{position:relative;flex:0 0 calc((100% - 3 * clamp(14px,1.6vw,20px)) / 4);scroll-snap-align:start;
  margin:0;padding:0;border:0;background:#17171A;overflow:hidden;aspect-ratio:4/3;cursor:zoom-in;display:block;
  transition:transform .3s ease,box-shadow .3s ease;}
.pd-gallery-item:hover{transform:translateY(-2px);box-shadow:0 18px 34px -22px rgba(23,23,26,.4);}
.pd-gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.16,.84,.3,1);}
.pd-gallery-item:hover img{transform:scale(1.06);}
.pd-gallery-cap{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:24px 14px 12px;
  font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;color:#fff;
  background:linear-gradient(to top,rgba(9,9,11,.82) 0%,rgba(9,9,11,0) 100%);pointer-events:none;}
/* right-edge fade — hints "more to the right" until the user scrolls to the end */
.pd-gal-fade{position:absolute;top:0;bottom:6px;right:0;width:clamp(60px,8vw,120px);z-index:2;pointer-events:none;
  background:linear-gradient(to right,rgba(250,250,248,0) 0%,var(--bg) 90%);
  opacity:1;transition:opacity .3s ease;}
.pd-gal-fade[data-hidden="true"]{opacity:0;}
/* prev / next arrows — sit on top of the track, mid-height */
.pd-gal-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;
  display:grid;place-items:center;border-radius:50%;
  background:#fff;color:var(--ink);border:1px solid var(--line);
  font-family:var(--sans-en);font-size:22px;line-height:1;cursor:pointer;
  box-shadow:0 8px 22px -10px rgba(23,23,26,.28);transition:transform .2s ease,background .2s ease,color .2s ease;}
.pd-gal-nav:hover{background:var(--red);color:#fff;border-color:var(--red);transform:translateY(-50%) scale(1.05);}
.pd-gal-nav:disabled{opacity:0;pointer-events:none;transform:translateY(-50%) scale(.9);}
.pd-gal-prev{left:-14px;}
.pd-gal-next{right:-14px;}
/* pagination dots below the track */
.pd-gal-dots{display:flex;justify-content:center;gap:8px;margin-top:clamp(18px,2vw,26px);}
.pd-gal-dot{width:26px;height:3px;padding:0;border:0;background:var(--line);cursor:pointer;transition:background .2s ease,width .2s ease;}
.pd-gal-dot:hover{background:var(--muted-2);}
.pd-gal-dot.is-active{background:var(--red);width:44px;}

/* LIGHTBOX — fullscreen overlay */
.pd-lightbox{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;background:rgba(9,9,11,.92);padding:clamp(20px,5vw,60px);}
.pd-lightbox[hidden]{display:none;}
.pd-lb-img{max-width:min(1200px,90vw);max-height:calc(88vh - 40px);width:auto;height:auto;object-fit:contain;display:block;background:#17171A;}
/* Doc mode — the active image is an SVG certificate scan with only a viewBox for
   intrinsic size (would render tiny with the default auto/auto). Force a tall height,
   let width:auto preserve aspect, and swap the slide background to white so the paper
   doesn't sit on a near-black panel. */
.pd-lightbox.pd-lb-is-doc .pd-lb-img{height:min(calc(88vh - 40px),1000px);width:auto;max-width:90vw;background:#fff;}
.pd-lb-caption{max-width:min(1200px,90vw);font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:rgba(255,255,255,.85);text-align:center;}
.pd-lb-close,.pd-lb-nav{position:fixed;z-index:2;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.06);color:#fff;
  font-size:28px;line-height:1;cursor:pointer;transition:background .2s ease,border-color .2s ease;}
.pd-lb-close:hover,.pd-lb-nav:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.5);}
.pd-lb-close{top:24px;right:24px;width:48px;height:48px;border-radius:50%;font-size:24px;font-family:var(--sans);}
.pd-lb-nav{top:50%;transform:translateY(-50%);width:52px;height:52px;font-family:var(--sans-en);}
.pd-lb-prev{left:24px;}
.pd-lb-next{right:24px;}

/* mobile fallbacks */
@media (max-width:900px){
  .pd-hero-grid{grid-template-columns:1fr;gap:clamp(24px,5vw,36px);}
  .pd-hero-copy{max-width:none;}
  /* not aspect-ratio: with the desktop fixed height still applied it derived width = 480px and the
     figure spilled past a 375px screen (image cut on the right). Full width + a phone-sized height. */
  .pd-hero-image{width:100%;height:clamp(300px,88vw,460px);min-height:0;}
  .pd-body-grid{grid-template-columns:minmax(0,1fr);gap:clamp(32px,5vw,52px);}
  .pd-gallery-item{flex:0 0 calc((100% - 2 * clamp(14px,1.6vw,20px)) / 2.5);}  /* 2.5 visible → half-cut hints more */
  .pd-lb-close{top:14px;right:14px;width:40px;height:40px;}
  /* phone: the image fills the width, so mid-height arrows sat ON the photo — invisible over a white
     certificate. Park them in the dark band under the image instead, solid so they always read. */
  .pd-lb-nav{width:44px;height:44px;top:auto;bottom:max(18px,env(safe-area-inset-bottom));transform:none;background:rgba(40,40,44,.92);}
  .pd-lb-nav:hover{transform:none;background:rgba(40,40,44,.92);}
  .pd-lb-prev{left:calc(50% - 56px);}
  .pd-lb-next{right:calc(50% - 56px);}
  .pd-lb-img{max-height:calc(100dvh - 190px);}
}
@media (max-width:560px){
  .pd-gallery-item{flex:0 0 calc(100% - 40px);}  /* one-plus-peek */
}

/* =================================================================
   PRODUCT DETAIL — extended modules (brand logo / subtitle / standards
   line / env tag / cert badges / highlights / spec table / fire class
   / tech blocks / app photo grid / gallery grid / video QR band)
   Every module hides itself when its data is missing.
   ================================================================= */

/* HERO extras ---------------------------------------------------------- */
/* Brand logo sits above the title as an identity anchor. Real-color image or text fallback. */
.pd-brand-logo{display:block;}
.pd-brand-logo[hidden]{display:none;}
.pd-brand-logo img{max-height:clamp(40px,4.6vw,64px);max-width:min(280px,65%);width:auto;height:auto;display:block;}
.pd-brand-text{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h4);letter-spacing:0;color:var(--ink);}
/* Thai subtitle acts as the H1 in Thai — treat it like a secondary heading, not body copy.
   Same --ink as the title + medium weight sets it above the muted intro paragraph beneath
   so the reader parses "title → title (TH) → description" instead of "title → two paragraphs". */
.pd-subtitle{font-size:var(--text-lead);line-height:var(--lh-snug);color:var(--ink);font-weight:500;letter-spacing:-.005em;}
/* CTA row — single download button using site's shared .btn-outline .btn-lg (matches home hero) */
.pd-hero-cta{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;}
.pd-datasheet-btn .pd-ds-size{color:var(--muted-2);font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;margin-left:8px;}

/* ---- TRUST STRIP ---------------------------------------------------
   Full-width band below the hero grid — centered cluster of standards + env + certs.
   Brand lives up in the hero copy; this strip is pure credentials. */
.pd-trust-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:clamp(18px,2.6vw,36px);
  padding-top:clamp(20px,2.4vw,30px);margin-top:clamp(28px,3.4vw,44px);border-top:1px solid var(--line);}
.pd-trust-strip[hidden]{display:none;}
.pd-trust-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 10px;}
.pd-trust-meta[hidden]{display:none;}
.pd-standards{list-style:none;margin:0;padding:0;display:inline-flex;flex-wrap:wrap;justify-content:center;gap:6px;}
.pd-standard{display:inline-flex;align-items:center;padding:4px 10px;border:1px solid var(--line);color:var(--muted);
  font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;text-transform:uppercase;}
.pd-env-tag{display:inline-flex;align-items:center;font-family:var(--sans-en);font-weight:700;font-size:var(--text-caption);letter-spacing:.08em;
  text-transform:uppercase;color:var(--ink);padding:4px 10px;background:transparent;border:1px solid var(--ink);}
.pd-env-tag[hidden]{display:none;}
.pd-trust-certs{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:clamp(14px,1.8vw,22px);}
.pd-trust-certs[hidden]{display:none;}
.pd-cert{max-height:clamp(32px,3.4vw,42px);width:auto;display:block;}

/* Hero intro — margin cleared, .pd-hero-copy's flex gap handles spacing */
.pd-hero-intro{font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--muted);max-width:58ch;}

/* =================================================================
   STICKY SUB-NAV — jump between sections. Opaque surface + hairline
   (NO glassmorphism per anti-patterns). Auto-hides tabs whose target
   section is missing/hidden.
   ================================================================= */
.pd-subnav{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid var(--line);}
.pd-subnav[hidden]{display:none;}
.pd-subnav-inner{display:flex;align-items:stretch;gap:16px;}
.pd-subnav-list{list-style:none;margin:0;padding:0;display:flex;align-items:stretch;gap:0;flex-wrap:nowrap;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.pd-subnav-list::-webkit-scrollbar{display:none;}
.pd-subnav-link{position:relative;display:flex;align-items:center;height:52px;padding:0 clamp(14px,1.6vw,22px);
  font-family:var(--sans);font-weight:500;font-size:var(--text-small);color:var(--muted);white-space:nowrap;
  transition:color .18s ease;}
.pd-subnav-link:hover{color:var(--ink);}
.pd-subnav-link.is-active{color:var(--ink);font-weight:600;}
.pd-subnav-link.is-active::after{content:"";position:absolute;left:clamp(14px,1.6vw,22px);right:clamp(14px,1.6vw,22px);bottom:-1px;
  height:2px;background:var(--red);}
/* Section anchors sit under sticky header + subnav — reserve clearance */
.pd-main :is(#pd-overview,#pd-spec-block,#pd-lineup-sec,#pd-tech-sec,#pd-apps-sec,#pd-gallery-sec){scroll-margin-top:64px;}
@media (max-width:560px){
  .pd-subnav-link{height:46px;font-size:var(--text-caption);padding:0 12px;}
  .pd-main :is(#pd-overview,#pd-spec-block,#pd-lineup-sec,#pd-tech-sec,#pd-apps-sec,#pd-gallery-sec){scroll-margin-top:52px;}
}

/* =================================================================
   RELATED PRODUCTS — siblings in same category. Simple hover
   (border-color + arrow-gap widen only). No lift, no shadow bloom,
   no red decorative triangle, no uppercase kicker.
   ================================================================= */
.pd-related-sec{padding:clamp(40px,5vw,72px) 0;background:var(--surface);border-top:1px solid var(--line);}
.pd-related-sec[hidden]{display:none;}
.pd-related-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;
  margin-bottom:clamp(22px,2.6vw,32px);flex-wrap:wrap;}
.pd-related-all{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted-2);transition:color .2s,gap .2s;display:inline-flex;align-items:center;gap:8px;}
.pd-related-all:hover{color:var(--red);gap:12px;}
/* auto-fill (not auto-fit) so tracks don't collapse when count is small — a lone card
   keeps card-sized width (~320px) instead of stretching across the row like a banner. */
.pd-related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,340px));gap:clamp(14px,1.8vw,22px);justify-content:start;}
.pd-related-card{position:relative;display:flex;flex-direction:column;justify-content:space-between;
  gap:clamp(18px,2vw,26px);min-height:180px;padding:clamp(20px,2.2vw,26px);
  background:#fff;border:1px solid var(--line);color:var(--ink);
  transition:border-color .18s ease;}
.pd-related-card:hover{border-color:var(--ink);}
.pd-related-brand{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;
  color:var(--muted-2);text-transform:none;}
.pd-related-name{margin:0;font-family:var(--sans),var(--sans-en);font-weight:600;font-size:var(--fluid-h5);
  line-height:var(--lh-snug);color:var(--ink);text-wrap:balance;}
.pd-related-more{display:inline-flex;align-items:center;gap:8px;font-family:var(--sans);font-size:var(--text-small);
  color:var(--muted-2);transition:color .18s ease,gap .18s ease;}
.pd-related-card:hover .pd-related-more{color:var(--red);gap:12px;}
.pd-related-card.is-soon{opacity:.6;pointer-events:none;}
.pd-related-card.is-soon .pd-related-more::after{content:"เร็ว ๆ นี้";margin-left:auto;
  font-family:var(--mono);font-size:var(--text-caption);color:var(--muted-3);}
@media (max-width:560px){.pd-related-grid{grid-template-columns:1fr;}}

/* HIGHLIGHTS ---------------------------------------------------------- */
.pd-highlights{padding:clamp(24px,3vw,36px) 0;background:var(--bg);border-top:1px solid var(--line);}
.pd-hl-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,1.8vw,24px);}
/* NOTE: previous version used border-left (side-stripe) which is a project anti-pattern.
   Value + label stack with a full hairline border reads as data, not "highlighted card". */
.pd-hl{padding:clamp(20px,2.2vw,28px) clamp(18px,2vw,24px);background:#fff;border:1px solid var(--line);}
.pd-hl-v{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h3);line-height:1.1;letter-spacing:-.02em;color:var(--red);}
.pd-hl-v .hl-u{font-size:.44em;font-weight:600;color:var(--muted);margin-left:6px;letter-spacing:.02em;}
/* Text-only values (NFPA 11, No Power, FM · ATEX, Auto…) don't behave like big display
   numerals — they need less presence so a "300 bar" tile and a "No Power" tile read as
   the same "kind" of highlight. product.js flags text values with .is-text-value. */
.pd-hl.is-text-value .pd-hl-v{font-size:var(--fluid-h5);letter-spacing:-.005em;}
.pd-hl-k{margin-top:10px;font-size:var(--text-small);color:var(--muted);line-height:var(--lh-snug);}
@media (max-width:900px){.pd-hl-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.pd-hl-grid{grid-template-columns:1fr;}}

/* FEATURE LIST (bulleted with red square markers) -------------------- */
.pd-feature-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;}
.pd-feature-list li{position:relative;padding-left:22px;font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--ink);}
.pd-feature-list li::before{content:"";position:absolute;left:0;top:.65em;width:10px;height:10px;background:var(--red);}

/* SPEC TABLE ---------------------------------------------------------- */
.pd-spec-table table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);}
.pd-spec-table th,.pd-spec-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);font-size:var(--text-small);}
.pd-spec-table th{background:#F5F3EE;font-family:var(--sans-en);font-weight:700;font-size:var(--text-caption);letter-spacing:.04em;color:var(--muted);text-transform:uppercase;}
.pd-spec-table td{color:var(--ink);}
.pd-spec-table td:first-child{font-family:var(--sans-en);font-weight:700;color:var(--red);white-space:nowrap;}
.pd-spec-table tr:last-child td{border-bottom:none;}
/* Chip list inside a cell — for standards/certs columns where the value is naturally
   a set of tags rather than a sentence (SolbErg RE-HEALING RF3: UL 162 · ULC S564 · FM · EN · ICAO).
   Data-driven: any spec cell whose value is an array renders as chips. */
.pd-spec-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 6px;}
.pd-spec-chips li{display:inline-flex;align-items:center;padding:3px 8px;background:var(--surface);border:1px solid var(--line);
  font-family:var(--sans-en);font-weight:500;font-size:var(--text-caption);letter-spacing:.02em;color:var(--ink);line-height:1.35;}
.pd-spec-note{margin-top:12px;font-size:var(--text-small);color:var(--muted);line-height:var(--lh-snug);}
/* Phone: 3+ column spec tables become one card per row — first cell = card title,
   the rest print their column header (data-label) on the left, value on the right. */
@media (max-width:640px){
  .pd-spec-table td:first-child{white-space:normal;}
  .pd-spec-table td{overflow-wrap:anywhere;}
  .pd-spec-table.is-stack thead{display:none;}
  .pd-spec-table.is-stack table,.pd-spec-table.is-stack tbody,.pd-spec-table.is-stack tr{display:block;width:100%;}
  .pd-spec-table.is-stack table{border:0;background:none;}
  .pd-spec-table.is-stack tr{background:#fff;border:1px solid var(--line);padding-bottom:6px;}
  .pd-spec-table.is-stack tr + tr{margin-top:12px;}
  .pd-spec-table.is-stack td{display:grid;grid-template-columns:minmax(84px,38%) minmax(0,1fr);gap:12px;
    padding:8px 16px;border-bottom:0;overflow-wrap:anywhere;}
  .pd-spec-table.is-stack td::before{content:attr(data-label);font-family:var(--sans-en);font-weight:700;
    font-size:var(--text-caption);letter-spacing:.04em;text-transform:uppercase;color:var(--muted);line-height:1.5;}
  .pd-spec-table.is-stack td:first-child{display:block;white-space:normal;padding:14px 16px 12px;margin-bottom:6px;
    background:#F5F3EE;border-bottom:1px solid var(--line);font-size:var(--text-body);}
  .pd-spec-table.is-stack td:first-child::before{content:none;}
}

/* FIRE CLASS badges --------------------------------------------------- */
.pd-fireclass{padding:clamp(28px,3.4vw,44px) 0;background:var(--surface);border-top:1px solid var(--line);}
.pd-fireclass .eyebrow{margin-bottom:clamp(20px,2.4vw,30px);}
/* auto-fill (not auto-fit) + fixed max cell width so a single icon stays icon-sized instead
   of stretching to fill the row like a banner. Products with 1-2 classes read as "these are
   the classes" — not "one big empty stretched card". */
.pd-fc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,120px));
  gap:clamp(16px,1.8vw,24px);justify-content:start;align-items:start;}
/* Fire-class icon = full illustrated mark (badge + illustration + English caption baked in).
   No wrapper card, no Thai description — the SVG IS the tile. */
.pd-fc-icon{width:100%;height:auto;display:block;}

/* TECHNOLOGY sub-blocks — stacked: header on top, media row below */
.pd-tech{padding:clamp(32px,4vw,52px) 0;background:var(--surface);border-top:1px solid var(--line);}
.pd-tech-list{display:flex;flex-direction:column;gap:clamp(36px,4.4vw,56px);}
/* Stacked: copy on top, media below. Copy fills the full container width so long descriptions
   don't wrap "half-way through" the container. Reading comfort is set at the paragraph level
   (line-height on .pd-tech-desc) instead of by capping copy width. */
.pd-tech-block{display:flex;flex-direction:column;gap:clamp(18px,2.2vw,28px);}
.pd-tech-copy{display:flex;flex-direction:column;gap:10px;}
.pd-tech-title{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h4);line-height:var(--lh-tight);color:var(--ink);margin:0;}
.pd-tech-sub{font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--red);margin:0;font-weight:500;}
.pd-tech-desc{font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--muted);margin:0;}
.pd-tech-bullets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.pd-tech-bullets li{position:relative;padding-left:20px;font-size:var(--text-body);line-height:var(--lh-relaxed);color:var(--ink);}
.pd-tech-bullets li::before{content:"";position:absolute;left:0;top:.65em;width:9px;height:9px;background:var(--red);}
.pd-tech-note{display:flex;gap:12px;align-items:baseline;margin:0;padding:12px 16px;
  background:#faf4f4;border-left:3px solid var(--red);}
.pd-tech-note-label{flex:none;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  font-weight:700;color:var(--red);}
.pd-tech-note-text{font-size:var(--text-body);line-height:var(--lh-snug);color:var(--ink);}

/* Per-category model grid inside a tech block — replaces bullets for products
   whose "spec" is a list of model variants, each with its own photo. Tiles are
   lightbox-triggers; the grid uses auto-fill so 3-4 cols fit at desktop width,
   collapsing to 2 cols on tablet and 1 on phone. */
.pd-tech-models{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:clamp(10px,1.2vw,16px);margin:4px 0;}
.pd-tech-model{appearance:none;margin:0;background:#fff;border:1px solid var(--line);
  cursor:pointer;display:flex;flex-direction:column;overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.pd-tech-model:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(0,0,0,.08);border-color:var(--red);}
.pd-tech-model:focus-visible{outline:2px solid var(--red);outline-offset:2px;}
.pd-tech-model-photo{aspect-ratio:16/10;background:#f6f6f6;overflow:hidden;}
.pd-tech-model-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.pd-tech-model-name{padding:10px 12px;font-size:.84rem;line-height:1.35;color:var(--ink);
  font-weight:500;}
.pd-tech-model-spec{display:block;margin-top:6px;font-size:.76rem;font-weight:400;line-height:1.5;color:var(--muted);}
@media (max-width:640px){
  .pd-tech-models{grid-template-columns:1fr 1fr;gap:8px;}
  .pd-tech-model-name{font-size:.76rem;padding:8px 10px;}
  .pd-tech-model-spec{font-size:.7rem;}
}
.pd-tech-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:clamp(14px,1.6vw,20px);align-items:stretch;}
.pd-tech-fig,.pd-tech-chart{margin:0;background:#F5F3EE;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:16px;min-height:200px;}
.pd-tech-fig img,.pd-tech-chart img{max-width:100%;max-height:280px;width:auto;height:auto;object-fit:contain;display:block;}
.pd-tech-chart{background:#fff;border:1px solid var(--line);flex-direction:column;justify-content:center;gap:12px;padding:20px;}
.pd-tech-chart figcaption{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--muted);text-align:center;}
/* Tech-block video — sits in the media row alongside images / charts */
.pd-tech-video{margin:0;background:#000;overflow:hidden;aspect-ratio:16/9;display:block;}
.pd-tech-video .pd-video-embed{width:100%;height:100%;}
.pd-tech-video iframe,.pd-tech-video video{width:100%;height:100%;display:block;border:0;}

/* LINEUP — parts / components / variants grid. Smaller tiles than app photos with
   an added description line beneath the name. White ground so red hardware pops. */
.pd-lineup-sec{padding:clamp(28px,3.4vw,44px) 0;background:#fff;border-top:1px solid var(--line);}
.pd-lineup-sec .eyebrow{margin-bottom:clamp(22px,2.6vw,32px);}
.pd-lineup-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,1.8vw,22px);}
.pd-lineup-tile{margin:0;display:grid;grid-template-rows:auto 1fr;background:var(--surface);border:1px solid var(--line);
  overflow:hidden;cursor:zoom-in;transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease;}
.pd-lineup-tile:hover{border-color:var(--ink);transform:translateY(-2px);box-shadow:0 18px 36px -22px rgba(23,23,26,.28);}
.pd-lineup-tile:hover .pd-lineup-photo img{transform:scale(1.04);}
.pd-lineup-tile:focus-visible{outline:2px solid var(--red);outline-offset:3px;}
.pd-lineup-photo img{transition:transform .3s ease;}
/* Fixed photo container height (not aspect-ratio) so all tiles share the same photo area
   regardless of the source image's natural aspect. Images sit centred at their natural
   proportions, capped by the container — portraits stay tall-narrow, landscapes stay
   wide-short, but visual "height weight" is consistent across every tile. */
.pd-lineup-photo{position:relative;height:clamp(160px,15vw,200px);background:#fff;display:flex;align-items:center;justify-content:center;padding:clamp(18px,2.2vw,28px);}
.pd-lineup-photo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;}
.pd-lineup-cap{padding:16px 18px 18px;display:flex;flex-direction:column;gap:4px;border-top:1px solid var(--line);background:#fff;}
.pd-lineup-name{font-family:var(--sans-en);font-weight:600;font-size:var(--text-body);color:var(--ink);line-height:var(--lh-snug);letter-spacing:.005em;}
.pd-lineup-desc{font-size:var(--text-small);color:var(--muted);line-height:var(--lh-snug);}
@media (max-width:1100px){.pd-lineup-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:760px){.pd-lineup-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:420px){.pd-lineup-grid{grid-template-columns:1fr;}}

/* APPLICATIONS — visual tiles first (photo + label under), overflow chips underneath.
   Photos are the primary read; extra applications (no photo) show as compact chips below. */
.pd-apps-sec{padding:clamp(28px,3.4vw,44px) 0;background:var(--bg);border-top:1px solid var(--line);}
.pd-apps-sec .eyebrow{margin-bottom:clamp(22px,2.6vw,32px);}
/* Column count is data-driven — product.js sets --apps-cols to whichever count divides
   evenly for that photo array (5 → 5-col; 6 → 3-col; 4 or 8 → 4-col; 3 or 7 → 3-col…).
   Prevents orphan rows like "5 photos in 3-col = row 2 half empty". */
.pd-apps-grid{display:grid;grid-template-columns:repeat(var(--apps-cols,3),1fr);gap:clamp(16px,2vw,26px);}
.pd-app-tile{margin:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);overflow:hidden;
  transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease;}
.pd-app-tile:hover{border-color:var(--red);transform:translateY(-2px);box-shadow:0 18px 36px -22px rgba(23,23,26,.28);}
.pd-app-tile .pd-app-photo{position:relative;overflow:hidden;background:#17171A;aspect-ratio:3/2;}
.pd-app-tile .pd-app-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s cubic-bezier(.16,.84,.3,1);}
.pd-app-tile:hover .pd-app-photo img{transform:scale(1.05);}
.pd-app-tile figcaption{padding:14px 18px;font-family:var(--sans-en);font-weight:600;font-size:var(--text-small);letter-spacing:.02em;color:var(--ink);text-transform:none;background:#fff;}
@media (max-width:1100px){.pd-apps-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:820px){.pd-apps-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.pd-apps-grid{grid-template-columns:1fr;}}
/* overflow chips — pure text applications that don't have their own photo tile */
.pd-apps-more{list-style:none;margin:clamp(20px,2.4vw,28px) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 12px;}
.pd-apps-more li{position:relative;padding:6px 12px 6px 24px;background:#fff;border:1px solid var(--line);
  font-size:var(--text-small);color:var(--ink);line-height:var(--lh-snug);}
.pd-apps-more li::before{content:"";position:absolute;left:11px;top:calc(50% - 4px);width:8px;height:8px;background:var(--red);}

/* GALLERY grid (replaces old carousel) ------------------------------- */
.pd-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,1.6vw,20px);}
.pd-gallery-grid .pd-gallery-item{flex:none;aspect-ratio:4/3;background:#17171A;border:0;padding:0;cursor:pointer;
  position:relative;overflow:hidden;transition:transform .3s cubic-bezier(.16,.84,.3,1),box-shadow .3s ease;}
@media (max-width:900px){.pd-gallery-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:560px){.pd-gallery-grid{grid-template-columns:repeat(2,1fr);}}

/* VIDEO QR band ------------------------------------------------------- */
/* Full-width video section — subtle: capped width, hairline border, no dark bg. */
.pd-video-sec{padding:clamp(28px,3.4vw,44px) 0;background:var(--surface);border-top:1px solid var(--line);}
/* Single video — centered, capped width. Multiple videos — responsive grid. */
.pd-video-list{display:grid;grid-template-columns:1fr;gap:clamp(20px,2.4vw,32px);max-width:840px;margin:0 auto;}
.pd-video-list[data-count="2"]{max-width:1100px;grid-template-columns:1fr 1fr;}
.pd-video-list[data-count="3"]{max-width:1200px;grid-template-columns:repeat(3,1fr);}
.pd-video-item{margin:0;display:flex;flex-direction:column;gap:10px;}
.pd-video-label{font-size:.92rem;font-weight:600;letter-spacing:.02em;color:var(--ink);
  display:flex;align-items:center;gap:8px;}
.pd-video-label::before{content:"";width:16px;height:2px;background:var(--red);display:inline-block;}
.pd-video-embed{position:relative;width:100%;aspect-ratio:16/9;background:#000;overflow:hidden;border:1px solid var(--line);}
.pd-video-embed iframe,.pd-video-embed video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;}
.pd-video-embed .pd-video-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#fff;background:#17171A;
  font-family:var(--sans);font-size:var(--text-body);text-decoration:none;}
.pd-video-caption{text-align:center;color:var(--muted);font-size:var(--text-caption);margin:clamp(14px,1.4vw,20px) 0 0;}
@media (max-width:760px){
  .pd-video-list[data-count="2"],.pd-video-list[data-count="3"]{grid-template-columns:1fr;max-width:840px;}
}

.sd-sub{padding:clamp(32px,3.6vw,52px) 0 clamp(40px,5vw,72px);}
.sd-sub .eyebrow{margin-bottom:clamp(22px,2.4vw,32px);}
.sd-sub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,2vw,28px);}
.sd-sub-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);overflow:hidden;
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;}
a.sd-sub-card:hover{border-color:var(--red);transform:translateY(-3px);box-shadow:0 18px 34px -22px rgba(200,16,46,.4);}
/* image slot at top — background-image is set inline; falls back to dark placeholder */
/* Product-cutout thumbnail: fixed HEIGHT (not aspect-ratio) — with aspect-ratio the empty
   media relies on the intrinsic image's min-content size to render, so empty tiles could
   stretch taller than image tiles and break the grid. A fixed height sizes every card the
   same regardless of whether the media is populated. */
.sd-sub-media{position:relative;width:100%;height:clamp(140px,13vw,180px);background:#fff;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;padding:clamp(14px,1.6vw,20px);
  overflow:hidden;border-bottom:1px solid var(--line);}
.sd-sub-media img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;}
.sd-sub-media.is-empty{background:var(--surface);}
.sd-sub-body{display:flex;flex-direction:column;gap:14px;padding:clamp(20px,2.2vw,28px);flex:1;}
.sd-sub-th{font-weight:600;font-size:var(--text-lead);line-height:var(--lh-snug);color:var(--ink);}
.sd-sub-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;}
.sd-sub-brand{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;color:var(--muted-2);text-transform:uppercase;}
.sd-sub-go{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;color:var(--red);display:inline-flex;align-items:center;gap:7px;transition:gap .2s;}
a.sd-sub-card:hover .sd-sub-go{gap:11px;}
.sd-sub-soon{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--muted-3);border:1px solid var(--line);padding:4px 9px;border-radius:2px;}
.sd-sub-card.is-soon{opacity:.72;}
@media (max-width:900px){ .sd-sub-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .sd-sub-grid{grid-template-columns:1fr;} }

@media (max-width:860px){
  .sd-grid{grid-template-columns:1fr;gap:clamp(26px,5vw,36px);}
  .sd-figure{aspect-ratio:16/10;}
  .sd-cta-inner{flex-direction:column;align-items:flex-start;gap:22px;}
}

/* =================================================================
   CATEGORY (PROJECTS) PAGE (category.html) — reuses sd-* hero/figure/cta
   ================================================================= */
.cat-detail{background:var(--bg);}

/* --- hero: red slab, matches about/product/solution page-header language --- */
.cat-hero{position:relative;overflow:hidden;background:linear-gradient(112deg,var(--red-deep,#6E0A1D) 0%,var(--red) 62%);
  color:#fff;padding:clamp(40px,4.2vw,64px) 0 clamp(36px,4vw,56px);}
.cat-hero-inner{position:relative;z-index:2;}
.cat-hero-num{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;color:rgba(255,255,255,.75);text-transform:uppercase;margin-bottom:12px;}
.cat-hero-title{font-family:var(--sans);font-weight:700;font-size:var(--fluid-h1);line-height:var(--lh-tight);letter-spacing:0;color:#fff;margin:0;}
.cat-hero-intro{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:rgba(255,255,255,.9);margin-top:clamp(16px,1.8vw,24px);}
.cat-hero-intro strong{color:#fff;font-weight:600;}

/* --- cards grid: image + name + location — scoped to .cat-grid so it doesn't clash
   with the homepage's `.cat-card` (which uses the same class for its pin-scroll panels) --- */
.cat-body{padding:clamp(44px,5.5vw,80px) 0 clamp(48px,6vw,80px);}
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2vw,28px);}
.cat-grid .cat-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);overflow:hidden;
  min-height:0;   /* the homepage panel rule (min-height 520px+ on phones) must not leak in → big empty card bottoms */
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;}
.cat-grid .cat-card:hover{border-color:var(--red);transform:translateY(-3px);box-shadow:0 16px 32px -22px rgba(200,16,46,.4);}
.cat-card-img{position:relative;margin:0;overflow:hidden;aspect-ratio:16/10;background:var(--ink-2);}
.cat-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s ease;}
.cat-grid .cat-card:hover .cat-card-img img{transform:scale(1.05);}
/* small owner/organization logo pinned top-left over the project photo */
.cat-card-logo{position:absolute;top:12px;left:12px;z-index:2;display:flex;align-items:center;justify-content:center;
  width:clamp(67px,6.6vw,86px);height:clamp(67px,6.6vw,86px);padding:9px;background:#fff;
  box-shadow:0 4px 12px -4px rgba(0,0,0,.25);}
.cat-card-logo img{width:100%!important;height:100%!important;object-fit:contain!important;transition:none!important;transform:none!important;}
.cat-grid .cat-card:hover .cat-card-logo img{transform:none!important;}
.cat-card-body{padding:clamp(16px,1.8vw,22px);display:flex;flex-direction:column;gap:5px;}
.cat-card-name{font-family:var(--sans);font-weight:600;font-size:var(--text-lead);line-height:var(--lh-snug);color:var(--ink);margin:0;}
.cat-card-loc{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;color:var(--muted);margin:0;}

@media (max-width:900px){
  .cat-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:520px){
  .cat-grid{grid-template-columns:1fr;}
}

/* --- "other categories" nav at the bottom of category.html ---
   Compact horizontal card list that lets visitors hop between building types
   without going back to the projects landing. --- */
.cat-other{padding:clamp(48px,5.5vw,80px) 0 clamp(24px,3vw,44px);border-top:1px solid var(--line);background:var(--surface);}
.cat-other-head{margin-bottom:clamp(24px,2.6vw,36px);}
.cat-other-title{font-family:var(--sans);font-weight:700;font-size:var(--fluid-h4);line-height:var(--lh-tight);color:var(--ink);margin:12px 0 0;}
.cat-other-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.6vw,22px);margin-bottom:clamp(24px,2.8vw,36px);}
.cat-other-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);overflow:hidden;
  color:inherit;text-decoration:none;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;}
.cat-other-card:hover{border-color:var(--red);transform:translateY(-2px);box-shadow:0 12px 24px -18px rgba(200,16,46,.35);}
.cat-other-img{position:relative;margin:0;overflow:hidden;aspect-ratio:16/9;background:var(--ink-2);}
.cat-other-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s ease;}
.cat-other-card:hover .cat-other-img img{transform:scale(1.05);}
.cat-other-body{display:flex;align-items:center;gap:12px;padding:14px 16px;}
.cat-other-no{flex:none;font-family:var(--sans-en);font-weight:700;font-size:var(--text-title-xs);color:var(--red);}
.cat-other-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.cat-other-name{font-family:var(--sans);font-weight:600;font-size:var(--text-body);line-height:var(--lh-snug);color:var(--ink);margin:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cat-other-count{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.02em;color:var(--muted);}
.cat-other-arrow{flex:none;font-family:var(--mono);color:var(--red);transition:transform .2s ease;}
.cat-other-card:hover .cat-other-arrow{transform:translateX(4px);}
.cat-other-all{display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;
  color:var(--red);text-decoration:none;transition:gap .2s;}
.cat-other-all:hover{gap:14px;}

@media (max-width:900px){
  .cat-other-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
  .cat-other-grid{grid-template-columns:1fr;}
}

/* =================================================================
   PROJECTS INDEX PAGE (projects.html)
   Category landing — one rich card per building type, linking to
   category.html for the drilled-down list. Serves as an at-a-glance
   overview of the 8 verticals we build in.
   ================================================================= */
.proj-body{padding:clamp(44px,5.5vw,80px) 0 clamp(48px,6vw,80px);}

.proj-cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(20px,2.4vw,36px);}
.proj-cat-card{position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  overflow:hidden;color:inherit;text-decoration:none;
  transition:border-color .22s ease,transform .22s ease,box-shadow .22s ease;}
.proj-cat-card:hover{border-color:var(--red);transform:translateY(-4px);box-shadow:0 22px 44px -28px rgba(200,16,46,.45);}
.proj-cat-img{position:relative;margin:0;overflow:hidden;aspect-ratio:16/9;background:var(--ink-2);}
.proj-cat-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease;}
.proj-cat-card:hover .proj-cat-img img{transform:scale(1.06);}
.proj-cat-no{position:absolute;top:clamp(16px,1.6vw,22px);left:clamp(16px,1.6vw,22px);z-index:2;
  display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;
  font-family:var(--sans-en);font-weight:700;font-size:var(--text-title-xs);color:#fff;background:var(--red);
  letter-spacing:.02em;}
.proj-cat-body{position:relative;padding:clamp(22px,2.4vw,32px) clamp(22px,2.4vw,32px) clamp(26px,2.8vw,36px);
  display:flex;flex-direction:column;gap:8px;}
.proj-cat-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);}
.proj-cat-title{font-family:var(--sans);font-weight:700;font-size:var(--fluid-h4);line-height:var(--lh-tight);color:var(--ink);margin:0;}
.proj-cat-count{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;color:var(--red);font-weight:600;margin-top:2px;}
.proj-cat-preview{font-size:var(--text-small);line-height:var(--lh-normal);color:var(--muted);margin:6px 0 0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.proj-cat-more{color:var(--ink);font-weight:600;font-family:var(--mono);font-size:12px;letter-spacing:.02em;}
.proj-cat-arrow{position:absolute;bottom:clamp(22px,2.4vw,32px);right:clamp(22px,2.4vw,32px);
  font-family:var(--mono);font-size:20px;color:var(--red);transition:transform .22s ease;}
.proj-cat-card:hover .proj-cat-arrow{transform:translateX(6px);}

@media (max-width:720px){
  .proj-cat-grid{grid-template-columns:1fr;}
  .proj-cat-arrow{position:static;margin-top:14px;align-self:flex-end;}
}

/* =================================================================
   UNIVERSAL SEARCH — header icon + grouped results
   desktop: dropdown panel under the sticky header
   mobile (≤900px): full-screen sheet
   ================================================================= */
.search-toggle{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:none;background:none;color:var(--ink);cursor:pointer;transition:color .2s;}
.search-toggle:hover,.search-toggle[aria-expanded="true"]{color:var(--red);}

/* clamp the scroll container so the page behind can't scroll while search is open.
   overflow:hidden on <html> alone freezes the frame in place AND keeps the sticky
   header stuck — no viewport jump. (Locking <body> or re-fixing the header both
   reflow the layout by the header's height, which is the jump we're avoiding.) */
html.search-lock{overflow:hidden;}

.search-scrim{position:fixed;inset:0;top:74px;background:rgba(23,23,26,.34);opacity:0;transition:opacity .22s;z-index:890;}
.search-scrim.is-open{opacity:1;}

.search-panel{position:fixed;left:0;right:0;top:74px;background:var(--surface);border-bottom:1px solid var(--line);
  box-shadow:0 24px 48px -24px rgba(23,23,26,.18);opacity:0;transform:translateY(-6px);pointer-events:none;
  transition:opacity .2s,transform .22s cubic-bezier(.22,.61,.36,1);z-index:901;}
.search-panel.is-open{opacity:1;transform:none;pointer-events:auto;}
/* when closed the panel must never intercept taps — on mobile it is a full-screen
   inset:0 sheet whose display:flex overrides [hidden], so guard both display + pointer-events */
.search-panel[hidden]{display:none;}

.search-bar{display:flex;align-items:center;gap:14px;height:64px;border-bottom:1px solid var(--line);position:relative;}
.search-bar::after{content:"";position:absolute;left:0;bottom:-1px;width:56px;height:2px;background:var(--red);transition:width .5s cubic-bezier(.22,.61,.36,1);}
.search-bar:focus-within::after{width:100%;}
.search-bar .sb-icon{display:flex;color:var(--muted);flex:none;}
.search-input{flex:1;min-width:0;border:none;background:none;font-family:var(--sans);font-size:var(--text-lead);color:var(--ink);height:100%;-webkit-appearance:none;appearance:none;}
.search-input:focus-visible{outline:none;}   /* the growing red seam is the focus indicator */
.search-input::placeholder{color:var(--muted-3);}
.search-input::-webkit-search-cancel-button{display:none;}
.search-esc{font-family:var(--mono);font-size:var(--text-caption);color:var(--muted);border:1px solid var(--line);padding:3px 7px;letter-spacing:.08em;flex:none;}
.search-close{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:none;background:none;color:var(--muted);cursor:pointer;flex:none;transition:color .15s;}
.search-close:hover{color:var(--ink);}
.search-cancel{display:none;border:none;background:none;font-family:var(--sans);font-size:var(--text-small);font-weight:500;color:var(--red);cursor:pointer;flex:none;}

.search-results{max-height:min(62vh,560px);overflow-y:auto;padding:8px 0 24px;}
.sr-group{padding-top:14px;}
.sr-ghead{display:flex;align-items:baseline;gap:10px;padding:8px 2px;}
.sr-gen{font-family:var(--mono);font-size:var(--text-caption);font-weight:600;letter-spacing:.14em;color:var(--red);}
.sr-gth{font-size:var(--text-caption);color:var(--muted);}
.sr-gcount{margin-left:auto;font-family:var(--mono);font-size:var(--text-caption);color:var(--muted-3);}
.sr-row{display:flex;align-items:center;gap:16px;padding:10px 12px 10px 2px;border-top:1px solid var(--line-2);transition:background .15s;}
.sr-row:hover,.sr-row.is-active{background:#F6F5F1;}
.sr-thumb{flex:none;width:60px;height:44px;border:1px solid var(--line);background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--muted-3);}
.sr-thumb img{width:100%;height:100%;object-fit:cover;}
.sr-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.sr-title{font-size:var(--text-body);font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sr-title mark{background:none;color:var(--red);}
.sr-meta{font-family:var(--mono);font-size:var(--text-caption);color:var(--muted);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sr-arrow{flex:none;color:var(--red);opacity:0;transform:translateX(-6px);transition:opacity .18s,transform .18s;}
.sr-row:hover .sr-arrow,.sr-row.is-active .sr-arrow{opacity:1;transform:none;}
.sr-more{display:block;width:100%;text-align:left;background:none;border:0;cursor:pointer;
  font-family:var(--mono);font-size:var(--text-caption);color:var(--red-dark);padding:10px 8px;margin-top:2px;
  border-radius:4px;transition:background .15s,color .15s;}
.sr-more:hover,.sr-more.is-active{background:var(--red-soft);color:var(--red);}
.sr-more:focus-visible{outline:2px solid var(--red);outline-offset:1px;}

.sr-empty{padding:28px 2px 14px;font-size:var(--text-body);color:var(--muted);}
.sr-empty b{color:var(--ink);font-weight:600;}
.sr-hint{padding:18px 2px 6px;}
.sr-hint-t{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.14em;color:var(--muted-2);margin-top:14px;}
.sr-hint .sr-hint-t{margin-top:0;}
.sr-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.sr-chip{border:1px solid var(--line);background:#fff;padding:7px 14px;font-family:var(--sans);font-size:var(--text-small);color:var(--ink);cursor:pointer;transition:border-color .15s,color .15s;}
.sr-chip:hover{border-color:var(--red);color:var(--red);}

@media (max-width:900px){
  .search-scrim{display:none;}
  .search-panel{position:fixed;inset:0;top:0;border-bottom:none;box-shadow:none;transform:translateY(10px);display:flex;flex-direction:column;}
  .search-panel.is-open{transform:none;}
  .search-inner{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;}
  .search-bar{height:62px;flex:none;}
  .search-esc,.search-close{display:none;}
  .search-cancel{display:block;}
  .search-results{flex:1;max-height:none;padding-bottom:48px;}
  .sr-title{white-space:normal;line-height:var(--lh-snug);}
}

/* =================================================================
   "สินค้า" MEGA MENU — full-width dropdown, same language as search
   (surface panel + scrim, mono-red eyebrows, hover rows, red arrows)
   ================================================================= */
.main-nav a.has-mega{display:inline-flex;align-items:center;gap:5px;}
.main-nav a.has-mega::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-1px) rotate(45deg);transition:transform .25s ease;opacity:.7;}
.main-nav a.has-mega.is-open::after{transform:translateY(1px) rotate(-135deg);}

.mega-scrim{position:fixed;inset:0;top:74px;background:rgba(23,23,26,.34);opacity:0;transition:opacity .22s;z-index:889;}
.mega-scrim.is-open{opacity:1;}

.mega-panel{position:fixed;left:0;right:0;top:74px;background:var(--surface);border-bottom:1px solid var(--line);
  box-shadow:0 24px 48px -24px rgba(23,23,26,.18);opacity:0;transform:translateY(-6px);pointer-events:none;
  transition:opacity .2s,transform .22s cubic-bezier(.22,.61,.36,1);z-index:901;overflow:hidden;}
.mega-panel.is-open{opacity:1;transform:none;pointer-events:auto;}

.mega-inner{padding-top:10px;padding-bottom:34px;}
.mega-head{display:flex;align-items:baseline;gap:12px;padding:22px 4px 18px;}
.mega-en{font-family:var(--mono);font-size:var(--text-caption);font-weight:600;letter-spacing:.14em;color:var(--red);}
.mega-th{font-size:var(--text-small);color:var(--muted);}
.mega-all{margin-left:auto;display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:var(--text-caption);
  letter-spacing:.04em;color:var(--muted-2);transition:color .2s,gap .2s;}
.mega-all:hover{color:var(--red);gap:11px;}

/* two-pane body: category list (left) + detail pane (right) */
.mega-body{display:flex;align-items:stretch;gap:0;padding-bottom:6px;}
.mega-cats{flex:none;width:388px;border-right:1px solid var(--line);padding-right:18px;display:flex;flex-direction:column;gap:1px;}
.mega-cat{display:flex;align-items:flex-start;gap:15px;padding:13px 14px;border-radius:9px;min-width:0;transition:background .16s ease;}
.mega-cat:hover,.mega-cat.is-active{background:#F6F5F1;}
.mega-no{flex:none;font-family:var(--sans-en);font-weight:600;font-size:var(--text-body);line-height:var(--lh-normal);color:#B8B4AD;transition:color .2s ease;}
.mega-cat:hover .mega-no,.mega-cat.is-active .mega-no{color:var(--red);}
.mega-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;}
.mi-th{font-size:var(--text-body);font-weight:600;line-height:var(--lh-snug);color:var(--ink);}
.mi-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;color:var(--muted-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mega-cat-cue{flex:none;margin-top:3px;color:var(--muted-3);opacity:0;transform:translateX(-4px);transition:opacity .16s,transform .16s,color .16s;}
.mega-cat:hover .mega-cat-cue,.mega-cat.is-active .mega-cat-cue{opacity:1;transform:none;color:var(--red);}

/* right detail pane — a category's sub-products, or a description for the ones with none yet */
.mega-detail{flex:1;min-width:0;min-height:266px;padding:6px 6px 8px 34px;display:flex;gap:36px;align-items:stretch;}
.md-content{flex:1;min-width:0;display:flex;flex-direction:column;}
.mega-detail-head{display:flex;align-items:baseline;gap:16px;padding-bottom:15px;margin-bottom:14px;border-bottom:1px solid var(--line-2);}
.md-titles{display:flex;flex-direction:column;gap:3px;min-width:0;}
.md-th{font-size:var(--text-lead);font-weight:600;color:var(--ink);line-height:var(--lh-snug);}
.md-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;color:var(--muted-3);text-transform:uppercase;}
.md-all{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
  font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--red);transition:gap .2s;}
.md-all:hover{gap:11px;}
.mega-subs{display:grid;grid-template-columns:1fr;gap:2px;}
.mega-sub{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;min-width:0;transition:background .16s ease;}
.mega-sub:hover{background:#F6F5F1;}
.msub-thumb{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:4px;
  background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;}
.msub-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.msub-thumb.is-empty{background:var(--surface);}
.msub-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.msub-th{font-size:var(--text-small);font-weight:600;line-height:var(--lh-snug);color:var(--ink);}
.msub-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.02em;color:var(--muted-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.msub-arrow{flex:none;color:var(--red);opacity:0;transform:translateX(-5px);transition:opacity .16s,transform .16s;}
.mega-sub:hover .msub-arrow{opacity:1;transform:none;}
.mega-sub.is-soon{opacity:.62;}
.msub-soon{flex:none;font-size:var(--text-caption);color:var(--muted-3);background:#EFEEEA;border:1px solid var(--line);border-radius:5px;padding:3px 9px;white-space:nowrap;}
.md-desc{font-size:var(--text-small);line-height:var(--lh-relaxed);color:var(--muted);max-width:56ch;margin:2px 0 20px;}
.md-apps{display:flex;flex-wrap:wrap;gap:9px;}
.md-app{font-size:var(--text-caption);color:var(--muted-2);background:#F4F3EF;border:1px solid var(--line);border-radius:20px;padding:7px 15px;}

/* right-hand category promo image — fills the detail pane's spare width */
.mega-promo{flex:none;width:290px;align-self:stretch;position:relative;border-radius:12px;overflow:hidden;
  background:#E6E4DF;text-decoration:none;min-height:300px;}
.mega-promo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.22,.61,.36,1);}
.mega-promo:hover img{transform:scale(1.045);}
.mp-cap{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:6px;padding:18px;
  background:linear-gradient(transparent,rgba(20,20,23,.86));color:#fff;}
.mp-th{font-size:var(--text-body);font-weight:600;line-height:var(--lh-snug);}
.mp-all{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;opacity:.92;transition:gap .2s;}
.mega-promo:hover .mp-all{gap:11px;}
/* branded fallback for categories with no photo yet */
.mega-promo--fallback{background:linear-gradient(150deg,#CE1430 0%,#C8102E 46%,#A40E25 100%);}
.mp-watermark{position:absolute;top:-24px;right:2px;font-family:var(--sans-en);font-weight:700;font-size:200px;line-height:1;color:rgba(255,255,255,.10);pointer-events:none;}
.mp-en-top{position:absolute;left:18px;right:18px;top:18px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.1em;line-height:var(--lh-snug);color:rgba(255,255,255,.92);text-transform:uppercase;}

/* narrower desktops: drop the promo so the sub-list keeps a comfortable width */
@media (max-width:1200px){
  .mega-promo{display:none;}
  .mega-detail{gap:0;}
  .mega-subs{grid-template-columns:1fr 1fr;gap:2px 22px;}
}

/* foot: the work-process strip (distinct tinted band, like a mega-menu promo row) */
.mega-foot{background:#F4F3EF;border-top:1px solid var(--line);padding:2px 0 8px;}
.mega-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:22px;padding-bottom:24px;}
.mega-step{position:relative;display:flex;flex-direction:column;}
.mega-step + .mega-step::before{content:"";position:absolute;left:-11px;top:4px;bottom:4px;width:1px;background:var(--line);}
.ms-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.ms-icon{display:flex;color:var(--red);}
.ms-no{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.06em;color:var(--muted-3);}
.ms-title{font-weight:600;font-size:var(--text-small);line-height:var(--lh-snug);color:var(--ink);margin-bottom:6px;}
.ms-desc{font-size:var(--text-caption);line-height:var(--lh-normal);color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}

@media (max-width:900px){
  .mega-panel,.mega-scrim{display:none;}   /* mobile nav lives in the hamburger */
  .main-nav a.has-mega::after{display:none;}
}

/* =================================================================
   ABOUT PAGE (about.html) — same engineered language as the home page
   ================================================================= */
.about-page{background:var(--bg);}
.contact-title .accent{color:var(--red);}
/* about page: tighter section rhythm than the home page */
.about-page .ab-hero{padding:clamp(54px,7vw,104px) 0 clamp(40px,4.5vw,68px);}
.about-page .customers-head{padding:clamp(28px,3.2vw,48px) var(--pad) clamp(22px,2.4vw,32px);}
.about-page .customers .dist-grid{padding-bottom:clamp(28px,3.2vw,48px);}

/* --- shared secondary-page hero (contact.html): flush-left, breadcrumb tells you where you are --- */
.page-hero-inner{position:relative;z-index:2;}

/* =================================================================
   .page-crumb — SHARED breadcrumb across product / solution / about
   / contact pages. Same DOM, same class, same visual rhythm.
   Ellipsis-collapses middle segments when overflow — the current-page
   label (.page-crumb-cur) is always visible and right-anchored.
   Use .page-crumb.is-on-red on hero backgrounds with red fill.
   ================================================================= */
.page-crumb{display:flex;align-items:center;gap:9px;font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;line-height:1.5;
  margin:0 0 40px;flex-wrap:wrap;}
.page-crumb > *{flex:none;white-space:normal;}
.page-crumb a{color:var(--muted-2);transition:color .2s ease;}
.page-crumb a:hover{color:var(--red);}
.page-crumb-sep{color:var(--muted-3);}
.page-crumb-cur{color:var(--ink);font-weight:600;font-family:var(--sans-en),var(--sans);}
.page-crumb > .page-crumb-cur{flex:0 1 auto;min-width:0;}
/* On-red-hero variant (used on about, contact, solution heroes) */
.page-crumb.is-on-red a{color:rgba(255,255,255,.75);}
.page-crumb.is-on-red a:hover{color:#fff;}
.page-crumb.is-on-red .page-crumb-sep{color:rgba(255,255,255,.4);}
.page-crumb.is-on-red .page-crumb-cur{color:#fff;font-weight:600;}
@media (max-width:560px){
  /* Mobile: hide all middle segments except the last two; current-page stays visible */
  /* one tidy line on phones; a long current label ends in … (the full title is the H1 right below) */
  .page-crumb{flex-wrap:nowrap;min-width:0;}
  .page-crumb > .page-crumb-cur{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .page-crumb .page-crumb-collapse,
  .page-crumb .page-crumb-collapse + .page-crumb-sep{display:none;}   /* drop its separator too — else "สินค้า / / …" */
}
.page-title{font-size:var(--fluid-h1);letter-spacing:-.01em;}

/* --- about hero: red slab, matches product.html / solution.html detail-page language --- */
.ab-hero{position:relative;overflow:hidden;background:linear-gradient(112deg,var(--red-deep,#6E0A1D) 0%,var(--red) 62%);
  color:#fff;padding:clamp(54px,7vw,104px) 0 clamp(40px,4.5vw,68px);}
.ab-hero-inner{position:relative;z-index:2;}
/* Legacy .ab-crumb — retained as thin alias for existing markup that hasn't migrated to
   .page-crumb.is-on-red yet. New pages should use .page-crumb directly. */
.ab-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:0 0 clamp(22px,2.4vw,32px);
  font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:rgba(255,255,255,.72);}
.ab-crumb a{color:rgba(255,255,255,.75);transition:color .2s ease;}
.ab-crumb a:hover{color:#fff;}
.ab-crumb-sep{color:rgba(255,255,255,.4);}
.ab-crumb-cur{color:#fff;font-weight:500;}
.ab-hero-title{font-family:var(--sans);font-weight:700;font-size:var(--fluid-h1);line-height:var(--lh-tight);letter-spacing:0;color:#fff;margin:0;}
.ab-hero-intro{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:rgba(255,255,255,.9);margin-top:clamp(16px,1.8vw,24px);}

/* --- facility band: the real building, full-bleed --- */
.ab-facility{position:relative;overflow:hidden;height:clamp(260px,36vw,440px);background:var(--ink-2);}
.ab-facility-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;}
.ab-facility::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:4px;background:var(--red);
  clip-path:polygon(0 0,clamp(120px,16vw,260px) 0,calc(clamp(120px,16vw,260px) - 4px) 100%,0 100%);}

/* --- story + engineered stats strip --- */

/* --- UL/FM Filling Station — unique capability section, clean white, split 2-col ---
   Image on the left, body on the right. Numbered benefit list grounds the claim.
   Separators above + below demarcate it from Story and What-we-do without heavy color. */
.ab-ul-fm{padding:clamp(44px,5.5vw,80px) 0;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
/* align-items:stretch so the image column grows with the (now longer) body column; the
   image itself uses object-fit:cover to crop gracefully instead of letterboxing. */
.ab-ul-fm-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(32px,4vw,64px);align-items:stretch;}
.ab-ul-fm-img{position:relative;margin:0;overflow:hidden;background:var(--surface);min-height:clamp(360px,42vw,560px);}
.ab-ul-fm-img img{display:block;width:100%;height:100%;object-fit:cover;}
/* White pill at the bottom-left of the image — compact UL · FM lockup, treated as a
   trust chip rather than a separate section. Soft shadow lifts it off the photo and a
   hairline keeps it crisp. */
.ab-ul-fm-marks-chip{position:absolute;left:clamp(16px,1.8vw,24px);bottom:clamp(16px,1.8vw,24px);display:flex;align-items:center;gap:clamp(16px,1.8vw,22px);padding:clamp(14px,1.4vw,20px) clamp(18px,1.8vw,26px);background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.1);}
.ab-ul-fm-marks-chip img{display:block;width:auto;height:clamp(40px,3.8vw,54px);object-fit:contain;}
.ab-ul-fm-marks-sep{flex:0 0 auto;width:1px;align-self:stretch;background:var(--line);}
.ab-ul-fm-body{display:flex;flex-direction:column;}
.ab-ul-fm-body .h-section{margin-top:12px;}
.ab-ul-fm-lead{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:var(--ink);margin:clamp(18px,2vw,24px) 0 0;}
.ab-ul-fm-benefits{margin-top:clamp(26px,3vw,36px);padding-top:clamp(22px,2.4vw,28px);border-top:1px solid var(--line);}
.eyebrow--sm .label{font-size:var(--text-caption);}
.ab-ul-fm-list{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:12px;}
.ab-ul-fm-list li{display:flex;align-items:baseline;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);}
.ab-ul-fm-list li:last-child{border-bottom:0;}
.ul-fm-no{flex:none;font-family:var(--sans-en);font-weight:700;font-size:var(--text-title-xs);line-height:1;color:var(--red);letter-spacing:.02em;min-width:28px;}
.ul-fm-tx{font-size:var(--text-body);line-height:var(--lh-snug);color:var(--ink);}

/* Certificate scans — sit directly under the benefits list in the body column. Compact
   horizontal row so the section stays balanced; small portrait thumbnails with a hairline
   frame so they read as documents rather than logos. */
.ab-ul-fm-certs{margin-top:clamp(22px,2.4vw,30px);padding-top:clamp(20px,2.2vw,26px);border-top:1px solid var(--line);}
.ab-ul-fm-docs{list-style:none;margin:14px 0 0;padding:0;display:flex;align-items:flex-start;gap:clamp(14px,1.6vw,20px);flex-wrap:wrap;}
.ab-ul-fm-docs li{flex:0 0 auto;}
/* Button wrapper — reset default chrome and treat the inner image as the whole target.
   Hover/focus lifts the frame slightly so the "click to enlarge" affordance is obvious
   without extra labels. */
.ab-ul-fm-doc{appearance:none;background:#fff;padding:5px;border:1px solid var(--line);cursor:pointer;display:block;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;}
.ab-ul-fm-doc:hover,.ab-ul-fm-doc:focus-visible{border-color:var(--red);box-shadow:0 6px 18px rgba(0,0,0,.1);transform:translateY(-2px);outline:none;}
.ab-ul-fm-doc img{display:block;width:auto;height:clamp(96px,10vw,124px);max-width:100%;object-fit:contain;pointer-events:none;}

@media (max-width:860px){
  .ab-ul-fm-grid{grid-template-columns:1fr;gap:clamp(24px,3vw,36px);}
  .ab-ul-fm-img{min-height:clamp(280px,70vw,420px);}
  .ab-ul-fm-marks-chip{padding:12px 16px;gap:16px;}
  .ab-ul-fm-marks-chip img{height:36px;}
  .ab-ul-fm-doc img{height:clamp(96px,26vw,120px);}
}

/* --- what we do: process flow + product overview --- */
.ab-do{padding:clamp(36px,4.5vw,64px) 0;}
.ab-flow{list-style:none;margin:clamp(34px,4vw,54px) 0 0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);
  gap:1px;background:var(--line);border:1px solid var(--line);}
.ab-flow-step{position:relative;background:var(--bg);padding:clamp(24px,2.6vw,32px) clamp(16px,1.8vw,24px);display:flex;flex-direction:column;gap:8px;transition:background .25s ease;}
.ab-flow-step:hover{background:var(--surface);}
.ab-flow-icon{width:clamp(56px,5vw,76px);height:clamp(56px,5vw,76px);margin-bottom:14px;color:var(--red);}
.ab-flow-lottie{display:block;width:100%;height:100%;}
.ab-flow-lottie svg{display:block;width:100%!important;height:100%!important;}
/* photo replaces the icon slot — fills the cell width, wide aspect, no rounding */
.ab-flow-img{display:block;width:calc(100% + clamp(32px,3.6vw,48px));margin:calc(-1 * clamp(24px,2.6vw,32px)) calc(-1 * clamp(16px,1.8vw,24px)) clamp(18px,2vw,22px);
  aspect-ratio:4/3;overflow:hidden;background:rgba(23,23,26,.06);}
.ab-flow-img img{width:100%;height:100%;object-fit:cover;display:block;}
.ab-flow-no{position:absolute;top:clamp(22px,2.4vw,30px);right:clamp(16px,1.8vw,24px);font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--muted-3);}
.ab-flow-th{font-weight:600;font-size:var(--text-body);line-height:var(--lh-snug);color:var(--ink);}
.ab-flow-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.1em;color:var(--muted-3);margin-top:2px;}
/* product overview — elevated to a prominent card grid (selling systems matters) */
.ab-prod{margin-top:clamp(52px,6vw,88px);padding-top:clamp(34px,4vw,54px);border-top:1px solid var(--line);}
.ab-prod-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:clamp(20px,2.4vw,30px);}
.ab-prod-headtext .eyebrow{margin-bottom:12px;}
.ab-prod-title{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h2);line-height:var(--lh-tight);color:var(--ink);}
.ab-prod-all{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.03em;color:var(--red);display:inline-flex;align-items:center;gap:7px;flex:none;white-space:nowrap;transition:gap .2s;}
.ab-prod-all:hover{gap:11px;}
/* full-bleed horizontal scroller that breaks out of .wrap, with edge fade masks and prev/next nav */
.ab-prod-scroller{position:relative;width:100vw;margin-left:calc(50% - 50vw);}
.ab-prod-scroller::before,.ab-prod-scroller::after{content:'';position:absolute;top:0;bottom:0;width:clamp(48px,7vw,120px);pointer-events:none;z-index:2;}
.ab-prod-scroller::before{left:0;background:linear-gradient(to right,var(--paper,#fff) 15%,transparent);}
.ab-prod-scroller::after{right:0;background:linear-gradient(to left,var(--paper,#fff) 15%,transparent);}
.ab-prod-grid{display:flex;gap:clamp(16px,1.6vw,24px);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding:8px clamp(24px,5vw,80px);scroll-padding-left:clamp(24px,5vw,80px);scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.ab-prod-grid::-webkit-scrollbar{display:none;}
.ab-prod-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:52px;height:52px;border-radius:50%;
  background:var(--red);color:#fff;border:0;font-family:var(--sans-en);font-size:28px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px -6px rgba(0,0,0,.25);
  transition:transform .2s ease,background .2s ease;}
.ab-prod-nav:hover{background:var(--red-deep,#6E0A1D);transform:translateY(-50%) scale(1.08);}
.ab-prod-nav:disabled{opacity:0;pointer-events:none;}
.ab-prod-prev{left:clamp(12px,1.8vw,24px);}
.ab-prod-next{right:clamp(12px,1.8vw,24px);}
.ab-prod-item{position:relative;flex:0 0 clamp(280px,26vw,380px);scroll-snap-align:start;display:flex;flex-direction:column;border:1px solid var(--line);background:var(--surface);overflow:hidden;
  transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease;min-width:0;}
.ab-prod-item:hover{border-color:var(--red);background:#fff;transform:translateY(-3px);box-shadow:0 16px 30px -20px rgba(200,16,46,.4);}
.ab-prod-img{position:relative;margin:0;overflow:hidden;aspect-ratio:4/5;background:#fff;}
.ab-prod-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease;}
.ab-prod-item:hover .ab-prod-img img{transform:scale(1.04);}
.ab-prod-body{display:flex;flex-direction:column;gap:8px;padding:clamp(14px,1.4vw,18px);}
.ab-prod-no{font-family:var(--sans-en);font-weight:700;font-size:var(--text-title-xs);line-height:var(--lh-tight);color:var(--red);}
.ab-prod-txt{min-width:0;display:flex;flex-direction:column;gap:4px;}
.ab-prod-th{font-weight:600;font-size:var(--text-body);line-height:var(--lh-snug);color:var(--ink);}
.ab-prod-en{font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.04em;color:var(--muted);line-height:var(--lh-snug);}
.ab-prod-arrow{position:absolute;top:clamp(12px,1.2vw,16px);right:clamp(12px,1.2vw,16px);font-family:var(--mono);color:var(--red);opacity:0;transform:translateX(-6px);transition:opacity .18s,transform .18s;}
.ab-prod-item:hover .ab-prod-arrow{opacity:1;transform:none;}

/* --- gallery: editorial, varied sizes --- */
.ab-gallery{padding:clamp(36px,4.5vw,64px) 0;background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
/* full-bleed grid — edge to edge, no side gutters.
   bento — grid-template-areas places every tile explicitly, so it always fills (no gaps).
   11 tiles: one 2×2 feature (a) + one wide (d) + one tall (i) + eight square = a full 4×4 block. */
.ab-gal-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,clamp(180px,14.5vw,240px));
  grid-template-areas:"a a b c" "a a d d" "e f g h" "i i j k";
  gap:clamp(6px,0.7vw,10px);margin-top:clamp(32px,3.5vw,52px);}
.ab-gal:nth-child(1){grid-area:a;}.ab-gal:nth-child(2){grid-area:b;}.ab-gal:nth-child(3){grid-area:c;}
.ab-gal:nth-child(4){grid-area:d;}.ab-gal:nth-child(5){grid-area:e;}.ab-gal:nth-child(6){grid-area:f;}
.ab-gal:nth-child(7){grid-area:g;}.ab-gal:nth-child(8){grid-area:h;}.ab-gal:nth-child(9){grid-area:i;}
.ab-gal:nth-child(10){grid-area:j;}.ab-gal:nth-child(11){grid-area:k;}
.ab-gal{position:relative;overflow:hidden;margin:0;background:var(--ink-2);cursor:zoom-in;}
.ab-gal img{width:100%;height:100%;object-fit:cover;transition:transform .85s cubic-bezier(.16,.84,.3,1);}
.ab-gal:hover img{transform:scale(1.055);}

/* --- distributor band reuses .customers / .dist-grid --- */
.ab-dist{border-top:1px solid var(--line);}

/* ---- responsive ---- */
@media (max-width:900px){
  /* the diagonal red seam crosses the title on narrow screens — drop it below desktop */
  .contact-seam{display:none;}
  .ab-flow{grid-template-columns:repeat(2,1fr);}
  .ab-flow-step:nth-child(5){grid-column:span 2;}
  .ab-prod-item{flex:0 0 min(78vw,340px);}
  /* mobile bento: 2 columns, team + pump-room become full-width banners; still fills cleanly */
  .ab-gal-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:auto;grid-template-areas:none;grid-auto-rows:clamp(168px,40vw,230px);grid-auto-flow:dense;}
  .ab-gal-grid .ab-gal{grid-area:auto;}
  .ab-gal-grid .ab-gal:nth-child(1),.ab-gal-grid .ab-gal:nth-child(9),.ab-gal-grid .ab-gal:nth-child(11){grid-column:span 2;}  /* 11 photos → 3 wide + 8 halves = even, no hole at the end */
}
@media (max-width:640px){
  .ab-flow{grid-template-columns:1fr;}
  .ab-flow-step:nth-child(5){grid-column:auto;}
  .ab-prod-head{flex-direction:column;align-items:flex-start;gap:13px;}
  .ab-prod-item{flex:0 0 min(82vw,320px);}
  .ab-prod-nav{width:44px;height:44px;font-size:24px;}
  .ab-gal-grid{grid-auto-rows:clamp(148px,44vw,210px);}
}

/* =================================================================
   KNOWLEDGE / BLOG ARTICLE PAGE (knowledge.html)
   Long-form editorial layout — TOC, prose, gallery, share, related
   ================================================================= */

/* reading progress bar */
.read-progress{position:fixed;top:0;left:0;right:0;height:3px;background:transparent;z-index:120;pointer-events:none;}
.read-progress-fill{height:100%;width:0;background:var(--red);transition:width .1s linear;}

.page-article{background:var(--bg);}

/* ---- article hero ---- */
.article-hero{padding:clamp(28px,4vw,56px) 0 clamp(24px,3vw,40px);}
.article-hero-inner{max-width:900px;margin:0 auto;}

.breadcrumb{margin-bottom:clamp(20px,2.5vw,32px);}
.breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  font-size:var(--text-caption);color:var(--muted);}
.breadcrumb li{display:flex;align-items:center;gap:10px;}
.breadcrumb li + li::before{content:'/';color:var(--line);font-family:var(--mono);}
.breadcrumb a{color:var(--muted);transition:color .15s;}
.breadcrumb a:hover{color:var(--ink);}
.breadcrumb [aria-current="page"]{color:var(--ink);font-weight:500;}
/* phones: one line — the long article title (already the H1 below) ends in … instead of wrapping under a stray "/" */
@media (max-width:560px){
  .breadcrumb ol{flex-wrap:nowrap;}
  .breadcrumb li{flex:none;}
  .breadcrumb li:last-child{display:block;flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .breadcrumb li:last-child::before{margin-right:10px;}
}

.article-kicker{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;}
.chip{display:inline-flex;align-items:center;height:28px;padding:0 14px;border-radius:999px;
  font-size:var(--text-caption);font-weight:500;letter-spacing:.01em;
  background:rgba(200,16,46,.08);color:var(--red-dark);transition:background .15s;}
.chip:hover{background:rgba(200,16,46,.14);}

.article-title{font-family:var(--sans-en);font-weight:700;
  font-size:clamp(1.75rem,4.2vw,3rem);line-height:1.15;letter-spacing:-.005em;
  color:var(--ink);text-wrap:pretty;margin-bottom:24px;}
/* title chunks (article.js): move to the next line whole; wrap inside only if wider than the line */
.article-title .nw{display:inline-block;max-width:100%;}
/* keep a Thai phrase together when a line must break (e.g. "ในทุกโครงการ" never splits into "ในทุก / โครงการ") */
.nobr{white-space:nowrap;}

.article-excerpt{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:#3A3A40;
  max-width:64ch;margin-bottom:32px;}

.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:20px 0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  font-size:var(--text-caption);color:var(--muted);}
.am-author{display:flex;align-items:center;gap:12px;}
.am-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:50%;background:var(--red);color:#fff;}
.am-name{display:block;font-weight:600;color:var(--ink);font-size:var(--text-small);}
.am-role{display:block;font-size:var(--text-caption);color:var(--muted);}
.am-sep{width:1px;height:24px;background:var(--line);}
.am-block{display:flex;flex-direction:column;gap:2px;}
.am-block[hidden],.am-sep[hidden]{display:none;}   /* e.g. no readMin → hide the "อ่าน" block instead of showing an empty label */
.am-label{font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);}
.am-block time,.am-block span:last-child{color:var(--ink);font-weight:500;font-size:var(--text-small);}

/* ---- share bar ---- */
.article-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:24px;}
.as-label{font-size:var(--text-caption);color:var(--muted);margin-right:6px;}
.as-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:50%;
  cursor:pointer;transition:all .2s cubic-bezier(.16,.84,.3,1);position:relative;}
.as-btn:hover{border-color:var(--ink);background:var(--ink);color:#fff;transform:translateY(-2px);}
.as-btn[data-share="facebook"]:hover{background:#1877F2;border-color:#1877F2;color:#fff;}
.as-btn[data-share="line"]:hover{background:#06C755;border-color:#06C755;color:#fff;}
.as-btn[data-share="twitter"]:hover{background:#000;border-color:#000;color:#fff;}
.as-btn[data-share="linkedin"]:hover{background:#0A66C2;border-color:#0A66C2;color:#fff;}
.as-copied{position:absolute;top:-30px;left:50%;transform:translateX(-50%) scale(.9);
  background:var(--ink);color:#fff;font-size:11px;padding:4px 10px;border-radius:4px;white-space:nowrap;
  opacity:0;pointer-events:none;transition:all .2s;}
.as-btn.is-copied .as-copied{opacity:1;transform:translateX(-50%) scale(1);top:-34px;}

/* ---- featured image ---- */
/* Centred, capped at a readable width — the full image shows (no crop) so
   infographic covers (common on the knowledge articles) read in full. */
.article-featured{margin:clamp(24px,3vw,40px) auto clamp(32px,4vw,56px);max-width:900px;}
.article-featured img{display:block;width:100%;height:auto;background:var(--surface);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 24px),calc(100% - 24px) 100%,0 100%);}
.article-featured figcaption{margin-top:14px;font-size:var(--text-caption);color:var(--muted);
  padding-left:14px;border-left:2px solid var(--red);line-height:var(--lh-normal);}

/* ---- article body layout: TOC + prose ---- */
.article-body{display:grid;grid-template-columns:220px minmax(0,760px);gap:64px;
  max-width:1100px;margin:0 auto;padding-bottom:clamp(48px,6vw,88px);}
/* Short articles (fewer than two H2s) collapse to one centred prose column
   so the content doesn't pin itself to the left of an empty TOC gutter. */
.article-body--no-toc{display:block;max-width:760px;}

.article-toc{position:sticky;top:100px;align-self:start;max-height:calc(100vh - 120px);overflow:auto;}
.toc-inner{padding:20px 0;border-left:1px solid var(--line);padding-left:20px;}
.toc-label{font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:.1em;
  color:var(--muted);margin-bottom:14px;}
.toc-list{list-style:none;margin:0;padding:0;counter-reset:toc;}
.toc-list li{counter-increment:toc;margin-bottom:2px;}
.toc-link{display:block;padding:8px 0;padding-left:32px;position:relative;
  font-size:var(--text-caption);line-height:1.4;color:var(--muted);
  border-left:2px solid transparent;margin-left:-22px;padding-left:20px;transition:all .18s;}
.toc-link::before{content:counter(toc,decimal-leading-zero);position:absolute;left:20px;top:8px;
  font-family:var(--mono);font-size:10px;color:var(--muted);opacity:.6;}
.toc-link{padding-left:44px;}
.toc-link:hover{color:var(--ink);}
.toc-link.is-active{color:var(--red);border-left-color:var(--red);font-weight:600;}
.toc-link.is-active::before{color:var(--red);opacity:1;}

/* ---- prose typography ---- */
.prose{font-size:1.0625rem;line-height:1.8;color:#2A2A2E;max-width:65ch;}
.prose .lead{font-size:1.25rem;line-height:1.7;color:var(--ink);font-weight:500;margin-bottom:36px;
  padding-bottom:32px;border-bottom:1px solid var(--line);}
.prose h2{font-family:var(--sans-en);font-weight:700;font-size:1.625rem;line-height:1.25;
  color:var(--ink);margin:56px 0 20px;letter-spacing:-.005em;scroll-margin-top:100px;
  padding-top:8px;position:relative;}
.prose h2::before{content:'';position:absolute;top:-8px;left:0;width:32px;height:3px;background:var(--red);
  transform:skewX(-26deg);}
.prose h3{font-family:var(--sans-en);font-weight:600;font-size:1.25rem;line-height:1.3;
  color:var(--ink);margin:36px 0 14px;}
.prose p{margin:0 0 20px;}
.prose p + p{margin-top:0;}
.prose strong{color:var(--ink);font-weight:600;}
.prose a{color:var(--red-dark);border-bottom:1px solid rgba(200,16,46,.3);transition:border-color .15s;}
.prose a:hover{border-bottom-color:var(--red-dark);}
.prose code{font-family:var(--mono);font-size:.92em;background:var(--surface);border:1px solid var(--line);
  padding:2px 8px;border-radius:4px;color:var(--ink);}

/* ---- standard lists (plain markup — <ul> / <ol> from any CMS rich-text) ---- */
.prose ul,.prose ol{margin:0 0 24px;padding-left:26px;}
.prose ul{list-style:disc;}
.prose ol{list-style:decimal;}
.prose li{margin-bottom:10px;padding-left:4px;}
.prose li::marker{color:var(--muted);}

/* ---- standard blockquote (covers both quotes and info notes — plain <blockquote> markup) ---- */
.prose blockquote{margin:32px 0;padding:20px 24px;background:var(--surface);
  border-left:3px solid var(--red);color:var(--ink);}
.prose blockquote p{font-size:1.0625rem;line-height:1.65;margin-bottom:10px;}
.prose blockquote p:last-child{margin-bottom:0;}
.prose blockquote cite{display:block;margin-top:10px;font-style:normal;
  font-size:var(--text-caption);color:var(--muted);}

/* ---- standard table (plain <table><thead><tbody> from CMS) ---- */
.prose table{width:100%;border-collapse:collapse;margin:24px 0 32px;font-size:1rem;
  border:1px solid var(--line);}
.prose thead th{text-align:left;padding:12px 16px;background:var(--ink-2);color:#fff;
  font-weight:600;font-size:var(--text-small);}
.prose tbody td{padding:12px 16px;border-top:1px solid var(--line);color:var(--ink);
  line-height:1.55;vertical-align:top;}
.prose tbody tr:nth-child(even){background:var(--surface);}

/* ---- inline figure ---- */
.inline-figure{margin:32px 0;}
.inline-figure img{width:100%;height:auto;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%);}
.inline-figure figcaption{margin-top:12px;font-size:var(--text-caption);color:var(--muted);
  padding-left:14px;border-left:2px solid var(--red);line-height:var(--lh-normal);}

/* ---- image gallery — plain <a><img></a> markup (CMS gallery block) ---- */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0 32px;}
.gallery a{display:block;overflow:hidden;aspect-ratio:1/1;position:relative;
  cursor:zoom-in;border-bottom:0;}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.16,.84,.3,1);}
.gallery a:hover img{transform:scale(1.05);}
/* one photo: show it whole at column width instead of a lone square thumbnail */
.gallery--single{grid-template-columns:1fr;}
.gallery--single a{aspect-ratio:auto;}
.gallery--single img{height:auto;}

/* ---- video block (YouTube) — reuses .pd-video-embed (16:9 iframe box) ---- */
.article-video{margin:32px 0;}
.article-video figcaption{margin-top:12px;font-size:var(--text-caption);color:var(--muted);
  padding-left:14px;border-left:2px solid var(--red);line-height:var(--lh-normal);}

/* ---- tags ---- */
.article-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:56px;padding-top:32px;
  border-top:1px solid var(--line);}
.tags-label{font-size:var(--text-caption);color:var(--muted);margin-right:6px;}
.prose a.tag,a.tag{display:inline-flex;align-items:center;height:28px;padding:0 12px;font-size:var(--text-caption);
  background:var(--surface);border:1px solid var(--line);color:var(--ink);transition:all .18s;
  border-bottom:1px solid var(--line);}
.prose a.tag:hover,a.tag:hover{background:var(--ink);color:#fff;border-color:var(--ink);}

.article-share--bottom{margin-top:32px;padding:24px;background:var(--surface);border:1px solid var(--line);
  border-radius:2px;clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%);}

/* ---- related articles ---- */
.related{padding:clamp(56px,7vw,96px) 0;background:var(--surface);border-top:1px solid var(--line);}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.rel-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  transition:all .28s cubic-bezier(.16,.84,.3,1);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);}
.rel-card:hover{transform:translateY(-4px);border-color:var(--ink);box-shadow:0 20px 40px rgba(23,23,26,.08);}
.rel-img{aspect-ratio:16/10;overflow:hidden;}
.rel-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s;}
.rel-card:hover .rel-img img{transform:scale(1.05);}
.rel-body{padding:20px 22px 24px;}
.rel-kicker{display:inline-block;font-family:var(--mono);font-size:11px;text-transform:uppercase;
  letter-spacing:.08em;color:var(--red);margin-bottom:10px;}
.rel-title{font-family:var(--sans-en);font-weight:600;font-size:1.0625rem;line-height:1.4;
  color:var(--ink);margin-bottom:14px;text-wrap:balance;}
.rel-meta{font-size:var(--text-caption);color:var(--muted);font-family:var(--mono);}

/* overrides the shared CTA's button gap (12px → 14px) on every page — kept to avoid a visual shift */
.cta-actions{display:flex;gap:14px;flex-wrap:wrap;}

/* ---- lightbox ---- */
.lightbox{position:fixed;inset:0;background:rgba(15,15,18,.94);z-index:200;
  display:flex;align-items:center;justify-content:center;padding:40px;}
.lightbox[hidden]{display:none;}
.lb-figure{margin:0;max-width:min(1200px,90vw);max-height:80vh;display:flex;flex-direction:column;align-items:center;}
.lb-figure img{max-width:100%;max-height:75vh;object-fit:contain;}
.lb-figure figcaption{color:#fff;margin-top:16px;font-size:var(--text-small);text-align:center;opacity:.85;}
.lb-close{position:absolute;top:20px;right:24px;width:44px;height:44px;background:transparent;
  border:1px solid rgba(255,255,255,.3);color:#fff;font-size:28px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;line-height:1;transition:all .2s;}
.lb-close:hover{background:#fff;color:var(--ink);}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;
  background:rgba(255,255,255,.1);border:0;color:#fff;font-size:32px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;line-height:1;transition:all .2s;}
.lb-nav[hidden]{display:none;}
.lb-nav:hover{background:#fff;color:var(--ink);}
.lb-prev{left:24px;}
.lb-next{right:24px;}
.lb-counter{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,.7);font-family:var(--mono);font-size:var(--text-caption);letter-spacing:.05em;}

/* ---- responsive ---- */
@media (max-width:960px){
  .article-body{grid-template-columns:1fr;gap:32px;}
  .article-toc{position:static;max-height:none;order:-1;
    background:var(--surface);border:1px solid var(--line);padding:20px 24px;}
  .toc-inner{border-left:0;padding:0;}
  .toc-link{border-left-width:0;padding-left:44px;}
  .toc-link.is-active{border-left-width:2px;}
  .related-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:640px){
  .article-hero{padding-top:20px;}
  .article-meta{gap:12px;}
  .am-sep{display:none;}
  .prose{font-size:1rem;line-height:1.75;}
  .prose .lead{font-size:1.125rem;}
  .prose h2{font-size:1.375rem;margin-top:40px;}
  .gallery{grid-template-columns:repeat(2,1fr);gap:6px;}
  .related-grid{grid-template-columns:1fr;}
  .lb-nav{width:40px;height:40px;font-size:24px;}
  .lb-prev{left:8px;} .lb-next{right:8px;}
  .lb-close{top:12px;right:12px;}
}

/* =================================================================
   KNOWLEDGE HUB — knowledge.html (featured + grid + filter + pager)
   Cards reuse .rel-card / .rel-img / .rel-kicker / .rel-title / .rel-meta.
   ================================================================= */
.kb-hero{padding:clamp(40px,5vw,72px) 0 clamp(36px,4.5vw,56px);}
.kb-main{padding:clamp(34px,4.5vw,62px) 0 clamp(56px,7vw,96px);}

/* ---- Featured (latest / highlight) ---- */
.kb-featured{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(20px,2.6vw,40px);align-items:stretch;
  background:#fff;border:1px solid var(--line);overflow:hidden;text-decoration:none;color:inherit;
  margin-bottom:clamp(34px,4vw,54px);transition:border-color .25s,box-shadow .35s,transform .3s;}
.kb-featured[hidden]{display:none;}
.kb-featured:hover{border-color:var(--red);box-shadow:0 26px 54px -30px rgba(200,16,46,.4);transform:translateY(-2px);}
.kb-featured-media{position:relative;overflow:hidden;min-height:280px;background:var(--ink-2);}
.kb-featured-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
.kb-featured:hover .kb-featured-media img{transform:scale(1.04);}
.kb-featured-body{padding:clamp(24px,3vw,46px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;}
.kb-featured-flag{display:inline-flex;align-items:center;height:26px;padding:0 13px;border-radius:999px;background:var(--red);color:#fff;
  font-family:var(--mono);font-size:var(--text-caption);font-weight:600;letter-spacing:.03em;}
.kb-featured .rel-kicker{margin:0;}
.kb-featured-title{font-family:var(--sans-en);font-weight:700;font-size:var(--fluid-h4);line-height:var(--lh-snug);color:var(--ink);margin:0;text-wrap:balance;}
.kb-featured-excerpt{font-size:var(--text-lead);line-height:var(--lh-relaxed);color:#3A3A40;margin:0;max-width:54ch;}
.kb-featured-meta{font-family:var(--mono);font-size:var(--text-caption);color:var(--muted);}
.kb-featured-cta{display:inline-flex;align-items:center;gap:8px;margin-top:6px;font-weight:600;font-size:var(--text-small);color:var(--red);
  border-bottom:2px solid var(--red);padding-bottom:4px;transition:gap .22s cubic-bezier(.16,.84,.3,1);}
.kb-featured:hover .kb-featured-cta{gap:13px;}

/* ---- Toolbar: search + year ---- */
.kb-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px;}
.kb-search{flex:1 1 320px;min-width:0;display:flex;align-items:center;gap:10px;height:50px;padding:0 15px;
  background:#fff;border:1px solid var(--line);transition:border-color .2s,box-shadow .2s;}
.kb-search:focus-within{border-color:var(--red);box-shadow:0 0 0 3px rgba(200,16,46,.1);}
.kb-search-icon{color:var(--muted);flex:none;}
.kb-search-input{flex:1;min-width:0;border:none;background:none;font-family:var(--sans);font-size:var(--text-body);color:var(--ink);height:100%;-webkit-appearance:none;appearance:none;}
.kb-search-input:focus-visible{outline:none;}
.kb-search-input::placeholder{color:var(--muted-3);}
.kb-search-input::-webkit-search-cancel-button{display:none;}
.kb-search-clear{flex:none;width:26px;height:26px;border:none;background:none;color:var(--muted);font-size:21px;line-height:1;cursor:pointer;border-radius:50%;}
.kb-search-clear:hover{color:var(--ink);background:var(--line-2);}
.kb-year{display:flex;align-items:center;gap:10px;flex:none;}
.kb-year-label{font-family:var(--mono);font-size:var(--text-caption);color:var(--muted);}
.kb-year-select{height:50px;padding:0 40px 0 16px;border:1px solid var(--line);background-color:#fff;color:var(--ink);
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236F6F75' stroke-width='1.6'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 15px center;
  font-family:var(--sans);font-size:var(--text-body);cursor:pointer;-webkit-appearance:none;appearance:none;}
.kb-year-select:focus-visible{outline:none;border-color:var(--red);}

.kb-count{font-family:var(--mono);font-size:var(--text-caption);color:var(--muted);margin:0 0 20px;}

/* ---- Grid: 4 across, reuses .rel-card look ---- */
.kb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(18px,1.8vw,26px);}
.kb-card{height:100%;}
.kb-card .rel-img{aspect-ratio:3/2;}
/* hover: red border + red-tinted shadow — matches .cat-card hover elsewhere on the site */
.kb-card:hover{border-color:var(--red);box-shadow:0 16px 32px -22px rgba(200,16,46,.4);}

/* ---- Pagination ---- */
.kb-pager{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:clamp(36px,4vw,56px);flex-wrap:wrap;}
.kb-page-btn{min-width:42px;height:42px;padding:0 12px;border:1px solid var(--line);background:#fff;color:var(--ink);
  font-family:var(--sans);font-size:var(--text-small);font-weight:500;cursor:pointer;transition:border-color .18s,background .18s,color .18s;}
.kb-page-btn:hover:not(:disabled):not(.is-active){border-color:var(--ink);}
.kb-page-btn.is-active{background:var(--red);border-color:var(--red);color:#fff;font-weight:600;}
.kb-page-btn:disabled{opacity:.4;cursor:default;}
.kb-page-arrow{font-size:19px;}

@media (max-width:1100px){.kb-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:860px){
  .kb-featured{grid-template-columns:1fr;}
  .kb-featured-media{min-height:0;aspect-ratio:16/9;}
  .kb-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
  .kb-grid{grid-template-columns:1fr;}
  .kb-toolbar{flex-direction:column;align-items:stretch;}
  .kb-search{flex:0 0 auto;}   /* column axis: the desktop 320px flex-basis became a 320px-tall box */
  .kb-year{justify-content:space-between;}
  .kb-year-select{flex:1;}
}

/* ===== 404 (404.html) ===== */
.nf-body{padding:clamp(48px,6vw,96px) 0;}
.nf-lead{max-width:60ch;font-size:var(--text-lead);line-height:var(--lh-relaxed);color:var(--ink);}
.nf-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:clamp(24px,3vw,36px);}

/* =================================================================
   PRIVACY POLICY (privacy.html) — red hero + the article TOC/prose layout
   ================================================================= */
.pv-hero-sub{margin:14px 0 0;font-size:var(--text-body);line-height:var(--lh-relaxed);color:rgba(255,255,255,.82);}
.pv-body{padding:clamp(40px,5vw,80px) 0 clamp(56px,7vw,110px);}
.pv-prose h2{scroll-margin-top:100px;}
.pv-prose h2 .pv-no{color:var(--red);margin-right:2px;}
.pv-prose a{overflow-wrap:anywhere;}
/* numbered clauses (1.1 / (1) …) — hanging number column so long Thai lines align under the text */
.pv-prose .pv-list{list-style:none;padding-left:0;margin:0 0 28px;}
.pv-prose .pv-list li{display:grid;grid-template-columns:3.1em minmax(0,1fr);gap:4px;padding:0;margin-bottom:14px;}
.pv-prose .pv-list--tight li{margin-bottom:6px;}
.pv-n{font-family:var(--sans-en);font-weight:600;color:var(--red);font-variant-numeric:tabular-nums;}
.pv-basis{display:block;margin-top:6px;padding-left:12px;border-left:2px solid var(--line);
  font-size:var(--text-small);line-height:var(--lh-snug);color:var(--muted);}
.pv-contact{margin:0 0 24px;padding:20px 24px;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--red);}
.pv-contact > div{display:grid;grid-template-columns:11em minmax(0,1fr);gap:16px;padding:7px 0;}
.pv-contact > div + div{border-top:1px solid var(--line-2);}
.pv-contact dt{font-size:var(--text-small);color:var(--muted);}
.pv-contact dd{margin:0;color:var(--ink);}
@media (max-width:560px){
  .pv-contact{padding:14px 16px;}
  .pv-contact > div{grid-template-columns:1fr;gap:2px;}
  .pv-prose .pv-list li{grid-template-columns:2.7em minmax(0,1fr);}
}
