/* ============================================================
   LIVAS — Homepage
   Section order (per Excel "Fix Trang chủ"):
   Hero → About → Capability (5-item scroll) → Products →
   Partners → Product News → Company News → CTA Banner →
   Press → Footer
   ============================================================ */

/* ============================================================
   HEADER (sticky, ALWAYS visible — pinned per brief)
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background 0.4s var(--ease),
              border-color 0.4s var(--ease),
              color 0.4s var(--ease),
              transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Ẩn header khi cuộn xuống, hiện lại khi cuộn lên */
.header.is-hidden-bar { transform: translateY(-100%); }
.header--on-light { color: var(--c-ink); }
.header--on-dark { color: #fff; }
.header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--c-line);
  color: var(--c-ink);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}
.header__logo .one {
  color: var(--c-red);
  font-weight: 900;
}
.header__logo .reg {
  font-size: 0.4em;
  margin-left: 4px;
  opacity: 0.55;
  vertical-align: 0.85em;        /* sits like a superscript */
  font-weight: 400;
  display: inline-block;
}
/* Image logo — swaps white ↔ dark depending on header background state */
.header__logo-img { height: 40px; width: auto; display: block; }
.header__logo-img--light { display: none; }
/* white logo only while header is over a dark hero AND not yet scrolled (stuck = white bg) */
.header--on-dark:not(.is-stuck) .header__logo-img--light { display: block; }
.header--on-dark:not(.is-stuck) .header__logo-img--dark  { display: none; }

.header__nav { display: none; }
@media (min-width: 1100px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}

/* ---- Nav item base (used by both single + dropdown variants) ---- */
.nav-item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-item--single,
.nav-item__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.nav-item__label[role="button"] { cursor: default; }   /* parent không click → default cursor */
.nav-item__label--link { cursor: pointer; }            /* Sản phẩm parent có link */

/* Underline animation on single links + clickable labels */
.nav-item--single::after,
.nav-item__label--link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.nav-item--single:hover::after,
.nav-item__label--link:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* Chevron icon for dropdown parents */
.nav-item__chev {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  transition: transform 0.3s var(--ease);
}
.nav-item--has-dropdown:hover .nav-item__chev {
  transform: rotate(180deg);
}

/* ---- Dropdown panel ---- */
.nav-item__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  box-shadow: 0 16px 40px -12px rgba(10, 10, 10, 0.16);
  z-index: 50;
  /* invisible bridge above dropdown so cursor crossing the gap doesn't close it */
}
.nav-item__dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.nav-item--has-dropdown:hover .nav-item__dropdown,
.nav-item--has-dropdown.is-open .nav-item__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s;
}
.nav-item__dropdown a,
.nav-item__dropdown .nav-sub__label {
  display: block;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--c-ink);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-item__dropdown a:hover {
  background: var(--c-bg-soft);
  color: var(--c-red);
}

/* ---- Nested submenu (Acrylic No Line → 2 children) — flyout to the right ---- */
.nav-sub { position: relative; }
.nav-item__dropdown .nav-sub__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-sub__chev {
  width: 12px; height: 12px;
  flex: none;
  opacity: 0.55;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-sub:hover > .nav-sub__label,
.nav-sub.is-open > .nav-sub__label {
  background: var(--c-bg-soft);
  color: var(--c-red);
}
.nav-sub:hover > .nav-sub__label .nav-sub__chev,
.nav-sub.is-open > .nav-sub__label .nav-sub__chev {
  transform: translateX(3px);
  opacity: 0.9;
}
.nav-sub__panel {
  position: absolute;
  top: -9px;                 /* align panel top with parent dropdown border */
  left: calc(100% + 8px);
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  box-shadow: 0 16px 40px -12px rgba(10, 10, 10, 0.16);
  z-index: 60;
}
/* invisible bridge so the cursor can cross the gap without closing the flyout */
.nav-sub__panel::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -10px;
  width: 10px;
}
.nav-sub:hover > .nav-sub__panel,
.nav-sub.is-open > .nav-sub__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s;
}

