/* ============================================================
   UTCHA BOONPHA — Modern Logistics Tech Portfolio
   Dark Navy · Electric Blue · Amber · Terminal Green
   DM Sans + IBM Plex Mono + Syne
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=IBM+Plex+Mono:wght@400;500;600&family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --bg          : #080c14;
  --bg-surface  : #0e1421;
  --bg-raised   : #151d2e;
  --bg-alt      : #060a10;
  --bg-card     : #0d1420;

  --text-hi     : #e8edf5;
  --text-md     : #8b97ae;
  --text-lo     : #4a5568;
  --ink         : #e8edf5;

  --blue        : #3b82f6;
  --blue-lt     : #60a5fa;
  --blue-dim    : rgba(59,130,246,0.10);
  --blue-border : rgba(59,130,246,0.25);

  --amber       : #f0883e;
  --amber-lt    : #ffa657;
  --amber-dim   : rgba(240,136,62,0.10);
  --amber-border: rgba(240,136,62,0.25);

  --green       : #10b981;
  --green-lt    : #34d399;
  --green-dim   : rgba(16,185,129,0.10);
  --green-border: rgba(16,185,129,0.25);

  --accent      : var(--blue);
  --accent-lt   : var(--blue-lt);
  --accent-dim  : var(--blue-dim);
  --accent-border: var(--blue-border);

  --border      : #1e2a3a;
  --border-lt   : #172030;

  --font-sans   : 'DM Sans', 'Noto Sans Thai', sans-serif;
  --font-mono   : 'IBM Plex Mono', 'Noto Sans Thai', monospace;
  --font-disp   : 'Syne', 'Noto Sans Thai', sans-serif;

  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px;

  --shadow-sm : 0 2px 8px  rgba(0,0,0,0.4);
  --shadow-md : 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg : 0 12px 48px rgba(0,0,0,0.65);
  --glow-blue : 0 0 32px rgba(59,130,246,0.20);
  --glow-amber: 0 0 32px rgba(240,136,62,0.20);
  --glow-green: 0 0 32px rgba(16,185,129,0.20);

  /* legacy aliases */
  --white     : var(--text-hi);
  --gray-400  : var(--text-md);
  --green-old : var(--blue);
  --green-lt-old: var(--blue-lt);
  --green-dim-old: var(--blue-dim);
  --green-border-old: var(--blue-border);
  --color-border-tertiary: var(--border);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ============================================================ NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  background: rgba(8,12,20,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo {
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600;
  color: var(--blue); letter-spacing: 0.5px;
}
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-family: var(--font-sans); font-size: 0.825rem; font-weight: 500;
  color: var(--text-md); text-decoration: none;
  padding: 6px 13px; border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-hi); background: var(--bg-surface); }
.nav-cta {
  font-size: 0.825rem !important; font-weight: 600 !important;
  color: #fff !important;
  background: var(--blue) !important;
  border-radius: var(--r-md) !important;
  padding: 7px 16px !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--blue-lt) !important; box-shadow: var(--glow-blue); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--text-hi); border-radius: 2px; transition: 0.2s; }

/* ============================================================ HERO */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
  background: var(--bg);
}
/* base image layer — slow Ken Burns zoom-out on load */
.hero-bg, .hero-spotlight {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/images/banner.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  animation: heroZoom 7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1); } }
#hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(8,12,20,0.90) 0%, rgba(8,12,20,0.70) 100%);
}
#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}
/* cursor-following spotlight — reveals bright image through soft circular mask */
.hero-spotlight {
  z-index: 2; pointer-events: none;
  filter: brightness(1.25) saturate(1.3);
  opacity: 0; transition: opacity 0.45s ease;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 45%), #000 0%, rgba(0,0,0,0.8) 55%, transparent 100%);
  mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 45%), #000 0%, rgba(0,0,0,0.8) 55%, transparent 100%);
}
.hero-spotlight.on { opacity: 1; }
@media (hover: none) { .hero-spotlight { display: none; } }
#hero .container { position: relative; z-index: 3; }
.hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }

.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--green);
  background: var(--green-dim); border: 1px solid var(--green-border);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.6s 0.1s forwards;
  letter-spacing: 0.03em;
}
.status-dot {
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.03em;
  color: var(--text-hi); margin-bottom: 8px;
}
/* blur-rise reveal, staggered per line */
.hero-title .line1, .hero-title .line2 {
  display: block; opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .line1 { animation-delay: 0.25s; }
.hero-title .line2 {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation-delay: 0.42s;
}
@keyframes heroReveal {
  from { opacity: 0; filter: blur(14px); transform: translateY(30px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}
.hero-role {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px; opacity: 0; animation: fadeUp 0.7s 0.6s forwards;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-md);
  max-width: 500px; line-height: 1.8; margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.7s 0.7s forwards;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s 0.85s forwards; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-md);
  background: var(--blue); color: #fff;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--blue);
  cursor: pointer; letter-spacing: 0.01em;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--blue-lt); box-shadow: var(--glow-blue); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-md);
  background: transparent; color: var(--text-md);
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--border);
  cursor: pointer; transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--text-hi); color: var(--text-hi); transform: translateY(-2px); }

/* ── Hero panel ── */
.hero-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(59,130,246,0.04);
  opacity: 0; animation: fadeIn 0.9s 0.5s forwards;
}

/* ── Profile photo in panel ── */
.profile-photo-section {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.profile-photo-wrap {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--blue-border);
  box-shadow: 0 0 0 4px var(--blue-dim);
  overflow: hidden; position: relative;
}
.profile-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-name { font-family: var(--font-disp); font-size: 0.95rem; font-weight: 700; color: var(--text-hi); }
.pb-title { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-md); margin-top: 2px; }

.panel-header {
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
  padding: 12px 20px; display: flex; align-items: center; gap: 8px;
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots span { width: 10px; height: 10px; border-radius: 50%; }
.panel-dots .d1 { background: #ff5f57; }
.panel-dots .d2 { background: #ffbd2e; }
.panel-dots .d3 { background: #3b82f6; }
.panel-title { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-md); margin-left: 4px; }
.panel-body { padding: 16px; }
.panel-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-md);
  transition: background 0.15s; cursor: default;
}
.panel-row:hover { background: var(--bg-raised); }
.pr-icon {
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
  background: var(--bg-raised); color: var(--blue);
}
.pr-label { font-size: 0.85rem; font-weight: 500; color: var(--text-hi); }
.pr-sub   { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-md); margin-top: 1px; }
.panel-divider { height: 1px; background: var(--border-lt); margin: 3px 0; }

