:root {
  --bg: #ffffff;
  --ink: #050505;
  --accent: #e5362c;
  --shadow: 0 16px 40px rgba(10, 10, 10, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ทำให้ media ทุกตัว responsive */
img,
picture,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}



body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}

/* loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  /* backdrop-filter: blur(20px); */
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 16px;
  transition: opacity 0.35s ease;
}
.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-parallax {
  position: relative;
  width: 140px;
  height: 140px;
}
.loader-layer {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.85;
  animation: float 2.4s ease-in-out infinite;
}
.loader-layer.l1 {
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}
.loader-layer.l2 {
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  transform: translate(36px, -26px);
  animation-delay: 0.4s;
}
.loader-text {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

/* nav */
.top-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 32px));
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 60;
  backdrop-filter: blur(14px);
}
.glass {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px; /* จะใช้ 999px เฉพาะปุ่มกลมก็ได้ */
  box-shadow: var(--shadow);

  /* ตัวทำให้ “เบลอพื้นหลัง” จริง ๆ */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand {
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 12px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.nav-links a {
  opacity: 0.6;
  padding: 4px 10px;
  border-radius: 99px;
}
.nav-links a.active,
.nav-links a:hover {
  opacity: 1;
  background: rgba(229, 54, 44, 0.12);
}

/* ทั้ง section */
.hero{
  position: relative;
  padding-top: 72px;   /* เว้นที่ด้านบนให้ header นิดนึง */
}

/* header ให้เป็น block ธรรมดาอยู่บนสุด */
.top-nav{
  position: absolute;
  top: 16px;           /* ระยะจากขอบบน section */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100% - 40px, 960px);  /* ให้ชิดกลาง + มีระยะขอบ */
}

/* กล่องเนื้อหาที่ต้องการให้กลางจอ */
.hero-inner{
  min-height: 100vh;          /* หรือ calc(100vh - 80px) ถ้าไม่อยากให้ยาวเกิน */
  display: flex;
  flex-direction: column;
  justify-content: center;    /* จัดกลางแนวตั้ง */
  padding-inline: 20px;
}


/* HERO VIDEO SECTION */
.hero-video{
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background:#000;
}

.hero-video::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;  /* เพิ่มความสูงเฟดให้ยาวขึ้นหน่อย */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,           /* บนสุด = โปร่งใส */
    rgba(247, 247, 247, 0.0) 40%,  /* ช่วงกลางยังแทบมองไม่เห็น */
    rgba(247, 247, 247, 0.6) 75%,  /* เริ่มขึ้นโทนเทาอ่อน */
    #f7f7f7 100%                   /* ล่างสุด = สี BG หลัก */
  );
  pointer-events: none;
}
/* ปุ่มบอกให้เลื่อนลง */
.intro-video__scroll{
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* animation ให้ปุ่มเด้งเบา ๆ */
.intro-video__scroll{
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint{
  0%   { transform: translate(-50%, 0); }
  50%  { transform: translate(-50%, -8px); }
  100% { transform: translate(-50%, 0); }
}

/* overlay ข้อความบาง ๆ บนวิดิโอ */
.hero-video__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* ข้อความอยู่ล่าง ๆ หน่อย */
  align-items: flex-start;
  padding: 0 7vw 10vh;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.hero-video__eyebrow{
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.hero-video__title{
  font-size: clamp(1.9rem, 3.1vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
}

.hero-video__tagline{
  font-size: 0.9rem;
  max-width: 420px;
  opacity: 0.8;
}

/* cue ให้รู้ว่าต้องเลื่อนลง */
.hero-video__scroll-cue{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

.hero-video__scroll-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: scrollPing 1.8s ease-out infinite;
}

@keyframes scrollPing{
  0%{ box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  100%{ box-shadow: 0 0 0 18px rgba(255,255,255,0); }
}

/* เนื้อหาหลักด้านล่าง */
.page-main{
  background: #f7f7f7;   /* หรือ #ffffff แล้วแต่ที่ใช้จริง แต่ให้ตรงกันทุกที่ */
}
/* mobile: ลด padding ลงหน่อย */
@media (max-width: 768px){
  .hero-video__overlay{
    padding: 0 1.75rem 4.5rem;
  }
  .hero-video__tagline{
    max-width: 280px;
  }
}


/* section วิดีโอ: สูงเต็มจอ + จัดทุกอย่างให้อยู่กลาง */
.intro-video{
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;            /* หรือ bg หลักของเว็บ */
  overflow: hidden;
}

/* กรอบวิดีโอ */
.intro-video__frame{
  width: min(100%, 960px);     /* ปรับขนาดสูงสุดของกล่อง */
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* วิดีโอข้างในให้เต็มกรอบ */
.intro-video__media{
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* parallax color blobs */
.parallax-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}
.p-layer {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
}
.p1 {
  width: 280px;
  height: 280px;
  top: 50px;
  right: 10%;
  background: radial-gradient(
    circle,
    rgba(229, 54, 44, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}
.p2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: 8%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

.p3 {
  width: 280px;
  height: 280px;
  bottom: -30%;
  right: 10%;
  background: radial-gradient(
    circle,
    rgba(230, 50, 50, 0.4) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}


/* BG WORDS */
.bg-words {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.bg-word {
  position: absolute;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(8rem, 20vw, 18rem);
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.03);
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  transform-origin: center;
  transition: transform 0.08s linear;
}
.bg-word.left {
  left: 0.5rem;
  top: 5vh;
  transform: rotate(90deg);
}
.bg-word.right {
  right: 0.5rem;
  bottom: 0;
  transform: rotate(90deg);
}
.bg-word.center {
  left: 50%;
  top: 45vh;
  transform: translateX(-50%) rotate(0deg);
  opacity: 0.06;
}

/* hero */
.hero {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 120px 16px 10px;
}

.heroo {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 150px 16px 150px;
}

.herooo {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 20px 16px 400px;
}

.hero--center {
  text-align: center;
}
.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 1rem;
}

.eyebroww {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 1rem;
}

.headline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  justify-content: center;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  line-height: 0.9;
}
.headline span {
  display: inline-block;
}
.headline .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
}
.headline .solid {
  color: #000;
}
.headline--tight {
  gap: 0.25em;
}
.hero-sub {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}
.hero-minicard {
  margin: 40px auto 0;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 20px 22px 22px;
  text-align: left;
}

/* COLLAGE – ทำให้เต็มตากว่าเดิม */
.collage {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 220px 1px 60px;
  display: grid;
  gap: 46px;
}

.collage,
.collage * {
  box-sizing: content-box !important;
}
.c-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
}

.c-row.c-alt {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.tiles-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* รูปให้ดูใหญ่/เต็มขึ้นนิดหน่อย */
.tile {
  border-radius: 22px;                       /* มุมโค้งนุ่มขึ้นนิดหน่อย */
  overflow: hidden;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
}

.h-copy {
  display: grid;
  gap: 10px;
  align-content: center;
}
.h-title {
  font-size: clamp(2rem, 3.2vw, 1.6rem);  /* เดิม 1.6–2rem */
  line-height: 1.08;
}

.h-sub {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.55);
  max-width: 40ch;                          /* ยาวขึ้นหน่อย ให้บาลานซ์กับรูปใหญ่ */
}

.more-btn {
  margin-top: 8px;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid #000;
  border-radius: 50%;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
html {
  scroll-behavior: smooth;
}

/* Parallax items (in-view engine) */
.px {
  will-change: transform, opacity;
}

/* shared page */
.page-wrap {
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 140px 16px 80px;
}
.page-title {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.page-sub {
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}
.works-list {
  display: grid;
  gap: 12px;
}
.work-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 16px 16px 14px;
  backdrop-filter: blur(14px);
}
.work-row h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.work-row p {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.5);
}
.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(229, 54, 44, 0.12);
  padding: 4px 10px 5px;
  border-radius: 99px;
}
.about-box {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  padding: 20px 18px 24px;
  border-radius: 18px;
  display: grid;
  gap: 10px;
}
.footer {
  text-align: center;
  padding: 0 0 40px;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .collage {
    padding: 80px 20px 60px;
    gap: 40px;
  }

  .c-row,
  .c-row.c-alt {
    grid-template-columns: 1fr;   /* ซ้อนเป็นคอลัมน์เดียว */
  }

  .h-copy {
    text-align: center;
  }
}
@media (max-width: 860px) {
  .bg-word.center {
    display: none;
  }
}
@media (max-width: 740px) {
  .headline {
    font-size: clamp(2.4rem, 12vw, 4.3rem);
  }
  .work-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .bg-word {
    font-size: clamp(6rem, 22vw, 12rem);
  }
}
/* video เต็มจอ */
.hero-video-full {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-video-full__video {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* เต็มจอ ไม่บิดรูป */
  object-position: center;
}

.hero-video-full__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

:root {
  --nav-h: 350px; /* ความสูง nav + ระยะหายใจนิดหน่อย */
}

/* ให้ hero ตัวถัดไปไม่โดน navbar บังมากเกิน */
.hero.hero--center {
  min-height: calc(100vh - var(--nav-h)); /* สูงเท่าจอ หัก navbar */
    /* กันไม่ให้โดน nav บัง */
  /* padding-top: var(--nav-h);  */
  display: flex;
  flex-direction: column;
  justify-content: center; /* กึ่งกลางแนวตั้ง */
  align-items: center; /* กึ่งกลางแนวนอน */
}

@media (max-width: 600px) {
  :root {
    --nav-h: 72px;
  }
}
.brands-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 120px 16px 180px;
}
.brands-hero {
  margin-bottom: 20px;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

/* การ์ดแบรนด์ */
.brand-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff; /* ขาวเนียน */
  border: 1px solid rgba(0, 0, 0, 0.03); /* เส้นบาง ๆ แทบไม่เห็น */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); /* เงาเบา ๆ */
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.brand-hero {
  position: relative;
  aspect-ratio: 16/9;
}
.brand-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* ไม่ครอปโลโก้ */
}



.brand-hero img,
.about-hero__media img,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* เต็มกรอบ */
  display: block;
}

.glass-soft {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
}
.brand-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.brand-overlay h3 {
  font-size: 1rem;
  line-height: 1.15;
}
.brand-overlay p {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);;
}

.about-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 140px 16px 80px;
}