.header__right { display: flex; align-items: center; gap: 16px; }
.header__hotline {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (min-width: 900px) { .header__hotline { display: inline-flex; } }
.header__hotline svg { width: 14px; height: 14px; color: var(--c-red); }

/* Language toggle — pill-shape iOS-style switch with sliding knob */
.lang-switch {
  position: relative;
  width: 72px;
  height: 32px;
  border-radius: 999px;
  background: #111111;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 200ms ease;
}
.lang-switch:hover { background: #1F1F1F; }

.lang-switch__hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.lang-switch__hint--left  { left: 12px; }
.lang-switch__hint--right { right: 12px; }

.lang-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #111111;
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* VI state (default): knob LEFT, shows "VI"; right hint "EN" visible */
.lang-switch[data-lang="vi"] .lang-switch__knob       { transform: translateX(0); }
.lang-switch[data-lang="vi"] .lang-switch__hint--left  { opacity: 0; }
.lang-switch[data-lang="vi"] .lang-switch__hint--right { opacity: 1; }

/* EN state: knob RIGHT, shows "EN"; left hint "VI" visible */
.lang-switch[data-lang="en"] .lang-switch__knob       { transform: translateX(40px); }
.lang-switch[data-lang="en"] .lang-switch__hint--left  { opacity: 1; }
.lang-switch[data-lang="en"] .lang-switch__hint--right { opacity: 0; }

.header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
}
.header__burger span {
  width: 22px; height: 1.5px;
  background: currentColor;
}
@media (min-width: 1100px) { .header__burger { display: none; } }


/* ============================================================
   SECTION 1 — HERO (fullscreen cinematic)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0A0A0A;
  color: #fff;
  /* Fullpage snap point — chỉ hero snap */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* Screenshot helper: pass ?cap=1 in URL → fix hero at 720px so a tall
   single-shot screenshot can capture the full page without 100vh ballooning */
body.cap .hero { height: 720px; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}
.hero__slide.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s var(--ease), visibility 0s linear 0s;
}
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.80) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.40) 0%, transparent 60%);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.15);    /* base scale for parallax breathing room */
  z-index: 0;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(96px, 12vh, 160px);
  padding-top: calc(var(--header-h) + 40px);
}
.hero__eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.hero__eyebrow::before {
  content: '';
  width: 48px; height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
.hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);     /* 72px cap */
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 36px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  color: #fff;
}
/* Hero entrance — cinematic fade up on active slide */
.hero__slide .hero__title,
.hero__slide .hero__actions {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero__slide.is-on .hero__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.hero__slide.is-on .hero__actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}
.hero__title .it {
  font-style: normal;
  font-weight: 900;
  color: var(--c-red);
  letter-spacing: -0.025em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero bottom strip */
.hero__strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px var(--gutter);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__dots { display: flex; align-items: center; gap: 8px; }
.hero__dot {
  width: 36px; height: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.4s var(--ease);
}
.hero__dot.is-on { background: #fff; }
.hero__scroll {
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
@media (min-width: 700px) { .hero__scroll { display: inline-flex; } }
.hero__scroll-line {
  width: 1px; height: 42px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 60%;
  background: #fff;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -60%; }
  100% { top: 120%; }
}


/* ============================================================
   SECTION 2 — ABOUT  (Pinned 4-stage scroll narrative)
   ============================================================ */
.about-v2 {
  background: var(--c-bg-soft);
  padding: 0 0 clamp(80px, 9vw, 140px) 0;   /* tăng bottom padding để stats không sát đáy */
}

/* Section number eyebrow (kept for capability section etc.) */
.sec-num {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: clamp(24px, 3vw, 40px);
  font-weight: 500;
}

/* ---- PINNED SCROLL SCOPE ----
   scope rút còn 3 nhịp: 1) bản đồ VN  2) "10 năm hoạt động"  3) 2 dòng chữ → thoát.
   the inner .about-v2__pin (100vh sticky) stays fixed in view. */
.about-v2__scope {
  position: relative;
  height: 300vh;       /* 3 nhịp: map → 10 năm → 2 dòng chữ */
}
.about-v2__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- VIETNAM MAP — fullscreen height; aspect-ratio matches image so pins align ---- */
.about-v2__map,
.about-v2__pins {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 66%;                         /* ~2/3 chiều cao viewport */
  aspect-ratio: 949 / 1452;            /* = ảnh map VN → background contain phủ kín mép */
  transform: translate(-50%, -50%);
}
.about-v2__map {
  background-image: url('../images/vietnam-map.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;                       /* visible by default — no half-state */
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
/* Faded out only at stage 0 (before user enters section) */
.about-v2__scope[data-stage="0"] .about-v2__map {
  opacity: 0;
}

/* ---- PIN MARKERS — % toạ độ tính theo ảnh map VN (cùng khung với map) ---- */
.about-v2__pins {
  z-index: 1;
  pointer-events: none;
}
.pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow:
    0 0 0 4px rgba(218, 33, 40, 0.15),
    0 6px 14px rgba(218, 33, 40, 0.4);
  opacity: 0;
  transform: translateY(-18px) scale(0);
  transition: opacity 0.55s var(--ease), transform 0.55s cubic-bezier(0.34, 1.36, 0.64, 1);
}
.pin::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--c-red);
  opacity: 0;
  animation: pinPulse 2s var(--ease) infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}
.about-v2__scope[data-stage="1"] .pin {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.about-v2__scope[data-stage="1"] .pin:nth-child(1) { transition-delay: 0.05s; }
.about-v2__scope[data-stage="1"] .pin:nth-child(2) { transition-delay: 0.18s; }
.about-v2__scope[data-stage="1"] .pin:nth-child(3) { transition-delay: 0.30s; }
.about-v2__scope[data-stage="1"] .pin:nth-child(4) { transition-delay: 0.42s; }
.about-v2__scope[data-stage="1"] .pin:nth-child(5) { transition-delay: 0.54s; }
.about-v2__scope[data-stage="1"] .pin:nth-child(6) { transition-delay: 0.66s; }
.about-v2__scope[data-stage="1"] .pin:nth-child(7) { transition-delay: 0.78s; }
.about-v2__scope[data-stage="1"] .pin:nth-child(8) { transition-delay: 0.90s; }
/* Stage 2+: pins fade out (animation stops since opacity 0) */
.about-v2__scope[data-stage="2"] .pin,
.about-v2__scope[data-stage="3"] .pin {
  opacity: 0;
  transform: translateY(0) scale(0.6);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

/* ---- CENTER narrative — slides SWAP in the same spot across scroll (stage 2→4) ---- */
.about-v2__center {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(860px, 92vw);
  min-height: clamp(260px, 38vh, 380px);
  pointer-events: none;
  transform: translateY(-52px);   /* nhích cụm text lên cao hơn một chút */
}

/* Every slide is stacked dead-center; only one is active at a time.
   Base (waiting) state: sitting just below center, invisible. */
.about-v2__slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  transform: translate(-50%, calc(-50% + 64px));
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
/* Active = centered + visible */
.about-v2__scope[data-stage="2"] .about-v2__slide--milestone,
.about-v2__scope[data-stage="3"] .about-v2__slide--1 {
  opacity: 1;
  transform: translate(-50%, -50%);
}
/* Exited = drifted up out of view (parallax hand-off) */
.about-v2__scope[data-stage="3"] .about-v2__slide--milestone {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 70px));
}

/* All non-number text shares ONE size — bigger & bolder for emphasis */
.about-v2__eyebrow,
.about-v2__label,
.about-v2__step-text {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--c-ink);
}
.about-v2__eyebrow { margin: 0 0 clamp(10px, 1.4vw, 20px); }
.about-v2__label  { margin: clamp(10px, 1.4vw, 20px) 0 0; }
/* Step-text gom ĐÚNG 2 dòng — mỗi dòng viết liền KHÔNG xuống hàng (nowrap),
   font nhỏ lại để dòng dài nhất vẫn vừa bề ngang viewport */
.about-v2__step-text {
  max-width: none;
  margin: 0 auto;
  white-space: nowrap;
  font-size: clamp(0.62rem, 2.4vw, 1.55rem);
  line-height: 1.55;
}
/* Word spans là inline-block → nowrap ở cha giữ mỗi dòng liền mạch; <br/> tách 2 dòng */
.about-v2__step-text .about-v2__word { white-space: nowrap; }

/* Câu statement: container chỉ fade (không tự trượt) — chuyển động do TỪNG TỪ đảm nhiệm */
.about-v2__slide--1 { transform: translate(-50%, -50%); }

/* Mỗi từ: POP (trồi + scale overshoot) + BLUR→nét, so le trái→phải khi slide vào stage */
.about-v2__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.8em) scale(0.9);
  filter: blur(6px);
  transition: opacity 0.5s var(--ease),
              transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1),
              filter 0.5s var(--ease),
              text-shadow 0.5s var(--ease);
}
/* Keyword (bọc cả cụm <em>): đỏ thương hiệu + MỘT gạch chân liền mạch cho cả cụm */
.about-v2__hl {
  position: relative;
  display: inline-block;          /* underline width = toàn bộ cụm từ, không đứt theo từng từ */
  color: var(--c-red);
  text-shadow: 0 0 0 rgba(218, 33, 40, 0);
}
.about-v2__hl::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.06em;
  width: 100%;
  height: 0.09em;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}

