/* ==========================================================================
   Bình Trần Ngọc — ELV / AV System Engineer | LSS JSC
   Blueprint HUD Design System v2.0 (Light & Dark Blueprint Modes)
   ========================================================================== */

:root {
  --bg: #eef2f7;
  --bg2: #f8fafc;
  --surface: #ffffff;
  --surface2: #e8eef5;
  --surface-elev: rgba(255, 255, 255, 0.92);
  --ink: #0b1622;
  --ink2: #334155;
  --muted: #64748b;
  --line: #d7e0ea;
  --line-strong: #c0cedd;
  --navy: #071a2e;
  --navy2: #0b2742;
  --navy-deep: #030a14;
  --amber: #b45309;
  --amber2: #d97706;
  --amber-bright: #f59e0b;
  --amber-glow: #fbbf24;
  --amber-soft: #fef3c7;
  --cyan: #0891b2;
  --cyan-bright: #22d3ee;
  --cyan-soft: #ecfeff;
  --emerald: #10b981;
  --grid: rgba(8, 145, 178, 0.09);
  --grid-strong: rgba(8, 145, 178, 0.16);
  --chip: #e2e8f0;
  --shadow-sm: 0 4px 14px rgba(7, 26, 46, 0.06);
  --shadow: 0 14px 36px rgba(7, 26, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 26, 46, 0.18);
  --radius: 16px;
  --radius-sm: 12px;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #050b12;
  --bg2: #08111c;
  --surface: #0b1826;
  --surface2: #0f2236;
  --surface-elev: rgba(11, 24, 38, 0.90);
  --ink: #e6f0f8;
  --ink2: #b8c9d9;
  --muted: #7d94a8;
  --line: #1c334a;
  --line-strong: #274766;
  --navy: #030a14;
  --navy2: #071a2e;
  --amber: #f5a623;
  --amber2: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --grid: rgba(34, 211, 238, 0.08);
  --grid-strong: rgba(34, 211, 238, 0.15);
  --chip: #12283e;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.30);
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center top;
  animation: gridDrift 18s linear infinite;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--grid-strong) 1.15px, transparent 1.25px);
  background-size: 36px 36px;
  background-position: 18px 18px;
  opacity: 0.5;
}

body.modal-open { overflow: hidden; }

main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font-family: inherit; }

.wrap {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
}

/* ==========================================================================
   STICKY TOPBAR + SCROLL PROGRESS + MOBILE DRAWER
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-elev);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--grid-strong);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-rail-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-bright), var(--amber-glow));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  transition: width 0.08s linear;
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy);
  color: #fbbf24;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  flex: none;
  box-shadow: 0 4px 12px rgba(7, 26, 46, 0.18);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

[data-theme="dark"] .brand-mark {
  background: #f59e0b;
  color: #111827;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.32);
}

.brand:hover .brand-mark { transform: scale(1.05); }

.brand-title {
  display: block;
  font-size: 15.5px;
  line-height: 1.2;
}

.brand small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.25;
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  padding: 9px 13px;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--chip);
  color: var(--ink);
}

.nav a.active {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--grid-strong);
}

.nav .nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 9px 16px;
  margin-left: 4px;
}

.nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7, 26, 46, 0.22);
}

[data-theme="dark"] .nav .nav-cta {
  background: #f59e0b !important;
  color: #111827 !important;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 39;
  background: rgba(3, 10, 20, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 24px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer-panel a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-panel a span.idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 480px) {
  .brand small { display: none; }
}

/* ==========================================================================
   HERO + INTERACTIVE LIVE FACADE DMX SIMULATOR
   ========================================================================== */
