/* ==========================================================================
   WILL HO // FACETED GEODESIC AI SPHERE & OCTAGONAL CONTINENTS
   Massive 360° Polyhedron Globe, Dynamic Zoom & Zero-Lag Architecture
   ========================================================================== */

:root {
  --bg: #030508;
  --bg-card: #080e15;
  --bg-surface: #0a111a;
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(0, 240, 255, 0.6);

  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --text-dim: #64748b;

  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --pad-x: clamp(20px, 4vw, 64px);
}

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

html {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

html, body {
  background: var(--bg);
  color: var(--text-main);
  height: 100%;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

button, a {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}
button { cursor: pointer; }
a { text-decoration: none; }

/* ── Top Navigation Header ── */
.top-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(3, 5, 8, 0.95) 0%, rgba(3, 5, 8, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}
.nav-brand:hover .brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.5));
}
.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}
.brand-role {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-center-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-item {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-item:hover, .nav-item.is-active {
  color: var(--cyan);
}
.nav-chat-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-focus);
  background: rgba(0, 240, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  transition: all 0.2s ease;
}
.nav-chat-btn:hover {
  background: var(--cyan);
  color: #030508;
}

/* ── Fixed Viewport Stage ── */
.viewport-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  z-index: 20;
}

/* Zero-Cost CSS Starfield (0% CPU) */
.galaxy-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, #071018 0%, #030508 70%),
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, rgba(0,240,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 160px 120px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 230px 190px, rgba(255,255,255,0.5), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 100% 100%, 250px 250px, 320px 320px, 400px 400px, 280px 280px, 350px 350px;
  pointer-events: none;
}

/* ── SÂN KHẤU FERRIS WHEEL & QUẢ CẦU AI ── */
.ferris-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}

/* ── MASSIVE FACETED GEODESIC AI SPHERE (SCREEN-FILLING HERO) ── */
.ai-sphere {
  position: absolute;
  left: 50%;
  top: 50%;
  /* To lớn, tràn màn hình đầy uy quyền */
  width: min(84vmin, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

/* Volumetric Atmospheric Glow */
.sphere-atmosphere {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(0, 240, 255, 0.05) 55%, transparent 75%);
  filter: blur(28px);
  transform: scale(var(--sphere-zoom, 1));
  will-change: transform;
}

/* 360° Polyhedral Faceted Geodesic Canvas */
.sphere-polyhedron-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sphere-core-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 25px var(--cyan), 0 0 50px var(--cyan);
}

/* ── 3D WHEEL OF OCTAGONAL PROJECT CONTINENTS ── */
.ferris-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 25;
}

/* ── THẺ DỰ ÁN (CYBER FACET PLATE ON SPHERE -> EXPANDED CARD ON SCREEN) ── */
.ferris-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(270px, 23vw, 340px);
  height: clamp(365px, 31vw, 460px);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  pointer-events: auto;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity, width, height, clip-path;
  display: flex;
  flex-direction: column;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  border: 1.5px solid var(--accent, rgba(0, 240, 255, 0.45));
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

/* ── 1. MẢNH GHÉP TRÊN MẶT CẦU (FACET SHAPE KHỚP VỚI CẤU TRÚC ĐA DIỆN) ── */
.ferris-card.is-shard {
  width: clamp(140px, 12.5vw, 175px);
  height: clamp(140px, 12.5vw, 175px);
  background: radial-gradient(circle at 50% 50%, rgba(10, 26, 42, 0.96) 0%, rgba(3, 8, 14, 0.98) 100%);

  /* Regular Symmetrical Hexagonal Cyber Plate */
  -webkit-clip-path: polygon(
    50% 0%,
    93.3% 25%,
    93.3% 75%,
    50% 100%,
    6.7% 75%,
    6.7% 25%
  );
  clip-path: polygon(
    50% 0%,
    93.3% 25%,
    93.3% 75%,
    50% 100%,
    6.7% 75%,
    6.7% 25%
  );
  border: 1.5px solid var(--accent, rgba(0, 240, 255, 0.65));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

/* ── 2. THẺ DỰ ÁN BUNG TO VÀ HÚT DÍNH LÊN MÀN HÌNH (DOCKED SCREEN CARD) ── */
.ferris-card.is-docked {
  width: clamp(270px, 23vw, 340px);
  height: clamp(365px, 31vw, 460px);
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.4), 0 24px 60px rgba(0, 0, 0, 0.95);
  animation: suction-lock 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Chamfered Tech Rectangle */
  -webkit-clip-path: polygon(
    20px 0%,
    calc(100% - 20px) 0%,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0% calc(100% - 20px),
    0% 20px
  );
  clip-path: polygon(
    20px 0%,
    calc(100% - 20px) 0%,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0% calc(100% - 20px),
    0% 20px
  );
}

