/* =========================================================
   DEC MEDIA — site.css
   Design tokens ถอดจากไฟล์ดีไซน์ (frame 1920px)
   ========================================================= */

/* ---------- FONTS (self-hosted, subset latin, ~9KB/weight) ----------
   Maven Pro = Latin เท่านั้น (ฟอนต์นี้ไม่มี glyph ภาษาไทย)
   unicode-range จำกัดให้ Maven Pro รับเฉพาะ Latin -> ตัวไทยจะตกไปใช้
   @font-face "Maven Pro" ชุด Thai ด้านล่าง (family เดียวกัน) อัตโนมัติ  */
/* 300 Light — วางไฟล์ MavenPro-Light.woff2 เพื่อให้ weight 300 เป็น Light จริง
   ถ้ายังไม่มีไฟล์ เบราว์เซอร์จะ fallback ไป Regular (400) เอง */
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Maven Pro";
  src: url("/assets/fonts/MavenPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

/* ---- Thai companion: Anuphan (self-hosted, variable 400-700) ----
   family เดียวกับ Maven Pro + unicode-range ไทย -> `font-family: "Maven Pro"`
   จะวาดตัวไทยด้วย Anuphan และตัว Latin ด้วย Maven Pro โดยอัตโนมัติ
   ไฟล์เดียว variable ครอบทุกน้ำหนัก (400 500 600 700) — เบราว์เซอร์เลือก weight เอง
   THAI_RANGE = U+0E01-0E5B (พยัญชนะ-สระ-วรรณยุกต์), U+200C-200D (ZWNJ/ZWJ), U+25CC */
@font-face {
  font-family: "Maven Pro";
  src:
    url("/assets/fonts/Anuphan-Thai.woff2") format("woff2"),
    local("Anuphan"),
    local("Noto Sans Thai"),
    local("Leelawadee UI"),
    local("Sarabun");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* ---------- TOKENS ---------- */
:root {
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.78);
  --accent: #fb8005;
  --bg: #000000;
  --bg-soft: #060606;
  --panel: linear-gradient(314deg, #070707 0%, #000000 77%);
  --band: linear-gradient(270deg, #070707 0%, #000000 77%);
  --line: rgba(255, 255, 255, 0.55);
  --line-soft: rgba(255, 255, 255, 0.18);

  --radius: 15px;
  --radius-btn: 5px;

  /* ---- ระยะขอบซ้าย-ขวา: ปรับที่เดียวจบทั้งเว็บ ----
     design frame 1920 => container 1801 => ขอบ 60px จากขอบจอ (ไม่ใช่กล่องกลางจอ)
     --wrap สูงกว่า 1800 เพื่อให้เนื้อหา "ชิดขอบ" เหมือน design แทนที่จะถูกบีบให้อยู่กลาง */
  --wrap: 2200px;
  --gutter: clamp(
    20px,
    4vw,
    40px
  ); /* mobile 20px -> desktop 40px | ปรับที่นี่ที่เดียว */
  --nav-h: 78px;

  /* type scale — อิงดีไซน์ 1920 แล้วย่อลงอย่างนุ่มนวล */
  --fs-display: clamp(2.25rem, 3.35vw, 4rem); /* 64 */
  --fs-h2: clamp(1.9rem, 2.6vw, 3.125rem); /* 50 */
  --fs-h2-sm: clamp(1.75rem, 2.5vw, 3rem); /* 48 */
  --fs-h3: clamp(1.35rem, 1.67vw, 2rem); /* 32 */
  --fs-h4: clamp(1.15rem, 1.2vw, 1.4375rem); /* 23 */
  --fs-lead: clamp(1rem, 1.05vw, 1.25rem); /* 20 */
  --fs-body: clamp(0.95rem, 0.9vw, 1.0625rem); /* 17 */
  --fs-xs: 0.8125rem; /* 13 */
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Maven Pro",
    system-ui,
    -apple-system,
    "Noto Sans Thai",
    sans-serif;
  font-size: var(--fs-body);
  line-height: 1.76;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
figure,
ul,
address {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}
address {
  font-style: normal;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.accent {
  color: var(--accent);
}
.dot {
  color: var(--accent);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
}
.skip:focus {
  left: 0;
}

/* ---------- SHARED BITS ---------- */
.eyebrow {
  font-size: var(--fs-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 20px; /* ~80% ของเดิม (47px -> ~38px) | padding แคบลงให้กระชับตาม design */
  border-radius: var(--radius-btn);
  font-size: clamp(0.8125rem, 0.9vw, 1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--solid {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}
.btn--solid:hover {
  background: #d96c00;
  border-color: #d96c00;
}
.btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn--outline:hover {
  background: #fff;
  color: #000;
}
.btn--ghost {
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn--ghost:hover {
  background: #fff;
  color: #000;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-body);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.arrow-link__icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
  transition: transform 0.2s ease;
}
.arrow-link:hover .arrow-link__icon {
  transform: translateX(5px);
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
}
.carousel-nav[hidden] {
  display: none;
} /* ต้องมี: display:flex ทับ [hidden] ของ browser */
.carousel-nav__btn {
  width: 45px;
  height: 26px;
  border: 1px solid #fff;
  border-radius: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.carousel-nav__btn svg {
  width: 15px;
  height: 15px;
}
.carousel-nav__btn:hover {
  background: #fff;
  color: #000;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.sec-head__title {
  font-size: var(--fs-h2-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.sec-head__link {
  white-space: nowrap;
}
.sec-head__desc {
  margin-top: 0px;
  max-width: 100%;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-dim);
}
/* Featured: จอแคบ -> stack เป็นแนวตั้ง (text เต็มความกว้าง, ลิงก์อยู่ล่างชิดซ้าย)
   desktop คง 2 คอลัมน์ + alignment เดิม */
@media (max-width: 700px) {
  .featured .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .featured .sec-head > :first-child {
    width: 100%;
  }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(7px);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img {
  width: clamp(84px, 5.5vw, 105px);
  height: auto;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 51px);
}
.nav__menu > a:not(.btn) {
  font-size: clamp(0.875rem, 0.94vw, 1.125rem);
  font-weight: 500;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav__menu > a:not(.btn):hover {
  border-bottom-color: var(--accent);
}
/* สถานะเลือก (หน้าปัจจุบัน): กรอบส้ม */
.nav__menu > a.is-active {
  border: 1.25px solid var(--accent);
  color: var(--accent);
  padding: 0px 15px;
  border-radius: var(--radius-btn);
  border-bottom-color: var(--accent);
}
.nav__cta.is-active {
  border: 1.25px solid var(--accent);
  color: var(--accent);
  padding: 6px 15px;
  border-radius: var(--radius-btn);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.875rem, 0.94vw, 1.125rem);
  font-weight: 500;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent; /* เหมือนเมนูอื่น */
  color: inherit;
}
.nav__cta svg {
  width: 16px;
  height: 16px;
}
.nav__cta:hover {
  border-bottom-color: var(--accent);
}
.nav__search-form {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
}
.nav__search-form input {
  width: 0;
  min-width: 0;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    width 0.28s ease,
    padding 0.28s ease,
    opacity 0.18s ease,
    transform 0.28s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.nav__search-form input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.nav__search-form.is-open input {
  width: clamp(150px, 13vw, 240px);
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.32);
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.nav__search-form input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  outline: 0;
}
.nav__search {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  transition:
    color 0.18s ease,
    transform 0.28s ease;
}
.nav__search svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}
.nav__search:hover {
  color: var(--accent);
}

.nav__burger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav__burger span:nth-child(1) {
  top: 0;
}
.nav__burger span:nth-child(2) {
  top: 10px;
}
.nav__burger span:nth-child(3) {
  top: 20px;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0) 55%, rgba(6, 6, 6, 0.92) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}
.hero__body {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding-block: clamp(40px, 7vh, 90px) clamp(28px, 4vh, 48px);
}
.hero__eyebrow {
  font-size: var(--fs-lead);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 44px 0 30px;
}
/* lockup เป็นภาพ (SVG) — ความกว้างคุมด้วย CSS, alt ทำหน้าที่ H1 ให้ Google */
.hero__lockup {
  width: clamp(
    260px,
    30vw,
    577px
  ); /* ไม่ขยายเกินขนาดจริงของไฟล์ (577px) กันภาพแตก */
  height: auto;
}
.hero__note {
  margin-top: 6px;
  font-size: clamp(0.8rem, 1.05vw, 1.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.165em;
  color: var(--ink);
}
.hero__lead {
  max-width: 615px;
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
}
.hero__actions .btn {
  min-width: 0;
}

/* design: เส้นตั้งอยู่ "เหนือ" วงกลม แล้ววงกลม + ข้อความอยู่บรรทัดเดียวกัน */
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto; /* ดันไปชิดล่างของ hero ตาม design */
  font-size: var(--fs-body);
  letter-spacing: 0.05em;
}
.hero__scroll-rail {
  width: 1.5px;
  height: clamp(70px, 9vh, 130px);
  background: #fff;
  margin-left: 18px; /* ตรงกลางวงรีด้านล่าง (กว้าง 38 -> กลาง ~19) */
}
.hero__scroll-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.hero__scroll-circle {
  width: 38px;
  height: 54px;
  border: 1.5px solid #fff;
  border-radius: 40px; /* วงรีแนวตั้ง */
  display: grid;
  place-items: center;
  flex: none;
  animation:
    hero-scroll-bob 1.65s ease-in-out infinite,
    hero-scroll-pulse 1.65s ease-in-out infinite;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
  cursor: pointer;
  will-change: transform;
}
.hero__scroll-circle svg {
  width: 20px;
  height: 20px;
  animation: hero-scroll-arrow-bob 1.65s ease-in-out infinite;
}
.hero__scroll-circle:hover,
.hero__scroll-circle:focus-visible {
  background: rgba(251, 128, 5, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.hero__scroll-label {
  white-space: nowrap;
}
@keyframes hero-scroll-bob {
  0%,
  100% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(7px);
  }
}
@keyframes hero-scroll-arrow-bob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}
@keyframes hero-scroll-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.12);
  }
}

/* =========================================================
   STATEMENT
   ========================================================= */
.statement {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}
.statement__bg {
  position: absolute;
  inset: 0;
}
.statement__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transform-origin: center;
}
.statement__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #161616 26%, rgba(16, 16, 16, 0) 60%);
}
.statement__body {
  position: relative;
  z-index: 1;
  padding-block: clamp(70px, 9vw, 162px);
  /* design: ข้อความเยื้องเข้ามาจากขอบซ้ายราว 13% (ไม่ชิด gutter เหมือน section อื่น)
     ปรับความเยื้องที่ค่านี้ค่าเดียว */
  padding-left: clamp(0px, 10vw, 200px);
  min-height: clamp(380px, 32vw, 621px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.statement__text {
  max-width: 640px;
  font-size: clamp(1.5rem, 2.2vw, 2.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}
.statement__text .accent {
  font-weight: 600;
}
/* design: ข้อความอยู่ค่อนไปทางบน-ซ้าย ไม่ใช่กึ่งกลางแนวตั้ง */
.statement__body {
  justify-content: center;
  padding-block: clamp(64px, 8vw, 150px);
}
.js .statement.is-ready .statement__bg img,
.js .statement.is-ready .statement__text,
.js .statement.is-ready .statement__body > .arrow-link {
  transition:
    opacity 3s ease,
    transform 3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .statement.is-ready:not(.is-visible) .statement__bg img,
.js .statement.is-ready:not(.is-visible) .statement__text,
.js .statement.is-ready:not(.is-visible) .statement__body > .arrow-link {
  opacity: 0;
}
.js .statement.is-ready:not(.is-visible) .statement__bg img {
  transform: scale(1.08);
}
.js .statement.is-ready:not(.is-visible) .statement__text {
  transform: translateY(42px);
}
.js .statement.is-ready:not(.is-visible) .statement__body > .arrow-link {
  transform: translateY(26px);
  transition-delay: 0.16s;
}
.js .statement.is-visible .statement__bg img,
.js .statement.is-visible .statement__text,
.js .statement.is-visible .statement__body > .arrow-link {
  opacity: 1;
  transform: none;
}
.js .statement.is-visible .statement__bg img {
  transform: scale(1.04);
  transition-duration: 3.65s;
}
/* บนจอเล็ก ปล่อยให้ wrap เองสวยกว่าบังคับ <br> ของ desktop */

/* =========================================================
   FEATURED / BENTO
   ========================================================= */
.featured {
  padding-block: clamp(64px, 8vw, 140px);
  background: var(--bg);
}
.js .featured.is-ready .sec-head,
.js .featured.is-ready .bento__poster,
.js .featured.is-ready .work-card,
.js .featured.is-ready > .wrap > .carousel-nav {
  transition:
    opacity 3s ease,
    transform 3s cubic-bezier(0.16, 1, 0.3, 1),
    filter 3s ease;
  will-change: opacity, transform, filter;
}
.js .featured.is-ready:not(.is-visible) .sec-head {
  opacity: 0;
  transform: translateY(34px);
}
.js .featured.is-ready:not(.is-visible) .bento__poster {
  opacity: 0;
  transform: translateX(-34px) scale(0.94) rotate(-1.5deg);
  filter: blur(8px);
}
.js .featured.is-ready:not(.is-visible) .work-card--tall {
  opacity: 0;
  transform: translateY(56px) scale(0.95);
  filter: blur(8px);
}
.js .featured.is-ready:not(.is-visible) .work-card--wide {
  opacity: 0;
  transform: translateX(62px) scale(0.96);
  filter: blur(8px);
}
.js .featured.is-ready:not(.is-visible) > .wrap > .carousel-nav {
  opacity: 0;
  transform: translateY(18px);
}
.js .featured.is-visible .sec-head,
.js .featured.is-visible .bento__poster,
.js .featured.is-visible .work-card,
.js .featured.is-visible > .wrap > .carousel-nav {
  opacity: 1;
  transform: none;
  filter: none;
}
.js .featured.is-ready .bento__poster {
  transition-delay: 0.28s;
}
.js .featured.is-ready .work-card--tall {
  transition-delay: 0.56s;
}
.js .featured.is-ready .work-card--wide:nth-of-type(2) {
  transition-delay: 0.84s;
}
.js .featured.is-ready .work-card--wide:nth-of-type(3) {
  transition-delay: 1.12s;
}
.js .featured.is-ready > .wrap > .carousel-nav {
  transition-delay: 1.36s;
}

.bento {
  display: grid;
  grid-template-columns: 24fr 25fr 49fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: clamp(520px, 35vw, 664px);
}
.bento__poster {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.bento__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.5) 58%,
    rgba(255, 255, 255, 0.06) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.bento__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.5) 58%,
    rgba(255, 255, 255, 0.06) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.work-card--tall {
  grid-column: 2;
  grid-row: 1 / 3;
}
.work-card--wide {
  grid-column: 3;
}
.work-card--wide:nth-of-type(2) {
  grid-row: 1;
}
.work-card--wide:nth-of-type(3) {
  grid-row: 2;
}
/* Featured: รูปของการ์ดใบแรกเยื้องลง 80px (เฉพาะรูป ไม่ใช่ทั้งการ์ด) */
.featured .bento .work-card:first-of-type .work-card__media img {
  margin-top: 80px;
}

.work-card__media {
  position: absolute;
  inset: 0;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
  will-change: transform;
}
.work-card:hover .work-card__media img {
  transform: scale(1.08);
  filter: saturate(1.04) contrast(1.03);
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 22, 0.94) 38%,
    rgba(16, 16, 16, 0) 62%
  );
}
.work-card--wide::after {
  background: linear-gradient(
    90deg,
    rgba(22, 22, 22, 0.94) 30%,
    rgba(16, 16, 16, 0) 60%
  );
}
.work-card__body {
  position: relative;
  z-index: 1;
  padding: 44px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 400px;
}
.work-card--wide .work-card__body {
  max-width: 54%;
  padding: 24px 30px;
  gap: 10px;
  justify-content: center; /* จัดกลางแนวตั้งในการ์ดเตี้ย ให้รูป+ข้อความเข้ากัน */
}
.work-card--wide .work-card__title {
  font-size: var(--fs-h4); /* การ์ด wide เตี้ยกว่า -> title เล็กลงนิดให้พอดี */
}
.work-card--wide .work-card__meta {
  font-size: var(--fs-xs);
}
.work-card__cat {
  color: var(--accent);
  letter-spacing: 0.05em;
}
.work-card__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.05em;
}
.work-card__meta {
  line-height: 1.6;
  color: var(--ink);
}
.work-card__link {
  margin-top: auto;
}

/* =========================================================
   SERVICES BANNER
   ========================================================= */
.services {
  position: relative;
  overflow: hidden;
  background: var(--band);
}
.services__bg {
  position: absolute;
  inset: 0;
}
.services__bg img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform-origin: center;
}
.services__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: radial-gradient(
    ellipse 86% 125% at 100% 30%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.86) 100%
  ); */
}
.services__body {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 5vw, 90px);
  min-height: clamp(280px, 20vw, 383px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.services__title {
  max-width: 1000px;
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}
.services__title .accent {
  font-weight: 600;
}
.services__body > .eyebrow,
.services__title,
.services__body > .arrow-link {
  transform-origin: left center;
}

/* ── Scroll reveal ของ section Our Services ──
   ตัด animate ของ eyebrow "Our Services" + heading "One ecosystem..." + รูปพื้นหลังออก
   คงไว้แค่ปุ่ม "View Our Services" ที่ค่อย ๆ เลื่อนขึ้น (fade-up) ตอนเลื่อนถึง */
.js .services.is-ready .services__body > .arrow-link {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
  will-change: opacity, transform;
}
.js .services.is-visible .services__body > .arrow-link {
  opacity: 1;
  transform: none;
}
.services__body > .eyebrow,
.services__title,
.services__body > .arrow-link {
  transform-origin: left center;
  transition: transform 0.25s ease;
}
/* hover scale เฉพาะปุ่ม View Our Services — ไม่ scale ข้อความ eyebrow/heading */
.services__body > .arrow-link:hover {
  transform: scale(1.1);
}
.js .services.is-ready .services__body > .arrow-link:hover {
  transform: scale(1.1);
  transition-duration: 0.25s;
  transition-delay: 0s;
}
.services__body > .arrow-link:hover .arrow-link__icon {
  transform: translateX(5px) scale(1.1);
}

/* =========================================================
   OUR PRODUCT
   ========================================================= */
.products {
  padding-block: clamp(56px, 6vw, 100px);
  background: var(--band);
}
.products__title {
  font-size: clamp(1.6rem, 2.1vw, 2.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid #fff;
}
.product {
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.product:nth-child(6n) {
  border-right: 0;
}
.product:nth-last-child(-n + 6) {
  border-bottom: 0;
}
.product__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 226px;
  padding: 56px 16px 24px;
  text-align: center; /* padding-top เผื่อเลข ไม่ให้ไอคอนชน */
  transition: background-color 0.18s ease;
}
.product__link:hover {
  background: rgba(251, 128, 5, 0.08);
}
.product--active .product__link,
.product__link[aria-current="page"] {
  background:
    linear-gradient(0deg, rgba(251, 128, 5, 0.85) 0, rgba(251, 128, 5, 0) 14%),
    rgba(255, 255, 255, 0.045);
}
.product__no {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--accent);
  font-size: 1.1875rem;
  letter-spacing: 0.05em;
}
.product__figure {
  position: relative;
  display: inline-flex;
}
.product__icon {
  height: 66px;
  width: auto; /* SVG มี width/height ในตัวแล้ว (scale ตามสูง 66) */
}
.product__badge {
  position: absolute;
  height: 34px;
  width: auto;
  pointer-events: none;
}
.product__badge--hot {
  top: -8px;
  left: -6px;
} /* มุมซ้ายบน ชิดไอคอน */
.product__badge--new {
  top: -8px;
  right: -8px;
} /* มุมขวาบน ชิดไอคอน */
.product__label {
  font-size: var(--fs-body);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.product__icon,
.product__badge {
  transform-origin: center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.product__link:hover .product__icon,
.product__link:hover .product__badge {
  transform: scale(1.2);
}

/* =========================================================
   SERVICES DETAIL
   ========================================================= */
.svc-page {
  background: #000;
}
.svc-hero {
  position: relative;
  min-height: clamp(390px, 26.72vw, 513px);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.svc-hero__media {
  position: absolute;
  inset: 0;
}
.svc-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      270deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.3) 72%,
      #000 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9) 4%,
      rgba(0, 0, 0, 0.58) 37%,
      rgba(0, 0, 0, 0) 78%
    );
}
.svc-hero__body {
  position: relative;
  z-index: 1;
  padding-top: clamp(34px, 2.8vw, 54px);
  padding-bottom: clamp(34px, 3vw, 58px);
}
.svc-hero__eyebrow,
.svc-gallery__no {
  color: #fff;
  font-size: clamp(0.9rem, 1.2vw, 1.4375rem);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.svc-hero__title {
  max-width: 1120px;
  margin-top: 12px;
  font-size: clamp(2.35rem, 3.15vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}
.svc-hero__lead {
  max-width: 710px;
  margin-top: clamp(20px, 2vw, 35px);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.76;
  letter-spacing: 0.05em;
}
.svc-page .products {
  padding-block: clamp(10px, 2vw, 10px) clamp(24px, 2.6vw, 50px);
  background: #000;
}
.svc-page .products__title {
  margin-bottom: 28px;
}
.svc-page .products__grid {
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(270deg, #0a0a0a 0%, #1a1a1a 100%);
}
.svc-page .product__link {
  min-height: clamp(182px, 11.1vw, 213px);
  padding-top: 44px;
}
.svc-page .product__icon {
  height: clamp(48px, 3.5vw, 66px);
}
.svc-page .product__label {
  font-size: clamp(0.72rem, 0.72vw, 0.95rem);
  line-height: 1.18;
}
.svc-gallery {
  padding-block: clamp(18px, 2vw, 34px) clamp(72px, 9vw, 70px);
  /* คลิกหัวข้อจาก products แล้ว scroll มาที่นี่ (id=svc-content) — เว้นระยะพ้น nav ที่ fixed อยู่บนสุด */
  scroll-margin-top: calc(var(--nav-h) + clamp(12px, 2vw, 24px));
}
.svc-gallery .wrap {
  position: relative;
}
.svc-gallery .wrap::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: clamp(72px, 7vw, 138px);
  background: rgba(255, 255, 255, 0.82);
}
.svc-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 3.9vw, 76px);
}
.svc-gallery__no {
  color: var(--accent);
  font-size: clamp(0.78rem, 0.9vw, 1.0625rem);
}
.svc-gallery__title {
  margin-top: 3px;
  font-size: clamp(1.9rem, 2.5vw, 3rem);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.svc-gallery__sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.8rem, 0.78vw, 0.95rem);
  letter-spacing: 0.05em;
}
.svc-gallery__sort span {
  color: rgba(255, 255, 255, 0.62);
}
.svc-gallery__sort svg {
  width: 15px;
  height: auto;
  transition: transform 0.2s ease;
}
/* ---- ตัวกรอง category ของ gallery ---- */
.svc-gallery__filter {
  position: relative;
}
.svc-gallery__filter b {
  font-weight: 500;
}
.svc-gallery__filter[data-open] .svc-gallery__sort svg {
  transform: rotate(180deg);
}
.svc-gallery__filter-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  min-width: 180px;
  padding: 6px 0;
  border: 0.75px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: #0a0a0a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
}
.svc-gallery__filter-menu button {
  display: block;
  width: 100%;
  padding: 9px 18px;
  text-align: left;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.8rem, 0.78vw, 0.95rem);
  letter-spacing: 0.05em;
}
.svc-gallery__filter-menu button:hover,
.svc-gallery__filter-menu button.is-active {
  color: var(--accent);
  background: rgba(251, 128, 5, 0.1);
}
.svc-gallery__item[hidden] {
  display: none;
}
.svc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 12px);
}
.svc-gallery__item {
  overflow: hidden;
  border-radius: 5px;
  border: 0.75px solid rgba(255, 255, 255, 0.55);
  background: #111;
}
.svc-gallery__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: inherit;
}
.svc-gallery__item--third {
  grid-column: span 2;
  aspect-ratio: 594 / 402;
}
.svc-gallery__item--half {
  grid-column: span 3;
  aspect-ratio: 896 / 604;
}
.svc-gallery__item--full,
.svc-gallery__item--full-tall {
  grid-column: 1 / -1;
  aspect-ratio: 1804 / 390;
}
.svc-gallery__item--full-tall {
  aspect-ratio: 1804 / 664;
}
.svc-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-gallery__item:hover img {
  transform: scale(1.04);
}
/* ---- โครงการหลายรูปในกริด service = slider (reuse .artd-gallery) ---- */
.svc-gallery__item--slider {
  position: relative;
}
.svc-gallery__item--slider:hover img {
  transform: none; /* ไม่ zoom ตอน hover ในโหมด slider */
}
.svc-slider.artd-gallery {
  margin: 0;
  max-width: none;
  height: 100%;
}
.svc-slider .artd-gallery__track,
.svc-slider .artd-gallery__slide {
  height: 100%;
}
.svc-slider .artd-gallery__slide img {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0; /* เซลล์มีมุมโค้งอยู่แล้ว */
  object-fit: cover;
}
/* crossfade: สไลด์ที่ไม่ได้ดูจางลง -> รูปใหม่ค่อย ๆ fade in ตอนเลื่อน (ดูสมูท) */
.svc-slider .artd-gallery__slide {
  transition: opacity 0.4s ease;
}
.svc-slider .artd-gallery__slide:not(.is-active) {
  opacity: 0.35;
}
/* จุด (dots) อยู่ในกรอบรูป — ล่างกึ่งกลาง ไม่หลุดออกนอกเซลล์ */
.svc-slider .artd-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  z-index: 2;
}
.svc-slider .artd-gallery__nav {
  width: 36px;
  height: 36px;
}
.svc-slider .artd-gallery__nav svg {
  width: 16px;
  height: 16px;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 44px);
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}
.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.image-lightbox__img {
  width: auto;
  height: auto;
  max-width: calc(100vw - clamp(32px, 6vw, 88px));
  max-height: calc(100svh - clamp(92px, 10vw, 140px));
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  transition: filter 0.45s ease; /* blur-up: unblur นุ่ม ๆ ตอนภาพเต็มโหลดเสร็จ */
}
/* กำลังโหลด full -> โชว์ thumb เบลอ */
.image-lightbox__img.is-loading {
  filter: blur(16px);
}
/* วงกลมหมุนสีส้ม แสดงสถานะโหลด (โชว์เฉพาะตอน is-loading) */
.image-lightbox__spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px; /* จัดกลาง (ไม่ใช้ transform เพราะชนกับ rotate) */
  border: 4px solid rgba(251, 128, 5, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  animation: ilb-spin 0.8s linear infinite;
}
.image-lightbox__img.is-loading ~ .image-lightbox__spinner {
  display: block;
}
@keyframes ilb-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  /* spinner โหลด = ตัวบอกสถานะจำเป็น ต้องหมุนได้แม้เปิด reduce-motion
     (!important เพื่อชนะกฎ global * { animation: none !important }) */
  .image-lightbox__spinner {
    animation: ilb-spin 1.4s linear infinite !important;
  }
}
.image-lightbox__close {
  position: fixed;
  top: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: normal;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: rgba(251, 128, 5, 0.9);
  border-color: var(--accent);
}
body.image-lightbox-open {
  overflow: hidden;
}