.hero {
  background: radial-gradient(ellipse 90% 80% at 20% 20%, #0d2b49 0%, #071a2e 55%, #030c18 100%);
  color: #eaf0f6;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  animation: heroGridMove 12s linear infinite;
}

.hero::after {
  content: "SYS // ELV • AV • FACADE LIGHTING CONTROL";
  position: absolute;
  right: 22px;
  top: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(165, 243, 252, 0.65);
  background: rgba(3, 10, 20, 0.55);
  border: 1px solid rgba(103, 232, 249, 0.25);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 0;
  min-height: 680px;
}

.hero-text {
  padding: 56px 46px 54px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: #f59e0b;
  display: inline-block;
}

h1 {
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 16px 0 12px;
  font-weight: 900;
  color: #ffffff;
}

h1 span { color: #fbbf24; }

.role {
  font-size: clamp(19px, 2.3vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.role-sub {
  color: #a7bed4;
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.hero-desc {
  margin: 18px 0 0;
  color: #d3dee9;
  font-size: 15.8px;
  line-height: 1.75;
  max-width: 555px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #e6f0f8;
}

.meta-pill svg {
  width: 14px;
  height: 14px;
  color: #67e8f9;
  flex: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #161000;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.30);
}

.btn-amber:hover {
  background: linear-gradient(135deg, #fbbf24, #fcd34d);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(103, 232, 249, 0.65);
}

.btn-cyan-outline {
  background: rgba(34, 211, 238, 0.08);
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.40);
}

.btn-cyan-outline:hover {
  background: rgba(34, 211, 238, 0.16);
  color: #ffffff;
  border-color: #22d3ee;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 580px;
}

.stat {
  border-top: 2px solid rgba(245, 158, 11, 0.72);
  padding-top: 11px;
}

.stat b {
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: block;
  font-family: var(--font-mono);
}

.stat span {
  display: block;
  font-size: 12px;
  color: #a9bdd1;
  margin-top: 5px;
  line-height: 1.4;
  font-weight: 500;
}

/* Hero Right Photo + Live DMX Scene Lighting Control Overlay */
.hero-photo {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  --dmx-intensity: 0.92;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  animation: kenburns 18s ease-in-out infinite alternate;
  transition: filter 0.65s ease;
}

/* Dynamic Lighting Scene States modulated by DMX Simulator */
.hero-photo[data-scene="warm"] img {
  filter: brightness(calc(0.62 + var(--dmx-intensity) * 0.44)) saturate(calc(0.95 + var(--dmx-intensity) * 0.35)) contrast(1.04);
}
.hero-photo[data-scene="cyan"] img {
  filter: brightness(calc(0.58 + var(--dmx-intensity) * 0.44)) saturate(0.28) contrast(1.16);
}
.hero-photo[data-scene="festival"] img {
  filter: brightness(calc(0.64 + var(--dmx-intensity) * 0.42)) saturate(calc(1.18 + var(--dmx-intensity) * 0.45)) contrast(1.08);
}
.hero-photo[data-scene="standby"] img {
  filter: brightness(calc(0.32 + var(--dmx-intensity) * 0.30)) saturate(0.65) contrast(1.12);
}

.hero-scene-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: calc(var(--dmx-intensity) * 0.48);
  transition: background 0.55s ease, opacity 0.3s ease;
}

.hero-photo[data-scene="warm"] .hero-scene-tint {
  background: radial-gradient(circle at 50% 45%, rgba(251, 191, 36, 0.34), transparent 65%);
}
.hero-photo[data-scene="cyan"] .hero-scene-tint {
  mix-blend-mode: color;
  opacity: calc(0.45 + var(--dmx-intensity) * 0.50);
  background:
    radial-gradient(ellipse 68% 78% at 50% 46%, rgba(34, 211, 238, 0.92), rgba(14, 165, 233, 0.58) 55%, rgba(7, 26, 46, 0.65) 100%);
}
.hero-photo[data-scene="festival"] .hero-scene-tint {
  mix-blend-mode: screen;
  opacity: calc(var(--dmx-intensity) * 0.55);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.34) 10%, rgba(236, 72, 153, 0.36) 52%, rgba(34, 211, 238, 0.44) 92%);
}
.hero-photo[data-scene="standby"] .hero-scene-tint {
  background: radial-gradient(circle at 50% 60%, rgba(14, 165, 233, 0.16), transparent 65%);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #071a2e 0%, rgba(7, 26, 46, 0.55) 14%, transparent 32%),
    linear-gradient(0deg, rgba(3, 10, 20, 0.85) 0%, rgba(3, 10, 20, 0.20) 42%, transparent 65%);
}

.hero-photo .beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.22), rgba(251, 191, 36, 0.14), transparent);
  animation: beamSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* Interactive DMX Facade Control Deck inside Hero */