.hero-stats {
  display: flex; gap: 10px; padding: 14px 20px;
  border-top: 1px solid var(--border); background: var(--bg-raised);
}
.stat-chip {
  flex: 1; text-align: center; padding: 10px 6px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.stat-num { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--blue); }
.stat-lbl { font-size: 0.63rem; color: var(--text-md); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================ SECTIONS */
section { padding: 100px 0; position: relative; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--blue); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-disp); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.025em; color: var(--text-hi);
  margin-bottom: 16px; line-height: 1.1;
}
.section-heading .hl {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider-line { width: 36px; height: 2px; background: var(--blue); margin: 20px 0 52px; border-radius: 2px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.section-alt { background: var(--bg-alt); }

/* ============================================================ ABOUT */
#about { background: var(--bg-surface); }
.about-layout { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; max-width: 860px; }

.about-text {
  font-size: 0.975rem; color: var(--text-md); line-height: 1.85; margin-bottom: 20px;
}
.about-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; margin-top: 32px;
}
.aii {
  background: var(--bg-raised); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 3px;
  transition: background 0.15s;
}
.aii:hover { background: var(--bg-card); }
.aii-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em; }
.aii-value { font-size: 0.85rem; font-weight: 500; color: var(--text-hi); }
.about-link { color: var(--blue); text-decoration: none; transition: color 0.15s; }
.about-link:hover { color: var(--blue-lt); }

/* Education */
.edu-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.edu-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px 24px; margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.edu-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-md); transform: translateX(4px); }
.edu-badge {
  width: 44px; height: 44px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--blue-dim); border: 1px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--blue);
}
.edu-degree { font-size: 0.9rem; font-weight: 600; color: var(--text-hi); margin-bottom: 3px; }
.edu-major  { font-size: 0.8rem; color: var(--text-md); margin-bottom: 6px; }
.edu-school { font-size: 0.78rem; color: var(--blue); margin-bottom: 6px; }
.edu-year   { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-lo); }

/* ============================================================ SERVICES */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-2xl);
  overflow: hidden; margin-top: 56px;
}
.svc-card {
  background: var(--bg-surface); padding: 36px 30px;
  transition: background 0.2s; position: relative;
}
.svc-card:hover { background: var(--bg-raised); }
.svc-num {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--blue); margin-bottom: 20px; opacity: 0.6;
}
.svc-title {
  font-family: var(--font-disp); font-size: 0.98rem; font-weight: 700;
  color: var(--text-hi); margin-bottom: 12px; line-height: 1.3;
}
.svc-desc { font-size: 0.84rem; color: var(--text-md); line-height: 1.7; margin-bottom: 20px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag {
  font-family: var(--font-mono); font-size: 0.63rem;
  color: var(--text-md); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 9px;
  background: var(--bg-raised); transition: all 0.15s;
}
.svc-card:hover .svc-tag { border-color: var(--blue-border); color: var(--blue); }

/* ============================================================ EXPERTISE */
.exp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; margin-top: 56px; }
.exp-items { display: flex; flex-direction: column; gap: 2px; }
.exp-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--r-lg);
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.exp-item:hover { background: var(--bg-surface); border-left-color: var(--blue); }
.exp-index { font-family: var(--font-mono); font-size: 0.65rem; color: var(--blue); padding-top: 3px; flex-shrink: 0; width: 22px; opacity: 0.6; }
.exp-title { font-size: 0.88rem; font-weight: 600; color: var(--text-hi); margin-bottom: 5px; }
.exp-desc  { font-size: 0.82rem; color: var(--text-md); line-height: 1.65; }

.tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.tech-cell {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 20px 14px; text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tech-cell:hover { transform: translateY(-4px); border-color: var(--blue-border); box-shadow: var(--glow-blue); }
.tech-icon {
  width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface); border: 1px solid var(--border);
  transition: transform 0.3s;
}
.tech-cell:hover .tech-icon { transform: scale(1.1); }
.tech-icon svg { display: block; }
.tech-cell-name { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.4px; color: var(--blue-lt); margin-bottom: 5px; }
.tech-cell-sub  { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-md); line-height: 1.45; }
.tech-cat {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 9px; border-radius: 20px;
  background: var(--blue-dim); color: var(--blue-lt); border: 1px solid var(--blue-border);
}

/* ============================================================ EXPERIENCE TIMELINE */
#experience { background: var(--bg-alt); }
.timeline { margin-top: 56px; position: relative; }

.tl-item {
  display: grid; grid-template-columns: 110px 40px 1fr;
  gap: 0; margin-bottom: 0; position: relative;
}
.tl-item:last-child .tl-line { display: none; }

.tl-left { padding: 28px 16px 28px 0; text-align: right; }
.tl-year {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--blue); letter-spacing: 0.03em; padding-top: 4px;
  white-space: nowrap;
}

.tl-connector { display: flex; flex-direction: column; align-items: center; padding-top: 28px; }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--bg-raised);
  transition: border-color 0.2s, background 0.2s;
  z-index: 1;
}
.tl-dot.active { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 12px rgba(59,130,246,0.5); }
.tl-line { flex: 1; width: 2px; background: var(--border); margin-top: 6px; min-height: 40px; }

.tl-right { padding: 16px 0 16px 24px; }
.tl-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 16px 22px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.tl-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-md); transform: translateX(4px); }
.tl-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.tl-role { font-family: var(--font-disp); font-size: 0.98rem; font-weight: 700; color: var(--text-hi); }
.tl-badge {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em;
}
.tl-badge.current { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); }
.tl-company { font-size: 0.8rem; color: var(--blue); margin-bottom: 10px; font-weight: 500; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tag {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-md); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 9px;
  background: var(--bg-raised);
}

/* ============================================================ PROJECTS */
.projects-sub-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 0; }

/* ── Pagination (Enterprise grid) ── */
.proj-card.pg-hide { display: none; }
.proj-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.proj-pager.pg-empty { display: none; }
.proj-pager button {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--text-lo); background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--r-md, 8px);
  min-width: 34px; height: 34px; padding: 0 10px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.proj-pager button:hover:not(:disabled) { color: var(--blue-lt); border-color: var(--blue-border); }