/* HERO */
.about-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}
.about-hero__media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.16);
  background: #000;
}
.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-hero__copy {
  display: grid;
  gap: 10px;
}
.about-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}
.about-lead {
  color: rgba(0, 0, 0, 0.65);
}

/* SERVICES */
.about-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 40px;
}
.about-service {
  padding: 18px 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.about-service h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.about-service p {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
}

/* BRANDS */
.about-brands {
  margin-bottom: 40px;
}
.about-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
}
.about-chip {
  padding: 6px 12px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-chip:hover {
  border-color: var(--accent);
}
.about-note {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

/* CTA */
.about-cta {
  border-radius: 18px;
  padding: 18px 16px 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.about-cta p {
  color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-hero__copy {
    order: -1;
  }
  .about-services {
    grid-template-columns: 1fr;
  }
}

.about-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 140px 16px 280px;
}

/* HERO */
.about-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 100px;
}
.about-hero__media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.16);
  background: #000;
}
.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-hero__copy {
  display: grid;
  gap: 10px;
}
.about-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}
.about-lead {
  color: rgba(0, 0, 0, 0.65);
}

/* SERVICES */
.about-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 40px;
}
.about-service {
  padding: 18px 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.about-service h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.about-service p {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
}

/* BRANDS */
.about-brands {
  margin-bottom: 40px;
}
.about-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
}
.about-chip {
  padding: 6px 12px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-chip:hover {
  border-color: var(--accent);
}
.about-note {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

/* CTA */
.about-cta {
  border-radius: 18px;
  padding: 18px 16px 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.about-cta p {
  color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-hero__copy {
    order: -1;
  }
  .about-services {
    grid-template-columns: 1fr;
  }
}
.about-hero__media img {
  animation: heroFloat 9s ease-in-out infinite;
  transform-origin: center center;
}

/* keyframes ลอยขึ้น–ลงนิดหน่อย */
@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1);
  }
}
/* ABOUT TEASER บนหน้า home */
.about-teaser {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 150px 16px 240px;
}

