/* ==========================================================================
   HUD — Màn "Sức mạnh HUD" (Phiên bản Cinematic Multi-Layer — st2-)
   - Độc lập hoàn toàn, mọi class bắt đầu bằng .st2-
   - Không ghi đè style thẻ chung bên ngoài .st2-section
   - Bố cục đa tầng toàn màn hình 100vh: Ảnh nền điện ảnh + Ánh sáng + Hạt
     Canvas + Chữ bóng khổng lồ + Thẻ ảnh 3D nổi + Nội dung biên tập cao cấp
   ========================================================================== */

@keyframes st2-ken-burns {
  0% {
    transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
  }
  100% {
    transform: scale(1.01) translate3d(0.8%, 0.6%, 0);
  }
}

@keyframes st2-pulse-glow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.st2-section {
  --st2-red: #e30613;
  --st2-red-bright: #ff2533;
  --st2-red-glow: rgba(227, 6, 19, 0.5);
  --st2-gold: #f5d393;
  --st2-dark: #07090e;
  --st2-glass: rgba(9, 12, 18, 0.68);
  --st2-glass-strong: rgba(8, 10, 16, 0.84);
  --st2-line: rgba(255, 255, 255, 0.14);
  --st2-line-bright: rgba(255, 255, 255, 0.28);
  --st2-white: #ffffff;
  --st2-text: rgba(255, 255, 255, 0.9);
  --st2-text-dim: rgba(255, 255, 255, 0.68);
  --st2-font-heading: 'UTM Americana', Georgia, serif;
  --st2-font-body: 'Cambria', Georgia, serif;
  --st2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --st2-ease-drama: cubic-bezier(0.16, 1, 0.3, 1);
  --st2-progress: 0.3333;
  --st2-reveal: 58%;
  --st2-mx: 0;
  --st2-my: 0;
  --st2-dir: 1;

  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--st2-dark);
  color: var(--st2-white);
  font-family: var(--st2-font-body);
  box-sizing: border-box;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

.st2-section *,
.st2-section *::before,
.st2-section *::after {
  box-sizing: border-box;
}

.st2-section.st2-no-anim,
.st2-section.st2-no-anim *,
.st2-section.st2-no-anim *::before,
.st2-section.st2-no-anim *::after {
  transition: none !important;
  animation: none !important;
}

/* ==========================================================================
   LAYER 0: Phông nền điện ảnh toàn màn hình + Cửa chớp chéo + Ken Burns
   ========================================================================== */
.st2-bg-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.st2-bg-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition:
    clip-path 1.05s var(--st2-ease-drama),
    opacity 0.55s ease;
  will-change: clip-path, opacity;
}

.st2-section[data-st2-dir="-1"] .st2-bg-slide:not(.is-active):not(.is-prev) {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.st2-bg-slide.is-prev {
  z-index: 2;
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.st2-bg-slide.is-active {
  z-index: 3;
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.st2-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06) brightness(0.84);
  transform: scale(1.08);
  transition: transform 1.4s var(--st2-ease);
}

.st2-bg-img-0 {
  object-position: 62% 45%;
}

.st2-bg-img-1 {
  object-position: 65% 48%;
  filter: saturate(1.1) contrast(1.08) brightness(0.76);
}

.st2-bg-img-2 {
  object-position: 66% 36%;
  filter: saturate(1.18) contrast(1.06) brightness(0.92);
}

.st2-bg-slide.is-active .st2-bg-img {
  animation: st2-ken-burns 18s ease-out forwards;
}

/* ==========================================================================
   LAYER 1: Lớp ánh sáng điện ảnh, vầng đỏ HUD, lưới tọa độ & Canvas hạt sáng
   ========================================================================== */
.st2-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      102deg,
      rgba(5, 7, 12, 0.94) 0%,
      rgba(7, 10, 16, 0.84) 36%,
      rgba(8, 11, 18, 0.42) 64%,
      rgba(5, 7, 12, 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 7, 12, 0.72) 0%,
      rgba(5, 7, 12, 0.08) 22%,
      rgba(5, 7, 12, 0.12) 76%,
      rgba(5, 7, 12, 0.86) 100%
    );
}

.st2-section[data-st2-step="2"] .st2-scrim {
  background:
    linear-gradient(
      100deg,
      rgba(5, 7, 12, 0.92) 0%,
      rgba(7, 10, 16, 0.78) 38%,
      rgba(8, 11, 18, 0.18) 68%,
      rgba(5, 7, 12, 0.44) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 7, 12, 0.64) 0%,
      rgba(5, 7, 12, 0.04) 24%,
      rgba(5, 7, 12, 0.08) 72%,
      rgba(5, 7, 12, 0.84) 100%
    );
}