/* ---------- ป้าย client / project มุมซ้ายบนใน lightbox (image + artd) ---------- */
.lb-caption {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 44px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(70vw, 590px);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.lb-caption[hidden] {
  display: none;
}
.lb-caption__client {
  color: var(--accent);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lb-caption__project {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.lb-caption__client[hidden],
.lb-caption__project[hidden] {
  display: none;
}

/* ---------- ปุ่มวิดีโอในกริด (cinematic-animation): play icon กลางรูป ---------- */
.svc-gallery__video {
  position: relative;
}
.svc-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(48px, 6vw, 74px);
  height: clamp(48px, 6vw, 74px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  pointer-events: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.svc-video__play svg {
  width: 44%;
  height: 44%;
  margin-left: 8%; /* ชดเชยสามเหลี่ยม play ให้ดูอยู่กลาง */
  fill: currentColor;
}
.svc-gallery__video:hover .svc-video__play,
.svc-gallery__video:focus-visible .svc-video__play {
  background: rgba(251, 128, 5, 0.92);
  border-color: var(--accent);
  transform: scale(1.06);
}
/* ชื่อ Project บนรูป (หน้า video 02-12) — มุมซ้ายล่าง, ไม่หลุดกรอบ, มีเงากันข้อความจม */
.svc-video__name {
  position: absolute;
  left: clamp(12px, 1.6vw, 20px);
  bottom: clamp(10px, 1.6vw, 20px);
  max-width: calc(100% - clamp(24px, 3.2vw, 40px));
  text-align: left;
  color: #fff;
  font-size: clamp(0.9rem, 1.25vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 14px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  /* กันล้น: ตัดไม่เกิน 2 บรรทัด + … */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ---------- YouTube video lightbox ---------- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 44px);
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}
.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.video-lightbox__frame {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - clamp(92px, 10vw, 140px));
}
.video-lightbox__player {
  width: 100%;
  height: 100%;
}
/* วงกลมหมุนสีส้ม = สถานะโหลด (โชว์เฉพาะตอน is-loading จน iframe โหลดเสร็จ) */
.video-lightbox__spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 4px solid rgba(251, 128, 5, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: ilb-spin 0.8s linear infinite;
}
.video-lightbox.is-loading .video-lightbox__spinner {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  /* spinner โหลด = ตัวบอกสถานะจำเป็น ต้องหมุนแม้เปิด reduce-motion */
  .video-lightbox__spinner {
    animation: ilb-spin 1.4s linear infinite !important;
  }
}
.video-lightbox__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}
.video-lightbox__close {
  position: fixed;
  top: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: normal;
  cursor: pointer;
  z-index: 2;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
  background: rgba(251, 128, 5, 0.9);
  border-color: var(--accent);
}
body.video-lightbox-open {
  overflow: hidden;
}

/* =========================================================
   ARTICLES PAGE
   ========================================================= */
.articles-page {
  background: #000;
}
.articles-hero {
  position: relative;
  min-height: clamp(460px, 30.6vw, 587px);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.articles-hero__media {
  position: absolute;
  inset: 0;
}
.articles-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.articles-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.28) 72%,
      #000 100%
    ),
    rgba(0, 0, 0, 0.28);
}
.articles-hero__body {
  position: relative;
  z-index: 1;
  min-height: calc(clamp(460px, 30.6vw, 587px) - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(52px, 4.5vw, 86px) clamp(50px, 4vw, 74px);
  text-align: center;
}
.articles-hero__title {
  font-size: clamp(2.25rem, 3.35vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.articles-hero__rule {
  width: clamp(82px, 6.25vw, 120px);
  height: 4px;
  margin: 16px 0 22px;
  border-radius: 999px;
  background: var(--accent);
}
.articles-hero__lead {
  width: min(100%, 720px);
  color: #a1a1aa;
  font-size: clamp(1rem, 1.04vw, 1.25rem);
  line-height: 1.5;
}
/* live-search: กฎ [hidden] ต้องมา "หลัง" display ของ element ที่ JS ซ่อน
   ไม่งั้น display: flex/grid ทับ attribute hidden (ซ่อนไม่ลง) */
.articles-card[hidden],
.articles-featured[hidden],
.articles-pager[hidden] {
  display: none !important;
}
.articles-list__status {
  margin-bottom: 26px;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}
.articles-clear {
  margin-left: 10px;
  padding: 4px 12px;
  color: var(--accent);
  border: 1px solid rgba(251, 128, 5, 0.5);
  border-radius: 999px;
  font-size: 0.85em;
  cursor: pointer;
}
.articles-clear:hover {
  background: rgba(251, 128, 5, 0.12);
  border-color: var(--accent);
}

.articles-search {
  display: flex;
  align-items: center;
  width: min(100%, 600px);
  min-height: 56px;
  margin-top: 34px;
  padding: 6px 6px 6px 24px;
  border-radius: 15.2px;
  outline: 0.76px solid rgba(255, 255, 255, 0.55);
  outline-offset: -0.76px;
  background: linear-gradient(270deg, #070707 0%, #000 77%);
}
.articles-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
}
.articles-search input::placeholder {
  color: #a1a1aa;
}
.articles-search button {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
}
.articles-search svg {
  width: 20px;
  height: 20px;
}
/* ---- Tag filter banner (หน้า /articles?tag=...) ---- */
.articles-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: 0.9375rem;
}
.articles-filter__label {
  color: var(--ink-dim, #a1a1aa);
}
.articles-filter__tag {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(251, 128, 5, 0.14);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.articles-filter__clear {
  margin-left: auto;
  color: var(--ink-dim, #a1a1aa);
  text-decoration: none;
  font-size: 0.875rem;
}
.articles-filter__clear:hover {
  color: var(--accent);
}
.articles-empty {
  padding: clamp(32px, 5vw, 64px) 0;
  color: var(--ink-dim, #a1a1aa);
  font-size: 1.0625rem;
}
.articles-empty a {
  color: var(--accent);
}

.articles-featured {
  padding-block: clamp(58px, 4.2vw, 58px) clamp(70px, 4.9vw, 92px);
}
.articles-feature-card {
  min-height: clamp(420px, 31.25vw, 600px);
  overflow: hidden;
  border-radius: 15.2px;
  outline: 0.76px solid rgba(255, 255, 255, 0.55);
  outline-offset: -0.76px;
  background: linear-gradient(270deg, #070707 0%, #000 77%);
}
.articles-feature-card__inner {
  position: relative;
  display: block;
  min-height: inherit;
}
.articles-feature-card__media,
.articles-feature-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.articles-feature-card__media img {
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.articles-feature-card__inner:has(.articles-link:hover)
  .articles-feature-card__media
  img {
  transform: scale(1.04);
}
.articles-feature-card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #000 0%,
    rgba(0, 0, 0, 0.86) 24%,
    rgba(0, 0, 0, 0.2) 60%
  );
}
.articles-feature-card__body {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: clamp(58px, 6.3vw, 121px) clamp(28px, 4.2vw, 80px);
}
.articles-feature-card__label {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}
.articles-feature-card h2 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}
.articles-feature-card__excerpt {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 0.94vw, 1.125rem);
  line-height: 1.6;
}
.articles-feature-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.articles-feature-card__author img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.articles-feature-card__author p {
  font-weight: 600;
  line-height: 1.2;
}
.articles-feature-card__author time {
  display: block;
  color: #a1a1aa;
  font-size: 0.875rem;
}
.articles-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  text-decoration: underline;
  text-underline-offset: 6px;
  letter-spacing: 0.05em;
}
.articles-link svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.articles-link:hover svg {
  transform: translateX(5px);
}
.articles-list {
  padding-bottom: clamp(60px, 5.7vw, 60px);
}
.articles-list .wrap::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: clamp(58px, 4vw, 78px);
  background: rgba(255, 255, 255, 0.82);
}
.articles-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(58px, 4.6vw, 58px) clamp(24px, 2.9vw, 24px);
}
.articles-card__inner {
  display: block;
}
.articles-card__media {
  overflow: hidden;
  aspect-ratio: 565 / 353;
  border-radius: 15.2px;
  outline: 0.76px solid rgba(255, 255, 255, 0.55);
  outline-offset: -0.76px;
  background: linear-gradient(270deg, #070707 0%, #000 77%);
}
.articles-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.articles-card__inner:has(.articles-link:hover) .articles-card__media img {
  transform: scale(1.05);
}
.articles-card__body {
  padding-top: 16px;
}
.articles-card__cat {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}
.articles-card h2 {
  margin-top: 12px;
  font-size: clamp(1.25rem, 1.25vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.articles-card__excerpt {
  margin-top: 12px;
  color: #a1a1aa;
  font-size: clamp(0.9rem, 0.84vw, 1rem);
  line-height: 1.5;
}
.articles-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #a1a1aa;
  font-size: 0.875rem;
}
.articles-card__meta span:first-child {
  color: #fff;
  font-weight: 500;
}
.articles-card__meta span[aria-hidden] {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.articles-card .articles-link {
  margin-top: 10px;
}
.articles-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: clamp(54px, 4vw, 76px);
}
.articles-pager__dots {
  display: flex;
  align-items: center;
  gap: 18px;
}
.articles-pager__dots > span {
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.articles-pager__dots > span.is-active {
  background: #fff;
}
.articles-pager__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}
.articles-pager button {
  width: 45px;
  height: 26px;
  border: 1px solid #fff;
  border-radius: 25px;
  display: grid;
  place-items: center;
}
.articles-pager svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   WHY DEC
   ========================================================= */
.why {
  padding-block: clamp(70px, 8vw, 138px);
  background: var(--bg);
  text-align: center;
}
.js .why.is-ready .why__eyebrow,
.js .why.is-ready .why__title,
.js .why.is-ready .why__lead,
.js .why.is-ready .why-card {
  transition:
    opacity 1.25s ease,
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.25s ease;
  will-change: opacity, transform, filter;
}
.js .why.is-ready:not(.is-visible) .why__eyebrow,
.js .why.is-ready:not(.is-visible) .why__title,
.js .why.is-ready:not(.is-visible) .why__lead {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
}
.js .why.is-ready:not(.is-visible) .why-card {
  opacity: 0;
  transform: translateY(70px) scale(0.94);
  filter: blur(10px);
}
.js .why.is-visible .why__eyebrow,
.js .why.is-visible .why__title,
.js .why.is-visible .why__lead,
.js .why.is-visible .why-card {
  opacity: 1;
  transform: none;
  filter: none;
}
.js .why.is-ready .why__title {
  transition-delay: 0.12s;
}
.js .why.is-ready .why__lead {
  transition-delay: 0.24s;
}
.js .why.is-ready .why-card:nth-child(1) {
  transition-delay: 0.36s;
}
.js .why.is-ready .why-card:nth-child(2) {
  transition-delay: 0.52s;
}
.js .why.is-ready .why-card:nth-child(3) {
  transition-delay: 0.68s;
}
.js .why.is-ready .why-card:nth-child(4) {
  transition-delay: 0.84s;
}
.why__eyebrow {
  letter-spacing: 0.01em;
}
.why__title {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 26px;
}
.why__title .accent {
  font-weight: 600;
}
.why__lead {
  max-width: 1110px;
  margin: 0 auto 60px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  text-align: left;
}
.why-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(400px, 28vw, 538px);
  padding: 48px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  background:
    linear-gradient(314deg, #070707 0%, #000 77%) padding-box,
    linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.5) 48%,
        rgba(255, 255, 255, 0.5) 58%,
        rgba(255, 255, 255, 0.06) 100%
      )
      border-box;
}
.why-card {
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}
.why-card:hover {
  background:
    linear-gradient(314deg, #070707 0%, #000 77%) padding-box,
    linear-gradient(
        125deg,
        rgba(251, 128, 5, 0.18) 0%,
        rgba(251, 128, 5, 0.95) 48%,
        rgba(251, 128, 5, 0.95) 58%,
        rgba(251, 128, 5, 0.18) 100%
      )
      border-box;
  box-shadow: 0 16px 44px rgba(251, 128, 5, 0.16);
}
/* dot grid texture — CSS ล้วน คมทุก DPI ไฟล์ 0 byte
   จุดจางตรงกลาง เข้มขึ้นที่ขอบ (mask ทำ fade) */
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1.4px
  );
  background-size: 14px 14px; /* ถี่ขึ้น (จาก 18) = จุดเยอะขึ้น เต็มทั้งกล่อง */
}
/* เนื้อหาต้องอยู่เหนือ dot grid */
.why-card:hover::before {
  background-image: radial-gradient(
    rgba(251, 128, 5, 0.28) 1px,
    transparent 1.4px
  );
}
.why-card > * {
  position: relative;
  z-index: 1;
}
.why-card__icon {
  height: 72px;
  width: auto;
  align-self: center;
  margin: 60px auto 90px;
  flex: none;
}
.why-card__title {
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.why-card__body {
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.why-card__no {
  position: absolute;
  right: 34px;
  bottom: 34px;
  font-size: 8rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* =========================================================
   CLIENTS
   ========================================================= */
.clients .wrap {
  padding-block: 55px;
  position: relative;
}
.clients .wrap::before,
.clients .wrap::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-soft);
}
.clients .wrap::before {
  top: 0;
}
.clients .wrap::after {
  bottom: 0;
}
.clients__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.clients__label {
  text-align: left;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.clients__nav {
  margin-top: 0;
  flex: none;
}
.clients__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 3vw, 58px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.clients__row:active {
  cursor: grabbing;
}
.clients__row::-webkit-scrollbar {
  display: none;
}
.clients__row > li {
  flex: 0 0 clamp(104px, calc((100% - 406px) / 8), 180px);
  min-width: 104px;
  display: flex;
  justify-content: center;
}
.clients__logo {
  width: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  flex: none;
  opacity: 0.85;
  transition: opacity 0.18s ease;
}
.clients__logo:hover {
  opacity: 1;
}

/* =========================================================
   INSIGHTS
   ========================================================= */
.insights {
  padding-block: clamp(64px, 7vw, 120px);
  background: var(--bg);
  /* border-top: 1px solid var(--line-soft); */
}
.js .insights.is-ready .insights__head,
.js .insights.is-ready .insight-card,
.js .insights.is-ready .insights__inner > .carousel-nav {
  transition:
    opacity 1.25s ease,
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.25s ease;
  will-change: opacity, transform, filter;
}
.js .insights.is-ready:not(.is-visible) .insights__head {
  opacity: 0;
  transform: translateX(-42px);
  filter: blur(8px);
}
.js .insights.is-ready:not(.is-visible) .insight-card {
  opacity: 0;
  transform: translateY(64px) scale(0.94);
  filter: blur(10px);
}
.js .insights.is-ready:not(.is-visible) .insights__inner > .carousel-nav {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
}
.js .insights.is-visible .insights__head,
.js .insights.is-visible .insight-card,
.js .insights.is-visible .insights__inner > .carousel-nav {
  opacity: 1;
  transform: none;
  filter: none;
}
.js .insights.is-ready .insight-card:nth-child(1) {
  transition-delay: 0.18s;
}
.js .insights.is-ready .insight-card:nth-child(2) {
  transition-delay: 0.34s;
}
.js .insights.is-ready .insight-card:nth-child(3) {
  transition-delay: 0.5s;
}
.js .insights.is-ready .insights__inner > .carousel-nav {
  transition-delay: 0.62s;
}
.insights__inner {
  display: grid;
  grid-template-columns: 506px 1fr;
  gap: clamp(40px, 5vw, 94px);
}
.insights__head {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 60px;
}
.insights__title {
  font-size: clamp(1.75rem, 2.35vw, 2.8125rem);
  font-weight: 500;
  line-height: 1.2;
}

.insights__inner > .carousel-nav {
  grid-column: 1 / -1;
}
.insights__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.insight-card {
  position: relative;
  background: var(--band);
  border-radius: 15.2px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.insight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.5) 58%,
    rgba(255, 255, 255, 0.06) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.insight-card:hover {
  transform: translateY(-4px);
}
.insight-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.insight-card__media {
  position: relative;
  aspect-ratio: 390 / 159; /* กรอบรูปคงที่ 390×159 ตาม spec */
  overflow: hidden;
}
.insight-card__media img {
  position: absolute; /* ไม่ให้ความสูงไฟล์จริงดัน aspect-ratio */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.insight-card:hover .insight-card__media img {
  transform: scale(1.08);
}
/* ค่าตรงตาม design spec: image 390×159 บนสุด, category ส้ม 17px,
   title 23px/line-height 30, date 17px ชิดล่าง, padding ซ้าย 24 / บน 18 */
.insight-card__body {
  padding: 18px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.insight-card__cat {
  color: var(--accent);
  font-size: 17px;
  line-height: 1; /* trim line-box ให้ใกล้ cap-height ตาม spec (textBoxTrim) */
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.insight-card__title {
  font-size: 23px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.insight-card__date {
  margin-top: auto;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* =========================================================
   WORK PAGE
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.work-page {
  background: #000;
  --gutter: clamp(20px, 3.125vw, 60px);
}
.work-hero {
  position: relative;
  z-index: 2; /* ให้ dropdown filter อยู่เหนือ section featured ที่ตามมา */
  min-height: clamp(560px, 35vw, 670px);
  padding-top: var(--nav-h);
  /* ไม่ใช้ overflow:hidden ที่ระดับนี้ — จะตัด dropdown filter ที่เปิดลงล่าง
     (คลิปรูปพื้นหลังไว้ที่ .work-hero__media แทน) */
}
.work-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.work-hero__img {
  width: 100%;
  height: min(428px, 64%);
  object-fit: cover;
}
.work-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      270deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.32) 48%,
      #000 72%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.76) 0%,
      rgba(0, 0, 0, 0.34) 34%,
      rgba(0, 0, 0, 0) 52%
    );
}
.work-hero__body {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 5vw, 90px);
  padding-bottom: 50px;
}
.work-hero__body::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}
.work-hero__eyebrow {
  margin-bottom: 20px;
}
.work-hero__title {
  max-width: 980px;
  color: var(--accent);
  font-size: clamp(3rem, 4.7vw, 5.625rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.work-hero__lead {
  max-width: 860px;
  margin-top: 34px;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.05em;
}
.work-filters {
  display: grid;
  grid-template-columns: minmax(360px, 694px) 1fr;
  gap: 28px clamp(32px, 4vw, 80px);
  align-items: start;
  margin-top: clamp(48px, 4vw, 72px);
}
.work-filters__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}
.work-filter-btn,
.work-search,
.work-tag,
.work-load button {
  min-height: 48px;
  border: 0.75px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(270deg, #070707 0%, #000 77%) padding-box,
    linear-gradient(
        270deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.18) 77%
      )
      border-box;
}
.work-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  color: #fff;
  letter-spacing: 0.05em;
}
.work-filter-btn svg {
  width: 22px;
  height: 22px;
}
.work-filter-btn__plus {
  font-size: 1.9em;
  font-weight: inherit;
  line-height: 1;
  margin-bottom: 4px;
}
/* dropdown Project Type / Location */
.work-filter {
  position: relative;
}
.work-filter .work-filter-btn {
  width: 100%;
}
.work-filter-btn[aria-expanded="true"] {
  border-color: var(--accent);
}
.work-filter-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: 340px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
}
.work-filter-menu[hidden] {
  display: none;
}
.work-filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}
.work-filter-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}
.work-filter-opt.is-active {
  color: var(--accent);
}
.work-filter-opt.is-active::after {
  content: "✓";
  font-weight: 700;
}
.work-filter-empty {
  padding: 10px 14px;
  margin: 0;
  color: var(--dim, #71717a);
}
.work-filter-tags[hidden] {
  display: none;
}
.work-search {
  display: flex;
  align-items: center;
  justify-self: end;
  width: min(100%, 490px);
  padding: 0 14px 0 20px;
}
/* live-search: [hidden] ต้องชนะ display ของปุ่มตกแต่ง (slider/sort/load) */
.work-slider-ui[hidden],
.work-sort[hidden],
.work-load[hidden],
.work-featured[hidden],
.work-all[hidden] {
  display: none !important;
}
.work-search-status {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.03em;
}
.work-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  letter-spacing: 0.03em;
}
.work-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}
.work-search svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.work-filter-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.work-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 34px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.work-tag span,
.work-reset {
  color: var(--accent);
}
.work-tag span {
  font-size: 1.9em;
  font-weight: inherit;
  line-height: 1;
  margin-bottom: 6px;
}
.work-reset {
  min-height: 48px;
  padding: 0 0 0 4px;
  text-transform: uppercase;
  text-decoration: underline;
  letter-spacing: 0.05em;
}
.work-featured,
.work-all {
  padding-block: clamp(0px, 6vw, 0px);
}
/* ไม่มีปุ่ม Learn more (All Project < 13) -> เว้นระยะล่างเอง กันการ์ดชิด CTA */
.work-all--nomore {
  padding-bottom: clamp(48px, 6vw, 90px);
}
/* เว้นระยะจากเส้นคั่นใต้ filter -> หัวข้อ section (ไม่ให้ "Featured Projects" ชิดเส้น) */
.work-featured {
  padding-top: clamp(48px, 5vw, 48px);
}
/* ถ้า Featured ถูกซ่อน (กรองแล้วไม่มีผล) -> All Project เป็นตัวแรก ให้เว้นระยะจากเส้นแทน */
.work-featured[hidden] + .work-all {
  padding-top: clamp(48px, 5vw, 80px);
}
.work-section-head,
.work-all__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.work-section-head h2,
.work-all__head h2 {
  font-size: clamp(1.5rem, 1.55vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
}
.work-slider-ui {
  display: flex;
  align-items: center;
  gap: 12px;
}
.work-slider-ui__dots {
  display: flex;
  align-items: center;
  gap: 12px;
}
.work-slider-ui__dots > span {
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.work-slider-ui__dots > span.is-active {
  background: #fff;
}
.work-slider-ui button {
  width: 45px;
  height: 26px;
  border: 1px solid #fff;
  border-radius: 25px;
  display: grid;
  place-items: center;
}
/* ปุ่ม prev/next ที่ถูกซ่อน (หน้าแรก/หน้าสุดท้าย) — ต้องมี rule นี้ ไม่งั้น display:grid ทับ [hidden] */
.work-slider-ui button[hidden] {
  display: none;
}
.work-slider-ui svg {
  width: 15px;
  height: 15px;
}
.work-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
}
.work-feature-card {
  min-height: clamp(330px, 21vw, 398px);
  border-radius: 15px;
  overflow: hidden;
  border: 0.75px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(270deg, #070707 0%, #000 77%);
}
.work-feature-card a,
.work-feature-card__inner {
  position: relative;
  display: block;
  height: 100%;
  min-height: inherit;
}
.work-feature-card__media,
.work-feature-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.work-feature-card__media img {
  object-fit: cover;
  transition:
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.95s ease;
  will-change: transform;
}
.work-feature-card a::after,
.work-feature-card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 16, 16, 0) 36%,
    rgba(22, 22, 22, 0.98) 82%
  );
}
.work-feature-card__body {
  position: absolute;
  inset: auto 30px 30px;
  z-index: 1;
  padding-right: 36px;
}
.work-feature-card__body h3 {
  font-size: clamp(1.1rem, 1.3vw, 1.5625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.work-feature-card__body p,
.work-project p {
  font-size: clamp(0.72rem, 0.78vw, 0.9375rem);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.work-card-arrow {
  position: absolute;
  right: 0;
  bottom: 0px;
  color: var(--accent);
  font-size: 3rem;
}
.work-feature-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.04) contrast(1.03);
}
.work-all {
  padding-top: clamp(15px, 3.35vw, 15px);
}
.work-all__head {
  align-items: flex-end;
}
.work-all__head > div {
  display: flex;
  align-items: baseline;
  gap: 28px;
}
.work-all__head p,
.work-sort {
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}
.work-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.work-sort svg,
.work-load svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}
.work-all__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(34px, 4vw, 66px) 10px;
}
.work-project a {
  display: block;
}
.work-project__media {
  aspect-ratio: 444 / 212;
  overflow: hidden;
  background: #111;
  border-radius: 5px;
  margin-bottom: 18px;
}
.work-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.95s ease;
  will-change: transform;
}
.work-project h3 {
  font-size: clamp(0.95rem, 0.95vw, 1.125rem);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.work-project:hover img {
  transform: scale(1.08);
  filter: saturate(1.04) contrast(1.03);
}
.work-load {
  display: flex;
  justify-content: center;
  margin-top: clamp(54px, 6vw, 90px);
  padding-bottom: clamp(44px, 5vw, 70px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}
/* ตอนกรอง/ค้นหา (Load more ถูกซ่อน) -> เพิ่มระยะล่างก่อน CTA ไม่ให้การ์ดชิด CTA */
.work-all:has(.work-load[hidden]) {
  padding-bottom: clamp(72px, 8vw, 130px);
}
/* กรองแล้วเหลือเฉพาะ Featured (All Project ถูกซ่อน) -> Featured เป็น section สุดท้าย ก็ต้องเว้นก่อน CTA */
.work-featured:has(+ .work-all[hidden]) {
  padding-bottom: clamp(72px, 8vw, 130px);
}
.work-load button {
  min-width: 344px;
  color: #fff;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.cta__bg {
  position: absolute;
  inset: 0;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #161616 28%, rgba(16, 16, 16, 0) 72%);
}
.cta__body {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 5vw, 56px);
  min-height: clamp(300px, 19vw, 358px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.cta__title {
  max-width: 640px;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 44px;
}
.cta__title .accent {
  font-weight: 500;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.cta__actions .btn {
  min-width: 0;
}
.js .cta.is-ready .cta__bg img,
.js .cta.is-ready .cta__title,
.js .cta.is-ready .cta__actions .btn {
  transition:
    opacity 1.35s ease,
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.35s ease;
  will-change: opacity, transform, filter;
}
.js .cta.is-ready:not(.is-visible) .cta__bg img {
  opacity: 0;
  transform: scale(1.12);
  filter: blur(12px);
}
.js .cta.is-ready:not(.is-visible) .cta__title {
  opacity: 0;
  transform: translateY(52px);
  filter: blur(8px);
}
.js .cta.is-ready:not(.is-visible) .cta__actions .btn {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(6px);
}
.js .cta.is-visible .cta__bg img,
.js .cta.is-visible .cta__title,
.js .cta.is-visible .cta__actions .btn {
  opacity: 1;
  transform: none;
  filter: none;
}
.js .cta.is-ready .cta__bg img {
  transition-duration: 1.8s;
}
.js .cta.is-ready .cta__title {
  transition-delay: 0.18s;
}
.js .cta.is-ready .cta__actions .btn:nth-child(1) {
  transition-delay: 0.38s;
}
.js .cta.is-ready .cta__actions .btn:nth-child(2) {
  transition-delay: 0.52s;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--band);
  padding-block: clamp(48px, 5vw, 80px) 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 292px repeat(5, 1fr);
  gap: clamp(28px, 3vw, 60px);
}
.footer__logo {
  width: 160px;
  height: auto;
  margin-bottom: 22px;
  padding-top: 10px;
}
.footer__about p {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-dim);
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.footer__social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}
.footer__social svg {
  width: 18px;
  height: 18px;
}
.footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer__col h2 {
  font-size: var(--fs-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 12px;
  margin-bottom: 18px;
  position: relative;
}
.footer__col h2::after {
  /* เส้นส้มสั้นใต้หัวข้อ ตาม design */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}
.footer__col li {
  margin-bottom: 10px;
}
.footer__col a:hover {
  color: var(--accent);
}
.footer__col address {
  font-size: var(--fs-xs);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 4vw, 70px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer__legal a:hover {
  color: var(--accent);
}
.footer__legal-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

/* =========================================================
   404
   ========================================================= */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--nav-h);
}
.notfound h1 {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: 12px;
}
.notfound p {
  margin-bottom: 28px;
  color: var(--ink-dim);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .insights__inner {
    grid-template-columns: 1fr;
  }
  .insights__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .work-filters {
    grid-template-columns: 1fr;
  }
  .articles-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-gallery__item--third,
  .svc-gallery__item--half {
    grid-column: span 3;
  }
  .work-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-all__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 16px;
  }
  .product:nth-child(6n) {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
  }
  .product:nth-child(4n) {
    border-right: 0;
  }
  .product:nth-last-child(-n + 6) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }
  .product:nth-last-child(-n + 4) {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  /* ---- NAV: burger ---- */
  .nav__burger {
    display: block;
  }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.97);
    padding: 20px var(--gutter) 34px;
    transform: translateY(-120%);
    transition: transform 0.28s ease;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__menu.is-open {
    transform: translateY(0);
  }
  .nav__menu > a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__cta {
    margin-top: 20px;
  }
  .nav__search-form {
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-top: 18px;
  }
  .nav__search-form.is-open input {
    width: min(260px, calc(100vw - (var(--gutter) * 2) - 44px));
  }
  .nav__search {
    justify-self: start;
  }

  /* ---- กัน horizontal overflow ทุกตัวที่เป็น fixed-width ---- */
  .insights__inner {
    grid-template-columns: 1fr;
  } /* 506px -> เต็มความกว้าง */
  .hero__lockup {
    max-width: 100%;
  } /* lockup ไม่ล้น */
  .hero__body,
  .statement__body,
  .services__body,
  .cta__body {
    max-width: 100%;
  }

  /* ---- STATEMENT: ชิดซ้ายให้ตรงกับ section อื่น (FEATURED ฯลฯ) ---- */
  .statement__body {
    padding-left: var(--gutter);
  } /* เท่า section อื่น (ไม่ใช่ 0 ที่ทำให้ชิดขอบสนิท) */
  /* มือถือ: ซ่อน <br> ของ desktop (มีเว้นวรรคใน markup แล้ว คำจึงไม่ติดกัน) */
  .statement__text br,
  .services__title br {
    display: none;
  }

  /* ---- HERO ---- */
  .hero {
    min-height: 92svh;
  }
  .hero__scrim {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.85) 10%,
      rgba(0, 0, 0, 0.35) 70%
    );
  }
  .hero__actions .btn {
    min-width: 0;
    flex: 1 1 200px;
  }
  .cta__actions {
    width: 100%;
    gap: 24px;
  }
  .cta__actions .btn {
    min-width: 0;
    flex: 1 1 200px;
  } /* เหมือน hero เป๊ะ */
  .hero__scroll-rail {
    height: 40px;
  }

  .work-hero {
    min-height: auto;
  }
  .work-hero__img {
    height: 58%;
  }
  .work-hero__body {
    padding-top: clamp(44px, 12vw, 72px);
    padding-bottom: 30px;
  }
  .work-hero__title {
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: 1;
  }
  .work-hero__lead {
    margin-top: 24px;
    letter-spacing: 0.02em;
  }
  .work-filters {
    margin-top: 36px;
    gap: 18px;
  }
  .work-filters__controls {
    grid-template-columns: 1fr;
  }
  .work-filter-tags {
    gap: 8px;
  }
  .work-tag {
    min-height: 42px;
    padding-inline: 18px;
  }
  .work-section-head,
  .work-all__head,
  .work-all__head > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .work-slider-ui {
    align-self: flex-end;
  }
  .work-featured__grid,
  .work-all__grid {
    grid-template-columns: 1fr;
  }
  .work-feature-card {
    min-height: 360px;
  }
  .work-feature-card__body {
    inset-inline: 22px;
    bottom: 24px;
  }
  .work-project__media {
    aspect-ratio: 16 / 9;
  }
  .work-load button {
    width: 100%;
    min-width: 0;
  }
  .articles-hero {
    min-height: auto;
  }
  .articles-hero__body {
    min-height: 420px;
    padding-top: clamp(56px, 13vw, 88px);
  }
  .articles-hero__lead {
    max-width: 620px;
  }
  .articles-search {
    min-height: 52px;
    padding-left: 16px;
  }
  .articles-featured {
    padding-block: 40px 56px;
  }
  .articles-feature-card {
    min-height: 520px;
  }
  .articles-feature-card__inner::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.86) 0%,
      rgba(0, 0, 0, 0.28) 100%
    );
  }
  .articles-feature-card__body {
    width: 100%;
    padding: 40px 24px;
  }
  .articles-list__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .articles-card__body {
    padding-top: 14px;
  }
  .articles-pager {
    justify-content: center;
    gap: 14px;
  }
  .svc-hero {
    min-height: auto;
  }
  .svc-hero__body {
    padding-top: clamp(52px, 12vw, 82px);
  }
  .svc-hero__title br {
    display: none;
  }
  .svc-page .products {
    padding-block: 22px 28px;
  }
  .svc-gallery__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .svc-gallery__sort {
    align-self: flex-end;
  }
  .svc-gallery__grid {
    grid-template-columns: 1fr;
  }
  .svc-gallery__item--third,
  .svc-gallery__item--half,
  .svc-gallery__item--full,
  .svc-gallery__item--full-tall {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  /* ---- BENTO: ไหลเป็นแนวตั้ง ---- */
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    gap: 16px;
  }
  .bento__poster {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .work-card--tall,
  .work-card--wide,
  .work-card--wide:nth-of-type(2),
  .work-card--wide:nth-of-type(3) {
    grid-column: auto;
    grid-row: auto;
  }
  .work-card {
    min-height: 420px;
  }
  .featured .bento .work-card:first-of-type .work-card__media img {
    margin-top: 0; /* จอแคบ: ไม่เยื้องรูป */
  }
  .work-card::after,
  .work-card--wide::after {
    background: linear-gradient(
      180deg,
      rgba(22, 22, 22, 0.95) 30%,
      rgba(16, 16, 16, 0.15) 100%
    );
  }
  .work-card__body,
  .work-card--wide .work-card__body {
    max-width: 100%;
    padding: 28px 22px;
    gap: 20px;
    justify-content: flex-start; /* มือถือการ์ดสูงพอ -> ชิดบนเหมือนเดิม */
  }
  .work-card--wide .work-card__title {
    font-size: var(--fs-h3);
  }

  /* ---- PRODUCTS ---- */
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product {
    border-right: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
  }
  .product:nth-child(2n) {
    border-right: 0 !important;
  }
  .product:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }
  .product__link {
    min-height: 180px;
  }

  /* ---- WHY ---- */
  .why__grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    min-height: 0;
    padding: 32px;
  }
  .why-card__icon {
    margin: 10px 0 40px;
  }

  /* ---- CLIENTS: scroll แนวนอน ---- */
  .clients__head {
    align-items: flex-start;
  }
  .clients__label {
    text-align: left;
  }
  .clients__row {
    justify-content: flex-start;
    gap: clamp(24px, 8vw, 46px);
  }
  .clients__row > li {
    flex-basis: clamp(112px, calc((100% - 92px) / 3), 180px);
    min-width: 112px;
  }

  /* ---- INSIGHTS ---- */
  .insights__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .insights__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .insights__list::-webkit-scrollbar {
    display: none;
  }
  .insight-card {
    scroll-snap-align: start;
  }

  /* ---- FOOTER ---- */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__about {
    grid-column: 1 / -1;
  }
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer__legal-links {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .statement.is-ready .statement__bg img,
  .js .statement.is-ready .statement__text,
  .js .statement.is-ready .statement__body > .arrow-link {
    transition:
      opacity 3s ease,
      transform 3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  .js .featured.is-ready .sec-head,
  .js .featured.is-ready .bento__poster,
  .js .featured.is-ready .work-card,
  .js .featured.is-ready > .wrap > .carousel-nav {
    transition:
      opacity 2.3s ease,
      transform 2.3s cubic-bezier(0.16, 1, 0.3, 1),
      filter 2.3s ease !important;
  }
  .js .services.is-ready .services__body > .arrow-link {
    transition:
      opacity 3s ease,
      transform 3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .js .why.is-ready .why__eyebrow,
  .js .why.is-ready .why__title,
  .js .why.is-ready .why__lead,
  .js .why.is-ready .why-card {
    transition:
      opacity 1.25s ease,
      transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
      filter 1.25s ease !important;
  }
  .js .insights.is-ready .insights__head,
  .js .insights.is-ready .insight-card,
  .js .insights.is-ready .insights__inner > .carousel-nav {
    transition:
      opacity 1.25s ease,
      transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
      filter 1.25s ease !important;
  }
  .js .cta.is-ready .cta__bg img,
  .js .cta.is-ready .cta__title,
  .js .cta.is-ready .cta__actions .btn {
    transition:
      opacity 1.35s ease,
      transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
      filter 1.35s ease !important;
  }
  .js .cta.is-ready .cta__bg img {
    transition-duration: 1.8s !important;
  }
}

/* =========================================================
   WORK DETAIL  (/works/{slug})
   ========================================================= */
.wd-hero {
  position: relative;
  display: flex;
  /* --hero-h ตั้งจาก editor (ถ้ามี) — ไม่ตั้ง = ค่า default | mobile คุมแยกใน media query */
  min-height: var(--hero-h, clamp(420px, 48vw, 920px));
}
.wd-hero__media {
  position: absolute;
  inset: 0;
}
.wd-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
}
.wd-hero__body {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding-top: calc(var(--nav-h) + clamp(30px, 4vw, 77px));
  padding-bottom: clamp(30px, 4vw, 60px);
}
.wd-hero__eyebrow {
  font-size: clamp(0.875rem, 1.2vw, 1.4375rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wd-hero__title {
  margin: 14px 0 22px;
  font-size: clamp(1.75rem, 3.15vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.05em;
}
.wd-hero__lead {
  max-width: 710px;
  font-size: clamp(0.9375rem, 0.9vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.76;
  letter-spacing: 0.05em;
}

/* ---- แถบชื่อใหญ่ ---- */
.wd-intro {
  background: linear-gradient(270deg, #0a0a0a 0%, #1a1a1a 100%);
  padding-block: clamp(44px, 5.7vw, 84px) clamp(36px, 3.2vw, 48px);
}
.wd-intro > .wrap {
  padding-inline: clamp(24px, 6.2vw, 92px);
  margin-top: -49px;
}
.wd-intro__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 72px);
}
.wd-intro__title {
  font-size: clamp(1.85rem, 5.9vw, 7rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.06;
  letter-spacing: 0.04em;
}
.wd-badge {
  flex: none;
  align-self: flex-start;
  margin-top: clamp(4px, 10vw, 24px);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: clamp(0.6875rem, 0.7vw, 0.8125rem);
  font-weight: 700;
  text-transform: uppercase;
}
.wd-intro__sub {
  margin-top: clamp(16px, 2vw, 30px);
  color: #999;
  font-size: clamp(1rem, 1.17vw, 1.4rem);
}

/* ---- STORY + DETAILS ---- */
.wd-story {
  padding-block: clamp(48px, 7vw, 112px);
}
.wd-story > .wrap {
  padding-inline: clamp(24px, 6.2vw, 92px);
}
.wd-story__inner {
  display: grid;
  grid-template-columns: minmax(0, 820px) clamp(360px, 28vw, 440px);
  justify-content: space-between;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
/* เหลือคอลัมน์เดียว (ลบ story หรือ details ออกจาก editor) */
.wd-story__inner--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
}
.wd-story__main {
  max-width: 820px;
}
.wd-block + .wd-block {
  margin-top: clamp(44px, 4.7vw, 72px);
}
.wd-block__label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: clamp(14px, 1.35vw, 24px);
  color: var(--accent);
  font-size: clamp(0.75rem, 0.72vw, 0.875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wd-block__label::before {
  content: "";
  flex: none;
  width: 4px;
  height: 19px;
  background: var(--accent);
}
.wd-block--lg .wd-block__body {
  font-size: clamp(1.0625rem, 1.05vw, 1.25rem);
  line-height: 1.52;
}
.wd-block--sm .wd-block__body {
  font-size: clamp(0.9375rem, 0.95vw, 1.125rem);
  line-height: 1.6;
  color: #d1d5db;
}

.wd-details {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: clamp(24px, 2vw, 34px) clamp(24px, 2.1vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(270deg, #0a0a0a 0%, #1a1a1a 100%);
  outline: 0.75px solid rgba(255, 255, 255, 0.55);
  outline-offset: -0.75px;
}
.wd-details__title {
  font-size: clamp(1.0625rem, 1vw, 1.25rem);
  font-weight: 600;
  margin-bottom: clamp(22px, 2vw, 34px);
}
.wd-details__row + .wd-details__row {
  margin-top: clamp(18px, 1.35vw, 26px);
}
.wd-details__label {
  margin-bottom: 7px;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wd-details__value {
  font-size: clamp(0.875rem, 0.82vw, 0.9375rem);
  line-height: 1.45;
}
.wd-details__value--accent {
  color: var(--accent);
}

/* ---- META STRIP ---- */
.wd-meta {
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.wd-meta__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-block: clamp(24px, 2vw, 37px);
}
.wd-meta__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-inline: clamp(14px, 3vw, 56px);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}
.wd-meta__cell:first-child {
  padding-left: 0;
}
.wd-meta__cell:last-child {
  padding-right: 0;
  border-right: 0;
}
.wd-meta__label {
  margin-bottom: 7px;
  color: #999;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.wd-meta__value {
  margin: 0;
  font-size: clamp(0.9375rem, 1.05vw, 1.05rem);
  font-weight: 500;
}

/* ---- GALLERY ---- */
.wd-gallery {
  padding-block: clamp(10px, 1.2vw, 19px);
}
.wd-gallery__grid {
  display: grid;
  gap: clamp(10px, 1.2vw, 19px);
}
.wd-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}
.wd-gallery--full img {
  aspect-ratio: 1801 / 844;
}
.wd-gallery--duo .wd-gallery__grid {
  grid-template-columns: 1fr 1fr;
}
.wd-gallery--duo img {
  aspect-ratio: 872 / 807;
}
/* สองรูปสัดส่วนไม่เท่ากัน (1:3 / 3:1) — คุมความสูงแถบด้วย aspect-ratio ของกริด
   รูปเลยสูงเท่ากันทั้งสองฝั่ง (ใช้ height:100% + object-fit:cover จาก .wd-gallery img) */
.wd-gallery--duo13 .wd-gallery__grid,
.wd-gallery--duo31 .wd-gallery__grid,
.wd-gallery--duo23 .wd-gallery__grid,
.wd-gallery--duo32 .wd-gallery__grid {
  aspect-ratio: 20 / 9;
}
.wd-gallery--duo13 .wd-gallery__grid {
  grid-template-columns: 1fr 3fr;
}
.wd-gallery--duo31 .wd-gallery__grid {
  grid-template-columns: 3fr 1fr;
}
.wd-gallery--duo23 .wd-gallery__grid {
  grid-template-columns: 2fr 3fr;
}
.wd-gallery--duo32 .wd-gallery__grid {
  grid-template-columns: 3fr 2fr;
}
.wd-gallery--trio .wd-gallery__grid {
  grid-template-columns: repeat(3, 1fr);
}
.wd-gallery--trio img {
  aspect-ratio: 575 / 431;
}
.wd-gallery--feature .wd-gallery__grid {
  grid-template-columns: 1.65fr 1fr;
}
.wd-gallery--feature .wd-gallery__side {
  display: grid;
  gap: clamp(10px, 1.2vw, 19px);
}
.wd-gallery--feature img {
  aspect-ratio: auto;
  height: 100%;
}
/* ปรับความสูงแถบ gallery ได้ (H จาก editor: px/%/vh) — รูปเต็มกรอบ crop ด้วย object-fit
   ใช้ได้ทุกแบบ: full / duo / duo13 / duo31 / trio / feature */
.wd-gallery--fixedh .wd-gallery__grid {
  height: var(--g-h);
  aspect-ratio: auto; /* ทับ aspect-ratio ของ duo13/duo31 */
  grid-template-rows: 100%; /* บังคับแถว = ความสูงกรอบ ไม่ให้ขยายตามรูป (กันรูปล้น/ไม่ครอป) */
}
.wd-gallery--fixedh img {
  height: 100%;
  min-height: 0; /* กัน grid min-height:auto ดันแทร็กใหญ่ตามรูป (โดยเฉพาะฝั่ง feature) */
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center; /* ครอปกึ่งกลาง */
}
.wd-gallery--feature.wd-gallery--fixedh .wd-gallery__side {
  height: 100%;
  grid-template-rows: 1fr 1fr; /* 2 รูปฝั่งขวาแบ่งความสูงเท่ากัน */
}

/* ---- QUOTE ---- */
.wd-quote {
  background: #080808;
  padding-block: clamp(56px, 9vw, 150px);
}
.wd-quote__text {
  max-width: 844px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.05rem, 1.35vw, 1.625rem);
  line-height: 1.6;
}

/* ---- VIDEO ---- */
.wd-video {
  background: #080808;
  padding-block: clamp(48px, 7vw, 112px);
}
.wd-video__frame {
  position: relative;
  display: grid;
  place-items: center;
  max-width: var(--v-w, 1313px); /* ปรับกว้าง poster ได้จาก editor (px/%) */
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
}
.wd-video__frame img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
}
/* กำหนดความสูงคงที่ (H เป็น px/%) -> poster เต็มกรอบ crop ด้วย object-fit
   ต้องมี width ชัดเจน เพราะ object-fit ทำให้ img ไม่มีความกว้างตามธรรมชาติ (กรอบจะยุบ)
   grid-template-rows:100% บังคับให้แถว grid = ความสูงกรอบ -> img (height:100%) และ
   play icon (place-self:center) อ้างอิงความสูงจริง ไม่ใช่ความสูงรูปตามธรรมชาติ */
.wd-video__frame--fixedh {
  width: 100%;
  height: var(--v-h);
  grid-template-rows: 100%;
}
.wd-video__frame--fixedh img {
  height: 100%;
  object-fit: cover;
  object-position: center; /* crop กึ่งกลาง */
}
.wd-video__frame::after {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}
.wd-video__play {
  grid-area: 1 / 1;
  z-index: 1;
  place-self: center;
  width: clamp(64px, 5.9vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(251, 128, 5, 0.2);
  border: 1.88px solid var(--accent);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}
.wd-video__frame:hover .wd-video__play {
  background: rgba(251, 128, 5, 0.45);
}
.wd-video__play svg {
  width: 36%;
  height: auto;
  color: #fff;
}
.wd-video__cap {
  padding-top: clamp(20px, 2vw, 37px);
  text-align: center;
}
.wd-video__title {
  font-size: clamp(0.9375rem, 0.94vw, 1.125rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 11px;
}
.wd-video__note {
  color: #999;
  font-size: 1rem;
}
.yt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}
.yt-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.yt-lightbox__panel {
  position: relative;
  width: min(100%, 1180px);
}
.yt-lightbox__video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}
.yt-lightbox__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-lightbox__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: normal;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.yt-lightbox__close:hover,
.yt-lightbox__close:focus-visible {
  background: rgba(251, 128, 5, 0.9);
  border-color: var(--accent);
}
body.yt-lightbox-open {
  overflow: hidden;
}

/* ---- NEXT PROJECT ---- */
.wd-next-wrap {
  padding-block: clamp(40px, 5vw, 40px);
  margin-top: -40px;
  margin-bottom: 40px;
}
.wd-next {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: clamp(300px, 29vw, 563px);
}
.wd-next__media {
  position: absolute;
  inset: 0;
}
.wd-next__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd-next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: background-color 0.25s ease;
}
.wd-next:hover::after {
  background: rgba(0, 0, 0, 0.45);
}
.wd-next__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 8vw, 120px);
  min-height: inherit;
  padding: clamp(28px, 4vw, 75px);
}
.wd-next__label {
  color: var(--accent);
  font-size: clamp(0.875rem, 0.88vw, 1.05rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.wd-next__title {
  font-size: clamp(2rem, 3.9vw, 4.7rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.wd-next__sub {
  color: #d1d1d1;
  font-size: clamp(1rem, 1.17vw, 1.4rem);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .wd-story__inner {
    grid-template-columns: 1fr;
  }
  .wd-details {
    justify-self: start;
    max-width: 560px;
  }
  .wd-meta__grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }
  .wd-meta__cell:nth-child(3n) {
    border-right: 0;
  }
}
@media (max-width: 700px) {
  .wd {
    font-size: 1rem;
  }
  .wd-hero {
    display: block;
    min-height: 0;
    padding-top: var(--nav-h);
  }
  .wd-hero__media {
    position: relative;
    height: clamp(190px, 51vw, 240px);
  }
  .wd-hero__scrim {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, #000 100%),
      linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.54) 100%);
  }
  .wd-hero__body {
    padding-top: 18px;
    padding-bottom: 34px;
  }
  .wd-hero__eyebrow {
    font-size: 0.95rem;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0.02em;
  }
  .wd-hero__title {
    margin: 14px 0 18px;
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.14;
    letter-spacing: 0.02em;
  }
  .wd-hero__lead {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
  }
  .wd-intro {
    padding-block: 34px 30px;
    background: #000;
  }
  .wd-intro > .wrap {
    margin-top: 0;
    padding-inline: var(--gutter);
  }
  .wd-intro__title {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: 0.02em;
  }
  .wd-intro__sub {
    font-size: 1.05rem;
    line-height: 1.55;
  }
  .wd-story {
    padding-block: 36px 44px;
  }
  .wd-story > .wrap {
    padding-inline: var(--gutter);
  }
  .wd-story__inner {
    gap: 38px;
  }
  .wd-block + .wd-block {
    margin-top: 34px;
  }
  .wd-block__label {
    font-size: 0.82rem;
  }
  .wd-block--lg .wd-block__body,
  .wd-block--sm .wd-block__body {
    font-size: 1.02rem;
    line-height: 1.65;
  }
  .wd-details {
    max-width: none;
    padding: 24px 20px;
    border-radius: 10px;
  }
  .wd-details__title {
    font-size: 1.75rem;
    margin-bottom: 22px;
  }
  .wd-details__label {
    font-size: 0.78rem;
  }
  .wd-details__value {
    font-size: 1rem;
    line-height: 1.45;
  }
  .wd-intro__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .wd-badge {
    align-self: flex-start;
  }
  .wd-meta__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wd-meta__cell {
    padding-inline: 0 16px;
  }
  .wd-meta__cell:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.13);
  }
  .wd-meta__cell:nth-child(2n) {
    border-right: 0;
  }
  .wd-gallery--duo .wd-gallery__grid,
  .wd-gallery--duo13 .wd-gallery__grid,
  .wd-gallery--duo31 .wd-gallery__grid,
  .wd-gallery--duo23 .wd-gallery__grid,
  .wd-gallery--duo32 .wd-gallery__grid,
  .wd-gallery--trio .wd-gallery__grid,
  .wd-gallery--feature .wd-gallery__grid {
    grid-template-columns: 1fr;
    aspect-ratio: auto; /* จอแคบ: เรียงบน-ล่าง ไม่คุมความสูงแถบ */
  }
  /* จอแคบ: ไม่บังคับความสูงคงที่ ปล่อยรูปเรียงตามสัดส่วนจริง */
  .wd-gallery--fixedh .wd-gallery__grid {
    height: auto;
    grid-template-rows: auto; /* reset จาก 100% (desktop) — ไม่งั้นรูปที่ 2 ยุบเหลือ 0 ตอน stack บนมือถือ (iOS) */
  }
  .wd-gallery--fixedh img {
    height: auto;
  }
  .wd-gallery--duo13 img,
  .wd-gallery--duo31 img {
    aspect-ratio: 16 / 10;
  }
  .wd-gallery {
    padding-block: 8px;
  }
  .wd-gallery__grid {
    gap: 8px;
  }
  .wd-gallery img,
  .wd-gallery--full img,
  .wd-gallery--duo img,
  .wd-gallery--trio img,
  .wd-gallery--feature img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .wd-gallery--full img {
    aspect-ratio: 16 / 9;
  }
  .wd-gallery--duo img {
    aspect-ratio: 1 / 1.05;
  }
  .wd-gallery--trio img,
  .wd-gallery--feature img {
    aspect-ratio: 16 / 10;
  }
  .wd-quote {
    padding-block: 42px;
  }
  .wd-quote__text {
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.7;
  }
  .wd-video {
    padding-block: 42px;
  }
  .wd-video__frame {
    border-radius: 8px;
  }
  .wd-video__play {
    width: clamp(54px, 15vw, 68px);
    max-width: 68px;
    display: grid;
    place-items: center;
  }
  .wd-video__play svg {
    width: 36%;
    height: auto;
  }
  .wd-video__title {
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0.03em;
  }
  .wd-video__note {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .wd-next-wrap {
    margin-block: 0;
    padding-block: 34px;
  }
  .wd-next {
    min-height: 260px;
    border-radius: 10px;
  }
  .wd-next__title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    line-height: 1.12;
  }
}

.hero__scroll-circle {
  animation: hero-scroll-float 1.45s cubic-bezier(0.45, 0, 0.2, 1) infinite !important;
}
.hero__scroll-circle svg {
  animation: hero-scroll-arrow-float 1.45s cubic-bezier(0.45, 0, 0.2, 1)
    infinite !important;
}

@keyframes hero-scroll-float {
  0%,
  100% {
    transform: translate3d(0, -7px, 0);
  }
  50% {
    transform: translate3d(0, 8px, 0);
  }
}
@keyframes hero-scroll-arrow-float {
  0%,
  100% {
    transform: translate3d(0, -2px, 0);
  }
  50% {
    transform: translate3d(0, 3px, 0);
  }
}

/* =========================================================
   ARTICLE DETAIL (/articles/<slug>)
   ========================================================= */
.artd {
  background: #000;
}
.artd-hero {
  position: relative;
  min-height: clamp(420px, 30.6vw, 587px);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.artd-hero__media {
  position: absolute;
  inset: 0;
}
.artd-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artd-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    #000 100%
  );
}
.artd-hero__body {
  position: relative;
  z-index: 1;
  min-height: calc(clamp(400px, 30.6vw, 400px) - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(40px, 4vw, 64px);
}
.artd-hero__cat {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.artd-hero__title {
  max-width: 50%;
  font-size: clamp(1.9rem, 3.35vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.artd-hero__excerpt {
  max-width: 50%;
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-dim);
}
/* mobile: title/excerpt เต็มความกว้าง */
@media (max-width: 760px) {
  .artd-hero__title,
  .artd-hero__excerpt {
    max-width: 100%;
  }
}
.artd-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.artd-hero__meta img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.artd-hero__meta p {
  font-weight: 600;
  line-height: 1.2;
}
.artd-hero__meta time {
  color: #a1a1aa;
  font-size: 0.875rem;
}
.artd-body {
  padding-block: clamp(48px, 5vw, 48px);
}
.artd-body__inner {
  /* Width: Normal = 80% ของหน้าจอ desktop (ไม่เกินกรอบ header) */
  max-width: min(82vw, var(--wrap));
}
@media (max-width: 760px) {
  .artd-body__inner {
    /* mobile: เต็มความกว้าง (เหลือแค่ระยะขอบ --gutter ซ้าย-ขวา) */
    max-width: 100%;
  }
}
/* ---- block (container) + ความกว้างระดับบล็อก: normal / wide / full ---- */
.artd-block {
  margin-block: 40px;
}
.artd-block > * {
  margin-block: 0 !important; /* บล็อกคุมระยะบน-ล่างเอง */
}
/* wide = กว้างเท่ากรอบ header | full = ชนขอบจอ (สูตรเดียวกับ size--wide/full เดิม) */
.artd-block.artd-w--wide {
  margin-inline: max(
    calc(50% - 50vw + var(--gutter)),
    calc(50% - (var(--wrap) / 2) + var(--gutter))
  );
}
.artd-block.artd-w--full {
  margin-inline: calc(50% - 50vw);
}
.artd-block.artd-w--full :is(img, .artd-gallery__track) {
  border-radius: 0; /* full-bleed ไม่เอามุมโค้ง */
}

/* ---- block แนวนอน: item หลายอันในบล็อกเดียว = คอลัมน์เคียงกัน ---- */
.artd-row {
  display: flex;
  gap: clamp(16px, 2.4vw, 40px);
  align-items: flex-start;
}
.artd-col {
  flex: 1 1 0;
  min-width: 0; /* กัน flex item ล้นเมื่อมีรูป */
}
/* item ในคอลัมน์: ตัด margin บน-ล่างเดิม ให้หัวคอลัมน์เสมอกัน (spacing คุมด้วย .artd-row) */
.artd-col > * {
  margin-block: 0 !important;
}
@media (max-width: 760px) {
  .artd-row {
    flex-direction: column; /* จอแคบ: แถวพับเป็นแนวตั้ง */
    gap: 28px;
  }
}

.artd-lead {
  font-size: clamp(1.125rem, 1.25vw, 1.375rem);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 34px;
}
.artd-h2 {
  font-size: clamp(1.25rem, 1.55vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 44px 0 18px;
}
.artd-p {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-body);
  line-height: 1.8;
  margin-bottom: 22px;
}
.artd-list {
  margin: 0 0 22px 1.2em;
  list-style: disc;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}
.artd-list li::marker {
  color: var(--accent);
}
.artd-quote {
  position: relative;
  margin: 40px 0;
  padding-left: clamp(20px, 2.5vw, 20px);
}
/* แถบซ้าย — เตี้ยลง ไม่ยืดเต็มความสูง (จัดกึ่งกลางแนวตั้ง) */
.artd-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 80%;
  background: var(--accent);
  border-radius: 3px;
}
.artd-quote p {
  font-size: clamp(1.125rem, 1.25vw, 1.375rem);
  font-weight: 500;
  line-height: 1.6;
}
.artd-quote cite {
  display: block;
  margin-top: 14px;
  color: #a1a1aa;
  font-style: normal;
  font-size: 0.9375rem;
}
.artd-figure {
  /* margin-block เท่านั้น — แกนซ้าย-ขวาปล่อยให้ .artd-size--wide/full/custom คุม */
  margin-block: 40px;
}
.artd-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.artd-figure figcaption {
  margin: 12px 0 0;
  max-width: 100%; /* กว้างเท่ารูป — ไม่ตัดบรรทัดก่อนถึงขอบภาพ */
  color: #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center; /* คำอธิบายใต้รูป จัดกึ่งกลางตามดีไซน์ */
}
/* ---- TAGS bar (แถบ #tag ใต้เนื้อหาบทความ) — ตรงแนวกับ text/image ---- */
.artd-tags {
  padding-top: clamp(20px, 3vw, 40px);
}
.artd-tags__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.artd-tags__label {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.artd-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.artd-tag {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink, #fff);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.artd-tag:hover {
  border-color: var(--accent);
  background: #222;
}

/* ---- SHARE (ปุ่มแชร์ใต้ tags — จัดกึ่งกลาง) ---- */
.artd-share {
  padding-top: clamp(28px, 4vw, 52px);
  text-align: center;
}
.artd-share__head {
  color: #a1a1aa;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.artd-share__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.artd-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink, #fff);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.artd-share__btn:hover {
  border-color: var(--accent);
  background: #222;
}
.artd-share__btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.artd-foot {
  padding-bottom: clamp(56px, 6vw, 96px);
}
.artd-next {
  position: relative;
  display: block;
  margin-top: clamp(36px, 4vw, 56px);
  border-radius: 15px;
  overflow: hidden;
  min-height: clamp(220px, 18vw, 340px);
}
.artd-next__media,
.artd-next__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.artd-next__media img {
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.artd-next:hover .artd-next__media img {
  transform: scale(1.04);
}
.artd-next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.artd-next__body {
  position: absolute;
  inset: auto 30px 28px;
  z-index: 1;
}
.artd-next__label {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  margin-bottom: 10px;
}
.artd-next__title {
  font-size: clamp(1.25rem, 1.8vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
}
/* ---- layout modifiers จาก editor: align / size ---- */
.artd-align--center {
  text-align: center;
}
.artd-align--right {
  text-align: right;
}
blockquote.artd-align--center {
  border-left: 0;
  padding-left: 0;
}
blockquote.artd-align--right {
  border-left: 0;
  border-right: 3px solid var(--accent);
  padding-left: 0;
  padding-right: clamp(20px, 2.5vw, 34px);
}
ul.artd-align--center,
ul.artd-align--right {
  list-style-position: inside;
  margin-left: 0;
}
/* wide = กว้างเท่ากรอบ header (ขอบซ้าย logo ถึงขอบขวาปุ่ม search) */
.artd-size--wide {
  margin-inline: max(
    calc(50% - 50vw + var(--gutter)),
    calc(50% - (var(--wrap) / 2) + var(--gutter))
  );
}
.artd-size--full {
  margin-inline: calc(50% - 50vw);
}
.artd-size--full img {
  border-radius: 0;
}
/* Width = None -> กรอบกำหนดเอง W×H จาก editor (crop เฉพาะตอนแสดง) */
.artd-size--custom {
  max-width: var(--c-w);
}
.artd-figure.artd-size--custom img {
  width: 100%;
  aspect-ratio: var(--c-ar);
  object-fit: cover;
}
/* กว้าง % + สูง px -> ใช้ความสูงคงที่แทนสัดส่วน (เช่น เต็มกว้าง สูง 300px) */
.artd-figure.artd-size--custom.artd-frame--fixedh img {
  aspect-ratio: auto;
  height: var(--c-h);
}
/* แกลเลอรี / วิดีโอ: H เป็น px -> คุมความสูงกรอบคงที่ */
.artd-gallery.artd-frame--fixedh .artd-gallery__slide img {
  aspect-ratio: auto;
  height: var(--c-h);
}
.artd-embed.artd-frame--fixedh .artd-embed__frame {
  aspect-ratio: auto;
  height: var(--c-h);
}

/* ---- list หลายคอลัมน์ (เลือกจาก editor 1-4) ---- */
ul.artd-cols--2 {
  columns: 2;
  column-gap: 44px;
}
ul.artd-cols--3 {
  columns: 3;
  column-gap: 44px;
}
ul.artd-cols--4 {
  columns: 4;
  column-gap: 44px;
}
ul.artd-cols--2 li,
ul.artd-cols--3 li,
ul.artd-cols--4 li {
  break-inside: avoid;
}

/* ---- image block หลายรูปเรียงเป็นกริด (1-4 คอลัมน์) ---- */
.artd-imggrid {
  display: grid;
  gap: 12px;
}
.artd-imggrid--1 {
  grid-template-columns: 1fr;
}
.artd-imggrid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.artd-imggrid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.artd-imggrid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.artd-imggrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
/* แต่ละรูปในกริดมี caption ของตัวเองใต้รูป */
.artd-imggrid__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.artd-imggrid__cell img {
  height: auto; /* ปล่อยตามสัดส่วนจริง — caption อยู่ใต้รูปแต่ละใบ */
}
.artd-imggrid__cell figcaption {
  margin: 8px 0 0;
  max-width: 100%; /* กว้างเท่ารูป — ไม่ตัดบรรทัดก่อนถึงขอบภาพ */
  color: #a1a1aa;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
}
.artd-size--full .artd-imggrid img {
  border-radius: 0;
}

/* ---- YouTube embed ---- */
.artd-embed {
  margin-block: 40px; /* ห้ามใช้ margin shorthand — จะทับ margin-inline ของ size modifier */
}
.artd-embed__frame {
  position: relative;
  aspect-ratio: var(
    --c-ar,
    16 / 9
  ); /* custom W/H จาก editor -> แทนสัดส่วน 16:9 */
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.artd-size--full .artd-embed__frame {
  border-radius: 0;
}
.artd-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.artd-embed figcaption {
  margin-top: 12px;
  color: #a1a1aa;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

/* ---- Gallery slider (โชว์ทีละ 1 รูปเต็มกรอบ — W×H จาก editor คุมกรอบ) ---- */
.artd-gallery {
  position: relative;
  margin-block: 40px; /* ห้ามใช้ margin shorthand — จะทับ margin-inline ของ size modifier */
  max-width: var(
    --c-w,
    none
  ); /* Width=None + W×H -> กรอบตามที่ตั้ง (อื่น ๆ = เต็มความกว้างของ size นั้น) */
}
.artd-gallery__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 8px;
}
.artd-gallery__track::-webkit-scrollbar {
  display: none;
}
.artd-gallery__slide {
  /* 1 slide = เต็มกรอบพอดี -> รูปถัดไปไม่มีทางล้นเข้ามาในวิว */
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.artd-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop เฉพาะตอนแสดง — ไฟล์จริงไม่ถูกตัด lightbox เห็นเต็ม */
  border-radius: 8px;
  aspect-ratio: var(--c-ar, 3 / 2);
}
.artd-gallery.artd-size--full .artd-gallery__track,
.artd-gallery.artd-size--full .artd-gallery__slide img {
  border-radius: 0; /* full-bleed ชนขอบจอ ไม่เอามุมโค้ง */
}
.artd-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.artd-gallery__nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.artd-gallery__nav svg {
  width: 20px;
  height: 20px;
}
.artd-gallery__nav--prev {
  left: 14px;
}
.artd-gallery__nav--next {
  right: 14px;
}
/* ---- จุด (dots) บอกจำนวนรูป + รูปที่กำลังดู ---- */
.artd-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}
.artd-gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.artd-gallery__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.artd-gallery__dot.is-active {
  background: var(--accent); /* ส้ม = รูปที่กำลังดู */
  transform: scale(1.25);
}
.artd-gallery figcaption {
  margin-top: 12px;
  color: #a1a1aa;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
.artd-gallery__slide img {
  cursor: zoom-in;
  -webkit-user-drag: none; /* กัน ghost image ตอนลากด้วยเมาส์ */
  user-select: none;
}
/* gallery ที่ลากได้ = grab / ระหว่างลาก = grabbing */
.artd-gallery.is-draggable .artd-gallery__track {
  cursor: grab;
}
.artd-gallery.is-dragging .artd-gallery__track {
  cursor: grabbing;
  scroll-behavior: auto; /* ลากต้องตอบสนองทันที ไม่ smooth */
}
.artd-gallery.is-dragging .artd-gallery__slide img {
  cursor: grabbing;
}

/* ---- Gallery fullscreen lightbox (คลิกรูปแล้วสไลด์ซ้าย-ขวาได้) ---- */
.artd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 44px);
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}
.artd-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.artd-lightbox__img {
  width: auto;
  height: auto;
  max-width: calc(100vw - clamp(96px, 14vw, 200px));
  max-height: calc(100svh - clamp(92px, 10vw, 140px));
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  touch-action: pan-y; /* ปัดแนวนอน = ให้ JS จัดการ (เปลี่ยนรูป) */
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
.artd-lightbox.is-dragging .artd-lightbox__img {
  cursor: grabbing;
}
.artd-lightbox__close,
.artd-lightbox__nav {
  position: fixed;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.artd-lightbox__close {
  top: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
  font-size: 2rem;
  line-height: 1;
}
.artd-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.artd-lightbox__nav--prev {
  left: clamp(14px, 2.5vw, 34px);
}
.artd-lightbox__nav--next {
  right: clamp(14px, 2.5vw, 34px);
}
.artd-lightbox__nav svg {
  width: 20px;
  height: 20px;
}
.artd-lightbox__close:hover,
.artd-lightbox__close:focus-visible,
.artd-lightbox__nav:hover,
.artd-lightbox__nav:focus-visible {
  background: rgba(251, 128, 5, 0.9);
  border-color: var(--accent);
}
.artd-lightbox__count {
  position: fixed;
  bottom: clamp(16px, 2.5vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  color: #a1a1aa;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}
body.artd-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .artd-hero {
    min-height: auto;
  }
  .artd-hero__body {
    min-height: 380px;
  }
  .artd-next__body {
    inset-inline: 20px;
    bottom: 20px;
  }
  .artd-size--wide {
    margin-inline: 0;
  }
  .artd-gallery__slide {
    flex-basis: 100%;
  }
  ul.artd-cols--2,
  ul.artd-cols--3,
  ul.artd-cols--4 {
    columns: 1;
  }
  .artd-imggrid--3,
  .artd-imggrid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .artd-imggrid--2,
  .artd-imggrid--3,
  .artd-imggrid--4 {
    grid-template-columns: 1fr;
  }
}

/* การ์ดที่ยังไม่มีหน้า detail — ไม่ใช่ลิงก์ */
.work-feature-card.is-nolink,
.work-project.is-nolink,
.articles-feature-card.is-nolink,
.articles-card.is-nolink {
  cursor: default;
}
.work-feature-card.is-nolink:hover,
.work-project.is-nolink:hover,
.articles-card.is-nolink:hover {
  transform: none;
}
.is-nolink .work-project__media img,
.is-nolink .work-feature-card__media img,
.is-nolink .articles-card__media img {
  opacity: 0.55;
}

/* =========================================================
   SEARCH (/search)
   ========================================================= */
.search-page {
  background: #000;
  min-height: 70vh;
}
.search-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 90px));
  padding-bottom: clamp(28px, 3vw, 44px);
}
.search-hero__title {
  font-size: clamp(2rem, 3.4vw, 3.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  min-height: 56px;
  padding: 0 18px;
  border: 0.75px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: linear-gradient(270deg, #070707 0%, #000 77%);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  letter-spacing: 0.02em;
}
.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.search-form button {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.search-form button svg {
  width: 24px;
  height: 24px;
}
.search-hero__meta {
  margin-top: 22px;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}
.search-hero__meta strong {
  color: var(--accent);
}

.search-empty {
  padding-block: clamp(30px, 5vw, 60px) clamp(60px, 9vw, 120px);
}
.search-empty p {
  color: var(--ink-dim);
  line-height: 1.9;
}
.search-empty a {
  color: var(--accent);
  text-decoration: underline;
}

.search-results {
  padding-bottom: clamp(60px, 8vw, 110px);
}
.search-results__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}
.search-result__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 0.75px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(270deg, #0a0a0a 0%, #000 90%);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.search-result__link:hover {
  border-color: rgba(251, 128, 5, 0.6);
  transform: translateX(4px);
}
.search-result__media {
  width: 108px;
  height: 72px;
  border-radius: 7px;
  overflow: hidden;
  background: #111;
  flex: none;
}
.search-result__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result__media--none {
  display: grid;
  place-items: center;
  border: 0.75px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #161616, #000);
}
.search-result__media--none span {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
}
.search-result__type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}
.search-result__title {
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.search-result__snippet {
  font-size: clamp(0.85rem, 0.9vw, 0.95rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}
.search-result mark {
  background: rgba(251, 128, 5, 0.28);
  color: #fff;
  border-radius: 2px;
  padding: 0 1px;
}
.search-result__arrow {
  color: var(--accent);
  font-size: 1.4rem;
  flex: none;
}
@media (max-width: 640px) {
  .search-result__link {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .search-result__arrow {
    display: none;
  }
  .search-result__media {
    width: 72px;
    height: 56px;
  }
}

/* =========================================================
   CONTACT (/contact)
   ========================================================= */
.contact-page {
  background: #000;
}
.contact-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 5vw, 50px));
  padding-bottom: clamp(30px, 3.5vw, 54px);
}
.contact-hero__eyebrow {
  /* color: var(--ink-dim); */
  font-size: x-large;
}
.contact-hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.contact-hero__lead {
  max-width: 440px;
  margin-top: 22px;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* ---- cards grid ---- */
.contact-main {
  padding-bottom: clamp(30px, 3vw, 44px);
}
.contact-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); /* การ์ดขว ากว้างกว่า = มี 2 คอลัมน์ */
  gap: clamp(18px, 1.6vw, 26px);
  align-items: stretch;
}
/* การ์ดขวา: Get in Touch | Our Office เรียงแนวนอนในการ์ดเดียว */
.contact-info__grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(22px, 2.2vw, 44px);
  height: 100%;
}
.contact-card {
  padding: clamp(24px, 2.4vw, 40px);
  border: 0.75px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(
      120% 120% at 100% 0%,
      rgba(251, 128, 5, 0.05),
      transparent 55%
    ),
    linear-gradient(180deg, #0d0d0d 0%, #050505 100%);
}
.contact-card__title {
  font-size: clamp(1.3rem, 1.5vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
}
.contact-card__sub {
  margin-top: 8px;
  margin-bottom: 26px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---- form ---- */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 0.75px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease;
}
.contact-field--full {
  grid-column: 1 / -1;
}
.contact-field--area {
  align-items: flex-start;
  padding-top: 15px;
}
.contact-field > svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.contact-field textarea {
  padding: 0;
  line-height: 1.6;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.contact-field select {
  color: rgba(255, 255, 255, 0.5);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.contact-field select option {
  background: #0d0d0d;
  color: #fff;
}
.contact-field:focus-within {
  border-color: var(--accent);
}
.contact-field.has-error {
  border-color: #e5484d;
}
.contact-field--select .contact-field__chevron {
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  color: var(--ink-dim);
  pointer-events: none;
}

/* ---- CAPTCHA ---- */
.contact-captcha {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}
.contact-captcha__challenge {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
}
.contact-captcha__img {
  height: 54px;
  width: auto;
  border-radius: 8px;
  border: 0.75px solid rgba(255, 255, 255, 0.18);
  display: block;
  user-select: none;
}
.contact-captcha__refresh {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent);
  cursor: pointer;
}
.contact-captcha__refresh:hover {
  background: rgba(251, 128, 5, 0.2);
}
.contact-captcha__refresh svg {
  width: 15px;
  height: 15px;
}
.contact-captcha__input {
  flex: 1;
  margin: 0;
}

.contact-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* background: var(--accent); */
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.18s ease;
  border: 1.5px solid var(--accent);
}
.contact-submit:hover {
  background: #d96c00;
}
.contact-submit svg {
  width: 18px;
  height: 18px;
}

.contact-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 0.82rem;
}
.contact-secure svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}

.contact-alert {
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.contact-alert--ok {
  background: rgba(70, 167, 88, 0.12);
  border: 1px solid rgba(70, 167, 88, 0.45);
  color: #86e29b;
}
.contact-alert--error {
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.5);
  color: #f2a0a2;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ---- get in touch ---- */
.contact-info__group {
  margin-bottom: 28px;
}
/* Sales Representative / Project Manager — ขาว ตัวหนา ตัวปกติ (ไม่ uppercase) */
.contact-info__role {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-person + .contact-person {
  margin-top: 22px;
}
/* ชื่อ = สีส้ม + ไอคอน id-card ส้ม */
.contact-person__name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.contact-person__badge {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}
.contact-person__badge svg {
  width: 22px;
  height: 22px;
}
/* เบอร์/อีเมล = ขาว-เทา (ไม่ใช่ส้ม), ไอคอนเทา — align ไอคอนตรงคอลัมน์เดียวกับ badge */
.contact-person__line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  padding: 5px 0;
  word-break: break-word;
}
.contact-person__line svg {
  width: 22px;
  height: 22px;
  flex: none;
  /* color: rgba(255, 255, 255, 0.5); */
  color: var(--accent);
}
.contact-person__line:hover {
  color: var(--accent);
}
.contact-person__line:hover svg {
  color: var(--accent);
}

/* คอลัมน์ขวาแยกด้วยเส้นแนวตั้ง (ตามดีไซน์) */
.contact-office {
  padding-left: clamp(0px, 1.5vw, 8px);
}
.contact-info__grid > .contact-office {
  border-left: 0.75px solid rgba(255, 255, 255, 0.12);
  padding-left: clamp(22px, 2.2vw, 44px);
}
.contact-office .contact-card__title {
  margin-bottom: 14px;
}
.contact-office__addr {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 18px;
}
.contact-office__hours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-office__hours-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
}
.contact-office__clock {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  /* border-radius: 50%; */
  /* border: 1.5px solid var(--accent); */
  color: var(--accent);
}
.contact-office__clock svg {
  width: 42px;
  height: 42px;
}
.contact-office__img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 900 / 320;
  background: #111;
}
.contact-office__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin: 0 0 22px;
}
.contact-hours-grid dt {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-hours-grid dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-office__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.contact-office__tel svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.contact-office__tel a:hover {
  color: var(--accent);
}
/* social = ไอคอนขาวเปล่า ๆ ไม่มีกรอบ (ตามดีไซน์) */
.contact-social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.contact-social a {
  color: #fff;
  transition: color 0.18s ease;
}
.contact-social a:hover {
  color: var(--accent);
}
.contact-social svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---- map ---- */
.contact-map-wrap {
  padding-block: clamp(20px, 2vw, 30px) clamp(40px, 5vw, 80px);
}
.contact-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 0.75px solid rgba(255, 255, 255, 0.16);
  min-height: clamp(360px, 34vw, 470px);
}
.contact-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* ล็อกแผนที่ไม่ให้เลื่อน -> หมุดส้มตรงตำแหน่งเสมอ (ใช้ปุ่มในการ์ดเปิด/นำทางแทน) */
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9)
    saturate(0.6);
}
/* Google Maps JS API canvas (ธีมมืด + เลื่อน/ซูมได้) */
.contact-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
}
.contact-map__canvas--error::after {
  content: "โหลดแผนที่ไม่สำเร็จ — ตรวจ API key / การจำกัด referrer";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 0.9rem;
  padding: 20px;
  text-align: center;
}
/* หมุดสีส้มตาม CI — ปลายหมุดชี้จุดกึ่งกลาง = ตำแหน่งบริษัท */
.contact-map__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.55));
}
.contact-map__pin svg {
  width: 38px;
  height: 54px;
  display: block;
}
.contact-map__card {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  left: clamp(16px, 2vw, 28px);
  width: min(340px, calc(100% - 32px));
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.92);
  border: 0.75px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}