.dmx-dock {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  z-index: 4;
  background: rgba(5, 14, 26, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.dmx-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.dmx-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a5f3fc;
  text-transform: uppercase;
}

.dmx-readout {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
}

.dmx-scenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 11px;
}

.dmx-btn {
  padding: 7px 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dmx-btn .swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.dmx-btn:hover {
  border-color: rgba(103, 232, 249, 0.55);
  color: #ffffff;
}

.dmx-btn.active {
  background: rgba(34, 211, 238, 0.16);
  border-color: #22d3ee;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}

.dmx-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dmx-slider-row label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}

.dmx-slider-row input[type="range"] {
  flex: 1;
  accent-color: #22d3ee;
  height: 4px;
  cursor: pointer;
}

.dmx-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #67e8f9;
  min-width: 38px;
  text-align: right;
}

/* ==========================================================================
   HUD RADAR SYSTEM (Intro, Hero, Project Frames)
   ========================================================================== */
.hud {
  position: relative;
  border-radius: 50%;
  flex: none;
  display: block;
}

.hud-ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(103, 232, 249, 0.95) 0deg 1deg, transparent 1deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 64%, #000 73%, transparent 74%);
  mask: radial-gradient(circle, transparent 63%, #000 64%, #000 73%, transparent 74%);
  animation: hudSpin 46s linear infinite;
}

.hud-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.hud-r1 { inset: 7%; border: 1px dashed rgba(103, 232, 249, 0.55); animation: hudSpinRev 30s linear infinite; }
.hud-r2 {
  inset: 17%;
  border: 12px solid transparent;
  border-top-color: rgba(34, 211, 238, 0.80);
  border-right-color: rgba(34, 211, 238, 0.38);
  border-bottom-color: rgba(125, 211, 252, 0.55);
  animation: hudSpin 18s linear infinite;
}
.hud-r3 {
  inset: 30%;
  border: 7px solid transparent;
  border-left-color: rgba(103, 232, 249, 0.85);
  border-bottom-color: rgba(103, 232, 249, 0.40);
  border-top-color: rgba(224, 242, 254, 0.35);
  animation: hudSpinRev 12s linear infinite;
}
.hud-r4 { inset: 40%; border: 1px solid rgba(103, 232, 249, 0.65); box-shadow: 0 0 18px rgba(34, 211, 238, 0.35) inset; }
.hud-sweep {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.10) 70deg, transparent 140deg);
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 51%);
  mask: radial-gradient(circle, transparent 50%, #000 51%);
  animation: hudSpin 5.5s linear infinite;
  pointer-events: none;
}
.hud-net {
  position: absolute;
  inset: 11%;
  width: 78%;
  height: 78%;
  animation: hudSpinRev 38s linear infinite, hudNetPulse 3.2s ease-in-out infinite;
}
.hud-cross-h, .hud-cross-v {
  position: absolute;
  pointer-events: none;
}
.hud-cross-h {
  left: -4%; right: -4%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165, 243, 252, 0.75), transparent);
}
.hud-cross-v {
  top: -4%; bottom: -4%; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(165, 243, 252, 0.55), transparent);
}
.hud-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px 4px rgba(224, 242, 254, 0.95), 0 0 34px 14px rgba(34, 211, 238, 0.75), 0 0 70px 30px rgba(34, 211, 238, 0.28);
  animation: hudCore 2.2s ease-in-out infinite;
}
.hud-num {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(165, 243, 252, 0.85);
  font-weight: 600;
}
.hud-n { top: -16px; left: 50%; transform: translateX(-50%); }
.hud-e { right: -22px; top: 50%; transform: translateY(-50%); }
.hud-s { bottom: -16px; left: 50%; transform: translateX(-50%); }
.hud-w { left: -22px; top: 50%; transform: translateY(-50%); }