.st2-crimson-aura {
  position: absolute;
  inset: -10%;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 26%, rgba(227, 6, 19, 0.24) 0%, transparent 46%),
    radial-gradient(circle at 86% 78%, rgba(227, 6, 19, 0.16) 0%, transparent 42%);
  transform: translate3d(calc(var(--st2-mx) * -18px), calc(var(--st2-my) * -14px), 0);
  transition: transform 0.6s ease-out;
}

.st2-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, transparent 65%);
}

.st2-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* ==========================================================================
   LAYER 2: Chữ bóng kiến trúc khổng lồ tạo chiều sâu không gian
   ========================================================================== */
.st2-ghost-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(20px, 5vw, 90px);
}

.st2-ghost-word {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  top: 50%;
  font-family: var(--st2-font-heading);
  font-size: clamp(190px, 27vw, 410px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.11);
  opacity: 0;
  transform: translate3d(
    calc(var(--st2-mx) * -28px),
    calc(-50% + var(--st2-dir) * 70px + var(--st2-my) * -20px),
    0
  );
  transition: opacity 0.8s ease, transform 1.1s var(--st2-ease-drama);
  user-select: none;
}

.st2-ghost-word.is-active {
  opacity: 1;
  transform: translate3d(
    calc(var(--st2-mx) * -28px),
    calc(-50% + var(--st2-my) * -20px),
    0
  );
}

.st2-ghost-compact {
  font-size: clamp(140px, 19vw, 290px);
}

/* Thanh tiến độ laser đỏ trên đỉnh */
.st2-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.12);
  z-index: 30;
}

.st2-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--st2-red) 0%, var(--st2-red-bright) 75%, var(--st2-gold) 100%);
  box-shadow: 0 0 18px var(--st2-red-glow);
  transform-origin: left center;
  transform: scaleX(var(--st2-progress));
  transition: transform 0.85s var(--st2-ease);
}

/* ==========================================================================
   KHUNG SHELL NỘI DUNG (Gọn trong 100vh)
   ========================================================================== */
.st2-shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(18px, 2.8vh, 34px) clamp(24px, 4.2vw, 72px) clamp(16px, 2.4vh, 28px);
  gap: clamp(10px, 1.8vh, 22px);
}

/* --- Header nổi sang trọng --- */
.st2-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(12px, 1.6vh, 18px);
  border-bottom: 1px solid var(--st2-line);
}

.st2-brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 20px);
  min-width: 0;
}

.st2-logo {
  display: block;
  width: auto;
  height: clamp(26px, 3.1vh, 38px);
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.st2-brand-beam {
  display: block;
  width: 2px;
  height: clamp(30px, 3.8vh, 42px);
  background: linear-gradient(180deg, var(--st2-red) 0%, rgba(227, 6, 19, 0.2) 100%);
  flex-shrink: 0;
}

.st2-brand-text {
  min-width: 0;
}

.st2-title {
  margin: 0;
  font-family: var(--st2-font-heading);
  font-size: clamp(18px, 1.85vw, 28px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--st2-white);
  text-transform: uppercase;
}

.st2-subtitle {
  margin: 4px 0 0;
  font-family: var(--st2-font-body);
  font-size: clamp(12.5px, 0.95vw, 15px);
  line-height: 1.3;
  color: var(--st2-text-dim);
}

/* Thanh chọn 3 Trạm dạng kính nổi (Floating Glass Pill Rail) */
.st2-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  background-color: rgba(10, 13, 20, 0.64);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--st2-line);
  border-radius: 999px;
  min-width: min(590px, 47vw);
  flex-shrink: 0;
}

.st2-tab-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st2-red) 0%, #b8040e 100%);
  box-shadow: 0 6px 24px rgba(227, 6, 19, 0.5);
  transform: translateX(0%);
  transition: transform 0.65s var(--st2-ease);
  z-index: 0;
}

.st2-section[data-st2-step="1"] .st2-tab-pill {
  transform: translateX(100%);
}

.st2-section[data-st2-step="2"] .st2-tab-pill {
  transform: translateX(200%);
}

.st2-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  padding: clamp(9px, 1.15vh, 12px) clamp(10px, 1.1vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--st2-font-heading);
  font-size: clamp(11px, 0.82vw, 13px);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.35s ease;
  text-align: center;
  border-radius: 999px;
}

.st2-tab:hover:not(.is-active) {
  color: var(--st2-white);
}

.st2-tab:focus-visible {
  outline: 2px solid var(--st2-gold);
  outline-offset: 2px;
}

.st2-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--st2-red-bright);
  flex-shrink: 0;
  transition: background-color 0.35s ease, transform 0.35s var(--st2-ease);
}

.st2-tab.is-active {
  color: var(--st2-white);
}

.st2-tab.is-active .st2-tab-dot {
  background-color: var(--st2-white);
  transform: scale(1.3);
}

/* ==========================================================================
   SÂN KHẤU 3 TRẠM (Mỗi trạm là 1 thế giới không gian đa tầng)
   ========================================================================== */