.proj-pager button.pg-cur { color: #fff; background: var(--blue-dim); border-color: var(--blue-border); }
.proj-pager button:disabled { opacity: 0.35; cursor: default; }
.proj-pager .pg-nav { letter-spacing: 0.04em; }
.proj-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-border); }
.proj-personal:hover { border-color: var(--amber-border); }
.proj-top { padding: 18px 18px 0; display: flex; align-items: flex-start; justify-content: space-between; }
.proj-badge {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  color: var(--amber); background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  border-radius: 20px; padding: 3px 10px; letter-spacing: 0.05em; text-transform: uppercase;
}
.personal-badge { color: var(--green) !important; background: var(--green-dim) !important; border-color: var(--green-border) !important; }
.dev-badge { color: var(--amber); background: var(--amber-dim); border-color: var(--amber-border); }
.proj-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; }
.proj-dot.blue   { background: var(--blue);  box-shadow: 0 0 8px var(--blue); }
.proj-dot.slate  { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.proj-dot.green  { background: var(--green); box-shadow: 0 0 8px var(--green); }
.proj-dot.amber  { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.proj-body  { padding: 14px 18px 20px; }
.proj-client { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-lo); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.proj-title  { font-size: 0.95rem; font-weight: 600; color: var(--text-hi); margin-bottom: 10px; line-height: 1.35; }
.proj-desc   { font-size: 0.82rem; color: var(--text-md); line-height: 1.65; margin-bottom: 16px; }
.proj-stack  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.proj-tag {
  font-family: var(--font-mono); font-size: 0.61rem;
  color: var(--text-md); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 8px;
  background: var(--bg-raised);
}
.proj-tag.accent-tag { color: var(--blue); border-color: var(--blue-border); background: var(--blue-dim); }
.proj-tag.green-tag  { color: var(--green); border-color: var(--green-border); background: var(--green-dim); }
.proj-tag.dev-tag    { color: var(--amber); border-color: var(--amber-border); background: var(--amber-dim); }
.proj-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--green); text-decoration: none;
  transition: color 0.15s; margin-top: 4px;
}
.proj-link:hover { color: var(--green-lt); }

/* ============================================================ AI & TOOLS */
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 56px; }
.ai-body p { font-size: 0.975rem; color: var(--text-md); line-height: 1.85; margin-bottom: 18px; }
.ai-tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ai-tool {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px 14px; text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.ai-tool:hover { transform: translateY(-4px); border-color: var(--blue-border); box-shadow: var(--glow-blue); }
.ai-tool-icon {
  width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  background: var(--bg-raised); border: 1px solid var(--border);
  transition: transform 0.3s;
}
.ai-tool:hover .ai-tool-icon { transform: scale(1.1); }
.ai-tool-icon svg { display: block; }
.ai-tool-name { font-size: 0.85rem; font-weight: 600; color: var(--text-hi); margin-bottom: 3px; }
.ai-tool-sub  { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-md); }

/* ============================================================ CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 56px; }
.contact-info-block p { font-size: 0.975rem; color: var(--text-md); line-height: 1.85; margin-bottom: 32px; }
.cinfo-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: center; }
.cinfo-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--blue-border);
  background: var(--blue-dim);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-family: var(--font-mono); color: var(--blue); font-weight: 600;
}
.cinfo-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.06em; }
.cinfo-value { font-size: 0.88rem; font-weight: 500; color: var(--text-hi); margin-top: 2px; }

/* LINE QR */
.line-qr-block { margin-top: 28px; }
.lqr-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.line-qr-img { width: 120px; height: 120px; border-radius: var(--r-lg); border: 1px solid var(--border); object-fit: cover; }

.form-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.form-card-header {
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
  padding: 14px 24px; display: flex; align-items: center; gap: 8px;
}
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.form-card-title { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-md); margin-left: 4px; }
.form-body { padding: 28px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500;
  color: var(--text-md); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--text-hi); font-family: var(--font-sans); font-size: 0.875rem;
  outline: none; resize: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-lo); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.form-group select option { background: var(--bg-raised); color: var(--text-hi); }
.field-error { font-family: var(--font-mono); font-size: 0.65rem; color: #f87171; margin-top: 4px; display: block; }
.btn-send { width: 100%; font-size: 0.875rem; justify-content: center; margin-top: 8px; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md); font-size: 0.84rem; font-family: var(--font-mono); display: none; }
.form-msg.success { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green-lt); }
.form-msg.error   { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }

/* ============================================================ FOOTER */
footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: var(--blue); letter-spacing: 0.03em; }
.footer-logo span { color: var(--amber); }
.footer-copy  { font-size: 0.78rem; color: var(--text-lo); font-family: var(--font-mono); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: var(--text-md); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--blue); }

/* ============================================================ SHOWCASE SLIDER */
.showcase {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.showcase-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.showcase-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: stretch;
  min-height: 340px;
}
.sc-info {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  border-left: 1px solid var(--border);
}
.sc-client-tag {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.1em;
}
.sc-title { font-family: var(--font-disp); font-size: 1.45rem; font-weight: 800; color: var(--text-hi); line-height: 1.2; }
.sc-desc  { font-size: 0.9rem; color: var(--text-md); line-height: 1.8; }
.sc-tags  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sc-tags span {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-md); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px; background: var(--bg-raised);
}
.sc-tag-hl { color: var(--blue) !important; border-color: var(--blue-border) !important; background: var(--blue-dim) !important; }

/* Showcase controls */
.showcase-ctrl {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 18px; border-top: 1px solid var(--border);
  background: var(--bg-raised);
}
.sc-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-surface);
  color: var(--text-md); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sc-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.sc-btn:disabled { opacity: 0.3; cursor: default; }
.sc-dots { display: flex; gap: 8px; align-items: center; }
.sc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.sc-dot.active { background: var(--blue); transform: scale(1.3); }

/* ── Shared visual chrome ── */
.sc-visual {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.svs-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.svs-dots { display: flex; gap: 5px; }
.svs-dots i, .app-dots i {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.svs-title { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.35); }
.svs-foot {
  padding: 12px 20px; font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-md); border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.2);
}
.svs-big { font-size: 1.2rem; font-weight: 700; color: var(--blue); }

/* ── SAP Flow visual ── */
.sv-sap { background: linear-gradient(145deg, #061225 0%, #0a1a35 100%); }
.svs-flow { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.svs-flow-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--r-md);
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.08);
}
.svs-src, .svs-dst {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--blue-border); color: var(--blue);
  background: var(--blue-dim); min-width: 52px; text-align: center;
}
.svs-dst { color: var(--amber); border-color: var(--amber-border); background: var(--amber-dim); }
.svs-wire { flex: 1; height: 2px; background: var(--border); position: relative; overflow: visible; }
.svs-pkt {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pktFlow 2.4s linear infinite;
}
@keyframes pktFlow {
  0%   { left: -8px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% + 8px); opacity: 0; }
}
.svs-live {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  color: var(--green); background: var(--green-dim);
  border: 1px solid var(--green-border); border-radius: 20px; padding: 2px 8px;
}