/* Opening Intro Overlay */
.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 28px 20px;
  background: radial-gradient(ellipse 90% 65% at 50% 42%, #0d2f52 0%, #071a2e 48%, #020812 100%);
  color: #e0f2fe;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.intro.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro .hud { width: min(290px, 64vw); height: min(290px, 64vw); }

.intro-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  text-align: left;
  animation: introBrandIn 0.6s ease 0.25s both;
}

.intro-mark {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #f59e0b;
  color: #111827;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.50);
  flex: none;
}

.intro-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.intro-brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: #67e8f9;
  margin-top: 4px;
}

.intro-circuit { width: min(420px, 88vw); position: relative; z-index: 1; }
.intro-circuit svg { display: block; width: 100%; height: 26px; }
.intro-circuit path, .hero-circuit path { stroke-dasharray: 7 7; animation: circuitFlow 1.1s linear infinite; }

.intro-load { width: min(340px, 84vw); position: relative; z-index: 1; }
.intro-load-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #a5f3fc;
  font-weight: 600;
  margin-bottom: 8px;
}

.intro-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.35);
  overflow: hidden;
}

.intro-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5c6, #22d3ee, #a5f3fc);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.85);
  transition: width 0.12s linear;
}

.intro-status {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(165, 243, 252, 0.65);
}

.intro-skip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.45);
  background: rgba(3, 10, 20, 0.65);
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.intro-skip:hover {
  border-color: #22d3ee;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.25);
}

.hero-hud {
  position: absolute;
  z-index: 3;
  right: 25%;
  top: 43%;
  width: 310px;
  height: 310px;
  transform: translate(50%, -50%);
  opacity: 0.78;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}
.hero-hud .hud { width: 100%; height: 100%; }

.hero-circuit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.70;
}
.hero-circuit svg { display: block; width: 100%; height: 22px; }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: blinkDot 1.8s ease-in-out infinite;
  vertical-align: 1px;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 42px 0 32px; }
  .hero-photo { min-height: 420px; border-radius: 18px; margin-bottom: 32px; }
  .hero-hud { right: 50%; top: 38%; width: 220px; height: 220px; opacity: 0.75; }
  .hero-circuit { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero::after { display: none; }
}

@media (max-width: 520px) {
  .dmx-scenes { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   TICKER BAR
   ========================================================================== */
.ticker {
  overflow: hidden;
  background: var(--navy-deep);
  border-top: 1px solid rgba(34, 211, 238, 0.22);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickMove 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #67e8f9;
  white-space: nowrap;
}

.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { padding: 0 22px; }
.ticker-track b { color: #fbbf24; font-weight: 600; }

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
section { padding: 76px 0; }
.sec-head { max-width: 780px; margin-bottom: 32px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber2);
  border-radius: 2px;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
  font-weight: 800;
}

.sec-head p {
  color: var(--ink2);
  margin: 0;
  font-size: 16px;
}

/* ==========================================================================
   01 — ABOUT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.about-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
  flex: none;
}

.about-profile-meta strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.25;
}

.about-profile-meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
  margin-top: 3px;
  line-height: 1.4;
}

.about-card p { color: var(--ink2); margin: 0 0 15px; font-size: 15.5px; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--ink); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 11px;
}

.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink2);
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.checklist li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}

.about-img {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  background: var(--navy);
  display: flex;
  flex-direction: column;
}

.about-img-wrap {
  position: relative;
  flex: 1;
  min-height: 380px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-img:hover .about-img-wrap img { transform: scale(1.04); }

.about-hud-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #a5f3fc;
  background: rgba(3, 10, 20, 0.78);
  border: 1px solid rgba(103, 232, 249, 0.35);
  padding: 6px 11px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.about-img figcaption {
  padding: 14px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.about-img figcaption b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

/* ==========================================================================
   02 — SKILLS & CONNECTED ENGINEERING PIPELINE
   ========================================================================== */
.skills {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

@media (max-width: 900px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skill-grid { grid-template-columns: 1fr; } }

.skill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.skill-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cyan-soft);
  border: 1px solid var(--grid-strong);
  color: var(--cyan);
  display: grid;
  place-items: center;
}

.skill-icon svg { width: 19px; height: 19px; }
.skill h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.skill p { margin: 0; color: var(--ink2); font-size: 14.3px; line-height: 1.65; }

.tags-wrap {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-right: 4px;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan);
  transform: translateY(-1px);
}

