/* =====================================================================
   home.css — หน้าหลัก: layout 2 คอลัมน์ (ซ้าย col-md-5 / ขวา col-md-7)
   คอลัมน์ซ้าย = รูปผู้ชายสูงเกือบเต็ม + ไอคอนเกาะชิดตัวลอยแบบลูกโป่ง
   คอลัมน์ขวา  = เว้นว่างไว้ก่อน
   Responsive ครบทุกอุปกรณ์
   ===================================================================== */

/* หน้าหลักซ่อนอยู่ก่อน แล้วค่อยจางเข้ามาหลัง intro จบ */
.home {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
  color: #fff;
  font-family: 'Sarabun', system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.intro-done .home { opacity: 1; transform: translateY(0); }

.home__container { min-height: 100vh; padding: 0; overflow-x: hidden; }
.home__row       { min-height: 100vh; }

/* ---------- คอลัมน์ซ้าย ---------- */
.home__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2vh 1rem;
}

/* เวทีของรูป+ไอคอน : เป็นกรอบอ้างอิงตำแหน่ง (x,y ของไอคอนคิดเป็น % ของกล่องนี้) */
.hero__stage {
  position: relative;
  width: min(96%, 560px);
  /* สูงเป็นสัดส่วนคงที่ ทำให้ตำแหน่งไอคอนแบบ % นิ่งทุกจอ */
  height: min(84vh, 780px);
  margin: 0 auto;
}

/* ---------- รูปผู้ชาย: สูงเกือบเต็มเวที ยืนกลาง-ล่าง ---------- */
.hero__photo-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;              /* ตัวคนอยู่หน้าไอคอนที่เผลอมาทับ */
}

.hero__photo {
  height: 100%;            /* เต็มความสูงของเวที = ตัวสูงจริง */
  width: auto;
  max-width: none;         /* ไม่ให้ความกว้างมาบีบความสูงลง (สาเหตุที่รูปเคยเล็ก) */
  object-fit: contain;
  /* ปลายขาที่โดนตัด: ไล่ให้ส่วนล่างของรูปจางเป็นโปร่งใส จะได้ไม่เห็นขอบตัด
     โปร่งเต็มที่ที่ก้นรูป -> ทึบเต็มที่ที่ ~26% จากล่างขึ้นบน */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.35) 12%, #000 26%);
          mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.35) 12%, #000 26%);
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- คำบรรยายใต้รูป ---------- */
.hero__caption { text-align: center; margin-top: 1.1rem; }
.hero__name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 24px rgba(124, 76, 255, 0.7);
}
.hero__tagline { color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

/* ---------- ไอคอนลอยแบบลูกโป่ง ----------
   ตำแหน่ง/ขนาด/จังหวะ กำหนดเป็น inline style จาก Vue (data/icons.php)
   ไฟล์นี้คุมแค่หน้าตาและท่าลอย. z-index ต่ำกว่าตัวคน ให้ดูเป็นชั้นหลัง-ข้าง */
.float-icon {
  position: absolute;
  transform: translate(-50%, -50%);   /* ให้ x,y เป็นจุดกึ่งกลางเม็ด */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 10px 26px rgba(15, 15, 60, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.06);
  z-index: 1;
  transition: box-shadow 0.3s ease;
}
.float-icon:hover {
  box-shadow:
    0 14px 34px rgba(15, 15, 60, 0.55),
    0 0 0 8px rgba(255, 255, 255, 0.12);
}
.float-icon img {
  width: 56%; height: 56%;
  user-select: none; -webkit-user-drag: none;
}

/* ห่อ animation ลอยไว้ที่ชั้นใน เพื่อไม่ชนกับ translate(-50%,-50%) ของ .float-icon */
.float-icon::after { content: none; }
.float-icon {
  animation: balloon-float var(--float-duration, 8s) ease-in-out var(--float-delay, 0s) infinite;
  will-change: transform;
}
@keyframes balloon-float {
  0%   { transform: translate(-50%, -50%)            rotate(0deg); }
  25%  { transform: translate(-50%, calc(-50% - 14px)) rotate(2deg); }
  50%  { transform: translate(-50%, calc(-50% - 22px)) rotate(0deg); }
  75%  { transform: translate(-50%, calc(-50% - 12px)) rotate(-2deg); }
  100% { transform: translate(-50%, -50%)            rotate(0deg); }
}

/* ---------- เม็ดแสงโคจรรอบตัว (สไตล์เดียวกับ intro) ----------
   ศูนย์โคจรอยู่แถวลำตัวส่วนบน วนเป็นวงกลม 2 เม็ด รัศมีต่างกันเล็กน้อย
   ชมพูวิ่งทวนเข็ม / ม่วงวิ่งตามเข็ม — ลอยอยู่รอบคน+ไอคอน */
.hero__orbits {
  position: absolute;
  left: 50%;
  top: 42%;                 /* จุดหมุน ~ อก/ลำตัวส่วนบน */
  width: 0; height: 0;
  z-index: 3;               /* ลอยอยู่หน้าสุด เหมือนอนุภาคแสง */
  pointer-events: none;
}

.orbit {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  will-change: transform;
}
.orbit--pink   { animation: orbit-ccw 9s  linear infinite; --r: 30vh; }
.orbit--purple { animation: orbit-cw  12s linear infinite; --r: 35vh; }

/* เม็ดแสง: วางไว้เหนือศูนย์เป็นระยะ --r แล้วให้ .orbit หมุนพาไปรอบวง */
.orbit__dot {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--r));
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
}
.orbit--pink .orbit__dot {
  background: #f87171;
  box-shadow:
    0 0 10px 3px rgba(248, 113, 113, 0.9),
    0 0 34px 12px rgba(239, 68, 68, 0.5);
}
.orbit--purple .orbit__dot {
  background: #a78bfa;
  box-shadow:
    0 0 10px 3px rgba(167, 139, 250, 0.9),
    0 0 34px 12px rgba(124, 76, 255, 0.5);
}