/* ── ASRS Grid visual ── */
.sv-asrs { background: linear-gradient(145deg, #051220 0%, #091828 100%); }
.asrs-grid {
  flex: 1; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; padding: 16px 20px; align-content: center;
}
.ag.c {
  aspect-ratio: 1; border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.ag.c.occ {
  background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.25);
  animation: occPulse 2.4s ease-in-out infinite;
}
.ag.c.occ:nth-child(3n)   { animation-delay: 0.4s; }
.ag.c.occ:nth-child(3n+1) { animation-delay: 0.9s; }
.ag.c.occ:nth-child(4n)   { animation-delay: 1.4s; }
.ag.c.robot {
  background: var(--blue-dim); border-color: var(--blue-border);
  animation: robotMove 2s ease-in-out infinite alternate;
  box-shadow: 0 0 12px rgba(59,130,246,0.4);
}
@keyframes robotMove {
  0%   { box-shadow: 0 0 8px rgba(59,130,246,0.4); background: rgba(59,130,246,0.2); }
  100% { box-shadow: 0 0 20px rgba(59,130,246,0.7); background: rgba(59,130,246,0.4); }
}
.svs-scan-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); display: inline-block;
  animation: blink 1.2s ease-in-out infinite;
}

/* ── API Terminal visual ── */
.sv-api { background: linear-gradient(145deg, #060b18 0%, #0b1222 100%); }
.svs-terminal {
  flex: 1; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.7rem;
}
.svs-ep {
  padding: 5px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.03);
  color: var(--text-md); display: flex; align-items: center; gap: 10px;
}
.ep-get  { color: var(--green);  font-weight: 700; min-width: 38px; }
.ep-post { color: var(--amber);  font-weight: 700; min-width: 38px; }
.ep-cursor { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); }
.cursor-blink { animation: cursorFade 0.8s step-end infinite; }
@keyframes cursorFade { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Desktop App visual ── */
.sv-app { background: linear-gradient(145deg, #08121e 0%, #0e1828 100%); padding: 20px; }
.svs-window {
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-lg);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.svs-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.app-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.svs-wincontent { flex: 1; padding: 16px; display: flex; align-items: center; justify-content: center; }
.scan-area { display: flex; gap: 16px; align-items: center; width: 100%; }
.scan-barcode {
  width: 90px; height: 70px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  position: relative; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
}
.scan-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: scanDown 1.6s ease-in-out infinite alternate;
}
@keyframes scanDown { from{top:4px} to{top:calc(100% - 4px)} }
.bc-bars { display: flex; gap: 2px; align-items: flex-end; height: 36px; }
.bc-bars span {
  width: 3px; background: rgba(255,255,255,0.3); border-radius: 1px;
  display: block;
}
.bc-bars span:nth-child(1){height:100%}
.bc-bars span:nth-child(2){height:60%}
.bc-bars span:nth-child(3){height:80%}
.bc-bars span:nth-child(4){height:100%}
.bc-bars span:nth-child(5){height:45%}
.bc-bars span:nth-child(6){height:90%}
.bc-bars span:nth-child(7){height:70%}
.bc-bars span:nth-child(8){height:100%}
.scan-status { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ss-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; }
.ss-key { color: var(--text-lo); }
.ss-val { color: var(--text-hi); font-weight: 600; }
.ss-val.ok { color: var(--green); }

/* ── Dashboard visual ── */
.sv-dash { background: linear-gradient(145deg, #06101e 0%, #0a1828 100%); padding: 20px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.svs-dash-top { display: flex; flex-direction: column; gap: 4px; }
.svs-livelabel {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  color: var(--green); letter-spacing: 0.08em;
}
.live-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: blink 1.5s ease-in-out infinite;
}
.svs-bignum { font-family: var(--font-disp); font-size: 1.8rem; font-weight: 800; color: var(--text-hi); line-height: 1; }
.svs-chart { display: flex; gap: 8px; align-items: flex-end; height: 80px; }
.chart-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.chart-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: var(--blue-dim); border: 1px solid var(--blue-border);
  height: var(--bh); transform-origin: bottom; transition: background 0.2s;
  animation: barPulse 1.6s ease-in-out infinite alternate;
}
.chart-bar-wrap:nth-child(1) .chart-bar { animation-delay: 0s; }
.chart-bar-wrap:nth-child(2) .chart-bar { animation-delay: 0.18s; }
.chart-bar-wrap:nth-child(3) .chart-bar { animation-delay: 0.36s; }
.chart-bar-wrap:nth-child(4) .chart-bar { animation-delay: 0.54s; }
.chart-bar-wrap:nth-child(5) .chart-bar { animation-delay: 0.72s; }
.active-bar { background: var(--blue) !important; border-color: var(--blue-lt) !important; box-shadow: 0 0 12px rgba(59,130,246,0.4); }
@keyframes barGrow { from{transform:scaleY(0)} to{transform:scaleY(1)} }
.chart-lbl { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-lo); }

/* ── Migration / ETL visual ── */
.sv-mig { background: linear-gradient(145deg, #071525 0%, #0b1c30 100%); }
.svs-etl {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 16px 20px;
}
.etl-node { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.etl-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
}
.etl-icon.src { background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-md); }
.etl-icon.tf  { background: var(--blue-dim); border: 1px solid var(--blue-border); color: var(--blue); }
.etl-icon.dst { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); }
.etl-node span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-lo); }
.etl-pipe {
  flex: 1; height: 2px; background: var(--border);
  position: relative; overflow: visible; min-width: 40px;
}
.etl-pkt {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: pktFlow 2s linear infinite;
}
.svs-progress-wrap { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.svs-progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.svs-progress-fill { height: 100%; background: var(--green); border-radius: 2px; }
.svs-pct { font-family: var(--font-mono); font-size: 0.65rem; color: var(--green); }

/* ============================================================ PROJ PREVIEW (mini card visuals) */
.proj-preview {
  height: 180px; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--border);
}
/* SAP mini */
.pv-sap {
  background: linear-gradient(135deg, #061225 0%, #0a1a35 100%);
  display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; justify-content: center;
}
.pv-sap::before, .pv-sap::after,
.pv-api::before, .pv-api::after {
  content: ''; display: block; height: 8px; border-radius: 4px;
  background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.2);
}
.pv-sap::after { width: 75%; background: rgba(59,130,246,0.10); }