.st2-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.st2-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(380px, 46%) minmax(0, 54%);
  gap: clamp(24px, 3.6vw, 64px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    visibility 0s linear 0.55s;
}

.st2-scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.6s ease 0.08s,
    visibility 0s linear 0s;
}

/* --- Cột trái: Biên tập điện ảnh --- */
.st2-col-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vh, 22px);
  min-width: 0;
}

.st2-col-dense {
  gap: clamp(10px, 1.55vh, 18px);
}

.st2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
  transition: opacity 0.6s ease, transform 0.8s var(--st2-ease);
}

.st2-scene.is-active .st2-eyebrow {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.12s;
}

.st2-laser {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--st2-red-bright) 0%, var(--st2-gold) 100%);
  box-shadow: 0 0 12px var(--st2-red-glow);
}

.st2-eyebrow-text {
  font-family: var(--st2-font-heading);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st2-gold);
}

.st2-mask-wrap {
  overflow: hidden;
  padding-bottom: 6px;
}

.st2-heading {
  margin: 0;
  font-family: var(--st2-font-heading);
  font-size: clamp(32px, 3.6vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  color: var(--st2-white);
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  transform: translate3d(0, 108%, 0);
  transition: transform 0.88s var(--st2-ease-drama);
}

.st2-scene.is-active .st2-heading {
  transform: translate3d(0, 0, 0);
  transition-delay: 0.16s;
}

/* Trạm 1: Con số điêu khắc khổng lồ "hơn 37 năm" */
.st2-mega-stat {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(10px, 1vw, 16px);
  align-self: flex-start;
  padding: clamp(10px, 1.5vh, 16px) clamp(18px, 1.8vw, 26px);
  background: linear-gradient(135deg, rgba(16, 19, 28, 0.84) 0%, rgba(28, 10, 14, 0.72) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--st2-red-bright);
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.96);
  transition: opacity 0.65s ease, transform 0.85s var(--st2-ease-drama);
}

.st2-scene.is-active .st2-mega-stat {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0.24s;
}

.st2-mega-prefix {
  font-family: var(--st2-font-heading);
  font-size: clamp(18px, 1.5vw, 24px);
  color: rgba(255, 255, 255, 0.85);
}

.st2-mega-num {
  font-family: var(--st2-font-heading);
  font-size: clamp(54px, 5.4vw, 92px);
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #ff4754 55%, #e30613 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(227, 6, 19, 0.55));
}

.st2-mega-num-wide {
  font-size: clamp(44px, 4.4vw, 76px);
}

.st2-mega-tail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st2-mega-unit {
  font-family: var(--st2-font-heading);
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--st2-white);
  line-height: 1.05;
}

.st2-mega-sub {
  font-family: var(--st2-font-body);
  font-size: clamp(12.5px, 0.92vw, 14.5px);
  color: var(--st2-gold);
}

/* Đoạn văn nguyên văn khách hàng */
.st2-lead {
  margin: 0;
  font-family: var(--st2-font-body);
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.66;
  color: var(--st2-text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.65s ease, transform 0.82s var(--st2-ease);
}

.st2-lead-compact {
  font-size: clamp(14px, 1.04vw, 16.8px);
  line-height: 1.56;
}

.st2-scene.is-active .st2-lead {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.3s;
}

/* Thẻ dự án tiêu biểu Trạm 1 */
.st2-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st2-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--st2-font-body);
  font-size: clamp(12.5px, 0.9vw, 14px);
  color: var(--st2-white);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.5s ease,
    transform 0.65s var(--st2-ease),
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.st2-chip.is-hot {
  background-color: rgba(227, 6, 19, 0.28);
  border-color: var(--st2-red-bright);
  box-shadow: 0 0 18px rgba(227, 6, 19, 0.32);
}

.st2-scene.is-active .st2-chip {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.st2-scene.is-active .st2-chip:nth-child(1) { transition-delay: 0.36s; }
.st2-scene.is-active .st2-chip:nth-child(2) { transition-delay: 0.42s; }
.st2-scene.is-active .st2-chip:nth-child(3) { transition-delay: 0.48s; }
.st2-scene.is-active .st2-chip:nth-child(4) { transition-delay: 0.54s; }
.st2-scene.is-active .st2-chip:nth-child(5) { transition-delay: 0.60s; }

/* --- Trạm 2: Lưới chỉ số Kính Đen Ánh Đỏ --- */
.st2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 14px);
}

.st2-kpi-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 12px);
}

.st2-kpi-trio .st2-kpi-card {
  padding: clamp(10px, 1.35vh, 15px) clamp(10px, 1vw, 16px);
}

.st2-kpi-trio .st2-kpi-num {
  font-size: clamp(22px, 2.05vw, 34px);
}

.st2-kpi-trio .st2-kpi-affix {
  font-size: clamp(11.5px, 0.85vw, 14px);
}