/* Đường viền bát giác bên trong */
.ferris-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  -webkit-clip-path: inherit;
  clip-path: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 20;
}
.ferris-card.is-docked::after {
  border-color: var(--accent, var(--cyan));
}

/* ── GIAO DIỆN MẢNH GHÉP SHARD (KHỚP MẶT PLANE TRÊN QUẢ CẦU) ── */
.card-shard-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  z-index: 15;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.shard-glow {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(14px);
  opacity: 0.65;
}
.shard-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.shard-tag {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--cyan));
}
.shard-code {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 12px var(--accent, var(--cyan));
  line-height: 1;
}
.shard-accent-line {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  margin: 3px 0;
}
.shard-name {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: #ffffff;
  max-width: 120px;
  line-height: 1.25;
}

/* ── GIAO DIỆN NỘI DUNG THẺ FULL (KHI BAY LÊN DÍNH VÀO MÀN HÌNH) ── */
.card-full-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
  transition: opacity 0.35s ease;
}

.card-top-bar {
  padding: 12px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 7, 10, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.card-idx {
  color: var(--accent, var(--cyan));
  font-weight: 600;
}

.card-preview-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #05090e;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-bottom-bar {
  padding: 12px 18px 14px;
  background: rgba(4, 7, 10, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-proj-type {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--cyan));
}
.card-proj-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.ferris-card.is-shard .card-shard-overlay {
  opacity: 1;
}
.ferris-card.is-shard .card-full-content {
  opacity: 0;
}

.ferris-card.is-docked .card-shard-overlay {
  opacity: 0;
}
.ferris-card.is-docked .card-full-content {
  opacity: 1;
}

@keyframes suction-lock {
  0% {
    transform-origin: center center;
    filter: brightness(1.7) contrast(1.2);
  }
  100% {
    filter: brightness(1) contrast(1);
  }
}

/* ── LEFT CONTINUOUS EDITORIAL NARRATIVE STREAM (NO BOXES) ── */
.left-narrative-stream {
  position: absolute;
  left: max(32px, 4.8vw);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 23vw, 370px);
  height: 340px;
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  transition: opacity 0.35s ease;
}

.narrative-track {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  will-change: transform;
}

.narrative-item {
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
  pointer-events: none;
}

.narrative-item.is-active {
  pointer-events: auto;
}

.narrative-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.narrative-num {
  color: var(--accent, var(--cyan));
  font-weight: 600;
}

.narrative-status {
  color: var(--text-dim);
  font-size: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 10px;
}

.narrative-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.narrative-type {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.narrative-desc {
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.05vw, 13.5px);
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0 0 16px 0;
  max-width: 340px;
}

.narrative-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.narrative-action-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cyan);
  border: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.45);
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.narrative-action-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
  transform: translateX(4px);
}

/* ── RIGHT VERTICAL NODE SCROLLBAR (TEXT RUNS UP AS YOU SCROLL DOWN) ── */
.right-vertical-scrollbar {
  position: absolute;
  right: max(24px, 3.6vw);
  top: 50%;
  transform: translateY(-50%);
  width: 210px;
  height: 380px;
  pointer-events: auto;
  z-index: 25;
  user-select: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

/* Central Fixed Reticle / Indicator Notch */
.scrollbar-reticle {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.reticle-notch {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  margin-right: 6px;
  animation: pulseReticle 2s ease-in-out infinite;
}

@keyframes pulseReticle {
  0%, 100% { opacity: 0.7; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2px); text-shadow: 0 0 16px var(--cyan); }
}

.reticle-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 240, 255, 0.4), transparent 60%);
}

/* Vertical Rail Line Behind Nodes */
.scrollbar-rail-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.scrollbar-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: height 0.08s linear;
}

/* Translating Station Tape (Slides UP as user scrolls DOWN) */
.scrollbar-tape {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.station-node-item {
  height: 64px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0 4px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

.station-bullet {
  position: relative;
  left: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08111a;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 2;
}

.station-node-item:hover .station-bullet {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: scale(1.3);
}

.station-node-item.is-active .station-bullet {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 24px var(--cyan);
  transform: scale(1.45);
}

.station-info {
  margin-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.station-idx {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.station-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.station-node-item:hover .station-label {
  color: #ffffff;
}

.station-node-item.is-active .station-idx {
  color: var(--cyan);
}

.station-node-item.is-active .station-label {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--cyan);
  color: #030508;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--cyan-glow);
}

/* ── PHẦN 1: HERO OVERLAY ── */
.screen-section {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  z-index: 20;
}
.screen-section.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-layout {
  max-width: 1320px;
  width: 100%;
  display: grid;
  grid-template-columns: min(340px, 26vw) 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: 0 clamp(16px, 3vw, 48px);
}
/* ── Floating WillWay Hero Emblem & Magnetic Sand (Borderless) ── */
.hero-logo-stage {
  position: relative;
  width: 100%;
  max-width: min(320px, 26vw);
  aspect-ratio: 1024 / 755;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  transform: translateX(clamp(-35px, -3.5vw, -12px));
  user-select: none;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: crosshair;
}

.hero-logo-floater {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  animation: heroLogoFloat 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes heroLogoFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(0.35deg);
  }
}

.hero-logo-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.12;
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.08)) drop-shadow(0 0 40px rgba(225, 185, 105, 0.05));
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.hero-logo-stage:hover .hero-logo-backdrop {
  opacity: 0.22;
  filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.25)) drop-shadow(0 0 50px rgba(225, 185, 105, 0.14));
}