.about-teaser__card {
  border-radius: 22px;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 10px;
}

.about-teaser__title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.about-teaser__text {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.65);
  max-width: 38ch;
}
/* layout grid ของ about */
.about-brands {
  margin: 40px 0 30px;
}
.about-brands__head {
  margin-bottom: 60px;
}
.about-brands__tagline {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

.about-brands-grid--cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

/* ย่อการ์ดแบรนด์ให้เล็กลงจากของหน้า OUR BRANDS */
.brand-card--mini {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.brand-card--mini .brand-hero {
  aspect-ratio: 16/8; /* เตี้ยลงนิดนึง */
}

.brand-card--mini .brand-overlay {
  padding: 8px 10px;
  border-radius: 12px;
}

.brand-card--mini .brand-overlay h3 {
  font-size: 0.85rem; /* เล็กลงประมาณ 20% */
}

.brand-card--mini .brand-overlay p {
  font-size: 0.7rem;
}

/* hover เบาลงนิดนึงสำหรับ about */
.brand-card--mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
}
.clients-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 140px 16px 80px;
}

/* HERO */
.clients-hero {
  max-width: 640px;
  margin-bottom: 30px;
}

/* GROUPS */
.clients-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

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

.client-group {
  border-radius: 20px;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.06);
}

.client-group-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

