/* =========================================================
   NetSynq Clarity — Craft Design Engineering & Bento Portfolio
   Inspired by Linear, Rauno Freiberg & Awwwards SOTD Portfolios
   Spotlight Borders, Interactive UI Lab, Bento Grid & Micro-Interactions
   ========================================================= */
:root, [data-theme="dark"] {
  --bg-page: #08090d;
  --bg-surface: #0f1118;
  --bg-card: rgba(18, 21, 31, 0.75);
  --bg-card-hover: rgba(25, 30, 45, 0.90);
  --bg-glass: rgba(15, 17, 24, 0.82);
  --bg-chip: rgba(255, 255, 255, 0.05);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-spotlight: rgba(99, 102, 241, 0.5);
  
  --accent-primary: #6366f1;
  --accent-primary-light: #818cf8;
  --accent-primary-soft: rgba(99, 102, 241, 0.14);
  --accent-cyan: #06b6d4;
  --accent-cyan-soft: rgba(6, 182, 212, 0.14);
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.14);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.9);
  --glow-primary: 0 0 35px rgba(99, 102, 241, 0.22);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --wrap-width: 1200px;
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-chip: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-spotlight: rgba(99, 102, 241, 0.4);
  
  --accent-primary: #4f46e5;
  --accent-primary-light: #6366f1;
  --accent-primary-soft: rgba(79, 70, 229, 0.08);
  --accent-cyan: #0891b2;
  --accent-cyan-soft: rgba(8, 145, 178, 0.08);
  --accent-emerald: #059669;
  --accent-emerald-soft: rgba(5, 150, 105, 0.08);
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px -12px rgba(15, 23, 42, 0.12);
  --glow-primary: 0 0 30px rgba(99, 102, 241, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

/* =========================================================
   Bespoke Magnetic Precision Cursor
   ========================================================= */
@media (pointer: fine) {
  *, *::before, *::after, html, body, a, button, input, select, textarea, [role="button"], label {
    cursor: none !important;
  }
}

.clarity-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.04s ease, background-color 0.2s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 0 10px var(--accent-primary-light);
  opacity: 0;
}

.clarity-cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(129, 140, 248, 0.5);
  background-color: rgba(99, 102, 241, 0.05);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.clarity-cursor-aura.aura-hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent-primary-light);
  background-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.clarity-cursor-dot.dot-hover {
  transform: translate(-50%, -50%) scale(1.6);
  background-color: #ffffff;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Subtle Background Grid Pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 100% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 100% 40%, rgba(8, 145, 178, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

.main-content-wrap {
  position: relative;
  z-index: 1;
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Spotlight Dynamic Card Engine
   ========================================================= */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -1000px);
  left: var(--mouse-x, -1000px);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.20) 0%, rgba(99, 102, 241, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--shadow-md), var(--glow-primary);
  transform: translateY(-3px);
}

.spotlight-inner {
  position: relative;
  z-index: 1;
}

/* =========================================================
   Floating Preview Header Banner
   ========================================================= */
