/* ==========================================================================
   AITOMATE · PROTOTYPE v10 (GALLERY WHITE REFINED EDITION)
   - Global 60/120fps Inertial Wheel Scroll Smoothness (Zero Stutter)
   - Stage 1A: Pure Hero (No cursor trail, tight metallic hover, bottom-center statement,
               zero foggy scroll wash over AITOMATE)
   - Stage 1B: 100vw × 100vh Full-Bleed Suit Robot S2 + Mainframe Mouse-Scrub +
               Soft Mist Veil + Tight-Radius Hover X-Ray Interior
   - Stage 1C+1D: Slow Feather 3D Card Hover + Lusion Full-Screen Zoom to Water-Ripple
                  Detail Page + 5-Card Elastic Ribbon Pull Merging Bottom-to-Top into
                  White-Screen 3D Smartphone + Silky White-Blur Zoom to Tab 02
   - Tab 02: Left Image (Top-Right & Bottom-Left Chamfer) + Right Info + Dune Scroll Sync
   - Tab 03: Centered Depth-Layered SẢN PHẨM ⇄ DỰ ÁN Switcher + Centered Dynamic Title
   - ABOUT US: Dark-Locked + Wordmark Morph into "CHÚNG TÔI LÀ AITOMATE" +
               3D Particle Human Face & Particle-to-Text 4 Core Values
   ========================================================================== */

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('./assets/fonts/BeVietnamPro-Regular.woff2') format('woff2'), url('./assets/fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('./assets/fonts/BeVietnamPro-Medium.woff2') format('woff2'), url('./assets/fonts/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('./assets/fonts/BeVietnamPro-SemiBold.woff2') format('woff2'), url('./assets/fonts/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('./assets/fonts/BeVietnamPro-Bold.woff2') format('woff2'), url('./assets/fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('./assets/fonts/BeVietnamPro-ExtraBold.woff2') format('woff2'), url('./assets/fonts/BeVietnamPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ease-dune: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-lusion: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-lusion-zoom: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-petalyx: cubic-bezier(0.77, 0, 0.18, 1);
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-mono: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; /* v10_5a: bỏ chữ máy đánh chữ */
}

/* --------------------------------------------------------------------------
   1. GALLERY WHITE THEME TOKENS (WITH DARK LOCK FOR ABOUT US)
   -------------------------------------------------------------------------- */
html[data-theme="white"] {
  --bg-page: #F5F6F8;
  --bg-surface: #FFFFFF;
  --bg-card: #EAECEF;
  --ink-primary: #0A0B0E;
  --ink-soft: rgba(10, 11, 14, 0.74);
  --ink-muted: rgba(10, 11, 14, 0.46);
  --ink-faint: rgba(10, 11, 14, 0.20);
  --border-bg: rgba(10, 11, 14, 0.085);
  --pill-talk-bg: #0A0B0E;
  --pill-talk-fg: #FFFFFF;
  --pill-menu-bg: #FFFFFF;
  --pill-menu-fg: #0A0B0E;
  --btn-bg: #0A0B0E;
  --btn-fg: #FFFFFF;
  --btn-hover-bg: #1E2430;
  --kinetic-stroke: rgba(10, 11, 14, 0.26);
}

html[data-theme="white"] body.is-about-view {
  --bg-page: #000000;
  --bg-surface: #050608;
  --bg-card: #0B0D12;
  --ink-primary: #FFFFFF;
  --ink-soft: rgba(242, 245, 250, 0.76);
  --ink-muted: rgba(176, 184, 198, 0.50);
  --border-bg: rgba(255, 255, 255, 0.12);
  --pill-talk-bg: #14161D;
  --pill-talk-fg: #FFFFFF;
  --btn-bg: #FFFFFF;
  --btn-fg: #0A0B0E;
  --btn-hover-bg: #E2E8F0;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s var(--ease-dune), color 0.45s var(--ease-dune);
}

body {
  background: var(--bg-page);
  color: var(--ink-primary);
  overflow-x: clip;
  line-height: 1.55;
  transition: background-color 0.45s var(--ease-dune), color 0.45s var(--ease-dune);
}

img, video, svg, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

.page-view[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. GLOBAL BACKDROP, SILKY WHITE-BLUR VEIL, LUSION ZOOM PORTAL & CURSOR
   -------------------------------------------------------------------------- */
#spatialCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#tabTransitionVeil {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  background: #0A0B0E;
  transition: opacity 0.42s var(--ease-dune);
}

#tabTransitionVeil.is-active {
  opacity: 1;
}

/* Silky White + Gentle Gaussian Blur Veil for Phone -> Tab 02 Smooth Portal */
#phoneWhiteBlurVeil {
  position: fixed;
  inset: 0;
  z-index: 84;
  pointer-events: none;
  opacity: var(--wb-op, 0);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.96) 58%,
    rgba(245, 246, 248, 0.94) 100%
  );
  backdrop-filter: blur(var(--wb-blur, 0px));
  -webkit-backdrop-filter: blur(var(--wb-blur, 0px));
  will-change: opacity, backdrop-filter;
}

/* Lusion Our Projects (11-28-44.mp4) · v10.2: cổng phóng to vẽ bằng WebGL (ảnh nhòe theo hướng bay) */
.lusion-portal-transition {
  position: fixed;
  inset: 0;
  z-index: 148;
  pointer-events: none;
  visibility: hidden;
}

.lusion-portal-transition::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lp-bg, #EEF0F5);
  opacity: var(--lp-bg-op, 0);
}

.lusion-portal-transition.is-active {
  visibility: visible;
  pointer-events: auto;
}

.lusion-portal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  z-index: 2;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 160;
  pointer-events: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: #0A0B0E;
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(10, 14, 24, 0.28);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-50%, -50%) scale(0.55);
  transition: opacity 0.24s var(--ease-dune), transform 0.24s var(--ease-dune);
}

body.is-about-view .custom-cursor {
  background: #FFFFFF;
  color: #0A0B0E;
}

.custom-cursor.is-visible {
  opacity: 1;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-50%, -50%) scale(1);
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. LUSION BUTTON SLOT-ROLL TYPOGRAPHY & TACTILE FEEDBACK
   -------------------------------------------------------------------------- */
.roll-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  line-height: 1.48;
  height: 1.48em;
  padding-top: 0.06em;
}

.roll-text > span {
  display: block;
  transform: translate3d(0, 0%, 0);
  transition: transform 0.5s var(--ease-lusion);
}

.roll-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 108%;
  width: 100%;
  white-space: nowrap;
  transform: translate3d(0, 0%, 0);
  transition: transform 0.5s var(--ease-lusion);
}

[data-roll-btn]:hover .roll-text > span,
[data-roll-btn]:focus-visible .roll-text > span,
[data-roll-btn].is-pressed .roll-text > span,
.phone-portal-cta:hover .roll-text > span {
  transform: translate3d(0, -108%, 0);
}

[data-roll-btn]:hover .roll-text::after,
[data-roll-btn]:focus-visible .roll-text::after,
[data-roll-btn].is-pressed .roll-text::after,
.phone-portal-cta:hover .roll-text::after {
  transform: translate3d(0, -105%, 0);
}

[data-roll-btn] {
  transition: transform 0.26s var(--ease-lusion), background 0.28s ease, color 0.28s ease;
}

[data-roll-btn]:active,
[data-roll-btn].is-pressed {
  transform: scale(0.94) !important;
}

.cyber-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform 0.34s var(--ease-dune), background 0.28s ease, color 0.28s ease;
}

.cyber-btn:hover {
  transform: translateY(-2px);
  background: var(--btn-hover-bg);
}

.cyber-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.34s var(--ease-dune);
}

.cyber-btn:hover .btn-arrow {
  transform: translate(4px, -2px);
}

.cyber-btn-compact {
  padding: 11px 22px;
  font-size: 0.76rem;
}

.cyber-btn-hero {
  padding: 18px 38px;
  font-size: 0.92rem;
}

.cyber-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.cyber-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   4. HEADER NAVIGATION (ZERO FOGGY LAYER OVER HERO)
   -------------------------------------------------------------------------- */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 18px clamp(20px, 3.8vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  pointer-events: none;
}

.hud-header > * {
  pointer-events: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 27px;
  width: auto;
}

.tab-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 36px);
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 11, 14, 0.06);
}

body.is-about-view .tab-nav {
  background: rgba(12, 14, 20, 0.68);
  border-color: rgba(255, 255, 255, 0.10);
}

.tab-nav.is-dimmed-on-subpage {
  opacity: 0.72;
}

.tab-link {
  position: relative;
  padding: 5px 0;
  display: inline-flex;
  align-items: baseline;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab-link .tab-idx {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  opacity: 0.65;
  margin-right: 6px;
}

.tab-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.42s var(--ease-dune);
}

.tab-link:hover,
.tab-link.is-active {
  color: var(--ink-primary);
}

.tab-link.is-active::after,
.tab-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.lusion-header-cluster {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pill-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.pill-talk {
  background: var(--pill-talk-bg);
  color: var(--pill-talk-fg);
}

.pill-talk:hover {
  transform: translateY(-1px);
  background: #2563EB;
  color: #FFFFFF;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.28s var(--ease-lusion);
}

.pill-talk:hover .pill-dot {
  transform: scale(1.45);
}

.pill-menu {
  background: var(--pill-menu-bg);
  color: var(--pill-menu-fg);
  box-shadow: 0 8px 24px rgba(10, 14, 24, 0.12);
}

.pill-colon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.36s var(--ease-lusion);
}

.pill-menu:hover .pill-colon,
.pill-menu[aria-expanded="true"] .pill-colon {
  transform: rotate(90deg);
}

.pill-colon i {
  display: block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #0A0B0E;
}

.lusion-menu-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 256px;
  padding: 16px 14px;
  border-radius: 20px;
  background: #FFFFFF;
  color: #0A0B0E;
  box-shadow: 0 28px 72px rgba(10, 14, 24, 0.24);
  border: 1px solid rgba(10, 11, 14, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.32s var(--ease-dune),
    transform 0.36s var(--ease-dune),
    visibility 0.32s;
}

.lusion-menu-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-card-item {
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #0A0B0E;
  text-align: left;
  cursor: pointer;
  transition: background 0.26s var(--ease-lusion), padding-left 0.26s var(--ease-lusion);
}

.menu-card-item.is-sub {
  font-size: 0.9rem;
  color: rgba(10, 11, 14, 0.78);
}

.menu-card-item:hover,
.menu-card-item:focus-visible {
  background: #ECEFF8;
}

.menu-item-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-arrow {
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.24s ease, transform 0.26s var(--ease-lusion);
}

.menu-card-item:hover .menu-arrow {
  opacity: 1;
  transform: translateX(0);
}