/* แถวโลโก้ */
.client-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-logo {
  flex: 0 0 auto;
  width: 96px; /* กว้างเท่า สูง */
  aspect-ratio: 1 / 1; /* สี่เหลี่ยมจัตุรัส */
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.client-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

/* แถบลูกค้าเพิ่มเติม */
.clients-more {
  border-radius: 16px;
  padding: 14px 16px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
}

.client-more-label {
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
}

.client-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}
/* HOME ABOUT (clean) */
.home-about {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0 16px 42px;
}

.home-about__inner {
  border-radius: 22px;
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 18px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.home-about__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.1;
}

.home-about__text {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.66);
  max-width: 34ch;
}

/* mobile */
@media (max-width: 780px) {
  .home-about__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.contact-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    #f9f9f9;
}

/* BG Typography ใหญ่จาง ๆ */
.contact-bg-text {
  position: absolute;
  font-size: 22vw;
  font-weight: 700;
  letter-spacing: -5px;
  color: rgba(0, 0, 0, 0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Glass Card */
.contact-card {
  position: relative;
  width: 520px;
  padding: 40px;
  border-radius: 28px;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  animation: floatCard 6s ease-in-out infinite;
  transition: 0.35s ease;
}

.contact-card:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.contact-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.contact-card p {
  color: #555;
  margin-bottom: 24px;
}

/* List */
.contact-list div {
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
}

/* Button */
.contact-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 26px;
  border-radius: 40px;
  border: 1px solid #999;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  transition: 0.3s ease;
}

.contact-btn:hover {
  background: #e5362c;
  color: #ffffff;
  border-color: #e5362c;
}

.contact-shell {
  position: relative;
}
.contact-shell::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle at top,
    rgba(229, 54, 44, 0.24),
    transparent 60%
  );
  opacity: 0.7;
  filter: blur(30px);
  z-index: -1;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.contact-btn::after {
  content: "↗";
  font-size: 0.9rem;
}
.contact-btn:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
}

/* FLOATING MOTION */
@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}
.clients-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 140px 16px 180px;
}

/* HERO */
.clients-hero {
  max-width: 640px;
  margin-bottom: 30px;
}

/* FEATURED CLIENTS – 3 ใบบนสุด */
.clients-feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

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

.client-feature-card {
  border-radius: 22px;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 8px;
  align-content: flex-start;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.client-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.12);
}

.client-feature-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  margin-bottom: 4px;
}
.client-feature-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-feature-name {
  font-size: 0.9rem;
  font-weight: 500;
}
.client-feature-note {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
}

/* LOGO WALL */
.clients-wall {
  margin-bottom: 30px;
}

.clients-wall-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

/* GRID 1:1 โลโก้ทั้งหมด */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1:1 LOGO TILE */
.client-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* สี่เหลี่ยมจัตุรัส 1:1 */
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.client-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.16)
  );
  opacity: 0;
  transition: opacity 0.18s ease;
}

.client-logo:hover {
  transform: translateY(0px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(105, 57, 55, 0.22);
  transform: scale(1.01);
}
.client-logo:hover::after {
  opacity: 1;
}

/* NOTE ปิดท้าย */
.clients-note {
  border-radius: 18px;
  padding: 14px 16px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.65);
}
.story-title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.story-text {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.68);
  max-width: 32rem;
}