.st2-kpi-card {
  position: relative;
  padding: clamp(12px, 1.55vh, 18px) clamp(14px, 1.4vw, 20px);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(14, 18, 28, 0.82) 0%, rgba(10, 12, 18, 0.72) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.96);
  transition: opacity 0.6s ease, transform 0.78s var(--st2-ease-drama), border-color 0.3s ease;
}

.st2-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--st2-red-bright) 0%, var(--st2-gold) 100%);
}

.st2-kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

.st2-scene.is-active .st2-kpi-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.st2-scene.is-active .st2-kpi-card:nth-child(1) { transition-delay: 0.28s; }
.st2-scene.is-active .st2-kpi-card:nth-child(2) { transition-delay: 0.36s; }
.st2-scene.is-active .st2-kpi-card:nth-child(3) { transition-delay: 0.44s; }
.st2-scene.is-active .st2-kpi-card:nth-child(4) { transition-delay: 0.52s; }

.st2-kpi-val {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--st2-font-heading);
  line-height: 1.02;
}

.st2-kpi-affix {
  font-size: clamp(13px, 1vw, 16px);
  color: rgba(255, 255, 255, 0.8);
}

.st2-kpi-num {
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--st2-white);
  text-shadow: 0 0 22px rgba(227, 6, 19, 0.45);
}

.st2-kpi-card:nth-child(1) .st2-kpi-num,
.st2-kpi-card:nth-child(4) .st2-kpi-num {
  color: #ff4b57;
}

.st2-kpi-label {
  font-family: var(--st2-font-body);
  font-size: clamp(12.5px, 0.92vw, 15px);
  color: var(--st2-gold);
}

/* --- Trạm 3: 3 thanh trụ cột phát sáng --- */
.st2-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st2-pillar-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(11px, 1.45vh, 15px) 18px;
  border-radius: 10px;
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translate3d(-26px, 0, 0);
  transition: opacity 0.6s ease, transform 0.78s var(--st2-ease-drama), border-color 0.3s ease;
}

.st2-scene.is-active .st2-pillar-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.st2-scene.is-active .st2-pillar-card:nth-child(1) { transition-delay: 0.32s; }
.st2-scene.is-active .st2-pillar-card:nth-child(2) { transition-delay: 0.42s; }
.st2-scene.is-active .st2-pillar-card:nth-child(3) { transition-delay: 0.52s; }

.st2-pillar-bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--st2-red-bright) 0%, var(--st2-gold) 100%);
  box-shadow: 0 0 14px var(--st2-red-glow);
  flex-shrink: 0;
}

.st2-pillar-text {
  font-family: var(--st2-font-heading);
  font-size: clamp(14px, 1.06vw, 17px);
  color: var(--st2-white);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   CỘT PHẢI: TỔ HỢP ẢNH ĐA LỚP 3D PARALLAX (3 chiều sâu riêng biệt)
   ========================================================================== */
.st2-col-right {
  position: relative;
  height: 100%;
  min-height: 0;
  perspective: 1400px;
}

.st2-depth-rig {
  display: flex;
  align-items: center;
  justify-content: center;
}

.st2-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.st2-card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--st2-font-heading);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--st2-white);
  text-transform: uppercase;
}

.st2-tag-red {
  background-color: rgba(227, 6, 19, 0.88);
  border-color: rgba(255, 255, 255, 0.35);
}

/* --- TRẠM 1 RIG: Cổng so sánh Linh Đàm + 2 vệ tinh không gian xanh 3D --- */
.st2-portal {
  position: relative;
  z-index: 5;
  width: 82%;
  height: min(64vh, 520px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(227, 6, 19, 0.25);
  background-color: #11131a;
  opacity: 0;
  transform:
    rotateY(calc(var(--st2-mx) * 6deg - 4deg))
    rotateX(calc(var(--st2-my) * -5deg))
    translate3d(calc(var(--st2-mx) * 14px), calc(46px + var(--st2-my) * 10px), 0)
    scale(0.92);
  transition:
    opacity 0.75s ease 0.18s,
    transform 1s var(--st2-ease-drama) 0.12s;
}

.st2-scene.is-active .st2-portal {
  opacity: 1;
  transform:
    rotateY(calc(var(--st2-mx) * 6deg - 2deg))
    rotateX(calc(var(--st2-my) * -5deg))
    translate3d(calc(var(--st2-mx) * 14px), calc(var(--st2-my) * 10px), 0)
    scale(1);
}

.st2-compare {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  touch-action: pan-y;
}

.st2-compare-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.st2-img-vintage {
  filter: sepia(32%) contrast(1.18) brightness(0.92);
}

.st2-compare-after {
  clip-path: inset(0 0 0 calc(100% - var(--st2-reveal)));
  transition: clip-path 1.2s var(--st2-ease-drama);
}

.st2-compare.is-dragging .st2-compare-after,
.st2-compare.is-dragging .st2-compare-beam {
  transition: none;
}

.st2-compare-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--st2-reveal));
  width: 2px;
  background: linear-gradient(180deg, var(--st2-gold) 0%, var(--st2-red-bright) 50%, var(--st2-gold) 100%);
  box-shadow: 0 0 20px var(--st2-red-bright), 0 0 8px #ffffff;
  z-index: 6;
  transform: translateX(-50%);
  transition: left 1.2s var(--st2-ease-drama);
  pointer-events: none;
}