.menu-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0A0B0E;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.menu-card-item.is-current .menu-active-dot {
  opacity: 1;
  transform: scale(1);
}

.menu-card-divider {
  height: 1px;
  background: rgba(10, 11, 14, 0.08);
  margin: 6px 10px;
}

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY & REVEAL UTILITIES
   -------------------------------------------------------------------------- */
.display-xl {
  font-size: clamp(2.6rem, 5.8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.display-lg {
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.display-md {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.lead-clean {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: rgba(240, 243, 248, 0.82);
  max-width: 64ch;
}

.section-space {
  position: relative;
  width: 100%;
  padding-inline: clamp(22px, 5vw, 80px);
}

.fx-optical {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1.15s var(--ease-dune), transform 1.15s var(--ease-dune);
}
.fx-optical.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fx-mask-hero {
  overflow: hidden;
  padding-block: 0.05em;
}
.fx-mask-hero > .hero-word-inner {
  display: inline-block;
  position: relative;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.22s var(--ease-dune) 0.08s;
}
.fx-mask-hero.in-view > .hero-word-inner {
  transform: translate3d(0, 0%, 0);
}

[data-scroll-media] {
  transform: translate3d(0, var(--sm-y, 0px), 0) scale(var(--sm-scale, 1));
  opacity: var(--sm-op, 1);
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   6A. STAGE 1A · HERO SCREEN 1 (CLEAN, TIGHT HOVER LENS, BOTTOM-CENTER CAPTION,
       NO BLURRY OVERLAY ON SCROLL)
   -------------------------------------------------------------------------- */
.hero-typo-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px clamp(20px, 4vw, 64px) 76px;
  overflow: hidden;
}

.hero-typo-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(16px, 2.4vh, 28px);
  transform: translate3d(0, var(--hero-drift-y, 0px), 0);
  will-change: transform;
}

.hero-slogan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 0.95vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(10, 11, 14, 0.76);
}

.slogan-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.65);
}

.hero-monument-word {
  position: relative;
  font-size: clamp(4.2rem, 15.8vw, 15.6rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.036em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  cursor: default;
}

.monument-layer-ink {
  display: block;
  color: #0A0B0E;
}

/* Tight, small-radius Metallic Hover Spotlight ONLY (NO scroll wash!) */
.monument-layer-metal-hover {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background-image: linear-gradient(
    118deg,
    #0F172A 0%,
    #64748B 18%,
    #F8FAFC 34%,
    #334155 48%,
    #E2E8F0 64%,
    #1E293B 82%,
    #94A3B8 100%
  );
  background-size: 200% 200%;
  background-position: var(--metal-bg-x, 50%) var(--metal-bg-y, 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  mask-image: radial-gradient(
    circle var(--word-r, 0px) at var(--word-x, -999px) var(--word-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 54%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--word-r, 0px) at var(--word-x, -999px) var(--word-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 54%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-bottom-caption {
  position: absolute;
  left: clamp(20px, 4vw, 60px);
  right: clamp(20px, 4vw, 60px);
  bottom: clamp(64px, 12vh, 132px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.hero-bottom-statement {
  font-size: clamp(0.86rem, 1.18vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-primary);
  /* v10.1: tự hiện ngay khi vào trang (trước đây kẹt opacity 0 tới khi cuộn) */
  opacity: 0;
  animation: heroStatementIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes heroStatementIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bottom-statement { animation: none; opacity: 1; }
}

/* v10_5b (Opus) · câu giới thiệu + nút ngay dưới chữ AITOMATE */
.hero-lead {
  max-width: 34ch;
  margin: clamp(6px, 1.4vh, 18px) 0 0;
  font-size: clamp(1.08rem, 1.55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-primary, #0A0B0E);
  text-wrap: balance;
  opacity: 0;
  animation: heroStatementIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.hero-cta {
  margin-top: clamp(4px, 1vh, 12px);
  text-transform: none;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: heroStatementIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-lead, .hero-cta { animation: none; opacity: 1; }
}
.hero-lead-strong {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .hero-lead { font-size: 1.05rem; max-width: 30ch; }
}

/* --------------------------------------------------------------------------
   6B. STAGE 1B · FULL-BLEED 100VW × 100VH SUIT ROBOT S2 + MIST + TIGHT X-RAY
       - Zero white side borders (full viewport edge-to-edge like Dune!)
       - Soft atmospheric frosted mist like Image 3
       - Very small hover X-Ray circle (~48px) revealing inner mechanical structure
   -------------------------------------------------------------------------- */
.robot-scroll-track {
  position: relative;
  width: 100%;
  height: 240vh;
  z-index: 4;
}

.robot-sticky-stage {
  position: sticky;
  top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  overflow: hidden;
  background: #E7E9EC;
}

.robot-fullbleed-frame {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translate3d(0, var(--rob-stage-y, 0px), 0) scale(var(--rob-scale, 1));
  transform-origin: 50% 50%;
  filter: blur(var(--rob-blur, 0px));
  will-change: transform;
}
.robot-scroll-line {
  position: absolute;
  left: 6vw;
  bottom: 16vh;
  transform: translate3d(0, var(--line-y, 0px), 0);
  z-index: 8;
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-primary);
  white-space: nowrap;
  pointer-events: none;
}
.robot-scroll-line span {
  display: inline-block;
  margin-right: 0.28em;
  opacity: var(--w-op, 0);
  transform: translate3d(0, var(--w-y, 40px), 0);
}
@media (max-width: 720px) {
  .robot-scroll-line {
    left: 5vw;
    font-size: 1.6rem;
    white-space: normal;
    width: 90vw;
  }
}
/* v10.2c · lớp sáng dần về trắng khi cảnh 5 ảnh (nền trắng) trượt lên đè */
.robot-fullbleed-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #F6F7FA;
  opacity: var(--rob-bright, 0);
  pointer-events: none;
}

.robot-video-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #E6E8EB;
}

.robot-scrub-video,
.robot-xray-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(var(--rob-inner-zoom, 1.03)) translate3d(0, var(--rob-pitch-y, 0px), 0);
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

.robot-xray-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* v10.1 · Đèn soi kiểu MotionSites "Cyber Ronin": tâm rõ, mép tan dần 6 nấc.
     Lớp thứ 2 khoét bỏ vùng đầu robot (đầu đang xoay theo chuột, ảnh X-Ray thì đứng yên
     → soi vào đầu sẽ lệch, nhìn như đầu rời cổ). */
  --xray-spot: radial-gradient(
    circle var(--xray-r, 0px) at var(--xray-x, -999px) var(--xray-y, -999px),
    #fff 0%,
    #fff 40%,
    rgba(255, 255, 255, 0.75) 60%,
    rgba(255, 255, 255, 0.4) 75%,
    rgba(255, 255, 255, 0.12) 88%,
    transparent 100%
  );
  --xray-head-cut: radial-gradient(
    ellipse var(--head-rx, 0px) var(--head-ry, 0px) at var(--head-x, -999px) var(--head-y, -999px),
    #fff 0%,
    #fff 72%,
    transparent 100%
  );
  -webkit-mask-image: var(--xray-spot), var(--xray-head-cut);
  -webkit-mask-composite: source-out;
  mask-image: var(--xray-spot), var(--xray-head-cut);
  mask-composite: subtract;
}

.robot-xray-img {
  /* Lớp trong sáng nhẹ lên để nổi khối cơ khí, giống ảnh "lộ" của mẫu */
  filter: saturate(1.15) contrast(1.06);
}

.robot-xray-lens-ring {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.25), inset 0 0 14px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  opacity: var(--xray-ring-op, 0);
  transform: translate3d(var(--xray-x, -999px), var(--xray-y, -999px), 0) translate(-50%, -50%) scale(var(--xray-ring-scale, 0.6));
  transition: opacity 0.22s ease;
  will-change: transform, opacity;
  display: none; /* v10.1: mẫu MotionSites không có vòng kính, chỉ có đèn soi mép mềm */
}

/* Soft Atmospheric Mist Veil inspired by Batch 1 Image 3 */
.robot-mist-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    /* 08/11: sương giảm còn ~½ để video nét không bị mờ */
    radial-gradient(ellipse 46% 78% at 14% 56%, rgba(244, 246, 249, 0.36) 0%, rgba(244, 246, 249, 0.14) 54%, rgba(244, 246, 249, 0) 100%),
    radial-gradient(ellipse 68% 36% at 50% 98%, rgba(245, 246, 248, 0.41) 0%, rgba(245, 246, 248, 0.13) 56%, rgba(245, 246, 248, 0) 100%),
    linear-gradient(180deg, rgba(245, 246, 248, 0.08) 0%, rgba(245, 246, 248, 0) 22%, rgba(245, 246, 248, 0) 76%, rgba(245, 246, 248, 0.32) 100%);
}

/* --------------------------------------------------------------------------
   6C + 6D. UNIFIED STICKY STAGE: 5 SQUAD CARDS -> LUSION RIBBON PULL-MERGE
            INTO WHITE-SCREEN 3D SMARTPHONE -> WHITE-BLUR PORTAL ZOOM
   -------------------------------------------------------------------------- */
.squad-phone-theater {
  position: relative;
  z-index: 16;
  margin-top: -90vh; /* Slides full-screen smoothly over pinned Robot S2! */
  height: 420vh; /* 08/11 chiều: rút ngắn đoạn 5 thẻ nhập lại vào máy (trước 560vh) */
  background: transparent;
}

.squad-phone-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F7FA 100%);
  opacity: var(--theater-reveal, 1);
}

/* v10.2 · Lớp WebGL vẽ 5 ảnh chảy như dải lụa chất lỏng vào điện thoại (Lusion 11-33-06) */
.squad-ribbon-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9; /* trên cả thẻ lẫn điện thoại khi đang chảy */
  pointer-events: none;
}

.squad-stage-inner {
  position: relative;
  z-index: 8; /* 5 ảnh nằm trước điện thoại cho tới khi chảy vào */
  pointer-events: none;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-split-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 5.2vh, 62px);
  transform: translate3d(0, var(--squad-head-y, 0px), 0);
  opacity: var(--squad-head-op, 1);
  will-change: transform, opacity;
}

.portal-word-left {
  transform: translate3d(var(--portal-shift-l, 0px), 0, 0);
}
.portal-word-right {
  transform: translate3d(var(--portal-shift-r, 0px), 0, 0);
}