.netsynq-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.banner-container {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-pill {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--accent-primary-soft);
  color: var(--accent-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-name {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

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

.btn-preview-back {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-preview-back:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
}

.btn-preview-cta {
  font-size: 0.80rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-primary), #4338ca);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-preview-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* =========================================================
   Linear-Style Floating Nav Dock
   ========================================================= */
.site-header {
  position: sticky;
  top: 45px;
  z-index: 900;
  padding: 14px 0;
  transition: all 0.3s ease;
}

.nav-dock-container {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.brand-name-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.90rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-star {
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.primary-dock-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.primary-dock-nav a {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.primary-dock-nav a:hover {
  color: var(--text-main);
}

.dock-cta-btn {
  background: var(--text-main);
  color: var(--bg-page);
  font-family: var(--font-heading);
  font-size: 0.80rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}
.dock-cta-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.theme-toggle-dock {
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.theme-toggle-dock:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
}

[data-theme="light"] .theme-toggle-dock .light-icon { display: none; }
[data-theme="light"] .theme-toggle-dock .dark-icon { display: block; }
[data-theme="dark"] .theme-toggle-dock .dark-icon { display: none; }
[data-theme="dark"] .theme-toggle-dock .light-icon { display: block; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* =========================================================
   HERO BENTO MASTER SECTION
   ========================================================= */
.hero-bento-section {
  padding: 40px 0 60px;
}

.hero-bento-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

/* Main Lead Bento Box */
.hero-main-bento {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-status-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.live-beacon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.beacon-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-beacon 1.8s infinite;
}
@keyframes pulse-beacon {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.time-zone-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-title-massive {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.text-gradient-shimmer {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .text-gradient-shimmer {
  background: linear-gradient(135deg, #0f172a 0%, #475569 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-prose {
  font-size: 1.06rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-action-dock {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-craft-primary {
  background: var(--text-main);
  color: var(--bg-page);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
}
.btn-craft-primary:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-craft-outline {
  background: var(--bg-chip);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
}
.btn-craft-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary-light);
  transform: translateY(-2px);
}

/* Sidebar Bento Stack */
.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Interactive Craft UI Playground Widget */
.craft-playground-bento {
  padding: 28px;
}

.craft-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.craft-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.craft-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-dim);
}

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

.sandbox-segmented-ctrl {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.seg-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.sandbox-preview-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sandbox-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.custom-range {
  width: 100%;
  accent-color: var(--accent-primary);
}

.sandbox-live-pill {
  padding: 10px 14px;
  background: var(--accent-primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

/* Quick Impact Metrics Bento */
.metrics-bento {
  padding: 26px;
}

.metrics-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bento-stat-item {
  display: flex;
  flex-direction: column;
}

.bento-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bento-stat-lbl {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 4px;
}

/* =========================================================
   LIVE TECH MARQUEE (Awwwards Style Infinite Velocity)
   ========================================================= */
.marquee-craft-section {
  padding: 24px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.marquee-flex-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-craft-section:hover .marquee-flex-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.tech-dock-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary-light);
  transform: translateY(-2px);
}
.tech-dock-chip i {
  color: var(--accent-primary);
}

/* =========================================================
   FEATURED WORK BENTO SHOWCASE (Asymmetric Grid)
   ========================================================= */
.section-craft-header {
  margin-bottom: 36px;
}

.craft-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary-light);
  background: var(--accent-primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.craft-section-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.18;
  margin-bottom: 10px;
}

.craft-section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.65;
}

.bento-work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-case-card {
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.bento-case-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-span-2 {
  grid-column: 1 / -1;
}

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.case-cat-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-year-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.case-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 10px;
}

.case-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.case-metrics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-metric-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.case-tech-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--text-dim);
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
}

/* =========================================================
   DESIGN TOKENS MATRIX LAB
   ========================================================= */
.tokens-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.token-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.token-spec-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.token-spec-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-primary-soft);
  color: var(--accent-primary-light);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.token-spec-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.token-spec-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* =========================================================
   CAREER TRAJECTORY
   ========================================================= */
.trajectory-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trajectory-card {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.trajectory-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

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

.traj-role {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.traj-company {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.traj-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary-light);
  white-space: nowrap;
}

.traj-summary {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================================
   CONTACT & ENGAGEMENT
   ========================================================= */
.contact-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.contact-info-bento {
  padding: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-prose {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-direct-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.direct-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.direct-email-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-primary-light);
  transition: color 0.2s ease;
}
.direct-email-text:hover {
  color: var(--accent-cyan);
}

.direct-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.contact-form-bento {
  padding: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.craft-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.90rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-soft);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.w-100 {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 48px 0 28px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.footer-social-links a:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 0.80rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.powered-text a {
  color: var(--accent-primary-light);
  font-weight: 700;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 991px) {
  .hero-bento-grid { grid-template-columns: 1fr; }
  .bento-work-grid { grid-template-columns: 1fr; }
  .tokens-matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-bento-grid { grid-template-columns: 1fr; }
  .metrics-row-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .primary-dock-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
  }
  .primary-dock-nav.open { display: block; }
  .primary-dock-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mobile-menu-btn { display: flex; }
  .hero-title-massive { font-size: 2.2rem; }
  .hero-main-bento { padding: 28px; }
  .tokens-matrix-grid { grid-template-columns: 1fr; }
  .metrics-row-grid { grid-template-columns: 1fr; }
}