@keyframes orbit-cw  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes orbit-ccw { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }


/* =====================================================================
   NAVBAR — เต็มความกว้าง, sticky, โปร่งด้านบน -> พื้นดำเมื่อเลื่อน
   ===================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: #000000;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.navbar__inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;      /* กลุ่มเมนู+โลโก้อยู่กึ่งกลาง */
  padding: 0.55rem clamp(1.1rem, 3vw, 2.4rem);
}
.navbar__logo {
  flex: none;
  font-family: 'Kanit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.logo-9art { color: #ffffff; }
.logo-dev  { color: #ff5b5b; }

/* โลโก้แบบ 3 บรรทัด: 9ART / เส้น / DevTeam (สีขาวทั้งหมด)
   หมายเหตุ: display ของแต่ละตัวคุมแยก เพื่อไม่ให้โลโก้ซ้อนกัน */
.navbar__logo {
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.navbar__logo--bar    { display: none; }                              /* เดสก์ท็อป: ซ่อน */
.navbar__logo--center { display: inline-flex; margin: 0 clamp(1rem, 2.2vw, 2.2rem); }  /* เดสก์ท็อป: โชว์อันเดียว */
.logo-top {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.16em;
  /* ชดเชย letter-spacing ตัวขวาสุด ให้ block กว้างเท่าตัวอักษรพอดี */
  padding-left: 0.16em;
  color: #ffffff;
}
.logo-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 2px;
}
.logo-sub {
  font-family: 'Sarabun', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: #ffffff;
}

/* กล่องกลาง: เมนูซ้าย + โลโก้ + เมนูขวา จัดกึ่งกลางบาร์ */
.navbar__collapse {
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Sarabun', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.mi {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.navbar__menu a .mi { opacity: 0.85; }
/* hover: ไม่เปลี่ยนสีตัวอักษร ไม่มีขีดเส้นใต้ (คงสีเดิมไว้ตลอด) */
.navbar__menu a,
.navbar__menu a:hover,
.navbar__menu a:focus,
.navbar__menu a:active {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.navbar__menu a:hover { background: rgba(255, 255, 255, 0.1); }

/* โซเชียล — ปักขวาสุดของบาร์ (ไม่ดันกลุ่มกลางให้เยื้อง) */
.navbar__socials {
  position: absolute;
  right: clamp(1.1rem, 3vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.soc svg { width: 16px; height: 16px; }
.soc:hover { color: #fff; background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.navbar__burger span { display: block; height: 2.5px; border-radius: 3px; background: #fff; transition: transform 0.3s ease, opacity 0.2s ease; }
.navbar__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ปุ่มทั่วไป (ใช้ในหลายที่) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn .mi { width: 16px; height: 16px; }
.btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-solid { color: #16182c; background: #fff; border-color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28); color: #16182c; }

/* =====================================================================
   BANNER เต็มจอ (hero) — สไลด์ภาพ 1000px + หัวเรื่องกลาง
   ===================================================================== */
.banner {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: #0f1240;
}
.banner__track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.6, 0.01, 0.2, 1);
}
.banner__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
/* ม่านคุมโทน ให้ตัวหนังสือขาวอ่านออกบนทุกภาพ */
.banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 40, 0.55) 0%, rgba(10, 10, 40, 0.15) 40%, rgba(10, 10, 40, 0.45) 100%);
  pointer-events: none;
}
/* กล่องเนื้อหากลางแบนเนอร์: หัวเรื่อง + ข้อความรอง + ปุ่ม (ซ้อนแนวตั้ง) */
.banner__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0 1rem;
  text-align: center;
  pointer-events: none;   /* ให้คลิกทะลุไปสไลด์ได้ ยกเว้นปุ่มด้านล่าง */
}
.banner__title {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
/* ข้อความรองสีขาวใต้หัวเรื่อง */
.banner__subtitle {
  margin: 0;
  max-width: 40ch;
  font-family: 'Sarabun', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
/* แถวปุ่ม 3 ปุ่ม (คละสี) */
.banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
  pointer-events: auto;   /* เปิดให้คลิกได้เฉพาะแถวปุ่ม */
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 26px rgba(8, 8, 40, 0.4);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.hero-btn .mi { width: 19px; height: 19px; opacity: 0.95; }
.hero-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(8, 8, 40, 0.5);
}
/* คละสี 3 ปุ่ม */
.hero-btn--signin { background: linear-gradient(135deg, #6d3fd6, #8b5cf6); }
.hero-btn--team   { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.hero-btn--folio  { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.banner__arrow svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.banner__arrow:hover { background: rgba(255, 255, 255, 0.28); }
.banner__arrow--prev { left: 26px; }
.banner__arrow--next { right: 26px; }
.banner__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.banner__arrow--next:hover { transform: translateY(-50%) translateX(2px); }
.banner__dots {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}

/* =====================================================================
   HERO — ขวา: คำโปรย + สไลด์
   ===================================================================== */
.home { padding-top: 0; }
.home__container { min-height: calc(100vh - 66px); padding: 0; overflow-x: hidden; }
.home__row       { min-height: calc(100vh - 66px); }

.home__container .home__right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.4rem;
  padding: 2.5vh clamp(1.5rem, 2.4vw, 3rem);
}

.hero__copy { color: #fff; }
.hero__eyebrow {
  display: inline-block;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em;
  color: #c9bcff;
  margin-bottom: 0.6rem;
}
.hero__headline {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.hero__lead {
  font-family: 'Sarabun', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0;
}

/* =====================================================================
   สไลด์โชว์ (สูงครึ่งเดียว — คุมด้วย vh ให้พอดี 1 หน้าจอ ไม่มี scroll)
   ===================================================================== */
.slider {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 26px 60px rgba(8, 8, 30, 0.42),
    0 2px 8px rgba(8, 8, 30, 0.2);
  background: #0f1240;
}
.slider__track {
  display: flex;
  transition: transform 0.75s cubic-bezier(0.6, 0.01, 0.2, 1);
}
.slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(180px, 30vh, 300px);   /* ~ครึ่งเดียวของเดิม เหลือที่ให้รายการข้างล่าง */
}
.slide__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.slide__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 70, 0.92) 0%, rgba(20, 18, 70, 0.55) 42%, rgba(20, 18, 70, 0.05) 78%),
    linear-gradient(0deg,  rgba(15, 15, 60, 0.75) 0%, rgba(15, 15, 60, 0) 55%);
}
.slide__content {
  position: absolute;
  left: 0; bottom: 0;
  max-width: 80%;
  padding: clamp(1rem, 2.4vw, 2rem);
  color: #fff;
}
.slide__tag {
  display: inline-block;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7c9ff;
  background: rgba(124, 76, 255, 0.28);
  border: 1px solid rgba(167, 139, 250, 0.5);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}
.slide__title {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.slide__desc {
  font-family: 'Sarabun', sans-serif;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.9rem;
}
.slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sarabun', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1440;
  text-decoration: none;
  background: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.slide__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  color: #1a1440;
}
.slide__cta-ic {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.slide__cta:hover .slide__cta-ic { transform: translateX(3px); }

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider__arrow svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.slider__arrow:hover { background: rgba(255, 255, 255, 0.3); }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.slider__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.slider__arrow--next:hover { transform: translateY(-50%) translateX(2px); }

.slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px;
}
.dot {
  width: 9px; height: 9px;
  padding: 0; border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.dot.is-active { width: 26px; background: #fff; }


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

/* เมนู navbar -> hamburger เมื่อจอแคบกว่า lg */
@media (max-width: 991.98px) {
  .navbar__inner { justify-content: space-between; flex-wrap: wrap; min-height: 56px; }
  .navbar__logo--bar { display: inline-flex; }     /* โลโก้ในบาร์ (ซ้าย) */
  .navbar__logo--center { display: none; }           /* ซ่อนโลโก้กลาง */
  .navbar__burger { display: flex; }

  .navbar__collapse {
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
  }
  .navbar__collapse.is-open { max-height: 560px; opacity: 1; margin-top: 0.6rem; }

  .navbar__menu { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .navbar__menu li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .navbar__menu--right li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .navbar__menu a { padding: 0.7rem 0.5rem; font-size: 1.02rem; }

  /* โซเชียลกลับมาอยู่ในดรอปดาวน์ (ไม่ปักขวาแล้ว) */
  .navbar__socials {
    position: static;
    transform: none;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.7rem;
    margin-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .soc { width: 38px; height: 38px; }
  .soc svg { width: 18px; height: 18px; }

  /* จอแคบ navbar ต้องมีพื้นเสมอ (เพราะเมนูเปิดคลุมทับ hero) */
  .navbar { background: rgba(0, 0, 0, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}

/* md ลงมา: hero สองคอลัมน์ซ้อนแนวตั้ง */
@media (max-width: 767.98px) {
  .banner { height: 70vh; min-height: 460px; }
  .banner__title { font-size: 2.4rem; }
  .banner__content { gap: 1rem; }
  .banner__actions { flex-direction: column; width: min(320px, 86%); }
  .hero-btn { justify-content: center; width: 100%; }
  .banner__arrow { width: 42px; height: 42px; }
  .banner__arrow svg { width: 20px; height: 20px; }
  .home__row, .home__container { min-height: auto; }
  .home__left { min-height: 78vh; }
  .hero__stage { height: min(66vh, 560px); width: min(90%, 420px); }
  .home__container .home__right { padding: 2.4rem 1.3rem 3rem; }
}

/* มือถือจอเล็ก */
@media (max-width: 480px) {
  .hero__stage { height: 58vh; width: min(92%, 340px); }
  .float-icon  { zoom: 0.8; }
  .orbit--pink   { --r: 22vh; }
  .orbit--purple { --r: 26vh; }
  .slide { height: clamp(170px, 30vh, 280px); }
  .slide__content { max-width: 94%; }
  .slider__arrow { width: 38px; height: 38px; }
}

/* เคารพการตั้งค่า "ลดการเคลื่อนไหว" */
@media (prefers-reduced-motion: reduce) {
  .float-icon    { animation: none; transform: translate(-50%, -50%); }
  .orbit         { animation: none; }
  .slider__track { transition: none; }
  .navbar        { transition: none; }
  .home { transition: none; opacity: 1; transform: none; }
}