.brands-story {
  margin: 40px 0 50px;
}
.brands-story-head {
  max-width: 520px;
  margin-bottom: 18px;
}
.brands-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.brand-story-card {
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.brand-story-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.brand-story-card .tagline {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.brand-story-card .desc {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.65);
}
@media (max-width: 900px) {
  .brands-story-grid {
    grid-template-columns: 1fr;
  }
}
/* เริ่มต้น: ยังไม่เข้า viewport */
.px[data-fade]{
  opacity:0;
  transform:translate3d(0,40px,0);
}

/* JS ของคุณน่าจะเพิ่ม class .is-in ตอนเลื่อนถึง */
.px[data-fade].is-in{
  opacity:1;
  transform:translate3d(0,0,0);
  transition:opacity .5s ease, transform .6s ease;
}

/* overlay ทั้งหน้า (เริ่มต้นซ่อนอยู่) */
.welcome-popup{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* พื้นหลังเบลอ + มืดนิด ๆ */
.welcome-popup__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* การ์ดกลางจอ */
.welcome-popup__card{
  position: relative;
  z-index: 1;
  width: min(90vw, 720px);
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  transform: scale(.96) translateY(10px);
  transition: transform .35s ease;
}

/* รูปด้านใน */
.welcome-popup__image{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ปุ่มปิด */
.welcome-popup__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ตอนแสดง popup */
.welcome-popup.is-visible{
  opacity: 1;
  pointer-events: auto;
}
.welcome-popup.is-visible .welcome-popup__card{
  transform: scale(1) translateY(0);
}




/* ระยะขอบซ้ายขวาอัตโนมัติทุกหน้า */
:root{
  --page-pad: clamp(16px, 5vw, 80px);
}

/* ใช้กับ section หลัก ๆ ของทุกหน้า */
/* .hero, */
.section,
.about-section,
.clients-section,
.our-brands,
.main-section{
  padding-inline: var(--page-pad);
}

/* จำกัดความกว้าง content ให้ไม่ยาวเกินบนจอใหญ่ */
.wrapper,
.hero-inner,
.page-inner{
  max-width: 1200px;
  margin-inline: auto;
}
/* เดสก์ท็อป (ค่าปกติ) */
.top-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 24px;
}

/* ปรับ nav บนจอ medium ลงไป */
@media (max-width: 900px){
  .top-nav{
    padding-inline: 16px;
  }
  .nav-links{
    gap: 8px;
    font-size: 0.65rem;
  }
}

/* มือถือ: โลโก้อยู่บน ลิงก์อยู่ล่าง เรียงกลางหน้าจอ */
@media (max-width: 640px){
  .top-nav{
    flex-direction: column;
    align-items: flex-start;         /* ถ้าอยากให้กลางใช้ center */
    gap: 8px;
    padding-block: 12px;
  }

  .brand{
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  .nav-links{
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;     /* หรือ center ถ้าอยากให้ลิงก์อยู่กลาง */
  }

  .nav-links a{
    padding: 4px 8px;
    font-size: 0.65rem;
  }
}
/* ให้ตัวหนังสือปรับขนาดเองตามจอ */
.headline{
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px; /* base */
}

@media (max-width: 480px){
  body{
    font-size: 15px;      /* มือถือเล็ก ลดนิดเดียวแต่ยังชัด */
  }
}



.hero-sub,
.desc{
  font-size: clamp(0.85rem, 1.2vw, 1rem);
}

/* จอเล็ก: ให้ทุกอย่างชิดซ้าย/กลาง อ่านง่าย */
@media (max-width: 768px){
  .hero.hero--center{
    padding-block: 40px 56px;
  }
  .hero-inner{
    min-height: auto;
  }
}

/* มือถือเล็ก */
@media (max-width: 480px){
  .hero-inner{
    padding-inline: 0;
  }

  .headline{
    font-size: 1.6rem;
  }

  .hero-sub{
    font-size: 0.8rem;
  }
}
/* เดสก์ท็อป */
.intro-video{
  height: 100vh;
}

/* Tablet & มือถือ: ไม่ต้องสูง 100vh เต็ม ๆ */
@media (max-width: 768px){
  .intro-video{
    height: 80vh;
    min-height: 420px;
  }

  .intro-video__frame{
    width: 100%;
    border-radius: 0;  /* ให้คลิปชิดขอบ ถ้าอยากโค้งไว้เหมือนเดิมก็เอาบรรทัดนี้ออก */
  }

  .scroll-caption{
    bottom: 24px;
    font-size: 0.75rem;
  }
}
/* เดสก์ท็อป: 2–3 คอลัมน์ */
.about-brands-grid--cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* จอใหญ่พิเศษ */
@media (min-width: 1200px){
  .about-brands-grid--cards{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* มือถือ / Tablet: 1 คอลัมน์ */
@media (max-width: 768px){
  .about-brands-grid--cards{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-card{
    padding: 16px 18px;
  }
}

/* CLIENTS logos */
.clients-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.client-logo{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* มือถือ: เพิ่มช่องว่าง */
@media (max-width: 640px){
  .clients-grid{
    gap: 12px;
  }
}
.story-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
}

/* มือถือ: ซ้อนเป็นแนวตั้ง */
@media (max-width: 768px){
  .story-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.section,
.about-section,
.clients-section,
.our-brands{
  padding-block: 80px;
}

/* จอเล็ก: ลดลงหน่อยให้อ่านง่าย */
@media (max-width: 768px){
  .section,
  .about-section,
  .clients-section,
  .our-brands{
    padding-block: 56px;
  }
}