.squad-roles-deck {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

/* Outer wrapper handles Scroll Rise + Lusion Elastic Merge into Smartphone Slots */
.squad-role {
  position: relative;
  cursor: none;
  outline: none;
  perspective: 960px;
  transform-origin: center center;
  transform:
    translate3d(var(--card-x, 0px), var(--card-y, 0px), 0)
    skewX(var(--card-skew-x, 0deg))
    skewY(var(--card-skew-y, 0deg))
    scaleX(var(--card-sx, 1))
    scaleY(var(--card-sy, 1));
  opacity: var(--card-op, 1);
  pointer-events: var(--card-pe, auto);
  will-change: transform, opacity;
}

@media (pointer: coarse) {
  .squad-role {
    cursor: pointer;
  }
}

/* Inner 3D card handles feather-slow, gentle 3D hover tilt & lift in place */
.squad-role-card3d {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius, 16px);
  overflow: hidden;
  background: #080A0F;
  border: 1px solid rgba(10, 11, 14, 0.10);
  transform-style: preserve-3d;
  transform:
    translate3d(0, var(--hover-y, 0px), 0)
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg))
    scale(var(--hover-scale, 1));
  box-shadow: 0 14px 36px rgba(10, 14, 24, 0.10);
  transition: box-shadow 0.9s var(--ease-out-expo);
  will-change: transform;
}

.squad-role:hover .squad-role-card3d,
.squad-role:focus-visible .squad-role-card3d {
  box-shadow: 0 28px 60px rgba(10, 14, 24, 0.22);
}

.squad-role-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
}

.squad-role-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.58) contrast(1.10);
  transform: translate3d(var(--img-px, 0px), var(--img-py, 0px), 0) scale(1.06);
  transition: filter 0.95s var(--ease-out-expo);
  will-change: transform, filter;
}

.squad-role:hover .squad-role-bg img,
.squad-role:focus-visible .squad-role-bg img {
  filter: grayscale(0%) brightness(0.92) contrast(1.04) saturate(1.12);
}

.squad-role-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.86) 100%);
}

.squad-role-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--sheen-op, 0);
  background: radial-gradient(
    circle 180px at var(--sheen-x, 50%) var(--sheen-y, 50%),
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0) 75%
  );
  transition: opacity 0.65s ease;
}

.squad-role-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 360px;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  transform: translateZ(18px);
}

.squad-role-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.74);
}

.squad-role-name {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

/* 3D WHITE-SCREEN SMARTPHONE LAYER */
.phone-stage-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.phone-stage-layer.is-interactive {
  pointer-events: auto;
}

.phone-ambient-halo {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.11) 0%, rgba(148, 163, 184, 0.08) 46%, rgba(245, 246, 248, 0) 72%);
  opacity: var(--ph-op, 0);
  pointer-events: none;
}

.phone-stage-perspective {
  position: relative;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-3d-rig {
  position: relative;
  width: 308px;
  height: 620px;
  transform-style: preserve-3d;
  transform:
    translate3d(0, var(--ph-y, 40px), 0)
    rotateX(var(--ph-rx, 14deg))
    rotateY(var(--ph-ry, -36deg))
    rotateZ(var(--ph-rz, -4deg))
    scale3d(var(--ph-scale, 0.84), var(--ph-scale, 0.84), 1);
  opacity: var(--ph-op, 0);
  filter: blur(var(--ph-blur, 0px));
  will-change: transform, opacity, filter;
}

.phone-3d-front {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 36%, #64748B 72%, #0F172A 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    0 30px 76px rgba(10, 14, 24, 0.22);
  transform: translateZ(9px);
  backface-visibility: hidden;
}

.phone-3d-back {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(145deg, #E2E8F0 0%, #94A3B8 52%, #334155 100%);
  transform: rotateY(180deg) translateZ(9px);
  backface-visibility: hidden;
}

.phone-3d-edge {
  position: absolute;
  background: linear-gradient(180deg, #CBD5E1 0%, #475569 50%, #E2E8F0 100%);
}
.phone-3d-edge.edge-left   { top: 38px; bottom: 38px; left: -9px; width: 18px; transform: rotateY(-90deg); }
.phone-3d-edge.edge-right  { top: 38px; bottom: 38px; right: -9px; width: 18px; transform: rotateY(90deg); }
.phone-3d-edge.edge-top    { left: 38px; right: 38px; top: -9px; height: 18px; transform: rotateX(90deg); }
.phone-3d-edge.edge-bottom { left: 38px; right: 38px; bottom: -9px; height: 18px; transform: rotateX(-90deg); }

.phone-dynamic-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 86px;
  height: 23px;
  border-radius: 999px;
  background: #0A0B0E;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
}

.island-cam {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #38BDF8 0%, #0F172A 75%);
}

/* Crisp White Inner Screen so the Smartphone is unmistakably clear! */
.phone-screen-surface.is-white-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 65%, #F1F5F9 100%);
  color: #0A0B0E;
  padding: 56px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.phone-screen-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, #000 24%, transparent 84%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 24%, transparent 84%);
  pointer-events: none;
}

/* 5 Stacked Merge Slots inside the White Phone (Card 1 bottom -> Card 5 top) */
.phone-merge-slots {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 86px;
  bottom: 58px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  opacity: var(--slots-op, 0);
  pointer-events: none;
}

.phone-slot {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: rgba(241, 245, 249, 0.66);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 10px 7px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(15, 23, 42, 0.42);
}

/* Ảnh đã chảy vào ở lại làm chính mặt điện thoại (không biến thành ô xám) */
.phone-slot-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: var(--slot-fill, 0);
}

.phone-slot span {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.phone-slot.is-docked {
  border-color: transparent;
  background: transparent;
  color: #FFFFFF;
}

.phone-slot.is-docked span {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.phone-portal-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.phone-portal-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.14);
  animation: portalRingPulse 4.6s ease-in-out infinite;
}
.phone-portal-rings span:nth-child(1) { width: 150px; height: 150px; animation-delay: 0s; }
.phone-portal-rings span:nth-child(2) { width: 222px; height: 222px; animation-delay: 0.9s; }
.phone-portal-rings span:nth-child(3) { width: 296px; height: 296px; animation-delay: 1.8s; }

@keyframes portalRingPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.28; }
  50% { transform: scale(1.05); opacity: 0.68; }
}

.phone-screen-top {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 6px;
}

.phone-os-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(15, 23, 42, 0.56);
}

.phone-signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.65);
}

.phone-screen-center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 18px 14px;
  border-radius: 26px;
  background: none;
  opacity: var(--ph-ui-op, 1);
  transform: scale(var(--ph-ui-scale, 1));
  will-change: opacity, transform;
}

.phone-headline {
  font-size: 1.36rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #FFFFFF; /* nằm trên 5 ảnh của mặt điện thoại */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.phone-portal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  outline: none;
  padding: 13px 20px;
  border-radius: 20px;
  background: #0A0B0E;
  color: #FFFFFF;
  border: 1px solid #0A0B0E;
  box-shadow: 0 14px 32px rgba(10, 14, 24, 0.16);
  transition: transform 0.34s var(--ease-dune), background 0.3s ease, box-shadow 0.3s ease;
}

.phone-portal-cta:hover,
.phone-portal-cta:focus-visible {
  transform: translateY(-4px) scale(1.04);
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.32);
}

.phone-cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease-dune), background 0.3s ease;
}

.phone-portal-cta:hover .phone-cta-icon {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg) scale(1.08);
}

.phone-cta-icon svg {
  width: 24px;
  height: 24px;
}

.phone-cta-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phone-home-bar {
  position: relative;
  z-index: 3;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
}

.phone-floor-shadow {
  margin-top: 24px;
  width: 220px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 14, 24, 0.18) 0%, rgba(10, 14, 24, 0) 72%);
  transform: scaleX(var(--ph-shadow, 0.7));
  opacity: var(--ph-op, 0);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6E. DEDICATED ROLE DETAIL PAGE (#view-role-detail) + WATER RIPPLE STAGE
   -------------------------------------------------------------------------- */
.role-detail-view {
  position: relative;
  background: var(--rd-bg, #EEF0F5);
  color: #0A0B0E;
}

/* Thanh trên: quay lại + 5 vai trò, luôn nổi khi trượt ngang */
.rd-topbar {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  pointer-events: none;
}
.rd-topbar > * { pointer-events: auto; }

.role-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #0A0B0E;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.role-back-btn:hover {
  background: #2563EB;
}

.role-detail-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.role-tab-pill {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.07);
  color: rgba(10, 11, 14, 0.62);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.role-tab-pill:hover {
  background: rgba(10, 11, 14, 0.14);
  color: #0A0B0E;
}

.role-tab-pill.is-active {
  background: #0A0B0E;
  color: #FFFFFF;
}

/* Cuộn dọc → dải ngang trượt (chiều cao do JS đặt = 1 màn + quãng trượt) */
.rd-scroll {
  position: relative;
  height: 300vh;
}

.rd-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.rd-water-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.rd-strip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4vw;
  padding-left: clamp(22px, 5vw, 80px);
  padding-right: 6vw;
  will-change: transform;
}

.rd-text {
  flex: 0 0 34vw;
  max-width: 560px;
  padding-top: 8vh;
}

.role-rect-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(10, 11, 14, 0.62);
  margin-bottom: 18px;
}

.role-detail-title {
  font-size: clamp(2.6rem, 4.6vw, 4.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #0A0B0E;
  margin-bottom: 24px;
}

.role-detail-desc {
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgba(10, 11, 14, 0.74);
  margin-bottom: 20px;
  max-width: 46ch;
}

.role-detail-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 48ch;
}

.role-detail-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(10, 11, 14, 0.8);
}

.role-detail-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0A0B0E;
}

.rd-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.rd-scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(10, 11, 14, 0.5);
}

.rd-frames {
  display: flex;
  align-items: center;
  gap: 4vw;
  padding-top: 8vh;
}

.rd-frame {
  flex: 0 0 auto;
  margin: 0;
  cursor: none;
}

/* Khung rỗng: WebGL vẽ ảnh + mặt nước đúng vị trí khung này */
.rd-frame-box {
  width: min(54vw, 100vh * 0.94);
  height: 62vh;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.rd-frame figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: rgba(10, 11, 14, 0.72);
}

.rd-frame-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0A0B0E;
}

.rd-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4vh;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.rd-counter {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.rd-progress-bar {
  flex: 0 0 160px;
  height: 2px;
  background: rgba(10, 11, 14, 0.14);
  overflow: hidden;
}

.rd-progress-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: #0A0B0E;
  transform-origin: left center;
  transform: scaleX(0.001);
}