.about-v2__scope[data-stage="3"] .about-v2__slide--1 .about-v2__word {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: calc(var(--i) * 0.055s);
}
/* Keyword sáng lên với quầng đỏ khi xuất hiện */
.about-v2__scope[data-stage="3"] .about-v2__slide--1 .about-v2__hl {
  text-shadow: 0 10px 34px rgba(218, 33, 40, 0.32);
}
/* Gạch chân vẽ ra (trái→phải) liền một mạch sau khi cả cụm đáp xuống */
.about-v2__scope[data-stage="3"] .about-v2__slide--1 .about-v2__hl::after {
  transform: scaleX(1);
  transition-delay: calc(var(--i) * 0.055s + 0.18s);
}

/* The hero "10" — bold brand red */
.about-v2__num {
  font-family: var(--ff-display);
  font-size: clamp(6rem, 13vw, 12rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--c-red);
}


/* ---- BURST IMAGES — fly out from center (stage 3+) ---- */
.about-v2__bursts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.burst {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  background: var(--c-bg-mute);
  margin: 0;
  transform: translate(-50%, -50%) scale(0.05);
  opacity: 0;
  transition:
    transform 1.4s cubic-bezier(0.34, 1.36, 0.64, 1),
    opacity 0.7s var(--ease);
  box-shadow: 0 24px 64px -24px rgba(10, 10, 10, 0.28);
  will-change: transform, opacity;
}
.burst img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 7 ảnh bung ra thành MỘT HÀNG NGANG phía dưới — to hơn, trải gần full chiều rộng,
   khoảng cách theo vw nên tự giãn đều theo bề ngang màn hình */