/* Connected 4-Step Engineering Pipeline */
.flow-wrap {
  margin-top: 34px;
  position: relative;
}

.flow-bus {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 26px;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.25), rgba(34, 211, 238, 0.75), rgba(251, 191, 36, 0.75));
  z-index: 0;
  pointer-events: none;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-bus { display: none; }
}
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

.step {
  background: linear-gradient(165deg, #0b243f 0%, #07182b 100%);
  color: #e6eef6;
  border: 1px solid rgba(103, 232, 249, 0.20);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 14px 32px rgba(3, 10, 20, 0.28);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.step b {
  font-family: var(--font-mono);
  color: #fbbf24;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.30);
  padding: 4px 9px;
  border-radius: 999px;
}

.step-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.85);
}

.step h3 { color: #ffffff; margin: 0 0 8px; font-size: 16.5px; }
.step p { margin: 0; font-size: 13.8px; color: #b9c9d9; line-height: 1.65; }

/* ==========================================================================
   03 — PROJECTS SHOWCASE + FILTER + BLUEPRINT PLATES
   ========================================================================== */
.projects {
  background: var(--bg2);
  border-top: 1px solid var(--line);
}

.proj-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px 11px 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#searchInput:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.count-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.active-region-pill {
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.active-region-pill.show { display: inline-flex; }

.active-region-pill button {
  background: none;
  border: none;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--cyan);
  color: var(--ink);
}

.filter-btn .f-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
}

.filter-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--amber-bright);
  box-shadow: 0 4px 14px rgba(7, 26, 46, 0.18);
}

[data-theme="dark"] .filter-btn.active {
  background: #f59e0b;
  color: #111827;
  border-color: #fbbf24;
}

.filter-btn.active .f-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fbbf24;
}

[data-theme="dark"] .filter-btn.active .f-count {
  background: rgba(17, 24, 39, 0.18);
  color: #111827;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

.proj {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.proj::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
  z-index: 4;
}

.proj:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--cyan);
}

.proj.featured {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35) inset, var(--shadow-sm);
}

.proj.featured:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.55) inset, var(--shadow);
}

.proj.hidden { display: none; }

/* Card Media Header */
.proj-media {
  position: relative;
  height: 204px;
  background: #061426;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.proj-media::before,
.proj-media::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.proj-media::before {
  top: 9px; left: 9px;
  border-top: 2px solid rgba(103, 232, 249, 0.90);
  border-left: 2px solid rgba(103, 232, 249, 0.90);
}

.proj-media::after {
  bottom: 9px; right: 9px;
  border-bottom: 2px solid rgba(103, 232, 249, 0.90);
  border-right: 2px solid rgba(103, 232, 249, 0.90);
}

.proj-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.proj:hover .proj-media img { transform: scale(1.06); }

.proj-media-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 10, 20, 0.35) 0%, transparent 40%, rgba(3, 10, 20, 0.72) 100%);
  pointer-events: none;
}

.pv-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  top: -26px;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(103, 232, 249, 0.28), transparent);
  animation: pvScanMove 4s ease-in-out infinite;
  pointer-events: none;
}