/* Nội dung trồi lên khi cổng phóng to vừa tan */
.role-detail-view.is-entering .rd-text > *,
.role-detail-view.is-entering .rd-frame figcaption {
  animation: rdRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.role-detail-view.is-entering .rd-text > :nth-child(2) { animation-delay: 0.06s; }
.role-detail-view.is-entering .rd-text > :nth-child(3) { animation-delay: 0.12s; }
.role-detail-view.is-entering .rd-text > :nth-child(4) { animation-delay: 0.18s; }
.role-detail-view.is-entering .rd-text > :nth-child(5) { animation-delay: 0.24s; }
@keyframes rdRise {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .rd-topbar { top: 72px; }
  .rd-text { flex-basis: 86vw; }
  .rd-frame-box { width: 82vw; height: 52vh; }
}

/* --------------------------------------------------------------------------
   7. TAB 02 · HỆ THỐNG AGENT
      - Left: Image Banner with TOP-RIGHT & BOTTOM-LEFT diagonal cuts!
      - Right: Text Info (//1, Title, Subtitle, Cue)
      - Slow, smooth 1:1 scroll-synchronized glide like Dune 11-43-50.mp4
   -------------------------------------------------------------------------- */
.system-section {
  position: relative;
  z-index: 17; /* v10.1: nổi trên đuôi màn điện thoại để không còn ~1 màn trắng trống */
  margin-top: -54vh;   /* v10_5a: thu khoảng trắng trước tiêu đề (trước -38vh) */
  background: var(--bg-page);
  padding-block: 4vh 14vh;
}

.system-header {
  max-width: 1340px;
  margin: 0 auto 28px;
}

.service-bars-list {
  max-width: 1340px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-bar-row {
  border-top: 1px solid var(--border-bg);
  padding-top: 32px;
  cursor: none;
  outline: none;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.92fr);
  gap: clamp(24px, 3.6vw, 56px);
  align-items: center;
}

@media (pointer: coarse) {
  .service-bar-row {
    cursor: pointer;
  }
}

.service-bar-banner-wrap {
  width: 100%;
  overflow: hidden;
  /* v10.1 · Kiểu Dune 11-43-50: khung đứng yên, ảnh MỞ RỘNG DẦN từ mép trái theo độ cuộn (không trượt, không mờ) */
  clip-path: inset(0 calc((1 - var(--bar-reveal, 1)) * 100%) 0 0);
  will-change: clip-path;
}

/* Cut ONLY Top-Right and Bottom-Left corners (matches Batch 2 Image 2!) */
.service-bar-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 6.8;
  min-height: 208px;
  overflow: hidden;
  background: #07080B;
  clip-path: polygon(
    0 0,
    calc(100% - 36px) 0,
    100% 36px,
    100% 100%,
    36px 100%,
    0 calc(100% - 36px)
  );
  transform: translate3d(var(--bar-tx, -76%), 0, 0) scale(var(--bar-scale, 1));
  opacity: var(--bar-op, 0);
  will-change: transform, opacity;
}

.service-bar-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.12) brightness(0.92);
  transform: scale(1.03);
  transition: transform 0.88s var(--ease-dune), filter 0.55s ease;
}

.service-bar-row:hover .service-bar-banner img,
.service-bar-row:focus-visible .service-bar-banner img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(1.05) saturate(1.20) brightness(1.04);
}

.service-bar-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.service-bar-idx {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.service-bar-title {
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-primary);
  transition: transform 0.45s var(--ease-dune);
}

.service-bar-row:hover .service-bar-title {
  transform: translateX(6px);
}

.service-bar-sub {
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 40ch;
}

.service-bar-cue {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #2563EB;
  transition: transform 0.35s var(--ease-dune);
}

.service-bar-row:hover .service-bar-cue {
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   7B. 4-STEP PETALYX HOVER ACCORDION MODAL
   -------------------------------------------------------------------------- */
.pipeline-board-modal {
  position: fixed;
  inset: 0;
  z-index: 135;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.6vw, 36px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-dune);
}

.pipeline-board-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pipeline-board-shell {
  width: min(1360px, 100%);
  max-height: 92vh;
  background: #050608;
  color: #FFFFFF;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
}

.pipeline-board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pipeline-board-title {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.pipeline-board-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pipeline-quick-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pipe-switch-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.pipe-switch-btn.is-active,
.pipe-switch-btn:hover {
  color: #0A0B0E;
  background: #FFFFFF;
}

.petalyx-track {
  position: relative;
  width: 100%;
  height: clamp(390px, 54vh, 530px);
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.petalyx-panel {
  position: relative;
  flex: 0 0 clamp(78px, 8.2vw, 132px);
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  outline: none;
  transition: flex-grow 0.9s var(--ease-petalyx), background 0.4s ease;
}

.petalyx-panel:last-child { border-right: none; }
.petalyx-panel.is-active {
  flex-grow: 1;
  cursor: default;
  background: rgba(255, 255, 255, 0.025);
}

.petalyx-panel-in {
  position: absolute;
  left: clamp(14px, 1.6vw, 26px);
  bottom: 24px;
  top: 24px;
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.2vw, 34px);
  width: max-content;
}

.petalyx-num {
  font-size: clamp(148px, 28vh, 270px);
  font-weight: 600;
  line-height: 0.74;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.26);
  user-select: none;
  transition: color 0.5s ease;
}

