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


/* ─── HERO WRAPPER ─── */
.kb-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #080808;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* .kb-hero::before removed for color uniformity */

/* grain removed */
  20% { transform: translate(-3%,-2%); }
  40% { transform: translate(2%, 3%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(3%,-1%); }
}

/* scan removed */

/* ─── LEFT: TEXT CONTENT ─── */
.kb-content {
  position: relative;
  z-index: 2;
  width: 52%;
  padding: 0 2% 0 6%;
  flex-shrink: 0;
}

.kb-title {
  font-size: clamp(36px, 4.6vw, 74px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.kb-title .ghost {
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
  text-shadow: 0 0 18px rgba(255,255,255,0.12);
}
/* Scramble chars look robotic by default */
.kb-title [data-scramble] {
  display: block;
  min-height: 1.05em;
  font-variant-numeric: tabular-nums;
}

.kb-sub {
  font-size: clamp(13px, 1.3vw, 15px);
  color: #606060;
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 36px;
  opacity: 0;
  animation: kb-up 0.7s 0.9s ease forwards;
}

.kb-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: kb-up 0.7s 1.1s ease forwards;
}

.kb-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  background: transparent;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.kb-btn-pill:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.08);
}
.kb-btn-pill .kb-arrow {
  display: inline-flex;
  transition: transform 0.25s;
}
.kb-btn-pill:hover .kb-arrow {
  transform: translateX(4px);
}

/* ─── RIGHT: 3D K LOGO ─── */
.kb-logo-wrap {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 58%;
  z-index: 1;
  opacity: 1;
}

.kb-logo-inner {
  animation: kb-levitate 10s 2.5s ease-in-out infinite;
}
@keyframes kb-levitate {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* ─── ROBOT ASSEMBLY (entry only, sau đó đứng yên) ─── */
.kb-piece-main {
  transform-box: fill-box;
  transform-origin: center;
  animation: kb-asm-main 1.05s cubic-bezier(.23,1,.32,1) 0.35s both;
}
.kb-piece-top {
  transform-box: fill-box;
  transform-origin: center;
  animation: kb-asm-top 0.85s cubic-bezier(.23,1,.32,1) 1.05s both;
}
@keyframes kb-asm-main {
  0%   { opacity: 0; transform: translateX(-65px) translateY(28px) rotate(-11deg); }
  50%  { opacity: 1; transform: translateX(5px) translateY(-4px) rotate(2deg); }
  82%  { transform: translateX(2px) translateY(-1px) rotate(0.4deg); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotate(0); }
}
@keyframes kb-asm-top {
  0%   { opacity: 0; transform: translateX(55px) translateY(-65px) rotate(30deg); }
  45%  { opacity: 1; transform: translateX(-5px) translateY(5px) rotate(-4.5deg); }
  80%  { transform: translateX(-1.5px) translateY(1px) rotate(-0.8deg); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotate(0); }
}

/* ─── GLEAM SWEEP — lvịng sáng nhỏ, chậm, tinh tế ─── */
.kb-gleam {
  animation: kb-gleam 16s 3s ease-in-out infinite;
}
@keyframes kb-gleam {
  0%,100% { transform: translateX(-300px); opacity: 0; }
  3%      { opacity: 1; }
  38%     { transform: translateX(1100px); opacity: 0.16; }
  43%     { transform: translateX(1100px); opacity: 0; }
}

/* ─── GLINT STAR — nhỏ, xuất hiện thoáng qua ─── */
.kb-glint {
  transform-origin: 660px 118px;
  animation: kb-glint 16s 3.8s ease-in-out infinite;
}
@keyframes kb-glint {
  0%,100% { opacity: 0; transform: scale(0); }
  25%     { opacity: 0; transform: scale(0); }
  28%     { opacity: 0.45; transform: scale(1); }
  34%     { opacity: 0; transform: scale(0.2); }
}


.kb-logo-svg {
  width: 100%;
  display: block;
  /* filter removed — iOS Safari black square fix */
) drop-shadow(0 0 60px rgba(0,0,0,0.7));
}

/* ─── BOTTOM STRIP ─── */





