:root {
  --bg: #050811;
  --bg-elevated: #0b1120;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-solid: #0f172a;
  --surface-hover: rgba(30, 41, 59, 0.85);
  --border: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(56, 189, 248, 0.42);
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #38bdf8;
  --cyan-strong: #06b6d4;
  --cyan-glow: rgba(56, 189, 248, 0.18);
  --amber: #f59e0b;
  --emerald: #10b981;
  --purple: #a78bfa;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 1220px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Precision CAD Grid & Ambient Studio Lighting */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 18%, #000 45%, transparent 100%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle 680px at 15% 8%, rgba(6, 182, 212, 0.13), transparent 70%),
    radial-gradient(circle 540px at 88% 22%, rgba(245, 158, 11, 0.07), transparent 70%),
    radial-gradient(circle 640px at 50% 88%, rgba(56, 189, 248, 0.07), transparent 75%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, .brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 8, 17, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

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

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
  color: #fff;
  box-shadow: 0 8px 26px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.42);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background: rgba(30, 41, 59, 0.92);
}

.btn-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.btn-amber:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* Hero Section */
.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  line-height: 1.09;
  font-weight: 700;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(125deg, #ffffff 15%, var(--cyan) 62%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.role-chip {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-lead strong {
  color: #fff;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px;
}

.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.metric-val span {
  color: var(--cyan);
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

/* Profile Showcase Card */
.profile-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 27, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-strong), #3b82f6, var(--amber));
}

.portrait-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  aspect-ratio: 4 / 3.4;
  background: #0a0f1d;
  margin-bottom: 18px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.portrait-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(5, 8, 17, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portrait-badge .name {
  font-weight: 700;
  font-size: 0.92rem;
}

.portrait-badge .sub {
  font-size: 0.75rem;
  color: var(--cyan);
}

.profile-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-row {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}

.spec-key {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.spec-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

/* Section Headers */
section {
  padding: 76px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.96rem;
}

/* Interactive 3D Sandbox */
.sandbox-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.viewer-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #172540 0%, #070c18 75%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

model-viewer {
  width: 100%;
  height: 460px;
  background: transparent;
  --poster-color: transparent;
}

.viewer-overlay-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
  gap: 10px;
}

.viewer-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(5, 8, 17, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.viewer-controls-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 5;
  pointer-events: none;
}

.viewer-controls-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.ctrl-btn {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(5, 8, 17, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ctrl-btn:hover,
.ctrl-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.14);
}

.ar-launch-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sandbox-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.model-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.model-option {
  text-align: left;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-option:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.9);
}

.model-option.active {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.model-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.model-opt-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.model-opt-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
}

.model-opt-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.model-inspector-box {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-top: auto;
}

.model-inspector-box h4 {
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 6px;
}

.model-inspector-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Flagship Project Showcase Cards */
.project-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 0;
}

.project-media {
  padding: 22px;
  background: rgba(2, 6, 23, 0.52);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.scene-tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.scene-tab.active,
.scene-tab:hover {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(6, 182, 212, 0.18);
}

.main-shot-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #030712;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}

.main-shot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.main-shot-wrap:hover img {
  transform: scale(1.02);
}

.shot-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.92));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.zoom-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  background: rgba(2, 6, 23, 0.78);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #030712;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  opacity: 0.68;
  transition: all 0.18s ease;
}

.thumb-btn:hover {
  opacity: 0.95;
}

.thumb-btn.active {
  border-color: var(--cyan);
  opacity: 1;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.32);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}

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

.project-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-badge.gold {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.project-body h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.project-summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.feature-list li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.feature-list li strong {
  color: #fff;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* UE5 Blueprint Visual Panel */
.ue5-blueprint-stage {
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at 82% 80%, rgba(167, 139, 250, 0.14), transparent 55%),
    linear-gradient(155deg, #070d1c, #0d172e);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.ue5-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 12px;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pipe-node {
  background: rgba(2, 6, 23, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 13px;
}

.pipe-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.pipe-node h5 {
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 4px;
}

.pipe-node p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ue5-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ue5-stat {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9px;
  padding: 10px;
  text-align: center;
}

.ue5-stat .v {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
}

.ue5-stat .k {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Secondary Projects Grid */
.mini-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.mini-card h4 {
  font-size: 1.15rem;
}

.mini-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* 3D & CAD Pipeline Grid */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.discipline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.discipline-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.disc-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
}

.discipline-card h3 {
  font-size: 1.06rem;
}

.discipline-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.skill-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.skill-tag.highlight {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.38);
  color: #7dd3fc;
}

/* Credentials & Education */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cred-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.cred-card.edu {
  border-color: rgba(245, 158, 11, 0.32);
}

.cred-issuer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cred-card.edu .cred-issuer {
  color: #fbbf24;
}

.cred-card h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}

.cred-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cred-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Experience Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.exp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.exp-top h3 {
  font-size: 1.15rem;
}

.exp-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
}

.exp-org {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Contact Banner */
.contact-box {
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.94), rgba(6, 22, 42, 0.94));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.contact-box p {
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.contact-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.66);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
  border-color: var(--cyan);
  background: rgba(15, 23, 42, 0.92);
}

.contact-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-item .val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 38px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1180px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-img-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #000;
}

.lightbox-img-box img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  font-size: 0.9rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--cyan);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid,
  .sandbox-shell,
  .project-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .project-media {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .container {
    padding: 0 16px;
  }
  .nav-inner {
    gap: 10px;
  }
  .brand {
    font-size: 0.94rem;
    gap: 8px;
  }
  .nav-hide-mobile {
    display: none;
  }
  .status-pill {
    font-size: 0.72rem;
    padding: 6px 11px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .hero h1 {
    font-size: 2.05rem;
  }
  .hero-lead {
    font-size: 0.95rem;
  }
  .hero-cta .btn {
    width: 100%;
    white-space: normal;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 8, 17, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px;
    gap: 14px;
    align-items: flex-start;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero {
    padding: 36px 0 40px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mini-projects-grid,
  .timeline,
  .pipeline-grid,
  .pipeline-flow,
  .ue5-stats-strip {
    grid-template-columns: 1fr;
  }
  .sandbox-shell {
    padding: 14px;
  }
  .project-media {
    padding: 14px;
  }
  .project-body {
    padding: 20px 16px;
  }
  .contact-box {
    padding: 24px 16px;
  }
  model-viewer, .viewer-stage {
    min-height: 360px;
    height: 360px;
  }
}