.burst { width: clamp(170px, 13vw, 250px); height: clamp(126px, 9.6vw, 186px); --ty: 248px; --rot: 0deg; }
.burst--1 { --tx: -42vw; }
.burst--2 { --tx: -28vw; }
.burst--3 { --tx: -14vw; }
.burst--4 { --tx:   0vw; }
.burst--5 { --tx:  14vw; }
.burst--6 { --tx:  28vw; }
.burst--7 { --tx:  42vw; }

.about-v2__scope[data-stage="2"] .burst,
.about-v2__scope[data-stage="3"] .burst {
  opacity: 1;
  transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--rot));
}
.about-v2__scope[data-stage="2"] .burst:nth-child(1) { transition-delay: 0.00s; }
.about-v2__scope[data-stage="2"] .burst:nth-child(2) { transition-delay: 0.08s; }
.about-v2__scope[data-stage="2"] .burst:nth-child(3) { transition-delay: 0.16s; }
.about-v2__scope[data-stage="2"] .burst:nth-child(4) { transition-delay: 0.24s; }
.about-v2__scope[data-stage="2"] .burst:nth-child(5) { transition-delay: 0.32s; }
.about-v2__scope[data-stage="2"] .burst:nth-child(6) { transition-delay: 0.40s; }
.about-v2__scope[data-stage="2"] .burst:nth-child(7) { transition-delay: 0.48s; }

/* Light ambient float on each image while the narrative scrolls (stage 2+).
   Applied to the inner <img> so it never fights the .burst position transform.
   scale(1.06) keeps the frame fully covered during the vertical drift. */
@keyframes burstFloat {
  0%, 100% { transform: scale(1.06) translate3d(0, 0, 0); }
  50%      { transform: scale(1.06) translate3d(var(--fx, 0), var(--fy, -8px), 0); }
}
.about-v2__scope[data-stage="2"] .burst img,
.about-v2__scope[data-stage="3"] .burst img {
  animation: burstFloat 5.5s ease-in-out infinite;
  will-change: transform;
}
.burst--1 img { animation-duration: 6.2s; animation-delay: -0.4s; --fx: -4px; --fy: -9px; }
.burst--2 img { animation-duration: 5.4s; animation-delay: -1.6s; --fx:  4px; --fy: -7px; }
.burst--3 img { animation-duration: 6.8s; animation-delay: -0.9s; --fx: -5px; --fy:  6px; }
.burst--4 img { animation-duration: 5.9s; animation-delay: -2.1s; --fx:  5px; --fy:  7px; }
.burst--5 img { animation-duration: 6.4s; animation-delay: -1.2s; --fx: -3px; --fy:  8px; }
.burst--6 img { animation-duration: 5.7s; animation-delay: -0.6s; --fx:  3px; --fy: -8px; }
.burst--7 img { animation-duration: 6.6s; animation-delay: -1.9s; --fx:  0px; --fy: -9px; }

@media (max-width: 1100px) {
  .burst { width: clamp(120px, 12.5vw, 170px); height: clamp(90px, 9.4vw, 128px); --ty: 210px; }
}
@media (max-width: 800px) {
  .burst { width: 96px; height: 72px; --ty: 178px; }
}
@media (max-width: 560px) {
  .burst { display: none; }
}