/* ─── TITLE REVEAL (blur-fade per line) ─── */
.kb-title .line {
  display: block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  animation: kb-reveal 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.kb-title .line:nth-child(1) { animation-delay: 0.25s; }
.kb-title .line:nth-child(2) { animation-delay: 0.45s; }
.kb-title .line:nth-child(3) { animation-delay: 0.65s; }
.kb-title .line:nth-child(4) { animation-delay: 0.82s; }
@keyframes kb-reveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ─── KEYFRAMES ─── */
@keyframes kb-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes kb-logo-in {
  from { opacity: 0; transform: translateY(calc(-50% + 50px)) scale(0.96); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes kb-float {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-18px) rotate(-0.5deg); }
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  /* ── Mobile: compact, no wasted space ── */
  .kb-hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;      /* was 100px — bỏ khoảng trắng thừa đầu trang */
    min-height: auto;        /* was 100dvh — không kéo giãn section */
    padding-bottom: 0;
  }
  .kb-content {
    width: 100%;
    padding: 16px 6% 0;     /* was 40px — tighter */
  }
  .kb-title {
    font-size: clamp(30px, 7.5vw, 46px);
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .kb-sub {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .kb-cta-row { margin-bottom: 0; }
  .kb-logo-wrap {
    position: relative; right: auto; top: auto;
    transform: none;
    width: 82%;              /* không full width — thoáng hơn */
    margin: 12px auto 0;     /* canh giữa */
    animation: none; opacity: 1;
    display: block;
  }
  .kb-logo-inner { animation: kb-levitate 10s 2.5s ease-in-out infinite; }
}

/* .kb-spot removed */





/* ── GLOBAL MOBILE: ĐỘI NGŨ & THƯ VIỆN VIDEO ── */


/* ── TABLET/IPAD (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .kb-hero {
    min-height: auto !important;
    padding-top: 140px !important;
    padding-bottom: 120px !important;
    align-items: center;
  }
  .kb-content {
    width: 55%;
    padding: 0 2% 0 5%;
  }
  .kb-logo-wrap {
    position: absolute !important;
    width: 46%;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
  }
  .kb-headline { font-size: 2.8rem; }
  .kb-sub { font-size: 0.85rem; }
  .kb-cta { padding: 14px 32px; font-size: 0.85rem; }
}

/* ── MOBILE FIX v6 ── */
@media (max-width: 767px) {

  /* VIDEO: 2 cột */
  [data-id="3da59fa"] .elementor-container {
    flex-wrap: wrap !important; gap: 8px !important;
  }
  [data-id="3da59fa"] .elementor-col-50,
  [data-id="3da59fa"] .elementor-inner-column {
    width: calc(50% - 4px) !important; max-width: calc(50% - 4px) !important;
    flex: 0 0 calc(50% - 4px) !important;
  }

  /* ĐỘI NGŨ — outer section: bỏ padding */
  [data-id="4ad32c92"] > .elementor-container,
  [data-id="1a63773"] > .elementor-container {
    padding-left: 0 !important; padding-right: 0 !important;
  }

  /* TẤT CẢ inner sections bên trong 2 section Đội Ngũ */
  [data-id="4ad32c92"] .elementor-inner-section,
  [data-id="1a63773"] .elementor-inner-section {
    padding-left: 0 !important; padding-right: 0 !important;
    margin-top: 0 !important; margin-bottom: 0 !important;
  }

  /* Container của inner section: 3-col wrap */
  [data-id="4ad32c92"] .elementor-inner-section > .elementor-container,
  [data-id="1a63773"] .elementor-inner-section > .elementor-container {
    flex-wrap: wrap !important; gap: 6px !important;
    align-items: flex-start !important;
    padding-left: 4px !important; padding-right: 4px !important;
  }

  /* Columns: đúng 33.33% */
  [data-id="4ad32c92"] .elementor-inner-section .elementor-inner-column,
  [data-id="1a63773"] .elementor-inner-section .elementor-inner-column {
    width: calc(33.33% - 4px) !important; max-width: calc(33.33% - 4px) !important;
    flex: 0 0 calc(33.33% - 4px) !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
  }

  /* Widget wrap trong column: padding + force vertical stack + top-align */
  [data-id="4ad32c92"] .elementor-inner-section .elementor-inner-column > .elementor-widget-wrap,
  [data-id="1a63773"] .elementor-inner-section .elementor-inner-column > .elementor-widget-wrap {
    padding: 6px 2px !important;
    align-items: center !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    align-self: flex-start !important;
    margin-top: 0 !important;
  }

  /* Ảnh: 60px tròn, căn giữa */
  [data-id="4ad32c92"] .elementor-widget-image img,
  [data-id="1a63773"] .elementor-widget-image img {
    width: 60px !important; height: 60px !important; max-width: 60px !important;
    border-radius: 50% !important; margin: 0 auto !important;
    display: block !important; object-fit: cover !important;
  }
  /* Force wrapper không kéo giãn ảnh */
  [data-id="4ad32c92"] .elementor-widget-image .elementor-widget-container,
  [data-id="1a63773"] .elementor-widget-image .elementor-widget-container {
    width: 60px !important; margin: 0 auto !important;
  }

  /* Stars nhỏ, căn giữa */
  [data-id="4ad32c92"] .elementor-star-rating,
  [data-id="1a63773"] .elementor-star-rating {
    font-size: 9px !important; display: flex !important; justify-content: center !important;
    margin: 2px 0 !important;
  }

  /* Ẩn châm ngôn mặc định */
  [data-id="4ad32c92"] .elementor-testimonial-content,
  [data-id="1a63773"] .elementor-testimonial-content {
    max-height: 0 !important; overflow: hidden !important; opacity: 0 !important;
    margin: 0 !important; padding: 0 !important;
    transition: max-height 0.4s ease, opacity 0.3s ease !important;
  }

  /* Hiện châm ngôn khi tap/hover */
  [data-id="4ad32c92"] .elementor-inner-section .elementor-inner-column:hover .elementor-testimonial-content,
  [data-id="1a63773"] .elementor-inner-section .elementor-inner-column:hover .elementor-testimonial-content {
    max-height: 150px !important; opacity: 1 !important;
  }

  /* Tên: nhỏ, căn giữa */
  [data-id="4ad32c92"] .elementor-testimonial-name,
  [data-id="1a63773"] .elementor-testimonial-name {
    font-size: 10px !important; text-align: center !important;
    line-height: 1.2 !important; display: block !important; margin-top: 2px !important;
  }

  /* Căn giữa tất cả widget */
  [data-id="4ad32c92"] .elementor-widget-image,
  [data-id="4ad32c92"] .elementor-widget-star-rating,
  [data-id="4ad32c92"] .elementor-widget-testimonial,
  [data-id="4ad32c92"] .elementor-testimonial-wrapper,
  [data-id="1a63773"] .elementor-widget-image,
  [data-id="1a63773"] .elementor-widget-star-rating,
  [data-id="1a63773"] .elementor-widget-testimonial,
  [data-id="1a63773"] .elementor-testimonial-wrapper {
    text-align: center !important; width: 100% !important; max-width: 100% !important;
  }

  /* Thư viện ảnh spacing */
  [data-id="3e36318d"], [data-id="73f3ba5"] { margin-top: 12px !important; }

  /* Xóa gap lớn giữa 2 section Đội Ngũ */
  [data-id="1a63773"] { margin-top: 16px !important; }
}

  /* ── TABLET FIX (iPad 768-1024px) ── */
  @media (min-width: 768px) and (max-width: 1024px) {
    /* Thư viện ảnh: giữ 3 cột trên tablet */
    [data-id="3e36318d"] .elementor-inner-column,
    [data-id="73f3ba5"] .elementor-inner-column {
      width: 33.333% !important;
      max-width: 33.333% !important;
      flex: 0 0 33.333% !important;
    }
  }


  /* ── THƯ VIỆN ẢNH: equal card heights ── */
  [data-id="30b5b0f"] .elementor-widget-image-box { min-height: 220px; }
  @media (min-width: 768px) and (max-width: 1024px) {
    [data-id="30b5b0f"] .elementor-widget-image-box { min-height: 186px; }
  }
  @media (max-width: 767px) {
    [data-id="30b5b0f"] .elementor-widget-image-box { min-height: 0; }
  }

/* ── THƯ VIỆN ẢNH: fixed image heights ── */
[data-id="30b5b0f"] .elementor-widget-image img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover !important;
  object-position: center center !important;
}
@media (min-width: 768px) and (max-width: 1024px) {
  [data-id="30b5b0f"] .elementor-widget-image img {
    height: 280px !important;
  }
}
@media (max-width: 767px) {
  [data-id="30b5b0f"] .elementor-widget-image img {
    height: 160px !important;
  }
}

/* ── THƯ VIỆN ẢNH: align widget-wrap to top ── */
[data-id="3e36318d"] .elementor-inner-column .elementor-widget-wrap,
[data-id="73f3ba5"] .elementor-inner-column .elementor-widget-wrap {
  margin-top: 0 !important;
  align-content: flex-start !important;
}

/* ── THƯ VIỆN ẢNH: image bottom gradient separator ── */
[data-id="30b5b0f"] .elementor-widget-image {
  position: relative !important;
}
[data-id="30b5b0f"] .elementor-widget-image::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 90px !important;
  background: linear-gradient(to bottom, transparent 0%, #0d0d0d 80%) !important;
  pointer-events: none !important;
}
/* object-position center for all ─ shows subject at center */
[data-id="30b5b0f"] .elementor-widget-image img {
  object-position: center center !important;
}

/* ── Concept Trắng Đen: show person at top ── */
[data-id="20f4b86c"] .elementor-widget-image img {
  object-position: center top !important;
}

/* ── Concept Trắng Đen: stronger bottom gradient ── */
[data-id="20f4b86c"] .elementor-widget-image::after {
  height: 130px !important;
  background: linear-gradient(to bottom, transparent 0%, #0a0a0a 60%, #0a0a0a 100%) !important;
}