.petalyx-panel.is-active .petalyx-num { color: #FFFFFF; }

.petalyx-step {
  position: relative;
  width: min(450px, 34vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 4px;
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.3s, transform 0.4s;
}

.petalyx-panel.is-active .petalyx-step {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s 0.28s, transform 0.85s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.petalyx-step-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0B0D12;
}
.petalyx-step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.petalyx-step-title {
  font-size: clamp(1.16rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.petalyx-step-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(240, 243, 248, 0.78);
}

.pipeline-board-foot {
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   8. TAB 03 · CENTERED DEPTH-LAYERED "SẢN PHẨM" ⇄ "DỰ ÁN" SWITCHER
      + CURVED 3D CAROUSEL + CENTERED DYNAMIC PROJECT TITLE BELOW
   -------------------------------------------------------------------------- */
.projects-section {
  position: relative;
  z-index: 16;
  background: var(--bg-page);
  padding-block: 12vh 12vh;
}

.work-depth-header {
  max-width: 1280px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 26px;
}

.work-depth-switcher {
  position: relative;
  min-width: min(560px, 92vw);
  height: clamp(112px, 11vw, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.work-depth-tab {
  position: absolute;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition:
    transform 0.68s var(--ease-dune),
    opacity 0.62s var(--ease-dune),
    filter 0.62s var(--ease-dune),
    color 0.45s ease;
}

/* Active function sits crisp & sharp in the foreground center */
.work-depth-tab.is-front {
  z-index: 3;
  color: var(--ink-primary);
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 22%, 0) scale(1);
}

/* v10.1 · Chức năng chưa chọn nằm NGAY PHÍA SAU, nhô lên trên chữ chính (như 2 lớp xếp chồng),
   căn giữa thẳng hàng → không còn cảnh 2 chữ đè lệch nhau trông như lỗi */
.work-depth-tab.is-behind {
  z-index: 1;
  color: var(--ink-primary);
  opacity: 0.2;
  filter: blur(1.4px);
  transform: translate3d(0, -62%, -60px) scale(0.58);
}

.work-depth-tab[data-work-mode="products"].is-behind {
  transform: translate3d(0, -62%, -60px) scale(0.58);
}

.work-depth-tab.is-behind:hover,
.work-depth-tab.is-behind:focus-visible {
  opacity: 0.48;
  filter: blur(0.8px);
}

.cylinder-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(310px, 38vw, 680px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  margin-block: 8px 22px;
}

.cylinder-stage.is-dragging {
  cursor: grabbing;
}

.cylinder-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.cyl-card {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #08090C;
  cursor: none;
  will-change: transform, width, height, clip-path;
  transition: opacity 0.38s ease;
  outline: none;
}

@media (pointer: coarse) {
  .cyl-card { cursor: pointer; }
}

.cyl-card img,
.cyl-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: grayscale(100%) contrast(1.10) brightness(0.88);
  transition: transform 0.68s var(--ease-dune), filter 0.42s ease;
  pointer-events: none;
  user-select: none;
}

.cyl-card.is-color-active img,
.cyl-card.is-color-active video {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(1.04) saturate(1.18) brightness(1.05);
}

/* Centered Dynamic Title Directly Below Carousel */
.cylinder-center-caption {
  max-width: 960px;
  margin: 4px auto 26px;
  min-height: 48px;
  display: flex;
  flex-direction: column; /* v10_5b: giá nằm dưới tên */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cylinder-center-title {
  font-size: clamp(1.25rem, 2.05vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-primary);
  transition: opacity 0.22s ease, transform 0.32s var(--ease-dune);
}

/* v10_5b (Opus) · giá dưới tên sản phẩm + trong cửa sổ chi tiết */
.cylinder-center-caption .cylinder-center-price {
  margin: 8px 0 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 500;
  color: var(--ink-primary);
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}
.modal-price {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cylinder-center-title.is-hopping {
  opacity: 0.25;
  transform: translateY(7px);
}

.kinetic-bridge {
  position: relative;
  padding-block: 5vh 2vh;
  overflow: hidden;
}

.kinetic-line {
  white-space: nowrap;
  font-size: clamp(2.2rem, 5.1vw, 4.7rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.kinetic-line.is-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--kinetic-stroke);
}

.kinetic-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.kinetic-chunk {
  display: inline-block;
  padding-right: 12px;
}
.kinetic-track-left  { animation: kineticAutoLeft 28s linear infinite; }
.kinetic-track-right { animation: kineticAutoRight 32s linear infinite; }

@keyframes kineticAutoLeft {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes kineticAutoRight {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.kinetic-sep { opacity: 0.42; margin-inline: 22px; }

/* --------------------------------------------------------------------------
   9. TAB 04 · TƯ VẤN + CYBERPUNK CONSULTATION MODAL
   -------------------------------------------------------------------------- */
.consult-section {
  position: relative;
  z-index: 16;
  background: var(--bg-page);
  padding-block: 14vh 16vh;
}

.consult-cta-stage {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.consult-short-lead {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 48ch;
}

.consult-cta-actions { margin-top: 8px; }

.consult-minimal-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.consult-minimal-meta a:hover { color: var(--ink-primary); }

.cyber-consult-modal {
  position: fixed;
  inset: 0;
  z-index: 142;
  --ink-primary: #0A0B0E;
  background: rgba(10, 11, 14, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s var(--ease-dune);
}
.cyber-consult-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cyber-consult-shell {
  position: relative;
  width: min(680px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(24px, 3.4vw, 40px);
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  border-radius: 22px;
  clip-path: none;
  border: 1px solid rgba(10, 11, 14, 0.08);
  box-shadow: 0 28px 72px rgba(10, 14, 24, 0.14), 0 4px 16px rgba(10, 14, 24, 0.06);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.42s var(--ease-dune);
}
.cyber-consult-modal.is-open .cyber-consult-shell {
  transform: translateY(0) scale(1);
}

.cyber-corner {
  display: none;
}

.cyber-hud-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #38BDF8;
  text-transform: uppercase;
}

.cyber-consult-modal .cyber-hud-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(10, 11, 14, 0.48);
}

.cyber-consult-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.cyber-consult-title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 4px;
  color: var(--ink-primary);
}

.cyber-consult-modal .modal-close {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.05);
  border: 1px solid rgba(10, 11, 14, 0.10);
  transition: background 0.22s ease, border-color 0.22s ease;
}
.cyber-consult-modal .modal-close:hover {
  background: rgba(10, 11, 14, 0.09);
  border-color: rgba(10, 11, 14, 0.24);
}

.cyber-form { display: flex; flex-direction: column; gap: 20px; }
.cyber-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cyber-mode-btn {
  padding: 11px 14px;
  background: #FFFFFF;
  color: rgba(10, 11, 14, 0.68);
  border: 1px solid rgba(10, 11, 14, 0.14);
  border-radius: 999px;
  clip-path: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.cyber-mode-btn.is-selected {
  background: #0A0B0E;
  color: #FFFFFF;
  border-color: #0A0B0E;
}

.cyber-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cyber-field { display: flex; flex-direction: column; gap: 8px; }
.cyber-field label, .cyber-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
}
.cyber-field input, .cyber-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 11, 14, 0.12);
  border-radius: 12px;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.cyber-field input::placeholder, .cyber-field textarea::placeholder {
  color: rgba(10, 11, 14, 0.38);
}
.cyber-field input:focus, .cyber-field textarea:focus {
  border-color: #0A0B0E;
  background: #FFFFFF;
}
.cyber-topic-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cyber-chip {
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  background: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid rgba(10, 11, 14, 0.18);
  border-radius: 999px;
  clip-path: none;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.cyber-chip:hover {
  border-color: #0A0B0E;
}
.cyber-chip.is-selected, .cyber-chip.is-selected:hover {
  background: #0A0B0E;
  color: #FFFFFF;
  border-color: #0A0B0E;
  font-weight: 600;
}
.cyber-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(10, 11, 14, 0.68);
  line-height: 1.5;
}
.cyber-consent input { margin-top: 3px; accent-color: #0A0B0E; }
.form-feedback { font-family: var(--font-sans); font-size: 0.84rem; font-weight: 500; color: var(--ink-primary); min-height: 1.2em; }
.cyber-submit-row { display: flex; justify-content: flex-end; }
.cyber-btn-submit {
  background: #0A0B0E;
  color: #FFFFFF;
  border-radius: 999px;
  clip-path: none;
  font-family: var(--font-sans);
}
.cyber-btn-submit:hover { background: #1E2430; color: #FFFFFF; }

/* --------------------------------------------------------------------------
   10. TRANG RIÊNG: ABOUT US (ALWAYS DARK INTERACTIVE BACKGROUND)
       - Part A: Giant AITOMATE morphs & settles into "CHÚNG TÔI LÀ AITOMATE"
       - Part B: 3D Particle Human Face + Particle-to-Text 4 Core Values
   -------------------------------------------------------------------------- */
.about-view {
  position: relative;
  min-height: 100vh;
  background: #000000;
  color: #FFFFFF;
}

#aboutPrismCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.about-content-layer {
  position: relative;
  z-index: 2;
}

.about-horizontal-track {
  position: relative;
  height: 390vh;
  width: 100%;
}

.about-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.about-h-panel {
  position: absolute;
  inset: 0;
  padding: 110px clamp(24px, 5vw, 84px) 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transform: translate3d(var(--hp-x, 0px), 0, 0);
  opacity: var(--hp-op, 0);
  will-change: transform, opacity;
}

.about-h-panel.is-intro {
  justify-content: flex-end;
  align-items: center;
  z-index: 5;
  opacity: var(--hp-op, 1);
}

.about-center-wordmark {
  font-size: clamp(3.8rem, 15.8vw, 15.4rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #FFFFFF;
  user-select: none;
  white-space: nowrap;
  transform-origin: center center;
  transform:
    translate3d(var(--wm-tx, 0px), var(--wm-ty, 0px), 0)
    skewX(var(--wm-skew, 0deg))
    scale(var(--wm-scale, 1));
  opacity: var(--wm-op, 1);
  will-change: transform, opacity;
}

.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.04em;
}

.char-mask > span {
  display: inline-block;
  transform: translate3d(0, 115%, 0);
  transition: transform 1.05s var(--ease-dune);
  transition-delay: calc(var(--ci, 0) * 0.06s);
}

.about-view.is-entered .char-mask > span {
  transform: translate3d(0, 0%, 0);
}

.about-scroll-cue {
  width: 100%;
  margin-top: 28px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.56);
  opacity: var(--cue-op, 1);
}

.about-h-split {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: nowrap;
}

/* v10.2 · Câu lớn: 4 dòng cùng cỡ, dòng 2 là chữ đích AITOMATE */
.about-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.about-line-reveal > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  opacity: 0;
  transition: transform 0.9s var(--ease-dune), opacity 0.5s ease;
}

.about-h-panel.is-landed .about-line-reveal > span {
  transform: none;
  opacity: 1;
}
.about-h-panel.is-landed .about-line-reveal:nth-child(3) > span { transition-delay: 0.08s; }
.about-h-panel.is-landed .about-line-reveal:nth-child(4) > span { transition-delay: 0.16s; }
.about-h-panel.is-landed .about-h-sub.about-line-reveal > span { transition-delay: 0.24s; }

.about-line-target {
  overflow: visible;
}

.about-inline-wordmark {
  display: inline-block;
  color: #FFFFFF;
  font-weight: 800;
  opacity: var(--target-wm-op, 0);
}

/* cùng khuôn với .char-mask của chữ lớn để tâm từng chữ cái khớp khi trao tay */
.about-target-char {
  display: inline-block;
  line-height: 0.86;
  padding-bottom: 0.04em;
  letter-spacing: -0.03em;
}

.about-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 14px;
}

.about-h-headline {
  font-size: clamp(2rem, 4.1vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.about-h-sub {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.86);
}

.about-h-statements {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.about-h-vision { margin-top: 12vh; }

.about-editorial-p {
  font-size: clamp(1.55rem, 2.7vw, 2.55rem);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.about-h-progress {
  position: absolute;
  left: clamp(24px, 5vw, 84px);
  right: clamp(24px, 5vw, 84px);
  bottom: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.about-h-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: #FFFFFF;
  transform-origin: left center;
  transform: scaleX(var(--about-prog, 0));
}

/* v10_5b (Opus) · NGƯỜI SÁNG LẬP: ảnh trái, chữ phải; điện thoại xếp dọc */
.about-founder-bio {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 180px) clamp(24px, 5vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
  color: #FFFFFF;
}
.about-founder-photo { margin: 0; }
.about-founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-founder-text { max-width: 36rem; }
.about-founder-role {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.about-founder-name {
  margin: 0 0 clamp(20px, 3vh, 36px);
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #FFFFFF;
}
.about-founder-text p:not(.about-founder-role) {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: #FFFFFF;
}
@media (max-width: 820px) {
  .about-founder-bio { grid-template-columns: 1fr; padding-block: 88px; }
  .about-founder-photo { max-width: 420px; }
}

/* PART B: 3D GLOWING PARTICLE HUMAN FACE & PARTICLE-TO-TEXT CORE VALUES */
.about-particle-face-track {
  position: relative;
  width: 100%;
  height: 500vh;
  background: #000000;
}

.about-particle-face-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 30% 50%, rgba(16, 36, 84, 0.24) 0%, rgba(0, 0, 0, 0.96) 66%);
}

/* Faint GetLayers Blueprint Grid */
.about-blueprint-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 46% 50%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at 46% 50%, #000 35%, transparent 92%);
}

#aboutParticleFaceCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
}

.about-face-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  max-width: 1440px;
  margin-inline: auto;
  padding: 104px clamp(24px, 5vw, 84px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-face-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.70);
}

.about-face-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 12px #38BDF8;
}

/* Crisp supporting subtitle positioned directly underneath the right-side Particle Text */
.about-core-value-overlay {
  align-self: flex-end;
  width: min(580px, 47vw);
  margin-bottom: 14vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: var(--cv-sub-op, 0);
  transform: translate3d(var(--cv-sub-x, 0px), var(--cv-sub-y, 0px), 0);
  will-change: opacity, transform;
}

.about-cv-step {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #38BDF8;
}

/* Screen-reader & ultra-crisp glow reinforcement locked to particle text */
.about-cv-sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.about-cv-desc {
  margin-top: 4px;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.62;
  color: rgba(226, 232, 240, 0.88);
  max-width: 44ch;
}

.about-cv-rail {
  margin-top: 10px;
  display: inline-flex;
  gap: 8px;
}

.about-cv-rail span {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.32s var(--ease-dune), background 0.32s ease;
}

.about-cv-rail span.is-active {
  width: 48px;
  background: linear-gradient(90deg, #38BDF8 0%, #FB7185 100%);
}

.about-bottom-cta-space {
  max-width: 1360px;
  margin-inline: auto;
  padding-block: 8vh 14vh;
}

.about-bottom-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. TRANG RIÊNG: ĐÀO TẠO
   -------------------------------------------------------------------------- */
.academy-view {
  position: relative;
  padding-top: 118px;
  padding-bottom: 10vh;
}

.labs-hero-space {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: 4vw;
  padding-block: 3vh 5vh;
}

.labs-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-bg);
  cursor: none;
  outline: none;
  transition: transform 0.6s var(--ease-dune), box-shadow 0.6s var(--ease-dune);
}
@media (pointer: coarse) {
  .labs-card { cursor: pointer; }
}
.labs-card:hover, .labs-card:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(10, 14, 24, 0.16);
}
.labs-card-media { position: relative; overflow: hidden; }
.labs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.10) brightness(0.88);
  transform: scale(1.02);
  transition: filter 0.52s ease, transform 0.72s var(--ease-dune);
}
.labs-card:hover .labs-card-media img,
.labs-card:focus-visible .labs-card-media img {
  filter: grayscale(0%) contrast(1.04) saturate(1.16) brightness(1.04);
  transform: scale(1.06);
}
.labs-pinned-space { max-width: none; width: 100%; margin-inline: 0; padding-inline: 4vw; margin-bottom: 8vh; }
.labs-card-pinned .labs-card-media { aspect-ratio: 21 / 8.5; min-height: 280px; }
.labs-pin-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.82);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.labs-title-only-bar {
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.labs-big-title {
  font-size: clamp(1.25rem, 2.2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-primary);
}
.labs-open-mark {
  font-size: 1.4rem;
  color: var(--ink-primary);
  flex-shrink: 0;
  transition: transform 0.34s var(--ease-dune);
}
.labs-card:hover .labs-open-mark { transform: translate(5px, -5px); }
.labs-stream-space { max-width: none; width: 100%; margin-inline: 0; padding-inline: 4vw; }
.labs-staggered-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 52px);
  align-items: start;
}
.labs-article-card.span-wide { grid-column: span 7; }
.labs-article-card.span-tall { grid-column: span 5; margin-top: 56px; }
.labs-article-card.span-medium-left { grid-column: span 5; }
.labs-article-card.span-wide-right { grid-column: span 7; margin-top: 44px; }
.labs-article-card.span-wide .labs-card-media,
.labs-article-card.span-wide-right .labs-card-media { aspect-ratio: 16 / 10; }
.labs-article-card.span-tall .labs-card-media,
.labs-article-card.span-medium-left .labs-card-media { aspect-ratio: 4 / 4.4; }
.labs-article-title-bar {
  padding: 18px 22px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.labs-article-title {
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

/* --------------------------------------------------------------------------
   12. MINIMAL FOOTER & SHARED DETAIL MODAL
   -------------------------------------------------------------------------- */
.spatial-footer {
  position: relative;
  z-index: 16;
  max-width: 1360px;
  margin-inline: auto;
  padding: 44px clamp(22px, 5vw, 80px) 68px;
  border-top: 1px solid var(--border-bg);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-discover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-portal-link {
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-bg);
  text-align: left;
  cursor: pointer;
}

.footer-portal-name {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-portal-name i {
  font-style: normal;
  font-weight: 400;
  transition: transform 0.34s var(--ease-dune);
}
.footer-portal-link:hover .footer-portal-name i { transform: translate(5px, -5px); }

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.footer-bottom-links { display: flex; align-items: center; gap: 12px; }
.footer-text-btn { cursor: pointer; }
.footer-text-btn:hover, .footer-bottom-links a:hover { color: var(--ink-primary); }

.spatial-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-dune);
}
.spatial-modal.is-open { opacity: 1; pointer-events: auto; }

.modal-inner {
  max-width: 1020px;
  width: 100%;
  background: #06080C;
  color: #FFFFFF;
  padding: clamp(20px, 2.6vw, 32px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-media-wrap { border-radius: 12px; overflow: hidden; max-height: 52vh; background: #040508; }
.modal-media-wrap img,
.modal-media-wrap video { width: 100%; height: 100%; max-height: 52vh; object-fit: cover; display: block; }
.modal-Media-wrap [hidden], .modal-media-wrap [hidden], .modal-gallery-strip[hidden] { display: none !important; }
.modal-gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.modal-gallery-thumb {
  position: relative;
  flex: 0 0 88px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #0B0E14;
  padding: 0;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.modal-gallery-thumb:hover,
.modal-gallery-thumb.is-active {
  opacity: 1;
  border-color: #FFFFFF;
  transform: translateY(-1px);
}
.modal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-thumb-badge {
  position: absolute;
  left: 5px;
  bottom: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(6, 8, 12, 0.82);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}
.modal-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.modal-bar-bottom { align-items: center; flex-wrap: wrap; }
.modal-close {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .tab-nav { display: none; }
  .squad-roles-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .squad-role-inner { min-height: 220px; }
  .service-bar-row,
  .about-h-statements,
  .footer-discover-grid {
    grid-template-columns: 1fr;
  }
  .about-h-split { flex-wrap: wrap; }
  .about-h-vision { margin-top: 0; }
  .about-core-value-overlay {
    width: 100%;
    align-self: flex-start;
    margin-bottom: 4vh;
  }
  .about-cv-desc { margin-top: 4px; }
  .labs-staggered-grid { grid-template-columns: 1fr; }
  .labs-article-card.span-wide,
  .labs-article-card.span-tall,
  .labs-article-card.span-medium-left,
  .labs-article-card.span-wide-right {
    grid-column: span 1;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .pill-talk { display: none; }
  .squad-roles-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .squad-role-inner { min-height: 158px; padding: 14px; }
  .squad-role-name { font-size: 0.88rem; }
  .hero-monument-word { font-size: 16.5vw; }
  .hero-bottom-statement { font-size: 0.74rem; letter-spacing: 0.09em; }
  .phone-3d-rig { width: 266px; height: 540px; }
  .work-depth-tab.is-behind { transform: translate3d(0, -62%, -40px) scale(0.58); }
  .work-depth-tab[data-work-mode="products"].is-behind { transform: translate3d(0, -62%, -40px) scale(0.58); }
  .cyber-field-grid { grid-template-columns: 1fr; }
  .petalyx-track { flex-direction: column; height: auto; }
  .petalyx-panel {
    flex: 0 0 68px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .petalyx-panel.is-active { flex: 0 0 400px; }
  .petalyx-panel-in {
    position: relative;
    inset: auto;
    padding: 16px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .petalyx-num { font-size: 56px; line-height: 1; }
  .petalyx-step { width: 100%; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* v10.2 · Ảnh vừa chảy vào dải điện thoại: nảy nhẹ như giọt chất lỏng rồi lắng phẳng */
.phone-slot.is-docked .phone-slot-img {
  animation: slotLiquidSettle 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slotLiquidSettle {
  0% { transform: scale(1.04, 0.9); filter: blur(1.5px) saturate(1.3); }
  45% { transform: scale(0.985, 1.05); filter: blur(0) saturate(1.1); }
  100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-slot.is-docked .phone-slot-img { animation: none; }
}

/* v10.2 · Câu lớn About: 4 dòng không xuống hàng, chừa chỗ dấu tiếng Việt */
.about-we-are-sentence {
  font-size: clamp(1.9rem, 3.3vw, 3.3rem);
  font-weight: 800;
}
.about-we-are-sentence .about-line,
.about-h-sub.about-line {
  white-space: nowrap;
  padding-top: 0.12em;
  margin-top: -0.12em;
}
@media (max-width: 720px) {
  .about-we-are-sentence .about-line { white-space: normal; }
}

/* v10.2b · Mặt điện thoại không đè chữ: tiêu đề nhỏ ở trên, 5 dải ảnh ở giữa, nút gọn ở dưới */
.phone-merge-slots {
  top: 122px;
  bottom: 86px;
  gap: 7px;
}
.phone-screen-center {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 76px 18px 34px;
  justify-content: space-between;
  gap: 0;
  border-radius: 0;
  pointer-events: none;
}
.phone-screen-center > * { pointer-events: auto; }
.phone-headline {
  font-size: 0.86rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #0A0B0E;
  text-shadow: none;
}
.phone-portal-cta {
  flex-direction: row;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
}
.phone-cta-icon { width: 30px; height: 30px; }
.phone-cta-icon svg { width: 18px; height: 18px; }
.phone-cta-label { font-size: 0.66rem; }
.phone-home-bar { position: absolute; bottom: 10px; left: 50%; margin-left: -48px; }

/* v10.2b · Vệt mực trượt dưới tab vai trò đang chọn */
.role-detail-tabs { position: relative; }
.role-tab-pill { position: relative; z-index: 1; background: transparent; }
.role-tab-pill.is-active { background: transparent; color: #FFFFFF; }
.rd-tab-ink {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #0A0B0E;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.role-detail-tabs { background: rgba(10, 11, 14, 0.06); border-radius: 999px; padding: 0; gap: 0; }

/* v10.2c · GIÁ TRỊ CỐT LÕI: 1 màu xanh lá ngọc, chữ thật Be Vietnam Pro, 4 chấm dọc, vệt quét */
.about-particle-face-sticky {
  background: radial-gradient(circle at 30% 50%, rgba(20, 74, 56, 0.22) 0%, rgba(0, 0, 0, 0.96) 66%);
}
.about-face-dot { background: #34D399; box-shadow: 0 0 12px #34D399; }
.about-core-value-overlay {
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 22vh;
}
.about-cv-rail {
  margin-top: 0.55em;
  flex-direction: column;
  gap: 12px;
}
.about-cv-rail span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.about-cv-rail span.is-active {
  width: 6px;
  background: #5EF2C2;
  box-shadow: 0 0 10px #34D399;
  transform: scale(1.35);
}
.about-cv-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  min-height: 2.2em;
  white-space: pre-line;
}
.about-cv-desc {
  margin-top: 16px;
  opacity: var(--cv-desc-op, 1);
}
/* v10.2e · dòng nhỏ cạnh mặt hạt: gương mặt là người sáng lập */
.about-founder-tag {
  position: absolute;
  left: 32%;
  bottom: 6vh;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(203, 213, 225, 0.5);
  pointer-events: none;
}
@media (max-width: 1040px) {
  .about-founder-tag { left: clamp(24px, 5vw, 84px); bottom: auto; top: 134px; transform: none; }
}

/* v10.2c · TRANG ĐÀO TẠO KIỂU LUSION LABS: thẻ to – nhỏ so le, bất đối xứng, kín khung 4vw */
.labs-hero-space {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: 4vw;
  padding-block: 2vh 4vh;
}
.labs-hero-title {
  font-size: max(2.2rem, 5.1vw);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink-primary);
}
.labs-hero-note {
  max-width: 56ch;
  margin-top: 1.4vw;
  font-size: max(0.95rem, 1.2vw);
  line-height: 1.6;
  color: var(--ink-soft);
}
.labs-scatter {
  display: grid;
  grid-template-columns: 92vw;
  row-gap: 5vw;
  align-items: start;
  width: 92vw;
  padding-bottom: 14vw;
}
.lab-card { border: none; background: #0A0B0E; }
.lab-card[data-scroll-media] {
  transform: translate3d(0, var(--sm-y, 0px), 0);
  opacity: 1;
}
.lab-card .labs-card-media { position: absolute; inset: 0; }
.lab-card .labs-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}
.lab-card:hover, .lab-card:focus-visible { transform: translate3d(0, var(--sm-y, 0px), 0); }
.lab-card-top,
.lab-card-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(14px, 1.6vw, 26px);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.lab-card-top { top: 0; align-items: flex-start; }
.lab-card-bottom { bottom: 0; flex-direction: column; gap: 6px; }
.lab-card-tag {
  font-family: var(--font-mono);
  font-size: max(0.64rem, 0.72vw);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}
.lab-card-dot {
  width: clamp(30px, 2.2vw, 38px);
  height: clamp(30px, 2.2vw, 38px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0A0B0E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  transition: transform 0.45s var(--ease-dune);
}
.lab-card:hover .lab-card-dot { transform: rotate(45deg) scale(1.1); }
.lab-card-title {
  font-size: clamp(1rem, 1.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.lab-card-meta {
  font-family: var(--font-mono);
  font-size: max(0.62rem, 0.7vw);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}
/* 8 vị trí so le theo vw: lớn (~66vw) · vừa (~38vw) · nhỏ (~22vw), sát lề 4vw hai bên */
.lab-s0 { grid-row: 1; grid-column: 1; width: 66vw; aspect-ratio: 16 / 9; justify-self: start; }
.lab-s1 { grid-row: 1; grid-column: 1; width: 22vw; aspect-ratio: 3 / 4; justify-self: end; margin-top: 6vw; }
.lab-s2 { grid-row: 2; grid-column: 1; width: 38vw; aspect-ratio: 4 / 4.4; justify-self: start; margin-top: 2vw; }
.lab-s3 { grid-row: 2; grid-column: 1; width: 50vw; aspect-ratio: 16 / 10; justify-self: end; margin-top: 7vw; }
.lab-s4 { grid-row: 3; grid-column: 1; width: 22vw; aspect-ratio: 3 / 4; justify-self: start; margin-top: 2vw; }
.lab-s5 { grid-row: 3; grid-column: 1; width: 66vw; aspect-ratio: 16 / 9; justify-self: end; margin-top: 6vw; }
.lab-s6 { grid-row: 4; grid-column: 1; width: 50vw; aspect-ratio: 16 / 10; justify-self: start; margin-top: 2vw; }
.lab-s7 { grid-row: 4; grid-column: 1; width: 38vw; aspect-ratio: 4 / 4.4; justify-self: end; margin-top: 5vw; }

/* nền trắng xám vân đá rất nhẹ + con trỏ chấm đen tròn lớn (Lusion Labs) */
.academy-view {
  background-color: #EEEFF1;
  background-image:
    radial-gradient(ellipse 42% 18% at 18% 22%, rgba(150, 154, 162, 0.10), transparent 70%),
    radial-gradient(ellipse 30% 22% at 78% 38%, rgba(140, 144, 152, 0.09), transparent 70%),
    radial-gradient(ellipse 50% 14% at 40% 68%, rgba(160, 164, 170, 0.08), transparent 70%),
    radial-gradient(ellipse 26% 30% at 88% 86%, rgba(150, 154, 160, 0.08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.03' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.56 0 0 0 0 0.58 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}
@media (pointer: fine) {
  .academy-view, .academy-view .labs-card { cursor: none; }
}
.labs-dot-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 159;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #0A0B0E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--dx, -100px), var(--dy, -100px), 0) scale(var(--ds, 1));
  transition: opacity 0.3s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.labs-dot-cursor.is-visible { opacity: 1; }
.labs-dot-cursor span { opacity: var(--dl, 0); transition: opacity 0.25s ease; }
.lab-s0 .lab-card-title,
.lab-s5 .lab-card-title { font-size: clamp(1.3rem, 2.2vw, 2.5rem); max-width: 28ch; }
@media (max-width: 720px) {
  .labs-scatter {
    grid-template-columns: 92vw;
    row-gap: 6vw;
  }
  .lab-s0, .lab-s1, .lab-s2, .lab-s3,
  .lab-s4, .lab-s5, .lab-s6, .lab-s7 {
    grid-row: auto;
    grid-column: 1;
    width: 92vw;
    margin-top: 0;
    justify-self: stretch;
    transform: none !important;
  }
}

/* v10.2c · ĐIỆN THOẠI RƠI: lớp CSS tạm (chờ video tay robot T-219) */
.falling-phone {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 308px;
  height: 620px;
  margin: -310px 0 0 -154px;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 36%, #64748B 72%, #0F172A 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 30px 76px rgba(10, 14, 24, 0.28);
  transform: translate3d(var(--fx, -999px), var(--fy, -999px), 0) rotate(var(--fr, 0deg)) scale(var(--fs, 0.2));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}
.falling-phone.is-on { opacity: 1; visibility: visible; }
.falling-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
}
.falling-phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 86px;
  height: 23px;
  margin-left: -43px;
  border-radius: 999px;
  background: #0A0B0E;
}
/* gợn nước lúc điện thoại chạm mặt cảnh 2 */
.phone-splash {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 15;
  pointer-events: none;
  opacity: var(--sp-op, 0);
}
.phone-splash i {
  position: absolute;
  left: 0;
  top: 0;
  width: 420px;
  height: 140px;
  margin: -70px 0 0 -210px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  transform: scale(calc(0.4 + var(--sp, 0) * 2.4));
}
.phone-splash i + i { transform: scale(calc(0.2 + var(--sp, 0) * 1.6)); border-color: rgba(56, 189, 248, 0.4); }

/* trong máy: 1 câu + 1 nút bấm tròn ở giữa */
.phone-screen-center {
  inset: 0;
  padding: 0 22px;
  justify-content: center;
  gap: 34px;
}
.phone-headline {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.phone-one-btn {
  width: 92px;
  height: 92px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  background: #0A0B0E;
  box-shadow: 0 16px 36px rgba(10, 14, 24, 0.22), 0 0 0 10px rgba(10, 11, 14, 0.05);
}
.phone-one-btn-core {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease-dune);
}
.phone-one-btn:hover .phone-one-btn-core { transform: scale(1.18); }

/* v10.2d · Video B (hạ tay thả máy) nằm đè video A, chỉ hiện khi cuộn rời cảnh robot */
.robot-b-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}
.robot-b-video.is-on { opacity: 1; visibility: visible; }

/* Lớp điện thoại rơi: hộp = thân máy thẳng 124 × 302 px nền gốc; ảnh cắt từ video + thân máy cảnh 2 hòa dần */
.falling-phone {
  width: 138px;
  height: 308px;
  margin: -154px 0 0 -69px;
  padding: 0;
  border-radius: 18px;
  background: none;
  box-shadow: none;
  transform: translate3d(var(--fx, -999px), var(--fy, -999px), 0) rotate(var(--fr, 0deg)) scale(var(--fsx, 0.5), var(--fsy, 0.5));
}
.falling-phone-cut,
.falling-phone-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
}
.falling-phone-cut { opacity: 0; }
.falling-phone.has-cut .falling-phone-cut { opacity: calc(1 - var(--fp-body, 0)); }
.falling-phone-body {
  padding: 4.4px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 36%, #64748B 72%, #0F172A 100%);
  opacity: var(--fp-body, 0);
}
.falling-phone:not(.has-cut) .falling-phone-body { opacity: 1; }
.falling-phone-body .falling-phone-screen { border-radius: 14.5px; }
.falling-phone-body .falling-phone-island { top: 4.4px; width: 34px; height: 9px; margin-left: -17px; }

/* v10.2t · Lớp WebGL điện thoại chất lỏng: 1 canvas cố định phủ cả màn hình, trên mọi section */
.phone-fx-gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 38;
  pointer-events: none;
  display: none;
}
.phone-fx-gl.is-on { display: block; }

/* ==========================================================================
   BẢN THỬ A (08/11) · Lao vào màn hình điện thoại · 5 thẻ thành 5 dòng · Vệt chất lỏng theo chuột
   ========================================================================== */
.robot-scroll-line { display: none; }
.robot-scrub-video { filter: blur(var(--dive-blur, 0px)); }
.robot-mist-veil { opacity: var(--dive-mist, 1); }
.robot-video-viewport { will-change: transform; }
.dive-screen {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border-radius: var(--ds-r, 12px);
  transform: rotate(var(--ds-rot, 0deg));
  background: color-mix(in srgb, #FFFFFF calc(var(--ds-white, 0) * 100%), #F6FCFE);
  box-shadow: 0 0 0 calc(var(--ds-u, 1) * 3.2px) #15171B;
  opacity: var(--ds-op, 0);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--ds-mask, 100%) - var(--ds-feather, 0%)), transparent var(--ds-mask, 100%));
          mask-image: linear-gradient(90deg, #000 calc(var(--ds-mask, 100%) - var(--ds-feather, 0%)), transparent var(--ds-mask, 100%));
}
.dive-island {
  position: absolute;
  left: 50%;
  top: calc(var(--ds-u, 1) * 6px);
  width: calc(var(--ds-u, 1) * 30px);
  height: calc(var(--ds-u, 1) * 8.5px);
  margin-left: calc(var(--ds-u, 1) * -15px);
  border-radius: 999px;
  background: #0E1013;
}
.squad-phone-sticky { background: #FFFFFF; }
.phone-screen-surface.is-white-screen { background: #FFFFFF; }
.phone-list {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 52px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
  z-index: 3;
}
.phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 84px;
  padding: 8px;
  border-radius: 14px;
  background: #F2F4F7;
  opacity: var(--row-op, 0);
  transform: translate3d(0, var(--row-y, 0px), 0);
  text-align: left;
}
.phone-row img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 10px;
  object-fit: cover;
  filter: grayscale(1) brightness(0.62) contrast(1.1);
}
.phone-row-txt {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #0A0B0E;
}
.phone-row-txt b {
  display: block;
  font-weight: 600;
  font-size: 0.62rem;
  color: rgba(10, 11, 14, 0.46);
  margin-bottom: 3px;
}
@media (max-width: 720px) {
  .phone-row { height: 70px; }
  .phone-row img { width: 54px; height: 54px; flex-basis: 54px; }
}
.cursor-fluid-gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9000;
  pointer-events: none;
  mix-blend-mode: multiply;
  display: none;
}
.cursor-fluid-gl.is-on { display: block; }
body.is-about-view .cursor-fluid-gl { display: none; }

/* ---- Bản thử A2: máy bạc vẽ bằng code (giống máy trong video) + 5 thẻ bay ra ---- */
.robot-fullbleed-frame::after { background: #FFFFFF; }
.phone-3d-front,
.dive-phone {
  background: linear-gradient(135deg, #F5F6F8 0%, #C9CDD3 28%, #EEF0F2 52%, #AEB4BC 78%, #E8EAED 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.75),
    inset 0 0 0 2.5px rgba(120, 128, 140, 0.35),
    0 30px 76px rgba(10, 14, 24, 0.16);
}
.phone-screen-surface.is-white-screen { box-shadow: 0 0 0 5px #121418; }
.dive-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  display: none;
  overflow: hidden;
}
.dive-layer.is-on { display: block; }
.dive-phone {
  position: absolute;
  left: 0;
  top: 0;
  width: 308px;
  height: 620px;
  margin: -310px 0 0 -154px;
  border-radius: 46px;
  padding: 11px;
  transform: translate3d(var(--dx, -999px), var(--dy, -999px), 0) rotate(var(--dr, 0deg)) scale(var(--ds, 1));
  opacity: var(--dop, 0);
  will-change: transform, opacity;
}
.dive-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #FFFFFF;
  box-shadow: 0 0 0 5px #121418;
}
.dive-phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 86px;
  height: 23px;
  margin-left: -43px;
  border-radius: 999px;
  background: #0A0B0E;
  z-index: 4;
}
.dive-phone .phone-row { filter: blur(var(--row-blur, 0px)); }
.fly-card {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  will-change: transform, clip-path, opacity;
}
.fly-card .squad-role-card3d { transform: none; }

/* ---- Màn chờ tải trước (08/11, đại ca chọn A): chữ A của logo tự vẽ theo tiến độ, chấm rơi vào giữa, kéo màn lên ---- */
html.is-loading,
html.is-loading body { overflow: hidden; }
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg-page, #F5F6F8);
  color: var(--ink-primary, #0A0B0E);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.site-loader.is-leaving { transform: translate3d(0, -100%, 0); }
.site-loader-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(72px, 9vw, 120px);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -54%);
}
.site-loader-mark path {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}
.slm-ghost { stroke: rgba(10, 11, 14, 0.07); stroke-width: 22; stroke-dashoffset: 0; }
.slm-a { stroke: #0B0D12; stroke-width: 22; stroke-dashoffset: calc(1 - var(--lp, 0)); transition: stroke-dashoffset 0.34s cubic-bezier(0.65, 0, 0.35, 1); }
.slm-chev, .slm-stem { stroke: #0B0D12; stroke-dashoffset: 1; transition: stroke-dashoffset 0.22s cubic-bezier(0.65, 0, 0.35, 1); }
.slm-chev { stroke-width: 12; }
.slm-stem { stroke-width: 13; }
.slm-dot {
  fill: #0B0D12;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translate3d(0, -260%, 0) scale(0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}
.site-loader.is-done .slm-dot { opacity: 1; transform: none; }
.site-loader.is-done .slm-chev { stroke-dashoffset: 0; transition-delay: 0.08s; }
.site-loader.is-done .slm-stem { stroke-dashoffset: 0; transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .site-loader { transition: opacity 0.3s ease; }
  .site-loader.is-leaving { transform: none; opacity: 0; }
}

/* ---- 08/11 tối · nền 3 hạt bụi (đại ca chọn): các tab dưới trong suốt để thấy lớp hạt phía sau ---- */
#tab-he-thong,
#tab-du-an,
#tab-tu-van { background-color: transparent !important; }
/* chỗ nối: cuối cảnh điện thoại là màn trắng tinh → Tab 02 hòa dần sang nền hạt, không có đường ranh */
#tab-he-thong { position: relative; isolation: isolate; }
#tab-he-thong::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 45vh;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   T-293 (11/11) · SỬA LỖI GIAO DIỆN ĐIỆN THOẠI & TABLET + BỔ SUNG NHẸ
   (Giữ nguyên 100% bố cục, màu, hiệu ứng trên màn máy tính)
   ========================================================================== */
/* Mục 9 · Menu card: giảm độ trễ mờ từ 0,32s xuống ≤ 0,18s */
.lusion-menu-card {
  transition:
    opacity 0.16s var(--ease-dune),
    transform 0.18s var(--ease-dune),
    visibility 0.16s;
}

/* Mục 8 · About: chặn .about-h-panel tràn mép phải trước khi cuộn */
/* 11/11: track phải dùng clip (không phải hidden) — hidden biến track thành khung cuộn,
   làm .about-sticky-viewport hết dính → cả đoạn Về AITOMATE / Sứ mệnh / Tầm nhìn trôi mất. */
.about-horizontal-track {
  max-width: 100vw;
  overflow-x: clip;
}
.about-sticky-viewport {
  max-width: 100vw;
  overflow-x: hidden;
}
.about-h-panel {
  overflow-x: hidden;
}

/* Mục 6 · Tablet (≤ 1040px, đặc biệt 768×1024) & điện thoại nhỏ (360×800):
   5 thẻ vừa gọn 1 màn hình trong .squad-phone-sticky, thẻ số 5 không tràn đáy */
@media (max-width: 1040px) {
  .squad-roles-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .squad-role-inner { min-height: 172px; padding: 16px 18px 18px; }
  .portal-split-headline { margin-bottom: 20px; gap: 12px; }
}

@media (max-width: 720px) {
  .squad-roles-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .squad-role-inner { min-height: 140px; padding: 12px 13px; }
  .squad-role-name { font-size: 0.84rem; }
  .portal-split-headline { margin-bottom: 14px; gap: 6px; }
}

@media (max-width: 768px) {
  /* Mục 5 · Khung 3D điện thoại vừa gọn ≤ 92vw, hai cạnh titan hiện đủ */
  .phone-3d-rig {
    width: min(266px, calc(92vw - 18px));
    height: min(540px, 72vh);
  }

  /* Mục 7 · Hiện lại dòng chữ #robotScrollLine trên điện thoại, đúng cỡ chữ, nằm dưới không đè robot */
  .robot-scroll-line {
    display: block;
    left: 6vw;
    right: 6vw;
    width: auto;
    bottom: 5.5vh;
    font-size: clamp(0.95rem, 3.8vw, 1.24rem);
    line-height: 1.32;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: normal;
    opacity: var(--rob-line-op, 1);
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.9);
  }
  .robot-scroll-line span {
    opacity: 1;
    transform: none;
    margin-right: 0.24em;
  }
  .robot-scroll-line span:last-child {
    margin-right: 0;
  }

  /* Mục 2 · Trang chi tiết vai trò (#view-role-detail):
     - 5 tab chuyển nhanh cuộn ngang 1 hàng, không rớt dòng đè nhãn VAI TRÒ 01 / 05
     - Khung 3 ảnh xếp gọn trong chiều ngang màn hình, không tràn mép phải */
  .role-detail-view {
    overflow-x: hidden;
  }
  .rd-topbar {
    top: 62px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
    background: color-mix(in srgb, var(--rd-bg, #EEF0F5) 86%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .role-back-btn {
    padding: 8px 14px;
    font-size: 0.66rem;
  }
  .role-detail-tabs {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .role-detail-tabs::-webkit-scrollbar {
    display: none;
  }
  .role-tab-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 0.65rem;
  }
  .rd-scroll {
    height: auto !important;
  }
  .rd-sticky {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .rd-water-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
  }
  .rd-strip {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100vw;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 158px clamp(18px, 5vw, 36px) 64px;
  }
  .rd-text {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }
  .role-rect-badge {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }
  .role-detail-title {
    font-size: clamp(1.85rem, 6.8vw, 2.75rem);
    margin-bottom: 14px;
  }
  .role-detail-desc {
    font-size: 0.94rem;
    margin-bottom: 14px;
    max-width: 100%;
  }
  .role-detail-points {
    max-width: 100%;
    gap: 7px;
  }
  .role-detail-points li {
    font-size: 0.85rem;
  }
  .rd-actions {
    margin-top: 18px;
    gap: 14px;
  }
  .rd-scroll-hint {
    display: none;
  }
  .rd-frames {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }
  .rd-frame {
    width: 100%;
    min-width: 0;
    cursor: pointer;
  }
  .rd-frame-box {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }
  .rd-frame figcaption {
    margin-top: 8px;
    font-size: 0.78rem;
    gap: 8px;
  }
  .rd-progress {
    position: relative;
    bottom: auto;
    padding-top: 4px;
    padding-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .rd-frames {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .rd-frame-box {
    aspect-ratio: 16 / 10;
  }
}

/* 12/11: ảnh bìa thẻ vai trò dùng <picture> (bản điện thoại riêng) */
.squad-role-bg picture { display: block; width: 100%; height: 100%; }

/* 12/11 · toàn web nền TRẮNG TRƠN, bỏ hạt nền (trừ About = đen, Education giữ nguyên) */
html[data-theme="white"] { --bg-page: #FFFFFF; --bg-surface: #FFFFFF; }
body:not(.is-academy-view) #spatialCanvas { display: none; }

/* 12/11 · cửa sổ chi tiết sản phẩm: mũi tên chuyển ảnh + chú thích */
.modal-media-wrap { position: relative; }
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 11, 14, 0.55);
  color: #FFFFFF;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-nav[hidden] { display: none; }
.modal-nav:hover { background: rgba(10, 11, 14, 0.8); }
.modal-nav-prev { left: 14px; }
.modal-nav-next { right: 14px; }
.modal-media-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.modal-media-caption[hidden] { display: none; }
/* 12/11 · ảnh trong cửa sổ chi tiết hiện TRỌN, không cắt (ảnh dọc / ngang đều vừa khung) */
.modal-media-wrap img,
.modal-media-wrap video { object-fit: contain !important; background: #0A0B0E; }

/* v10_5d · nút chuyển ảnh nằm dưới ảnh trên điện thoại để không che nội dung. */
@media (max-width: 600px) {
  .modal-media-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: none;
    background: transparent;
  }
  .modal-media-wrap img,
  .modal-media-wrap video {
    grid-column: 1 / -1;
    height: auto;
    border-radius: 12px;
  }
  .modal-nav {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
  }
  .modal-nav-prev { justify-self: end; }
  .modal-nav-next { justify-self: start; }
}

/* ==========================================================================
   v10_5a (12/11 tối) · Bớt in hoa + bỏ chữ giãn rộng + thanh menu phẳng
   Chữ lớn (AITOMATE, tiêu đề phần) vẫn in hoa; nhãn / nút / mô tả / mục menu → chữ thường dạng câu.
   ========================================================================== */
.custom-cursor,
.cyber-btn,
.tab-link,
.pill-btn,
.menu-card-item,
.squad-role-idx,
.phone-slot,
.phone-os-tag,
.phone-cta-label,
.role-back-btn,
.role-rect-badge,
.role-detail-title,
.rd-scroll-hint,
.rd-frame-num,
.rd-counter,
.service-bar-idx,
.service-bar-title,
.service-bar-cue,
.pipeline-board-title,
.pipe-switch-btn,
.cylinder-center-title,
.consult-minimal-meta,
.cyber-hud-tag,
.cyber-consult-modal .cyber-hud-tag,
.about-scroll-cue,
.about-tag,
.about-face-kicker,
.about-cv-step,
.about-founder-tag,
.labs-pin-badge,
.lab-card-tag,
.lab-card-meta,
.modal-close {
  text-transform: none;
  letter-spacing: 0.01em;
}
.service-bar-title,
.pipeline-board-title,
.cylinder-center-title,
.role-detail-title { letter-spacing: -0.02em; }
.tab-link,
.pill-btn { font-size: 0.92rem; }
.pill-btn { font-weight: 600; }
.cyber-btn { font-size: 0.95rem; }
.cyber-btn-compact { font-size: 0.88rem; }
.cyber-btn-hero { font-size: 1.02rem; }
.service-bar-cue,
.consult-minimal-meta,
.footer-bottom-row { font-size: 0.9rem; }
.footer-bottom-links { flex-wrap: wrap; justify-content: flex-end; }

/* Thanh menu phẳng: không nền kính, không viền bo, không bóng */
.tab-nav,
body.is-about-view .tab-nav {
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
}
.tab-link { font-weight: 500; }
body.is-about-view .tab-link { color: rgba(255, 255, 255, 0.62); }
body.is-about-view .tab-link:hover,
body.is-about-view .tab-link.is-active { color: #FFFFFF; }
body.is-about-view .tab-link::after { background: #FFFFFF; }
.cyber-field label, .cyber-label, .modal-close span { letter-spacing: 0.01em; text-transform: none; }