.st2-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--st2-red-bright) 0%, #a5040d 100%);
  color: var(--st2-white);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 28px rgba(227, 6, 19, 0.8), 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.st2-portal-bar {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background-color: rgba(7, 9, 14, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.st2-portal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--st2-red-bright);
  box-shadow: 0 0 12px var(--st2-red-bright);
  animation: st2-pulse-glow 2.4s ease-in-out infinite;
}

.st2-portal-label {
  font-family: var(--st2-font-heading);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--st2-white);
}

/* 2 thẻ vệ tinh nổi ở tầng Z sâu hơn trên Trạm 1 */
.st2-card-sat {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.75s ease, transform 1.05s var(--st2-ease-drama);
}

.st2-sat-top {
  top: 2%;
  right: 0;
  width: 38%;
  aspect-ratio: 16 / 10;
  z-index: 7;
  transform: translate3d(calc(36px + var(--st2-mx) * 24px), calc(-28px + var(--st2-my) * 18px), 40px) scale(0.9);
}

.st2-scene.is-active .st2-sat-top {
  opacity: 1;
  transform: translate3d(calc(var(--st2-mx) * 24px), calc(var(--st2-my) * 18px), 40px) scale(1);
  transition-delay: 0.34s;
}

.st2-sat-bottom {
  bottom: 2%;
  left: 0;
  width: 34%;
  aspect-ratio: 16 / 10;
  z-index: 8;
  border-bottom: 3px solid var(--st2-red-bright);
  transform: translate3d(calc(-36px + var(--st2-mx) * 30px), calc(32px + var(--st2-my) * 22px), 60px) scale(0.9);
}

.st2-scene.is-active .st2-sat-bottom {
  opacity: 1;
  transform: translate3d(calc(var(--st2-mx) * 30px), calc(var(--st2-my) * 22px), 60px) scale(1);
  transition-delay: 0.44s;
}

/* --- TRẠM 2 RIG: 2 mặt phẳng kiến trúc quy mô xếp tầng 3D --- */
.st2-rig-scale {
  position: relative;
}

.st2-scale-primary {
  position: absolute;
  top: 4%;
  right: 0;
  width: 82%;
  height: 62%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.65);
  z-index: 4;
  opacity: 0;
  transform:
    rotateY(calc(var(--st2-mx) * 5deg - 3deg))
    rotateX(calc(var(--st2-my) * -4deg))
    translate3d(calc(40px + var(--st2-mx) * 14px), calc(-30px + var(--st2-my) * 10px), 0)
    scale(0.93);
  transition: opacity 0.75s ease 0.16s, transform 1s var(--st2-ease-drama) 0.12s;
}

.st2-scene.is-active .st2-scale-primary {
  opacity: 1;
  transform:
    rotateY(calc(var(--st2-mx) * 5deg - 2deg))
    rotateX(calc(var(--st2-my) * -4deg))
    translate3d(calc(var(--st2-mx) * 14px), calc(var(--st2-my) * 10px), 0)
    scale(1);
}

.st2-scale-secondary {
  position: absolute;
  bottom: 4%;
  left: 0;
  width: 58%;
  height: 48%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-bottom: 4px solid var(--st2-red-bright);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.72);
  z-index: 7;
  opacity: 0;
  transform:
    rotateY(calc(var(--st2-mx) * 7deg + 2deg))
    rotateX(calc(var(--st2-my) * -5deg))
    translate3d(calc(-36px + var(--st2-mx) * 26px), calc(44px + var(--st2-my) * 18px), 50px)
    scale(0.92);
  transition: opacity 0.75s ease 0.32s, transform 1.05s var(--st2-ease-drama) 0.28s;
}

.st2-scene.is-active .st2-scale-secondary {
  opacity: 1;
  transform:
    rotateY(calc(var(--st2-mx) * 6deg + 1.5deg))
    rotateX(calc(var(--st2-my) * -4deg))
    translate3d(calc(var(--st2-mx) * 22px), calc(var(--st2-my) * 16px), 0)
    scale(1);
}

.st2-float-ribbon {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 10px;
  background-color: rgba(8, 10, 16, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--st2-gold);
}

.st2-ribbon-red {
  top: auto;
  bottom: 14px;
  left: 14px;
  right: auto;
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.94) 0%, rgba(155, 4, 13, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.32);
  border-left: 3px solid var(--st2-white);
}