/* ---- EDITORIAL: statement + body text columns (below burst hero) ---- */
.about-v2__editorial {
  padding-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3vw, 56px);
  border-top: 1px solid var(--c-line);
  align-items: start;
}
@media (min-width: 900px) {
  .about-v2__editorial { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
}
.about-v2__editorial .about__statement {
  font-family: var(--ff-display);
  font-size: clamp(1.85rem, 3.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0;
}
.about-v2__editorial .about__statement .red {
  color: var(--c-red);
  font-style: normal;
  font-weight: 700;
}
.about-v2__text-cols {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-v2__text-cols .about__text {
  color: var(--c-ink-2);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 56ch;
}

/* ---- STATS RAIL ---- */
.about-v2__rail {
  margin-top: clamp(36px, 4vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px 32px;
}
@media (min-width: 700px) {
  .about-v2__rail {
    grid-template-columns: repeat(3, auto) 1fr;
    gap: 48px;
  }
}
.about-v2__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-v2__stat-v {
  font-family: var(--ff-display);
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.about-v2__stat-v .unit { font-size: 0.55em; color: var(--c-red); margin-left: 2px; }
.about-v2__stat-l {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
}
.about-v2__cta {
  white-space: nowrap;
  justify-self: end;
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .about-v2__cta { grid-column: auto; }
}


/* ============================================================
   SECTION 3 — CAPABILITY (5-item gallery, show 3, scroll)
   ============================================================ */
.capability { background: var(--c-bg); }

.cap-gallery {
  position: relative;
  margin-top: 8px;
}
.cap-gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px var(--gutter) 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cap-gallery__track::-webkit-scrollbar { display: none; }

.cap-card {
  flex: 0 0 calc((100% - 40px) / 3);   /* 3 visible on desktop, gap 20 */
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--c-bg-mute);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.cap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px -18px rgba(10, 10, 10, 0.22);
}
@media (max-width: 1024px) {
  .cap-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 700px) {
  .cap-card { flex-basis: 82%; min-width: 0; }
  .cap-gallery__track { padding-left: 20px; padding-right: 20px; gap: 16px; }
}
.cap-card__img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.cap-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease);
}
.cap-card:hover .cap-card__img img { transform: scale(1.08); }
.cap-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap-card__num {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-red);
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
  display: inline-block;
  align-self: flex-start;
}
.cap-card__title {
  font-family: var(--ff-display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.cap-card__desc {
  color: var(--c-ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cap-gallery__nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.cap-gallery__btn {
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid var(--c-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  color: var(--c-ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cap-gallery__btn:hover { background: var(--c-ink); color: #fff; }
.cap-gallery__btn svg { width: 18px; height: 18px; }


/* ============================================================
   SECTION 4 — PRODUCTS (FULL-WIDTH AUTO SLIDER)
   ============================================================ */
.products { background: var(--c-bg-soft); }

.products__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.products__track {
  display: flex;
  gap: 24px;
  padding: 0 var(--gutter);
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.products__track::-webkit-scrollbar { display: none; }
.products__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;     /* let user drag freely */
  scroll-behavior: auto;
}
.products__track.is-dragging .product * { pointer-events: none; }
.products__track .product img { pointer-events: none; }

/* Static 4-up grid (no slider / no auto-scroll) */
.products__track--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: none;           /* task #34 — full màn, bỏ cap 1200px để 4 cột trải hết chiều ngang */
  margin-inline: auto;       /* auto = 0 ở desktop (đã full), giữ căn giữa ở tablet/mobile */
  overflow: visible;
  cursor: default;
  scroll-snap-type: none;
}
.products__track--grid .product { flex: initial; min-width: 0; }
/* media thấp hơn một chút (4/5 thay vì 3/4) để card gọn, đỡ cao */
.products__track--grid .product__media { aspect-ratio: 4/5; }
@media (max-width: 1024px) { .products__track--grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; } }
@media (max-width: 560px)  { .products__track--grid { grid-template-columns: 1fr; max-width: 360px; } }

.product {
  position: relative;
  flex: 0 0 calc((100% - var(--gutter) * 2 - 72px) / 4);   /* 4 visible desktop */
  min-width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
}
@media (max-width: 1100px) { .product { flex-basis: calc((100% - 48px) / 3); } }
@media (max-width: 800px)  { .product { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 560px)  { .product { flex-basis: 82%; min-width: 0; } }

.products__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  padding: 0 var(--gutter);
}
.products__btn {
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid var(--c-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--c-ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.products__btn:hover { background: var(--c-ink); color: #fff; }
.products__btn svg { width: 18px; height: 18px; }

.products__dots { display: flex; align-items: center; gap: 12px; }
.products__dot {
  width: 36px; height: 2px;
  background: rgba(10, 10, 10, 0.18);
  border: 0;
  cursor: pointer;
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.products__dot.is-on { background: var(--c-red); width: 56px; }
.product__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-bg-mute);
}
.product__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease), filter 0.6s var(--ease);
}
.product:hover .product__media img { transform: scale(1.08); filter: brightness(1.04); }
.product__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.18) 100%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.product:hover .product__media::after { opacity: 1; }
.product__num {
  position: absolute;
  z-index: 2;
  top: 16px; left: 16px;
  font-family: var(--ff-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  mix-blend-mode: difference;
}
.product__arr {
  position: absolute;
  z-index: 2;
  bottom: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(8px, 8px) scale(0.85);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), background 0.3s var(--ease);
}
.product:hover .product__arr {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  background: var(--c-red);
  color: #fff;
}
.product__arr svg { width: 16px; height: 16px; }
.product__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product__title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 1.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.product__title em {
  font-style: normal;
  font-weight: 900;
  color: var(--c-red);
}
.product__tag {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-mute);
  line-height: 1.45;
}
.product:hover .product__title { color: var(--c-red); }
.product:hover .product__title em { color: var(--c-ink); }


/* ============================================================
   SECTION 5 — PARTNERS (editorial logo wall)
   ============================================================ */
.partners { background: var(--c-bg); position: relative; padding-bottom: clamp(48px, 6vw, 80px); }

/* Full-bleed 2-row marquee. No box around each logo, infinite loop. */
.partner-strip {
  --pstrip-visible: 6;
  --pstrip-gap: clamp(32px, 4vw, 72px);
  --pstrip-duration: 60s;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: clamp(32px, 4vw, 56px);
}
.partner-strip__row {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.partner-strip__track {
  display: flex;
  align-items: center;
  gap: var(--pstrip-gap);
  width: max-content;
  will-change: transform;
  animation-duration: var(--pstrip-duration);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}
.partner-strip__row--ltr .partner-strip__track { animation-name: pstrip-scroll-ltr; }
.partner-strip__row--rtl .partner-strip__track { animation-name: pstrip-scroll-rtl; }
.partner-strip:hover .partner-strip__track { animation-play-state: paused; }
@keyframes pstrip-scroll-ltr {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes pstrip-scroll-rtl {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Single logo: ~1/6 viewport wide, B&W by default, color on hover */
.partner-strip__logo {
  flex: 0 0 calc((100vw - (var(--pstrip-visible) + 1) * var(--pstrip-gap)) / var(--pstrip-visible));
  height: clamp(64px, 8vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-strip__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.6;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease);
  mix-blend-mode: multiply;
}
.partner-strip__logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}
@media (max-width: 1024px) { .partner-strip { --pstrip-visible: 4; } }
@media (max-width: 640px)  { .partner-strip { --pstrip-visible: 3; --pstrip-duration: 40s; --pstrip-gap: clamp(20px, 4vw, 40px); } }


/* ============================================================
   SECTION 6/7 — NEWS (full-width slider, 3 per row, draggable)
   ============================================================ */
/* About GIF — quick animated intro above năng lực */
.section--gif {
  padding: clamp(4px, 0.8vw, 12px) 0;
  background: var(--c-bg);
}
.about-gif {
  max-width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.about-gif img {
  display: block;
  width: 100%;
  height: auto;
}


.news { background: var(--c-bg); }
.news--product { background: var(--c-bg); }
.news--company { background: var(--c-bg-soft); }
.news--tabbed { background: var(--c-bg); }

/* Tabs inside news section header */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.news-tab {
  appearance: none;
  border: 1px solid var(--c-line-strong);
  background: transparent;
  padding: 10px 20px;
  font-family: var(--ff-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-mute);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.news-tab:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.news-tab.is-active {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.news .is-hidden { display: none !important; }

.news__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.news__track {
  display: flex;
  gap: 20px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.news__track::-webkit-scrollbar { display: none; }
.news__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;     /* free drag */
  scroll-behavior: auto;
}
.news__track .article {
  flex: 0 0 calc((100% - 80px) / 5);    /* 5 visible desktop, 4 gaps × 20px */
  min-width: 220px;
  scroll-snap-align: start;
  user-select: none;
}
@media (max-width: 1280px) {
  .news__track .article { flex-basis: calc((100% - 60px) / 4); }    /* 4 vis */
}
@media (max-width: 1024px) {
  .news__track .article { flex-basis: calc((100% - 40px) / 3); }    /* 3 vis */
}
@media (max-width: 740px) {
  .news__track .article { flex-basis: calc((100% - 20px) / 2); }    /* 2 vis */
}
@media (max-width: 520px) {
  .news__track .article { flex-basis: 85%; min-width: 0; }
}
/* Disable text/image selection while dragging */
.news__track.is-dragging .article * { pointer-events: none; }
.news__track .article img { pointer-events: none; }

.article {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.article--big .article__media { aspect-ratio: 16/10; }
/* Smaller article in news slider */
.news__track .article { gap: 14px; }
.news__track .article .article__media { aspect-ratio: 4/3; }
.article__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease), filter 0.6s var(--ease);
}
.article:hover .article__media img { transform: scale(1.06); filter: brightness(1.03); }
.article__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-ink);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.article:hover .article__media::before { opacity: 0.08; }
.article__cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-red);
  font-weight: 600;
}
.article__date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-mute);
  margin-left: 16px;
  position: relative;
}
.article__date::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--c-mute);
}
.article__meta {
  display: flex;
  align-items: center;
}
.article__title {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
}
.article:hover .article__title { color: var(--c-red); }
/* Smaller title in news slider — 5 cards visible needs compact text */
.news__track .article__title {
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.3;
}
.news__track .article__cat { font-size: 0.66rem; letter-spacing: 0.18em; }
.news__track .article__date { font-size: 0.68rem; }


/* ============================================================
   SECTION 8 — CTA BANNER (cinematic bg)
   ============================================================ */
.cta {
  position: relative;
  height: clamp(420px, 56vh, 600px);
  overflow: hidden;
  background: #0A0A0A;
  color: #fff;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: ctaPan 24s ease-in-out infinite alternate;
}
@keyframes ctaPan {
  0%   { transform: scale(1.04) translate3d(-1%, 0, 0); }
  100% { transform: scale(1.08) translate3d(1%, -1%, 0); }
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.7) 100%);
}
.cta__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.cta__eyebrow {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.cta__eyebrow::before {
  content: '';
  width: 48px; height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
.cta__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: 32px;
}
.cta__title .it {
  font-style: normal;
  font-weight: 900;
  color: var(--c-red);
}
.cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}
.cta__hotline {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.cta__hotline-l {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cta__hotline-v {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}


/* ============================================================
   SECTION 9 — PRESS (báo chí nói gì)
   ============================================================ */
.press { background: var(--c-bg); }
.press__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .press__grid { grid-template-columns: repeat(2, 1fr); } }

.press__item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;            /* tăng khoảng cách thumb ↔ text */
  padding: 32px 36px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  overflow: hidden;
  align-items: stretch;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
@media (max-width: 600px) { .press__item { grid-template-columns: 100px 1fr; gap: 24px; padding: 24px; } }
.press__thumb {
  position: relative;
  width: 140px;
  height: 140px;        /* fix 1:1 — tránh stretch khi text dài */
  flex-shrink: 0;
  align-self: start;
  overflow: hidden;
  background: var(--c-bg-mute);
}
@media (max-width: 600px) {
  .press__thumb { width: 100px; height: 100px; }
}
.press__thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.press__item:hover .press__thumb img { transform: scale(1.06); }
.press__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.press__item::before {
  content: '"';
  position: absolute;
  top: -28px;
  right: 28px;
  font-family: var(--ff-display);
  font-size: 12rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-red);
  opacity: 0.08;
  transition: opacity 0.45s var(--ease), top 0.6s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.press__item:hover {
  border-color: var(--c-ink);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(10, 10, 10, 0.16);
}
.press__item:hover::before { opacity: 0.18; top: -18px; }
.press__item > * { position: relative; z-index: 1; }
.press__logo {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-red);
  text-transform: uppercase;
}
.press__quote {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
.press__date {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-top: auto;
  padding-top: 4px;
}


/* ============================================================
   FOOTER (full info, 3 offices, social icons, sitemap)
   ============================================================ */
.footer {
  position: relative;
  background: var(--c-bg);
  color: var(--c-ink);
  border-top: 1px solid var(--c-line);
  overflow: hidden;
}
.footer > .container { position: relative; z-index: 2; }

/* Decorative background pattern — rises up from bottom + fades at top.
   Footer has overflow:hidden → pattern clipped within footer bounds. */
.footer__bg {
  position: absolute;
  bottom: -20%;                    /* khởi đầu dưới mép footer */
  left: 0;
  width: clamp(480px, 63vw, 930px);
  aspect-ratio: 1130 / 787;
  background-image: url('../images/bg-footer.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  filter: invert(1) brightness(0.82);
  pointer-events: none;
  z-index: 0;
  animation: footerBgRise 12s ease-in infinite;
  will-change: transform, opacity;
}
@keyframes footerBgRise {
  0%   { transform: translateY(0);      opacity: 0;    }
  10%  { opacity: 0.22; }
  75%  { opacity: 0.22; }
  100% { transform: translateY(-120%);  opacity: 0;    }
}
.footer__top {
  padding: clamp(56px, 6vw, 88px) 0 40px;
  border-bottom: 1px solid var(--c-line);
}
/* about.gif — band giới thiệu nhanh (chỉ ở trang chủ, ngay trên footer).
   aspect-ratio hẹp + object-fit:cover → cắt bớt khoảng trắng trên/dưới, toà nhà to hơn. */
.section--about-gif { padding: clamp(40px, 5vw, 84px) 0; }
.about-gif-band {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  aspect-ratio: 1920 / 560;
  overflow: hidden;
}
.about-gif-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .about-gif-band { aspect-ratio: 1920 / 760; } }
.footer__brand-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  /* 4-column grid khớp với footer__grid bên dưới — statement spans 2 cột đầu,
     brand-block (logo + hotline) spans cột 3-4 → align với LIVAS TP. HCM */
  .footer__brand-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  .footer__statement     { grid-column: 1 / 3; }
  .footer__brand-block   { grid-column: 3 / 5; align-items: flex-start; text-align: left; }
}
@media (min-width: 1024px) {
  .footer__brand-row { gap: 40px; }
}
.footer__statement {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.footer__statement .red { color: var(--c-red); }
.footer__statement .it { font-style: normal; font-weight: 700; color: var(--c-red); }

.footer__brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer__brand-mark {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}
.footer__brand-mark img { height: 52px; width: auto; display: block; }
.footer__brand-mark .one { color: var(--c-red); font-weight: 900; }
.footer__brand-mark .reg {
  font-size: 0.4em;
  margin-left: 4px;
  opacity: 0.55;
  vertical-align: 0.85em;
  font-weight: 400;
  display: inline-block;
}
.footer__tag {
  color: var(--c-mute);
  font-size: 0.9rem;
  max-width: 56ch;
  line-height: 1.55;
}
.footer__hotline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-top: 8px;
}
.footer__hotline svg { width: 16px; height: 16px; color: var(--c-red); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}
/* Chi nhánh thứ 2 lồng trong cùng cột (HP dưới Hà Nội, Vinh dưới Đà Nẵng) */
.footer__branch-sub { margin-top: 80px; }
/* Desktop: ghim chi nhánh phụ ở cùng một mốc cao → HP thẳng hàng với Vinh
   dù cột Hà Nội (2 dòng địa chỉ) cao hơn cột Đà Nẵng (1 dòng). */