.hero-magnetic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 18px;
}
.hero-title em {
  font-style: italic;
  color: var(--cyan);
}
.hero-bio {
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 580px;
  margin-bottom: 28px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--cyan);
  color: #030508;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}
.cta-scroll-btn:hover {
  transform: translateY(-2px);
}
.cta-secondary-btn {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}
.cta-secondary-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── PHẦN 3: KINH NGHIỆM 10 NĂM & LIÊN HỆ ── */
.experience-layout {
  max-width: 960px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.exp-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.exp-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.15;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 16px;
}
.exp-title em {
  font-style: italic;
  color: var(--cyan);
}
.exp-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 720px;
  margin-bottom: 32px;
}
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 32px;
}
.pillar-box {
  padding: 22px;
  border-radius: 6px;
  background: #080e15;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.pillar-idx {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}
.pillar-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}
.pillar-box p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  border-radius: 6px;
  background: #060b10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}
.contact-lbl { color: var(--text-dim); }
.contact-item { color: var(--text-sub); }
.contact-item:hover, .contact-item.highlight { color: var(--cyan); }
.contact-sep { color: var(--text-dim); }

/* ── Bottom Bar ── */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(0deg, rgba(3, 5, 8, 0.95) 0%, transparent 100%);
  z-index: 50;
  pointer-events: none;
}
.indicator-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.curr-num { color: #ffffff; font-weight: 600; }
.project-name-label {
  font-size: 10px;
  color: var(--cyan);
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.magnet-status-badge {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.06);
  color: var(--cyan);
  transition: all 0.3s ease;
}
.magnet-status-badge.is-locked {
  background: var(--cyan);
  color: #030508;
  font-weight: 700;
  box-shadow: 0 0 10px var(--cyan);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.step-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.step-dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scale(1.3);
}

/* ── Ray cuộn trang thực tế ── */
.scroll-track {
  display: none;
}

/* ── Popup chi tiết ── */
.detail-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.detail-dialog[open] {
  opacity: 1;
  pointer-events: auto;
}
.detail-dialog::backdrop {
  background: rgba(2, 3, 5, 0.85);
}
.dialog-box {
  width: min(800px, 92vw);
  background: #080e15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}
.dialog-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #050a0f;
}
.dialog-kicker {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.dialog-close-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.dialog-close-btn:hover { color: #ffffff; }
.dialog-content { padding: 24px; }
.dialog-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 8px;
}
.dialog-summary {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
}
.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.grid-cell {
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.grid-cell strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 6px;
}
.grid-cell p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-sub);
}
.dialog-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .hero-logo-stage {
    max-width: 220px;
    margin: 0 auto;
    transform: none;
  }
  .hero-cta-row { justify-content: center; }
  .pillars-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-center-status { display: none; }
  .nav-links button:not(.is-active) { display: none; }

  .ferris-card.is-shard {
    width: clamp(110px, 30vw, 140px);
    aspect-ratio: 1;
  }
  .ferris-card.is-docked {
    width: clamp(210px, 62vw, 250px);
    aspect-ratio: 0.74;
  }
  /* Mobile Left Narrative: Streamlined below or via card */
  .left-narrative-stream {
    display: none;
  }

  /* Mobile Right Scrollbar: Compact vertical node rail */
  .right-vertical-scrollbar {
    right: 10px;
    width: 32px;
  }
  .station-info {
    display: none;
  }
  .scrollbar-reticle {
    display: none;
  }
  .scrollbar-rail-line {
    left: 15px;
  }
  .station-bullet {
    left: 12px;
  }

  .scroll-hint { display: none; }
  .dialog-grid { grid-template-columns: 1fr; }
}



.experience-section {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.detail-dialog {
  touch-action: pan-y;
}

/* ── ANIMATION SPEED CONTROL SLIDER ── */
.speed-control {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  user-select: none;
}
.speed-icon {
  color: var(--cyan);
  font-size: 9px;
}
.speed-label {
  letter-spacing: 0.1em;
  color: var(--text-sub);
}
.speed-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}
.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.speed-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}
.speed-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  border: 0;
  cursor: pointer;
}
.speed-value {
  color: #ffffff;
  font-weight: 600;
  min-width: 25px;
}

@media (max-width: 768px) {
  .speed-control {
    display: none;
  }
}