.st2-float-ribbon strong {
  font-family: var(--st2-font-heading);
  font-size: clamp(13px, 1.05vw, 16px);
  color: var(--st2-white);
  letter-spacing: 0.03em;
}

.st2-float-ribbon span {
  font-family: var(--st2-font-body);
  font-size: clamp(11.5px, 0.85vw, 13px);
  color: rgba(255, 255, 255, 0.88);
}

/* --- TRẠM 3 RIG: Mở thoáng toàn bầu trời tôn Tòa nhà HUD + 2 khung Nhà ở xã hội nổi ở góc dưới --- */
.st2-rig-legacy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  padding-bottom: 8px;
}

.st2-legacy-pair {
  width: min(94%, 600px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: end;
}

.st2-legacy-window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.68);
  opacity: 0;
  transform:
    rotateY(calc(var(--st2-mx) * 5deg - 2deg))
    translate3d(calc(28px + var(--st2-mx) * 18px), calc(28px + var(--st2-my) * 14px), 0)
    scale(0.94);
  transition: opacity 0.75s ease 0.24s, transform 1s var(--st2-ease-drama) 0.2s;
}

.st2-legacy-sub {
  aspect-ratio: 16 / 11;
  border-bottom: 3px solid var(--st2-red-bright);
  transition-delay: 0.32s;
}

.st2-scene.is-active .st2-legacy-window {
  opacity: 1;
  transform:
    rotateY(calc(var(--st2-mx) * 5deg - 2deg))
    translate3d(calc(var(--st2-mx) * 18px), calc(var(--st2-my) * 14px), 0)
    scale(1);
}

.st2-legacy-monolith {
  width: min(94%, 600px);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(14px, 1.8vh, 20px) clamp(18px, 2vw, 26px);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 12, 18, 0.88) 0%, rgba(28, 8, 12, 0.82) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--st2-red-bright);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
  opacity: 0;
  transform: translate3d(calc(var(--st2-mx) * 24px), calc(36px + var(--st2-my) * 16px), 50px);
  transition: opacity 0.75s ease 0.38s, transform 1s var(--st2-ease-drama) 0.34s;
}

.st2-scene.is-active .st2-legacy-monolith {
  opacity: 1;
  transform: translate3d(calc(var(--st2-mx) * 18px), calc(var(--st2-my) * 12px), 0);
}

.st2-monolith-logo {
  display: block;
  width: auto;
  height: clamp(26px, 3vh, 36px);
  flex-shrink: 0;
  object-fit: contain;
}

.st2-monolith-body {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.st2-monolith-title {
  margin: 0;
  font-family: var(--st2-font-heading);
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 700;
  color: var(--st2-white);
  letter-spacing: 0.02em;
}

.st2-monolith-sub {
  margin: 3px 0 0;
  font-family: var(--st2-font-body);
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--st2-gold);
}

/* ==========================================================================
   THANH ĐIỀU KHIỂN ĐÁY TỐI GIẢN
   ========================================================================== */
.st2-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(10px, 1.4vh, 16px);
  border-top: 1px solid var(--st2-line);
}

.st2-rails {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st2-rail {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.24);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.55s var(--st2-ease), background-color 0.3s ease;
}

.st2-rail:hover {
  background-color: rgba(255, 255, 255, 0.48);
}

.st2-rail.is-active {
  width: 92px;
}

.st2-rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--st2-red-bright) 0%, var(--st2-gold) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.65s var(--st2-ease);
}

.st2-rail.is-active .st2-rail-fill {
  transform: scaleX(1);
}

.st2-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st2-ctrl-btn {
  appearance: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--st2-line-bright);
  background-color: rgba(10, 13, 20, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--st2-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--st2-ease),
    box-shadow 0.25s ease;
}

.st2-ctrl-btn:hover:not(:disabled) {
  background-color: var(--st2-red);
  border-color: var(--st2-red-bright);
  box-shadow: 0 0 22px rgba(227, 6, 19, 0.6);
  transform: translateY(-2px);
}