@media (min-width: 1024px) {
  .footer__grid > div:has(.footer__branch-sub) { position: relative; min-height: 300px; }
  .footer__branch-sub { position: absolute; left: 0; right: 0; top: 210px; margin-top: 0; }
}
.footer__grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;          /* prevent overflow expanding the grid track */
}

.footer__col-title {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
  min-height: 32px;        /* uniform height so column lines align */
  display: flex;
  align-items: flex-end;
}

.footer__office-addr {
  color: var(--c-ink-2);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer__office-addr strong { color: var(--c-ink); font-weight: 600; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  color: var(--c-ink-2);
  font-size: 0.875rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.footer__links a:hover { color: var(--c-red); padding-left: 6px; }

.footer__social-row {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 700px) {
  .footer__social-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer__social-l {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 600;
}
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-ink-2);
  transition: background 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.25s var(--ease);
}
.footer__social a:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}
.footer__social svg { width: 15px; height: 15px; }

.footer__bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-mute);
}
@media (min-width: 700px) { .footer__bottom { flex-direction: row; } }
.footer__bottom-links {
  display: flex;
  gap: 28px;
}


/* ============================================================
   FAB — Floating action buttons (minimal flat redesign)
   Hotline · Messenger · Zalo · Back-to-top
   ============================================================ */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab__btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    background-color 200ms ease-out,
    border-color 200ms ease-out,
    color 200ms ease-out,
    transform 200ms ease-out;
  text-decoration: none;
  padding: 0;
}
.fab__btn:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: #FFFFFF;
  transform: scale(1.08);
}
.fab__btn:active { transform: scale(0.95); }
.fab__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Pulse rings — phone button only (2 rings staggered) */
.fab__ring,
.fab__ring--2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #DC2626;
  opacity: 0;
  pointer-events: none;
  animation: fabPulse 2s ease-out infinite;
}
.fab__ring--2 { animation-delay: 1s; }
@keyframes fabPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.6);  opacity: 0;   }
}
.fab__btn--phone:hover .fab__ring,
.fab__btn--phone:hover .fab__ring--2 { animation-play-state: paused; opacity: 0; }

/* Tooltip — appears to the left on hover, hidden on mobile */
.fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: #111111;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.fab__btn:hover .fab__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Back-to-top button — hidden initially, shows when scrolled > 600px */
.fab__btn.js-back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(1);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out,
    visibility 0s linear 300ms,
    background-color 200ms ease-out,
    border-color 200ms ease-out,
    color 200ms ease-out;
}
.fab__btn.js-back-to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out,
    visibility 0s linear 0s,
    background-color 200ms ease-out,
    border-color 200ms ease-out,
    color 200ms ease-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .fab {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }
  .fab__btn { width: 44px; height: 44px; }
  .fab__icon { width: 18px; height: 18px; }
  .fab__tip { display: none; }    /* hide tooltips on mobile */
}

@media (prefers-reduced-motion: reduce) {
  .fab__ring, .fab__ring--2 { animation: none; opacity: 0; }
}