.pv-code {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a5f3fc;
  background: rgba(3, 10, 20, 0.76);
  border: 1px solid rgba(103, 232, 249, 0.35);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.pv-featured-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #161000;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.pv-night-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fde68a;
  background: rgba(3, 10, 20, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.42);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.pv-location {
  position: absolute;
  left: 14px;
  bottom: 20px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #e0f2fe;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.pv-hud {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 68px;
  height: 68px;
  z-index: 3;
  pointer-events: none;
  animation: pvHudGlow 2.6s ease-in-out infinite;
}

.pv-hud .hud { width: 100%; height: 100%; }
.pv-hud .hud-r2 { border-width: 5px; }
.pv-hud .hud-r3 { border-width: 3px; }
.pv-hud .hud-core {
  width: 6px; height: 6px;
  box-shadow: 0 0 8px 3px rgba(224, 242, 254, 0.9), 0 0 18px 7px rgba(34, 211, 238, 0.65);
}
.pv-hud .hud-num { display: none; }

.pv-circuit {
  position: absolute;
  left: 12px;
  right: 84px;
  bottom: 8px;
  height: 10px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.85;
}
.pv-circuit svg { display: block; width: 100%; height: 10px; }
.pv-circuit path { stroke-dasharray: 5 5; animation: circuitFlow 1.1s linear infinite; }

/* Technical CAD Blueprint Header for Long Khang Technical Dossier Cards */
.blueprint-plate {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(circle at 32% 45%, rgba(14, 116, 144, 0.28), transparent 60%),
    linear-gradient(150deg, #0a2440 0%, #051224 72%, #030a14 100%);
}

.blueprint-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}

.blueprint-plate svg.bp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bp-stamp {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  color: rgba(251, 191, 36, 0.95);
  background: rgba(3, 10, 20, 0.78);
  border: 1px dashed rgba(251, 191, 36, 0.48);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Card Body — Fixed Clipping Bug on Date/Category! */
.proj-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.proj-cat {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 4px 9px;
  border-radius: 999px;
}

.proj-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.proj h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.proj-scope {
  margin: 0;
  color: var(--ink2);
  font-size: 13.8px;
  line-height: 1.6;
}

.proj ul {
  margin: 2px 0 0;
  padding-left: 18px;
  color: var(--ink2);
  font-size: 13.2px;
  line-height: 1.6;
}

.proj ul li::marker { color: var(--amber2); }

.proj-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.proj-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--grid-strong);
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.proj-detail-btn:hover {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #ffffff;
}

[data-theme="dark"] .proj-detail-btn:hover { color: #030a14; }

.proj-ext-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.proj-ext-link:hover {
  color: var(--amber);
  background: var(--amber-soft);
}

/* 18th Balanced CTA Card in Grid (fills 6x3 slot cleanly when viewing All) */
.proj-cta-card {
  background: linear-gradient(155deg, #0b2742 0%, #051120 100%);
  color: #eaf0f6;
  border: 1px dashed rgba(34, 211, 238, 0.45);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.proj-cta-card.hidden { display: none; }

.proj-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.proj-cta-card > * { position: relative; z-index: 1; }
.proj-cta-card h3 { margin: 0; font-size: 20px; color: #ffffff; line-height: 1.3; }
.proj-cta-card p { margin: 0; font-size: 14px; color: #b9c9d9; line-height: 1.65; }

.empty {
  display: none;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
}

.empty.show { display: block; }

/* ==========================================================================
   04 — EXPERIENCE + EDUCATION + INTERACTIVE VIETNAM COVERAGE MAP
   ========================================================================== */
.exp-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 920px) { .exp-layout { grid-template-columns: 1fr; } }

.timeline {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(180deg, #34d399 0%, var(--cyan) 35%, rgba(34, 211, 238, 0.25) 100%);
}

.t-item {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.t-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--cyan);
  box-shadow: 0 0 0 4px var(--bg);
}

.t-item.is-current {
  border-color: rgba(52, 211, 153, 0.50);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.20) inset, var(--shadow-sm);
}

.t-item.is-current::before {
  background: #34d399;
  border-color: #a7f3d0;
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(52, 211, 153, 0.75);
}

.t-item:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .timeline { padding-left: 20px; }
  .t-item { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .t-item::before { left: -19px; }
}

.t-when {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
}

.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.t-badge.live {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.t-duration {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 8px;
}

.t-when span.loc {
  display: block;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-top: 4px;
  font-size: 12.5px;
}

.t-company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
}

.t-item h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.t-item p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.6; }

.t-list {
  margin: 6px 0 0;
  padding-left: 17px;
  color: var(--ink2);
  font-size: 13.8px;
  line-height: 1.6;
}
.t-list li + li { margin-top: 4px; }
.t-list li::marker { color: var(--amber2); }

.t-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.t-skills span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}

.edu-card {
  margin-top: 18px;
  margin-left: 26px;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(155deg, #0b243f 0%, #051222 100%);
  color: #e6eef6;
  border: 1px solid rgba(103, 232, 249, 0.22);
  box-shadow: var(--shadow);
}

@media (max-width: 600px) { .edu-card { margin-left: 20px; } }

.edu-card h3 { margin: 10px 0 8px; font-size: 18px; color: #ffffff; }
.edu-degree {
  font-size: 14.5px;
  font-weight: 700;
  color: #fde68a;
  margin: 0 0 10px;
}
.edu-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(103, 232, 249, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.edu-card p { margin: 0; color: #b9c9d9; font-size: 14.5px; line-height: 1.65; }

/* Interactive Vietnam Radar Map Card (Sticky alongside 5-role career timeline) */
.map-card {
  position: sticky;
  top: 88px;
  background: linear-gradient(165deg, #081e36 0%, #040d1a 100%);
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 18px;
  padding: 22px;
  color: #e6f0f8;
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (max-width: 920px) { .map-card { position: relative; top: auto; } }

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.map-card > * { position: relative; z-index: 1; }

.map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.map-head h3 { margin: 6px 0 0; font-size: 18px; color: #ffffff; }

.map-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vn-svg {
  width: 100%;
  max-height: 350px;
  display: block;
  margin: 0 auto;
}

.map-pin { cursor: pointer; outline: none; }
.map-pin:focus-visible circle.pin-dot {
  stroke: #ffffff;
  stroke-width: 3;
}
.map-pin circle.pin-pulse {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 1.4;
  opacity: 0.65;
  transform-box: fill-box;
  transform-origin: center;
  animation: pinPulse 2.4s ease-out infinite;
}
.map-pin circle.pin-dot {
  fill: #fbbf24;
  stroke: #030a14;
  stroke-width: 2;
  transition: r 0.2s ease, fill 0.2s ease;
}
.map-pin:hover circle.pin-dot,
.map-pin.active circle.pin-dot {
  fill: #22d3ee;
}
.map-pin text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #e0f2fe;
  font-weight: 600;
  pointer-events: none;
}

.map-inspector {
  background: rgba(3, 10, 20, 0.72);
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 13px;
  padding: 14px 16px;
}

.map-inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.map-inspector strong { color: #fbbf24; font-size: 14.5px; }
.map-inspector span.cnt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
}
.map-inspector p { margin: 0 0 10px; font-size: 13px; color: #b9c9d9; line-height: 1.5; }

.map-filter-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-filter-btn:hover {
  background: #22d3ee;
  color: #030a14;
}

/* ==========================================================================
   05 — CONTACT BANNER & FOOTER
   ========================================================================== */
.contact-banner {
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  background: linear-gradient(145deg, #09213b 0%, #051222 100%);
  color: #ffffff;
  border: 1px solid rgba(103, 232, 249, 0.22);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 840px) { .contact-banner { grid-template-columns: 1fr; } }

.contact-text { padding: 40px; }
.contact-text h2 { color: #ffffff; margin-top: 8px; }
.contact-text p { color: #c2d2e2; margin: 0 0 22px; font-size: 15.5px; }

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-meta {
  margin: 22px 0 0 !important;
  font-size: 13.5px !important;
  color: #9bb4cc !important;
  font-family: var(--font-mono);
}

.contact-img {
  position: relative;
  min-height: 310px;
  overflow: hidden;
}

.contact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.contact-banner:hover .contact-img img { transform: scale(1.04); }

.contact-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #061629 0%, transparent 25%);
  pointer-events: none;
}

@media (max-width: 840px) {
  .contact-text { padding: 28px 24px; }
  .contact-img::after { background: linear-gradient(180deg, #061629 0%, transparent 25%); }
}

footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

footer a {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ==========================================================================
   PROJECT DETAIL BLUEPRINT MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 8, 18, 0.78);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s ease;
}

.modal-backdrop.open .modal-dialog { transform: none; }

.modal-media {
  position: relative;
  height: 390px;
  background: #061426;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

/* Interactive Before/After Day <-> Night Lighting Comparison Slider */
.compare-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  --split: 46%;
}

.compare-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: none;
}

.compare-stage img.compare-day {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #22d3ee 0%, #fbbf24 50%, #22d3ee 100%);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.85), 0 0 6px rgba(251, 191, 36, 0.65);
  z-index: 3;
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: var(--split);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 16, 30, 0.88);
  border: 2px solid #22d3ee;
  color: #fbbf24;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 4px rgba(3, 10, 20, 0.45), 0 0 22px rgba(34, 211, 238, 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.compare-handle svg { width: 20px; height: 20px; }

.compare-stage.is-dragging .compare-handle {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #fbbf24;
}

.compare-tag {
  position: absolute;
  top: 62px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.compare-tag-day {
  left: 16px;
  color: #fef3c7;
  background: rgba(3, 10, 20, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.48);
}

.compare-tag-night {
  right: 16px;
  color: #a5f3fc;
  background: rgba(3, 10, 20, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.52);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  touch-action: none;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 680px) {
  .compare-tag { top: 54px; font-size: 9.5px; padding: 4px 8px; }
}

.modal-telemetry {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #a5f3fc;
  background: rgba(3, 10, 20, 0.78);
  border: 1px solid rgba(103, 232, 249, 0.35);
  padding: 5px 11px;
  border-radius: 999px;
}

.modal-gallery-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.modal-gal-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(3, 10, 20, 0.82);
  color: #e0f2fe;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.modal-gal-btn:hover {
  border-color: #22d3ee;
  color: #ffffff;
}

.modal-gal-btn.active {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border-color: #fbbf24;
  color: #161000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.40);
}

.modal-img-caption {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(3, 10, 20, 0.72);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  border-color: #22d3ee;
  background: rgba(8, 145, 178, 0.45);
}

.modal-body { padding: 26px 28px 28px; }

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}

@media (max-width: 680px) {
  .modal-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-media { height: 220px; }
  .modal-body { padding: 20px; }
}

.meta-box {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.meta-box small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.meta-box strong {
  display: block;
  font-size: 13.5px;
  margin-top: 3px;
  color: var(--ink);
}

.modal-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 22px;
}

.modal-deliverables span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--grid-strong);
  padding: 5px 10px;
  border-radius: 999px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-nav-group { display: flex; gap: 8px; }

.modal-nav-btn {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.modal-nav-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* Toast Notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #071a2e;
  color: #e0f2fe;
  border: 1px solid #22d3ee;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.inview {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ==========================================================================
   KEYFRAMES & REDUCED MOTION & PRINT CV
   ========================================================================== */
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 36px 72px, 72px 36px; } }
@keyframes heroGridMove { from { background-position: 0 0, 0 0; } to { background-position: 42px 84px, 84px 42px; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes beamSweep { 0% { transform: translateX(-130%) skewX(-14deg); } 55%, 100% { transform: translateX(260%) skewX(-14deg); } }
@keyframes blinkDot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); } 50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); } }
@keyframes tickMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pvScanMove { 0% { top: -26px; } 55%, 100% { top: 210px; } }
@keyframes hudSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hudSpinRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes hudCore { 0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); } }
@keyframes hudNetPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }
@keyframes circuitFlow { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
@keyframes introBrandIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pvHudGlow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.5)); } 50% { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.9)); } }
@keyframes pinPulse { 0% { transform: scale(0.8); opacity: 0.85; } 100% { transform: scale(2.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .hero::before, .hero-photo img, .pv-scan { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .intro, .topbar, .ticker, .dmx-dock, .hero-actions, .proj-controls, .proj-cta-card, .modal-backdrop, .toast, .map-filter-btn {
    display: none !important;
  }
  body { background: #ffffff !important; color: #000000 !important; animation: none !important; }
  .hero { background: #071a2e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .proj, .skill, .t-item { break-inside: avoid; }
}