.contact-map__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-map__name {
  font-size: 1.15rem;
  font-weight: 700;
}
.contact-map__actions {
  display: flex;
  gap: 8px;
}
.contact-map__actions a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0.75px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
}
.contact-map__actions a:hover {
  border-color: var(--accent);
  background: rgba(251, 128, 5, 0.1);
}
.contact-map__actions svg {
  width: 17px;
  height: 17px;
}
.contact-map__addr {
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}
.contact-map__rating {
  margin-top: 12px;
  font-weight: 600;
}
.contact-map__star {
  color: var(--accent);
}
.contact-map__reviews {
  color: var(--ink-dim);
  font-weight: 400;
}

/* จอกลาง: การ์ดขวายังกว้างแต่ยุบ Get in Touch / Our Office เป็นแนวตั้ง */
@media (max-width: 1100px) {
  .contact-info__grid {
    grid-template-columns: 1fr;
  }
  .contact-info__grid > .contact-office {
    border-left: 0;
    border-top: 0.75px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 24px;
  }
}
@media (max-width: 900px) {
  .contact-main__grid {
    grid-template-columns: 1fr;
  }
  .contact-field-grid {
    grid-template-columns: 1fr;
  }
  .contact-hours-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .contact-hours-grid div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }
}

/* ---- blur-up (LQIP): ภาพจิ๋วเบลอเป็น bg ระหว่างโหลด แล้วภาพจริงทับเมื่อโหลดเสร็จ ---- */
.imgblur {
  background-repeat: no-repeat;
  background-color: #111;
}