/* ASRS mini */
.pv-asrs {
  background: linear-gradient(135deg, #051220 0%, #091828 100%);
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  padding: 12px 14px; align-content: center;
}
.pv-asrs::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(59,130,246,0.07) 0, rgba(59,130,246,0.07) 10%, transparent 10%, transparent 20%),
                    repeating-linear-gradient(rgba(59,130,246,0.07) 0, rgba(59,130,246,0.07) 25%, transparent 25%, transparent 50%);
  background-size: 60px 30px;
}
.pv-asrs::after {
  content: 'ASRS · 2 ZONES';
  position: absolute; bottom: 8px; left: 14px;
  font-family: var(--font-mono); font-size: 0.58rem;
  color: rgba(59,130,246,0.5);
}

/* API mini */
.pv-api {
  background: linear-gradient(135deg, #060b18 0%, #0b1222 100%);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; justify-content: center;
}
.pv-api::before { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.2); }
.pv-api::after { width: 60%; background: rgba(240,136,62,0.10); border: 1px solid rgba(240,136,62,0.15); height: 8px; border-radius: 4px; }

/* App mini */
.pv-app {
  background: linear-gradient(135deg, #08121e 0%, #0e1828 100%);
  display: flex; align-items: center; justify-content: center;
}
.pv-app::before {
  content: '';
  width: 80px; height: 60px; border-radius: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 16px 0 rgba(0,0,0,0.3);
  animation: scanDown 2s ease-in-out infinite alternate;
  box-shadow: 0 0 24px rgba(16,185,129,0.15);
}
.pv-app::after {
  content: 'SCAN · PACK · OUT';
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.55rem; color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* Dashboard mini */
.pv-dash {
  background: linear-gradient(135deg, #06101e 0%, #0a1828 100%);
  padding: 16px 18px; display: flex; align-items: flex-end; gap: 5px;
}
.pv-dash::before {
  content: 'LIVE'; position: absolute; top: 10px; right: 12px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  color: var(--green); animation: blink 1.5s ease-in-out infinite;
}
.pv-dash::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to top, rgba(59,130,246,0.25) 0%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 15px, rgba(59,130,246,0.08) 15px, rgba(59,130,246,0.08) 16px);
  background-size: 100% 100%, 20px 100%;
}

/* Migration mini */
.pv-mig {
  background: linear-gradient(135deg, #071525 0%, #0b1c30 100%);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pv-mig::before {
  content: 'DB → ETL → WMS';
  font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(59,130,246,0.5); letter-spacing: 0.06em;
}
.pv-mig::after {
  content: '';
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  height: 4px; background: var(--border); border-radius: 2px;
  box-shadow: inset 60% 0 0 0 var(--green);
  background-image: linear-gradient(to right, var(--green) 65%, var(--border) 65%);
}

/* Lottery mini */
.pv-lottery {
  background: linear-gradient(135deg, #0a1020 0%, #12182c 100%);
  display: flex; align-items: center; justify-content: center;
}
.pv-lottery::before {
  content: '🎯 AI Prediction';
  font-family: var(--font-mono); font-size: 0.72rem; color: rgba(16,185,129,0.6);
}
.pv-lottery::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(16,185,129,0.08) 0%, transparent 70%);
}

/* Velorent-tms mini */
.pv-relent {
  background: linear-gradient(135deg, #0d1020 0%, #141822 100%);
  display: flex; align-items: center; justify-content: center;
}
.pv-relent::before {
  content: '🏠 Velorent-tms';
  font-family: var(--font-mono); font-size: 0.72rem; color: rgba(240,136,62,0.5);
}

/* Aroundme mini */
.pv-around {
  background: linear-gradient(135deg, #0a1020 0%, #121c28 100%);
  display: flex; align-items: center; justify-content: center;
}
.pv-around::before {
  content: '📍 Aroundme';
  font-family: var(--font-mono); font-size: 0.72rem; color: rgba(240,136,62,0.5);
}
.pv-around::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 50px at 50% 45%, rgba(240,136,62,0.12) 0%, transparent 70%);
}

/* ============================================================ KEYFRAMES */
@keyframes fadeUp { from{opacity:0;transform:translateY(18px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-spotlight { animation: none; }
  .hero-title .line1, .hero-title .line2 { animation-duration: 0.01s; animation-delay: 0s; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .timeline { margin-top: 40px; }
}
@media (max-width: 960px) {
  .showcase-slide { grid-template-columns: 1fr; min-height: auto; }
  .sc-visual { min-height: 220px; }
  .sc-info { border-left: none; border-top: 1px solid var(--border); padding: 28px; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(8,12,20,0.97); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 4px;
  }
  .nav-links.open  { display: flex; }
  .hamburger       { display: flex; }
  .hero-inner      { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel      { max-width: 100%; }
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .exp-layout      { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid   { grid-template-columns: repeat(2, 1fr); }
  .ai-layout       { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout  { grid-template-columns: 1fr; gap: 48px; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-inner    { flex-direction: column; text-align: center; }
  .footer-links    { justify-content: center; }
  .tl-item { grid-template-columns: 80px 36px 1fr; }
}
@media (max-width: 600px) {
  nav           { padding: 0 16px; }
  .container    { padding: 0 20px; }
  section       { padding: 72px 0; }
  .services-grid{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
  .ai-tools-grid{ grid-template-columns: repeat(2, 1fr); }
  .tech-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-info-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 0 36px 1fr; }
  .tl-left { display: none; }
  .tl-year { display: none; }
}

/* ============================================================
   SECTION ANIMATIONS — Service Areas & Projects
============================================================ */

/* ── Service card: accent line + enhanced hover ── */
.svc-card {
  position: relative; overflow: hidden;
  transition: background 0.25s, box-shadow 0.25s;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.38s ease;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover {
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--blue-border),
              inset 0 0 40px rgba(59,130,246,0.03);
}

/* service number & title color shift */
.svc-num { transition: color 0.25s ease; }
.svc-card:hover .svc-num { color: var(--amber); }
.svc-card:hover .svc-title { color: #f0f4ff; }

/* tags light up */
.svc-card:hover .svc-tag {
  border-color: var(--blue-border);
  color: var(--blue);
  background: var(--blue-dim);
}

/* ── Project cards: 3D tilt support ── */
.proj-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* preview area zooms subtly on card hover */
.proj-preview { transition: transform 0.35s ease; }
.proj-card:hover .proj-preview { transform: scale(1.04); }

/* personal project card amber glow */
.proj-personal:hover {
  box-shadow: var(--shadow-lg), 0 0 28px rgba(240,136,62,0.18);
}

/* ── Showcase slider smoother transition ── */
.showcase-track {
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* active dot pulse */
@keyframes dotPulse {
  0%, 100% { transform: scale(1.3); box-shadow: 0 0 0 0   rgba(59,130,246,0.5); }
  50%       { transform: scale(1.5); box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}
.sc-dot.active { animation: dotPulse 2.2s ease-in-out infinite; }

/* ============================================================
   EXPERIENCE TIMELINE — entrance animations
============================================================ */

/* Year label slides in from left */
.tl-left {
  transform: translateX(-16px);
  transition: transform 0.5s ease 0.08s;
}
.tl-item.visible .tl-left { transform: translateX(0); }

/* Dot pops in with bounce */
.tl-dot {
  transform: scale(0.1);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.tl-item.visible .tl-dot { transform: scale(1); }

/* Connector line draws downward */
.tl-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s ease 0.3s;
}
.tl-item.visible .tl-line { transform: scaleY(1); }

/* Card slides in from right */
.tl-right {
  transform: translateX(22px);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}
.tl-item.visible .tl-right { transform: translateX(0); }

/* Staggered delays per timeline item */
.tl-item:nth-child(2) .tl-left  { transition-delay: 0.20s; }
.tl-item:nth-child(3) .tl-left  { transition-delay: 0.25s; }
.tl-item:nth-child(4) .tl-left  { transition-delay: 0.30s; }
.tl-item:nth-child(5) .tl-left  { transition-delay: 0.35s; }
.tl-item:nth-child(6) .tl-left  { transition-delay: 0.40s; }

.tl-item:nth-child(2) .tl-dot   { transition-delay: 0.18s; }
.tl-item:nth-child(3) .tl-dot   { transition-delay: 0.22s; }
.tl-item:nth-child(4) .tl-dot   { transition-delay: 0.27s; }
.tl-item:nth-child(5) .tl-dot   { transition-delay: 0.32s; }
.tl-item:nth-child(6) .tl-dot   { transition-delay: 0.37s; }

.tl-item:nth-child(2) .tl-line  { transition-delay: 0.38s; }
.tl-item:nth-child(3) .tl-line  { transition-delay: 0.43s; }
.tl-item:nth-child(4) .tl-line  { transition-delay: 0.48s; }
.tl-item:nth-child(5) .tl-line  { transition-delay: 0.53s; }

.tl-item:nth-child(2) .tl-right { transition-delay: 0.20s; }
.tl-item:nth-child(3) .tl-right { transition-delay: 0.25s; }
.tl-item:nth-child(4) .tl-right { transition-delay: 0.30s; }
.tl-item:nth-child(5) .tl-right { transition-delay: 0.35s; }
.tl-item:nth-child(6) .tl-right { transition-delay: 0.40s; }

/* ============================================================
   PROJECTS GRID — staggered reveal + 3D tilt ready
============================================================ */

/* ── Showcase slides: enable smooth per-slide 3D transform ── */
.showcase-slide {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  backface-visibility: hidden;
}

/* Staggered entrance per card in grid */
.projects-grid .proj-card:nth-child(2).reveal { transition-delay: 0.07s; }
.projects-grid .proj-card:nth-child(3).reveal { transition-delay: 0.14s; }
.projects-grid .proj-card:nth-child(4).reveal { transition-delay: 0.21s; }
.projects-grid .proj-card:nth-child(5).reveal { transition-delay: 0.28s; }
.projects-grid .proj-card:nth-child(6).reveal { transition-delay: 0.35s; }

/* ============================================================
   ENHANCED PROJECT CARD PREVIEWS — clear old pseudo-elements
============================================================ */

/* Clear normal-flow pseudo-elements now replaced by inner HTML */
.pv-sap::before, .pv-sap::after,
.pv-api::before, .pv-api::after,
.pv-app::before, .pv-app::after,
.pv-mig::before, .pv-mig::after,
.pv-lottery::before, .pv-lottery::after,
.pv-relent::before,
.pv-around::before, .pv-around::after,
.pv-asrs::after { content: none !important; display: none !important; }

/* Fix display modes for previews that had non-default display */
.pv-sap, .pv-api, .pv-app, .pv-dash, .pv-mig, .pv-lottery, .pv-relent, .pv-around {
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.pv-asrs { display: block; padding: 0; }

/* Shimmer sweep on hover */
.proj-shimmer {
  position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.055), transparent);
  pointer-events: none; z-index: 20; transition: none;
}
.proj-card:hover .proj-shimmer {
  left: 200%;
  transition: left 0.7s ease;
}

/* Enhanced card glow on hover */
.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue-border), 0 0 32px rgba(59,130,246,0.12);
}
.proj-personal:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--amber-border), 0 0 32px rgba(240,136,62,0.15) !important;
}

/* ---- SAP Flow Preview ---- */
.pv-flow {
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px 18px; width: 100%; justify-content: center;
}
.pvf-row {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.6rem;
}
.pvf-src, .pvf-dst {
  padding: 3px 9px; border-radius: 4px; min-width: 44px; text-align: center;
  font-weight: 600;
}
.pvf-src { color: var(--blue); border: 1px solid rgba(59,130,246,0.3); background: rgba(59,130,246,0.08); }
.pvf-dst { color: var(--amber); border: 1px solid rgba(240,136,62,0.3); background: rgba(240,136,62,0.08); }
.pvf-wire { flex: 1; height: 1px; background: rgba(59,130,246,0.2); position: relative; overflow: visible; }
.pvf-pkt {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 6px var(--blue);
  animation: pktFlow 2.1s linear infinite;
}

/* ---- ASRS Grid Preview ---- */
.pv-asrs-inner {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px; padding: 16px 18px; height: 100%; align-content: center; width: 100%;
}
.pai {
  aspect-ratio: 1; border-radius: 4px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.pai.occ {
  background: rgba(59,130,246,0.13); border-color: rgba(59,130,246,0.22);
  animation: occPulse 2.4s ease-in-out infinite;
}
.pai.occ:nth-child(3n)   { animation-delay: 0.4s; }
.pai.occ:nth-child(3n+1) { animation-delay: 0.9s; }
.pai.occ:nth-child(4n)   { animation-delay: 1.4s; }
@keyframes occPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.pai.bot {
  background: var(--blue-dim); border-color: var(--blue-border);
  box-shadow: 0 0 10px rgba(59,130,246,0.35);
  animation: robotMove 2s ease-in-out infinite alternate;
}

/* ---- API Terminal Preview ---- */
.pv-term {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 16px; width: 100%; justify-content: center;
  font-family: var(--font-mono); font-size: 0.59rem;
}
.pvt-ep {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.3); padding: 4px 6px; border-radius: 3px;
}
.pvt-ep.pvt-cur { background: rgba(59,130,246,0.08); color: var(--text-md); }
.pvt-get  { color: var(--green); font-weight: 700; min-width: 34px; }
.pvt-post { color: var(--amber); font-weight: 700; min-width: 34px; }
.pvt-blink { animation: cursorFade 0.8s step-end infinite; }

/* ---- App Window Preview ---- */
.pv-win {
  border: 1px solid rgba(255,255,255,0.09); border-radius: 6px;
  overflow: hidden; width: 78%; height: 75%;
  display: flex; flex-direction: column;
}
.pvw-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px; background: rgba(0,0,0,0.45);
  font-family: var(--font-mono); font-size: 0.54rem; color: rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pvw-bar i { width: 7px; height: 7px; border-radius: 50%; display: block; background: rgba(255,255,255,0.12); }
.pvw-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-direction: column; gap: 8px;
}
.pvw-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: scanDown 1.5s ease-in-out infinite alternate;
}
.pvw-stat {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--green); font-weight: 600; z-index: 1;
}

/* ---- Dashboard Preview ---- */
.pv-dash-inner {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; width: 100%; justify-content: center;
}
.pdi-top { display: flex; align-items: baseline; justify-content: space-between; }
.pdi-live {
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
  color: var(--green); animation: blink 1.5s ease-in-out infinite;
}
.pdi-num {
  font-family: var(--font-disp); font-size: 1.1rem; font-weight: 800; color: var(--text-hi);
}
.pdi-chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.pdi-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: rgba(59,130,246,0.13); border: 1px solid rgba(59,130,246,0.2);
  height: var(--bh); transform-origin: bottom;
  animation: barPulse 1.6s ease-in-out infinite alternate;
}
.pdi-bar:nth-child(1) { animation-delay: 0s; }
.pdi-bar:nth-child(2) { animation-delay: 0.18s; }
.pdi-bar:nth-child(3) { animation-delay: 0.36s; }
.pdi-bar:nth-child(4) { animation-delay: 0.54s; }
.pdi-bar:nth-child(5) { animation-delay: 0.72s; }
.pdi-hi { background: var(--blue) !important; border-color: var(--blue-lt) !important; box-shadow: 0 0 14px rgba(59,130,246,0.5); }
@keyframes barPulse { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

/* ---- Migration Pipeline Preview ---- */
.pv-mig-inner {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px; width: 100%; justify-content: center;
}
.pmi-flow {
  display: flex; align-items: center; justify-content: center; gap: 0; flex: 1;
}
.pmi-node {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
}
.pmi-src { background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-md); }
.pmi-tf  { background: var(--blue-dim);  border: 1px solid var(--blue-border);  color: var(--blue); }
.pmi-dst { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); }
.pmi-pipe { flex: 1; height: 1px; background: var(--border); position: relative; overflow: visible; min-width: 24px; }
.pmi-pkt {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
  animation: pktFlow 1.9s linear infinite;
}
.pmi-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pmi-fill { height: 100%; width: 94%; background: var(--green); border-radius: 2px; }

/* ---- Lottery Balls Preview ---- */
.pv-balls {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap; padding: 16px;
}
.plb {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
  color: var(--green); animation: ballBob 2.2s ease-in-out infinite alternate;
}
.plb.plb-hi {
  background: var(--green-dim); border-color: var(--green-border);
  box-shadow: 0 0 14px rgba(16,185,129,0.35);
}
.plb:nth-child(2) { animation-delay: 0.25s; }
.plb:nth-child(3) { animation-delay: 0.5s; }
.plb:nth-child(4) { animation-delay: 0.75s; }
.plb:nth-child(5) { animation-delay: 1s; }
.plb:nth-child(6) { animation-delay: 1.25s; }
@keyframes ballFloat { from{transform:translateY(0)} to{transform:translateY(-5px)} }
@keyframes ballBob { from{transform:translateY(5px) scale(0.94)} to{transform:translateY(-8px) scale(1.06)} }

/* ---- Velorent-tms Property Preview ---- */
.pv-prop-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; width: 100%; height: 100%;
}
.pvpi-cards { display: flex; gap: 10px; align-items: flex-end; }
.pvpi-card {
  border-radius: var(--r-md); border: 1px solid rgba(240,136,62,0.2);
  background: rgba(240,136,62,0.06); display: flex; align-items: flex-end;
  padding: 8px; animation: ballBob 2.6s ease-in-out infinite alternate;
}
.pvpi-big  { width: 72px; height: 72px; animation-delay: 0s; }
.pvpi-sm   { width: 52px; height: 52px; animation-delay: 0.5s; }
.pvpi-tag {
  font-family: var(--font-mono); font-size: 0.52rem; font-weight: 600;
  color: var(--green); border: 1px solid var(--green-border);
  background: var(--green-dim); border-radius: 3px; padding: 2px 5px;
}
.pvpi-tag.pvpi-amber { color: var(--amber); border-color: var(--amber-border); background: var(--amber-dim); }
.pvpi-label {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  color: rgba(240,136,62,0.5); letter-spacing: 0.08em;
}