.st2-ctrl-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.st2-ctrl-btn:focus-visible {
  outline: 2px solid var(--st2-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   LAPTOP 1366x768 & 1440x900
   ========================================================================== */
@media (max-width: 1440px), (max-height: 820px) {
  .st2-shell {
    padding: 16px 36px 14px;
    gap: 12px;
  }

  .st2-header {
    padding-bottom: 10px;
  }

  .st2-col-left {
    gap: 12px;
  }

  .st2-lead {
    line-height: 1.56;
  }

  .st2-portal {
    height: min(60vh, 430px);
  }
}

/* ==========================================================================
   TABLET DỌC (768x1024) & MÀN HÌNH DƯỚI 1080px
   ========================================================================== */
@media (max-width: 1080px) {
  .st2-shell {
    padding: 16px 24px 16px;
    gap: 12px;
  }

  .st2-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 10px;
  }

  .st2-tabs {
    min-width: 0;
    width: 100%;
  }

  .st2-scene {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 42%) minmax(0, 58%);
    gap: 14px;
    align-items: stretch;
  }

  .st2-col-right {
    order: 1;
    perspective: none;
  }

  .st2-scene.is-active .st2-portal,
  .st2-scene.is-active .st2-scale-primary,
  .st2-scene.is-active .st2-scale-secondary,
  .st2-scene.is-active .st2-legacy-window,
  .st2-scene.is-active .st2-legacy-monolith {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .st2-col-left {
    order: 2;
    justify-content: flex-start;
    gap: 10px;
  }

  .st2-heading {
    font-size: clamp(25px, 3.6vw, 36px);
    -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.55);
  }

  .st2-heading br {
    display: none;
  }

  .st2-portal {
    width: 100%;
    height: 100%;
  }

  .st2-card-sat {
    display: none;
  }

  .st2-scale-primary {
    top: 0;
    width: 82%;
    height: 82%;
  }

  .st2-scale-secondary {
    bottom: 0;
    width: 52%;
    height: 62%;
  }

  .st2-rig-legacy {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding-bottom: 0;
    gap: 10px;
  }

  .st2-legacy-pair {
    width: 100%;
    height: 100%;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 10px;
    align-items: stretch;
  }

  .st2-legacy-window {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .st2-legacy-monolith {
    width: 100%;
    padding: 10px 14px;
    gap: 12px;
  }

  .st2-ghost-layer {
    display: none;
  }
}

/* ==========================================================================
   MOBILE DỌC (375x812 & 375x667) — Đầy đủ hiệu ứng điện ảnh, không tràn chữ
   ========================================================================== */
@media (max-width: 600px) {
  .st2-scrim {
    background: linear-gradient(
      180deg,
      rgba(5, 7, 12, 0.84) 0%,
      rgba(7, 10, 16, 0.56) 36%,
      rgba(6, 9, 15, 0.88) 54%,
      rgba(5, 7, 12, 0.96) 100%
    );
  }

  .st2-shell {
    padding: 12px 14px 12px;
    gap: 8px;
  }

  .st2-header {
    gap: 8px;
    padding-bottom: 8px;
  }

  .st2-brand {
    gap: 10px;
  }

  .st2-logo {
    height: 22px;
  }

  .st2-brand-beam {
    height: 22px;
  }

  .st2-title {
    font-size: 16px;
    letter-spacing: 0.05em;
  }

  .st2-subtitle {
    margin-top: 2px;
    font-size: 10.5px;
  }

  .st2-tabs {
    padding: 3px;
  }

  .st2-tab-pill {
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 3);
  }

  .st2-tab {
    padding: 7px 4px;
    font-size: 9.8px;
    line-height: 1.15;
    gap: 0;
  }

  .st2-tab-dot {
    display: none;
  }

  .st2-scene {
    grid-template-rows: minmax(156px, 34%) minmax(0, 66%);
    gap: 10px;
  }

  .st2-eyebrow {
    display: none;
  }

  .st2-col-left {
    gap: 8px;
  }

  .st2-heading {
    font-size: 22px;
  }

  .st2-mega-stat {
    padding: 7px 14px;
    gap: 8px;
    border-radius: 10px;
  }

  .st2-mega-num {
    font-size: 36px;
  }

  .st2-mega-num-wide {
    font-size: 32px;
  }

  .st2-mega-prefix,
  .st2-mega-unit {
    font-size: 14px;
  }

  .st2-mega-sub {
    font-size: 11px;
  }

  .st2-lead {
    font-size: 13px;
    line-height: 1.46;
  }

  .st2-lead-compact {
    font-size: 12px;
    line-height: 1.4;
  }

  .st2-chips {
    gap: 5px;
  }

  .st2-chip {
    padding: 4px 10px;
    font-size: 11px;
  }

  .st2-kpi-grid {
    gap: 7px;
  }

  .st2-kpi-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .st2-kpi-trio .st2-kpi-card {
    padding: 6px 7px;
  }

  .st2-kpi-trio .st2-kpi-num {
    font-size: 16.5px;
  }

  .st2-kpi-trio .st2-kpi-affix {
    font-size: 9.5px;
  }

  .st2-kpi-trio .st2-kpi-label {
    font-size: 10px;
  }

  .st2-kpi-card {
    padding: 8px 10px;
    border-radius: 9px;
    gap: 2px;
  }

  .st2-kpi-num {
    font-size: 21px;
  }

  .st2-kpi-affix,
  .st2-kpi-label {
    font-size: 11px;
  }

  .st2-pillars {
    gap: 6px;
  }

  .st2-pillar-card {
    padding: 8px 12px;
    gap: 10px;
  }

  .st2-pillar-bar {
    height: 16px;
  }

  .st2-pillar-text {
    font-size: 12.5px;
  }

  .st2-portal {
    border-radius: 12px;
  }

  .st2-compare-handle {
    width: 30px;
    height: 30px;
  }

  .st2-portal-bar {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    gap: 6px;
  }

  .st2-portal-label {
    font-size: 10.5px;
  }

  .st2-scale-primary {
    width: 84%;
    height: 82%;
    border-radius: 12px;
  }

  .st2-scale-secondary {
    width: 54%;
    height: 62%;
    border-radius: 10px;
  }

  .st2-float-ribbon {
    right: 8px;
    top: 8px;
    padding: 5px 9px;
  }

  .st2-ribbon-red {
    left: 8px;
    bottom: 8px;
    right: auto;
    top: auto;
  }

  .st2-float-ribbon strong {
    font-size: 11px;
  }

  .st2-float-ribbon span {
    font-size: 9.5px;
  }

  .st2-rig-legacy {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
  }

  .st2-legacy-pair {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
  }

  .st2-legacy-window {
    display: block;
    border-radius: 10px;
  }

  .st2-legacy-window .st2-card-tag {
    left: 6px;
    bottom: 6px;
    padding: 3px 8px;
    font-size: 9.5px;
  }

  .st2-legacy-monolith {
    width: 100%;
    padding: 8px 10px;
    gap: 10px;
    border-radius: 10px;
  }

  .st2-monolith-logo {
    height: 18px;
  }

  .st2-monolith-body {
    padding-left: 10px;
  }

  .st2-monolith-title {
    font-size: 13px;
  }

  .st2-monolith-sub {
    font-size: 11px;
  }

  .st2-footer {
    padding-top: 8px;
  }

  .st2-rail {
    width: 28px;
  }

  .st2-rail.is-active {
    width: 56px;
  }

  .st2-ctrl-btn {
    width: 34px;
    height: 34px;
  }
}