/* =========================================================
   LEGAL PAGES — /privacy, /terms (หน้าเนื้อหาข้อความล้วน)
   ========================================================= */
.legal-hero {
  padding: calc(var(--nav-h, 78px) + clamp(40px, 6vw, 90px)) 0
    clamp(28px, 4vw, 50px);
  border-bottom: 1px solid var(--line-soft);
}
.legal-hero__eyebrow {
  margin: 0 0 12px;
}
.legal-hero__title {
  margin: 0;
  font-size: var(--fs-display);
  line-height: 1.05;
}
.legal-hero__title .accent {
  color: var(--accent);
}
.legal-hero__meta {
  margin: 16px 0 0;
  font-size: var(--fs-xs);
  color: var(--ink-dim);
}

.legal-body {
  padding: clamp(32px, 5vw, 64px) 0 clamp(60px, 8vw, 110px);
}
.legal-body__inner {
  max-width: 820px;
}
.legal-body h2 {
  font-size: var(--fs-h4);
  margin: clamp(30px, 4vw, 48px) 0 12px;
}
.legal-body p,
.legal-body li {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-dim);
}
.legal-body strong {
  color: var(--ink);
  font-weight: 500;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body ul {
  margin: 0 0 4px;
  padding-left: 1.25em;
}
.legal-body li {
  margin: 6px 0;
}
.legal-lead {
  font-size: var(--fs-lead) !important;
  color: var(--ink) !important;
  margin: 0 0 8px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: var(--fs-body);
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 500;
}
.legal-table td {
  color: var(--ink-dim);
}

.legal-cookie-btn {
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.legal-cookie-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.legal-cookie-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td,
  .legal-table th {
    display: block;
  }
  .legal-table thead {
    display: none;
  }
  .legal-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line-soft);
  }
  .legal-table td {
    border: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .legal-table td:last-child {
    border-bottom: 0;
    color: var(--accent);
  }
}