/* ---- Aroundme Map Preview ---- */
.pv-map-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; position: relative;
}
.pvmi-pin {
  width: 16px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--amber); box-shadow: 0 0 16px rgba(240,136,62,0.5);
  z-index: 5; position: relative; animation: ballFloat 2s ease-in-out infinite alternate;
}
.pvmi-pin::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: rgba(240,136,62,0.4);
}
.pvmi-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(240,136,62,0.3);
  top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  animation: ringPulse 2.4s ease-out infinite;
}
.pvmi-ring.r1 { width: 44px; height: 44px; animation-delay: 0s; }
.pvmi-ring.r2 { width: 72px; height: 72px; animation-delay: 0.6s; }
.pvmi-ring.r3 { width: 100px; height: 100px; animation-delay: 1.2s; }
@keyframes ringPulse {
  0%   { transform: translate(-50%,-50%) scale(0.3); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(1.1); opacity: 0; }
}
.pvmi-label {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600;
  color: rgba(240,136,62,0.45); letter-spacing: 0.08em; white-space: nowrap;
}

/* ---- New personal-project previews (self-contained, looping) ---- */
.pv-finn, .pv-kaset, .pv-school, .pv-face, .pv-singha, .pv-velotech {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px;
}
.pv-finn     { background: linear-gradient(135deg, #06131f 0%, #0a1c2e 100%); }
.pv-kaset    { background: linear-gradient(135deg, #071a14 0%, #0a2620 100%); }
.pv-school   { background: linear-gradient(135deg, #0a1020 0%, #12182c 100%); }
.pv-face     { background: linear-gradient(135deg, #0a0f1e 0%, #111a2e 100%); }
.pv-singha   { background: linear-gradient(135deg, #08131f 0%, #0d1e2c 100%); }
.pv-velotech { background: linear-gradient(135deg, #0a0f1e 0%, #101a30 100%); }

.pv-finn::before     { content: '฿ Ledger · VAT · WHT · 50 ทวิ'; font-family: var(--font-mono); font-size: 0.7rem; color: rgba(59,130,246,0.6); letter-spacing: 0.03em; }
.pv-kaset::before    { content: '🌾 Farm · Weather · Cattle'; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(16,185,129,0.6); }
.pv-school::before   { content: '📋 ปพ.5 · Multi-School'; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(59,130,246,0.6); }
.pv-face::before     { content: '◉ Face Recognition'; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(16,185,129,0.6); }
.pv-singha::before   { content: '⏱ Attendance · CCTV'; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(59,130,246,0.6); }
.pv-velotech::before { content: '⬡ Corporate · TH/EN'; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(59,130,246,0.6); letter-spacing: 0.04em; }

/* LIVE blink badge for the deployed ones (reuses @keyframes blink) */
.pv-finn::after, .pv-kaset::after, .pv-school::after, .pv-velotech::after {
  content: 'LIVE'; position: absolute; top: 10px; right: 12px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  color: var(--green); animation: blink 1.5s ease-in-out infinite;
}
/* scanning line for the on-prem face-AI ones */
.pv-face::after, .pv-singha::after {
  content: ''; position: absolute; left: 16px; right: 16px; height: 2px;
  background: rgba(16,185,129,0.55); box-shadow: 0 0 8px rgba(16,185,129,0.6);
  animation: scanLine 2.2s ease-in-out infinite alternate;
}
@keyframes scanLine { from { top: 26%; } to { top: 74%; } }

/* ============================================================
   EDUCATION STANDALONE SECTION
============================================================ */
#education { background: var(--bg-surface); }
.edu-standalone-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 0;
}
.edu-standalone-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 36px 32px; position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.edu-standalone-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(59,130,246,0.10);
  transform: translateY(-4px);
}
.esc-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.edu-standalone-card:hover .esc-accent { transform: scaleX(1); }
.esc-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.esc-badge {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  color: var(--blue); background: var(--blue-dim); border: 1px solid var(--blue-border);
  border-radius: var(--r-md); padding: 6px 18px; letter-spacing: 0.05em;
}
.esc-year { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-lo); }
.esc-degree {
  font-family: var(--font-disp); font-size: 1.05rem; font-weight: 700;
  color: var(--text-hi); margin-bottom: 8px; line-height: 1.3;
}
.esc-major  { font-size: 0.82rem; color: var(--blue); margin-bottom: 10px; font-weight: 500; }
.esc-school { font-size: 0.82rem; color: var(--text-md); margin-bottom: 22px; line-height: 1.55; }
.esc-tags   { display: flex; flex-wrap: wrap; gap: 6px; }
.esc-tag {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-md); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px; background: var(--bg-surface);
  transition: border-color 0.15s, color 0.15s;
}
.edu-standalone-card:hover .esc-tag { border-color: var(--blue-border); color: var(--blue); }

@media (max-width: 960px) {
  .edu-standalone-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .about-layout { max-width: 100%; }
}

/* ============================================================ LANGUAGE TOGGLE */
.lang-btn {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--text-md); background: transparent;
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 5px 11px; margin-left: 6px; cursor: pointer;
  letter-spacing: 0.04em; line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--text-hi); border-color: var(--blue-border); background: var(--bg-surface); }

/* ============================================================ TRACK RECORD */
#track-record { background: var(--bg-surface); }

.tr-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px;
}
.tr-stat {
  text-align: center; padding: 28px 16px;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tr-stat:hover { transform: translateY(-4px); border-color: var(--blue-border); box-shadow: var(--glow-blue); }
.tr-stat-num {
  font-family: var(--font-mono); font-size: 2.1rem; font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tr-stat-lbl {
  font-size: 0.72rem; color: var(--text-md); margin-top: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.tr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tr-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.tr-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-border); }
.tr-visual {
  height: 170px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0f1c, #0d1f3a);
}
.tr-visual svg { display: block; transition: transform 0.5s ease; }
.tr-card:hover .tr-visual svg { transform: scale(1.05); }
.tr-chip {
  position: absolute; bottom: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(8,12,20,0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--blue-border); color: var(--blue-lt);
}
.tr-card .pill-live { position: absolute; top: 12px; right: 12px; }
.tr-body { padding: 20px; }
.tr-name {
  font-family: var(--font-disp); font-size: 1rem; font-weight: 700;
  color: var(--text-hi); margin-bottom: 8px; line-height: 1.3;
  transition: color 0.2s;
}
.tr-card:hover .tr-name { color: var(--blue-lt); }
.tr-desc { font-size: 0.82rem; color: var(--text-md); line-height: 1.7; margin-bottom: 14px; }
.tr-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pill-live {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-dim); color: var(--green-lt); border: 1px solid var(--green-border);
  font-family: var(--font-mono); font-size: 0.6rem; padding: 4px 9px;
  border-radius: 10px; letter-spacing: 0.5px; text-transform: uppercase;
}
.pill-live::before {
  content: ''; width: 5px; height: 5px;
  background: var(--green); border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

/* pulseDot drives the .pill-live status dot. The Track Record SVG visuals
   animate via inline SMIL (<animate> / <animateTransform> / <animateMotion>)
   so they run regardless of CSS-animation quirks across browsers. */
@keyframes pulseDot { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:0.3; transform:scale(1.6);} }

@media (max-width: 900px) {
  .tr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tr-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tr-stat-num { font-size: 1.7rem; }
}