/* Mobile ngắn (iPhone SE 375x667) */
@media (max-width: 600px) and (max-height: 700px) {
  .st2-shell {
    padding: 8px 12px;
    gap: 6px;
  }

  .st2-subtitle {
    display: none;
  }

  .st2-scene {
    grid-template-rows: minmax(126px, 30%) minmax(0, 70%);
    gap: 7px;
  }

  .st2-col-left {
    gap: 6px;
  }

  .st2-heading {
    font-size: 19px;
  }

  .st2-mega-stat {
    padding: 5px 10px;
  }

  .st2-mega-num {
    font-size: 28px;
  }

  .st2-lead {
    font-size: 12px;
    line-height: 1.38;
  }

  .st2-lead-compact {
    font-size: 11px;
    line-height: 1.34;
  }

  .st2-col-dense .st2-chips {
    display: none;
  }

  .st2-chip {
    padding: 3px 8px;
    font-size: 10.5px;
  }

  .st2-kpi-card {
    padding: 6px 8px;
  }

  .st2-kpi-num {
    font-size: 18px;
  }

  .st2-pillar-card {
    padding: 6px 10px;
  }

  .st2-pillar-text {
    font-size: 11.5px;
  }

  .st2-ctrl-btn {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   ĐIỆN THOẠI XOAY NGANG: Xếp dọc, cuộn bình thường
   ========================================================================== */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 960px) {
  .st2-section {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .st2-bg-stage,
  .st2-particles,
  .st2-ghost-layer,
  .st2-tabs,
  .st2-footer {
    display: none;
  }

  .st2-shell {
    height: auto;
    padding: 20px 24px 32px;
    gap: 20px;
  }

  .st2-stage {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .st2-scene {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--st2-line);
  }

  .st2-scene * {
    opacity: 1 !important;
    transform: none !important;
  }

  .st2-portal,
  .st2-scale-primary,
  .st2-legacy-window {
    position: relative;
    inset: auto;
    width: 100%;
    height: 220px;
  }

  .st2-scale-secondary,
  .st2-card-sat {
    display: none;
  }
}

/* ==========================================================================
   TÔN TRỌNG prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .st2-section,
  .st2-section * {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .st2-bg-slide {
    clip-path: none !important;
  }

  .st2-bg-img,
  .st2-portal,
  .st2-scale-primary,
  .st2-scale-secondary,
  .st2-card-sat,
  .st2-legacy-window,
  .st2-legacy-monolith,
  .st2-heading,
  .st2-eyebrow,
  .st2-mega-stat,
  .st2-lead,
  .st2-chip,
  .st2-kpi-card,
  .st2-pillar-card,
  .st2-ghost-word {
    transform: none !important;
  }

  .st2-compare-after {
    clip-path: inset(0 0 0 42%) !important;
  }

  .st2-compare-beam {
    left: 42% !important;
  }
}