/* =========================================================
   ABOUT PAGE (/about)
   ========================================================= */
.ab-page {
  overflow: clip;
}

/* ---- HERO ---- */
.ab-hero {
  position: relative;
  min-height: clamp(460px, 34vw, 660px);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.ab-hero__media {
  position: absolute;
  inset: 0;
}
.ab-hero__img {
  width: 100%;
  height: 100%;
  object-fit: none;
}
.ab-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(89deg, #000 1%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(
      92deg,
      rgb(0 0 0 / 0%) 6%,
      rgb(0 0 0 / 0%) 38%,
      rgba(0, 0, 0, 0) 80%
    );
}
.ab-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(clamp(460px, 34vw, 660px) - var(--nav-h));
  padding-block: clamp(40px, 5vw, 80px);
}
.ab-hero__eyebrow {
  color: var(--accent);
  font-size: clamp(0.8rem, 1vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ab-hero__title {
  max-width: 780px;
  margin-top: clamp(14px, 1.4vw, 22px);
  font-size: clamp(2.1rem, 3.1vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.ab-hero__lead {
  max-width: 560px;
  margin-top: clamp(18px, 2vw, 30px);
  color: var(--ink-dim);
  font-size: var(--fs-body);
  line-height: 1.75;
}

/* ---- STATS ---- */
.ab-stats {
  padding-block: clamp(40px, 4.6vw, 74px);
  background: var(--bg);
}
/* คอลัมน์กว้างเท่าเนื้อหา + กระจายเท่ากันด้วย space-between
   เส้นคั่นเป็น element จริง (flex ให้ช่องว่างซ้าย/ขวาเท่ากัน) => เส้นอยู่กึ่งกลางระหว่าง text */
.ab-stats__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 44px);
  max-width: 1500px;
}
.ab-stat {
  flex: 0 0 auto;
}
.ab-stat__div {
  flex: 0 0 1px;
  height: clamp(54px, 6vw, 88px);
  background: var(--line-soft);
}
.ab-stat__label {
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ab-stat__value {
  margin-top: 6px;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
}
.ab-stat__note {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}

/* ---- QUOTE ---- */
.ab-quote {
  padding-block: clamp(44px, 5.4vw, 92px);
  text-align: center;
}
.ab-quote__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ab-quote__body {
  max-width: 900px;
  margin: clamp(18px, 2vw, 28px) auto 0;
  color: var(--ink-dim);
  font-size: var(--fs-body);
  line-height: 1.9;
}

/* ---- FOUNDER ---- */
.ab-founder__media {
  position: relative;
}
.ab-founder__img {
  display: block;
  width: 100%;
  /* height: clamp(360px, 42vw, 720px); */
  object-fit: cover;
  /* filter: grayscale(1); */
}
.ab-founder__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000 1%, rgba(0, 0, 0, 0) 42%);
}
.ab-founder__cap {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vw, 64px);
  transform: translateX(-50%);
  text-align: center;
}
.ab-founder__sign {
  width: clamp(390px, 16vw, 390px);
  height: auto;
  margin-bottom: 10px;
}
.ab-founder__name {
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ab-founder__role {
  margin-top: 4px;
  color: var(--accent);
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- VISION / MISSION ---- */
.ab-vm {
  padding-block: clamp(48px, 6vw, 104px);
}
.ab-vm .wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 4vw, 64px);
  max-width: 1500px;
}
.ab-vm__block {
  --ab-vm-pad: clamp(18px, 2vw, 28px);
}
/* แถบส้มอยู่แค่หัวข้อ (ไม่ยาวลงไปถึงรายละเอียด) */
.ab-vm__title {
  padding: 3px 0 3px var(--ab-vm-pad);
  border-left: 3px solid var(--accent);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.ab-vm__body {
  max-width: 100%;
  margin-top: clamp(10px, 1.2vw, 18px);
  padding-left: calc(var(--ab-vm-pad) + 3px); /* เยื้องให้ตรงกับข้อความหัวข้อ */
  color: var(--ink-dim);
  font-size: var(--fs-body);
  line-height: 1.85;
}

/* ---- MEET OUR TEAM ---- */
.ab-team {
  padding-block: clamp(48px, 6vw, 100px);
  text-align: center;
}
.ab-team__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ab-team__lead {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: var(--fs-lead);
}
.ab-team__card {
  margin-top: clamp(30px, 3.6vw, 58px);
  padding: clamp(8px, 2vw, 30px) clamp(16px, 3vw, 56px);
  background: #0b0b0b;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.ab-team__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(22px, 2.6vw, 40px);
  border-top: 1px solid var(--line-soft);
}
.ab-team__row:first-child {
  border-top: 0;
}
.ab-member {
  flex: 1 1 220px;
  max-width: 360px;
}
.ab-member__name {
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.35;
}
.ab-member__role {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
}

/* ---- MEET OUR OFFICE ---- */
.ab-office {
  padding-block: clamp(40px, 5vw, 90px) clamp(56px, 7vw, 120px);
  --ab-indent: calc(
    clamp(18px, 2vw, 28px) + 3px
  ); /* เยื้องซ้ายให้ตรงแนวกับ Vision/Mission */
}
/* กรอบกว้างกว่า Vision/Mission เล็กน้อยให้ gallery ดูใหญ่ขึ้น (ขอบซ้ายยังเยื้องตรงกันด้วย --ab-indent) */
.ab-office .wrap {
  max-width: 1500px;
}
.ab-office__title,
.ab-office__text,
.ab-office__gallery {
  padding-left: var(--ab-indent);
}
.ab-office__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 2vw, 30px);
}
.ab-office__text {
  max-width: 1500px;
  color: var(--ink-dim);
  font-size: var(--fs-body);
  line-height: 1.9;
}
.ab-office__text + .ab-office__text {
  margin-top: clamp(14px, 1.4vw, 22px);
}
/* เลย์เอาต์ตาม About Us-image.jpg: hero เต็มความกว้าง + 2×2 ด้านล่าง */
.ab-office__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 3vw, 26px);
  row-gap: clamp(12px, 1.6vw, 26px);
  margin-block: clamp(26px, 3.4vw, 54px);
}
.ab-office__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 2 / 1;
  background: #111;
}
.ab-office__item--hero {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.ab-office__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.ab-office__item:hover img {
  transform: scale(1.04);
}
.ab-office__caption {
  position: absolute;
  left: clamp(12px, 1.2vw, 20px);
  bottom: clamp(12px, 1.2vw, 20px);
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* ---- responsive ---- */
@media (max-width: 760px) {
  .ab-stats__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .ab-stat__div {
    display: none; /* mobile = เส้นแนวนอนบนแทนเส้นแนวตั้ง */
  }
  .ab-stat {
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
  }
  .ab-stat:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .ab-office__gallery {
    grid-template-columns: 1fr; /* mobile = เรียงเดี่ยว */
  }
  .ab-office__item {
    aspect-ratio: 16 / 9;
  }
  .ab-member {
    flex-basis: 100%;
  }
}
