/* ==========================================================================
   JASHID PK — EXECUTIVE PORTFOLIO & CV DESIGN SYSTEM
   Ultra-Clean High-End Light Theme & Architectural Facade Line Art
   ========================================================================== */

:root {
  --bg-primary: #f8f9fb;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-secondary: #f1f3f7;
  --bg-subtle: #f4f6fa;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: rgba(5, 150, 105, 0.4);
  
  --text-primary: #090b0e;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --accent-emerald: #059669;
  --accent-emerald-dark: #047857;
  --accent-emerald-light: #ecfdf5;
  --accent-cyan: #0284c7;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 28px -3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px -4px rgba(0, 0, 0, 0.08);
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Architectural Facade & Media Line Art Background */
.architectural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: 
    radial-gradient(circle at 100% 0%, #0284c7 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, #059669 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h120v120H0z' fill='none'/%3E%3Cpath d='M0 60h120M60 0v120M0 0l120 120M120 0L0 120' stroke='%230f172a' stroke-width='0.6' stroke-opacity='0.4' stroke-dasharray='3 3'/%3E%3Crect x='15' y='15' width='90' height='90' fill='none' stroke='%230f172a' stroke-width='0.8' stroke-opacity='0.5'/%3E%3Crect x='30' y='30' width='60' height='60' fill='none' stroke='%230f172a' stroke-width='0.5' stroke-opacity='0.4'/%3E%3Ccircle cx='60' cy='60' r='4' fill='%23059669' fill-opacity='0.3'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 80px 80px;
}

/* Ambient Subtle Highlights */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.04) 0%, transparent 70%);
  filter: blur(80px);
}

.ambient-blob-2 {
  position: absolute;
  top: 50%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.035) 0%, transparent 70%);
  filter: blur(90px);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, .display {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: #090b0e;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(9, 11, 14, 0.2);
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(9, 11, 14, 0.28);
}

.btn-accent {
  background: var(--accent-emerald);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.25);
}

.btn-accent:hover {
  background: var(--accent-emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* Section Header */
.section-header {
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ==========================================================================
   Navigation Bar (Light Mode)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-logo-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 150, 105, 0.2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: 2px;
}

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

.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   EXECUTIVE SPLIT LAYOUT (LEFT: CV & DETAILS | RIGHT: PROJECTS STREAM)
   ========================================================================== */
.portfolio-split-layout {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1520px;
  margin: 0 auto;
  padding: 36px 32px 80px;
  position: relative;
  z-index: 2;
}

/* LEFT COLUMN: Sticky CV Sidebar */
.cv-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cv-sidebar::-webkit-scrollbar {
  width: 5px;
}
.cv-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.cv-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.cv-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Profile Card */
.profile-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: var(--transition-smooth);
}

.profile-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* Live Availability Status Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  align-self: flex-start;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 8px #059669;
  animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.2); }
}

/* Executive Circular Avatar (Face Focused - Asana & Linear Master Standard) */
.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px auto 16px auto;
  position: relative;
}

.avatar-circle-ring {
  position: relative;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.5) 0%, rgba(2, 132, 199, 0.4) 50%, rgba(203, 213, 225, 0.6) 100%);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.avatar-circle-ring:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(5, 150, 105, 0.2), 0 0 0 2px rgba(5, 150, 105, 0.35);
}

.avatar-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  border: 2.5px solid #ffffff;
}

.avatar-face-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.22);
  display: block;
  transition: transform 0.35s ease;
}

.avatar-circle-ring:hover .avatar-face-img {
  transform: scale(1.28);
}

.avatar-active-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Core Mindset & Executive Strengths (Asana UI Style) */
.mindset-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mindset-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.mindset-card:hover {
  background: #ffffff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.mindset-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  margin-top: 2px;
}

.mindset-body {
  flex: 1;
}

.mindset-heading {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #090b0e;
  line-height: 1.3;
  margin-bottom: 4px;
}

.mindset-text {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.62;
}

/* Profile Typography */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #090b0e;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.profile-name-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.12em;
}

.profile-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.profile-spec {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  margin-top: 2px;
}

.profile-bio {
  font-size: 0.91rem;
  color: #475569;
  line-height: 1.6;
  margin-top: 6px;
}

/* Bento Metrics Grid */
.bento-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0;
}

.bento-metric-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 13px 15px;
  transition: var(--transition-smooth);
}

.bento-metric-item:hover {
  background: #ffffff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.bento-metric-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #090b0e;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bento-metric-val span {
  color: #059669;
}

.bento-metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-top: 4px;
}

/* Profile CTAs */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.profile-actions-row {
  display: flex;
  gap: 10px;
}

.profile-actions-row .btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 0.86rem;
}

/* CV Tabs & Panels */
.cv-tabs-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cv-tabs-nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 5px;
  gap: 4px;
}

.cv-tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.cv-tab-btn:hover {
  color: #090b0e;
}

.cv-tab-btn.active {
  background: #ffffff;
  color: #090b0e;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cv-tab-content {
  padding: 22px;
}

.cv-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.cv-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mini Timeline Items in Left Column */
.cv-timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-left: 18px;
}

.cv-timeline-mini::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 5px;
  bottom: 8px;
  width: 2px;
  background: #e2e8f0;
}

.cv-tl-item {
  position: relative;
}

.cv-tl-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #059669;
}

.cv-tl-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.cv-tl-role {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #090b0e;
  line-height: 1.3;
}

.cv-tl-company {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.cv-tl-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

/* AI & Tech Stack Pills in CV */
.cv-stack-group {
  margin-bottom: 16px;
}

.cv-stack-group:last-child {
  margin-bottom: 0;
}

.cv-stack-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #090b0e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-stack-heading svg {
  color: #059669;
}

.cv-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-stack-chip {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: #334155;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.cv-stack-chip:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #090b0e;
}

.cv-chip-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #059669;
  font-weight: 700;
}

/* Education in CV */
.cv-edu-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.cv-edu-item:last-child {
  margin-bottom: 0;
}

.cv-edu-degree {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #090b0e;
  margin-bottom: 3px;
}

.cv-edu-inst {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 3px;
}

.cv-edu-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #059669;
}

/* Contact Footprint Card */
.cv-footprint-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-footprint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #475569;
}

.cv-footprint-item svg {
  color: #059669;
  flex-shrink: 0;
}

/* Comprehensive CV Cards (Ported from Vercel Left-Column) */
.cv-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.cv-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.cv-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #090b0e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.02em;
}

.cv-card-title span.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cv-about-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
}

/* Expertise Pillars */
.cv-expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-expertise-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: var(--transition-smooth);
}

.cv-expertise-item:hover {
  background: #ffffff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.cv-expertise-header {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #090b0e;
  margin-bottom: 8px;
}

.cv-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-tag-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
}

/* Tool Stack Rows */
.cv-stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-stack-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.cv-stack-row:hover {
  background: #ffffff;
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.cv-stack-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.cv-stack-info h4 {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: #090b0e;
  line-height: 1.2;
}

.cv-stack-info p {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 1px;
}

/* Soft Skills List */
.cv-soft-skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-soft-skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #334155;
  font-weight: 500;
}

.cv-soft-skill-item span.dot {
  color: #059669;
  font-size: 1.1rem;
  line-height: 1;
}

.cv-continuous-learning {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
}

/* Languages Box */
.cv-languages-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 12px;
}

.cv-languages-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #090b0e;
  margin-bottom: 4px;
}

.cv-languages-list {
  font-size: 0.82rem;
  color: #475569;
}

/* RIGHT COLUMN: Works Stream */
.works-stream {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stream-header {
  margin-bottom: 8px;
}

.stream-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #047857;
  margin-bottom: 8px;
}

.stream-eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
}

.stream-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #090b0e;
  line-height: 1.15;
  margin-bottom: 12px;
}

.stream-desc {
  font-size: 1.02rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 720px;
}

/* Filter Bar in Stream */
.stream-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-count-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Flagship Cards in Stream */
.flagship-showcase {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.flagship-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  transition: var(--transition-smooth);
}

.flagship-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.flagship-media {
  position: relative;
  background: #090b0e;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.flagship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.flagship-card:hover .flagship-media img {
  transform: scale(1.04);
}

.flagship-content {
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.flagship-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.flagship-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #047857;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.flagship-client {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.flagship-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #090b0e;
  margin-bottom: 6px;
  line-height: 1.25;
}

.flagship-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.4;
}

.flagship-summary {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 20px;
}

.flagship-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.flagship-metric-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #090b0e;
}

.flagship-metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

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

.play-badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.flagship-card:hover .play-badge-overlay {
  background: var(--accent-emerald);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
}

.cs-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: #475569;
  font-weight: 500;
}

/* Works Gallery Grid in Stream */
.works-grid-stream {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Stream Inquiry Card */
.stream-inquiry-card {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.stream-inquiry-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.stream-inquiry-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 520px;
  line-height: 1.5;
}

.stream-inquiry-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile View Switcher */
.mobile-view-switcher {
  display: none;
}

/* ==========================================================================
   Featured Case Studies (Deep-Dive Cards - Light Mode)
   ========================================================================== */
.case-studies {
  padding: 90px 0;
  position: relative;
}

.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.case-study-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.case-study-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.case-study-media {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-card:hover .case-study-media img {
  transform: scale(1.04);
}

.play-badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.case-study-card:hover .play-badge-overlay {
  background: var(--accent-emerald);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
}

.case-study-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.cs-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cs-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-emerald-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.cs-client {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cs-title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cs-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cs-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.cs-metric-item .val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cs-metric-item .lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

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

.cs-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chip {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Filterable Portfolio Grid (Light Mode)
   ========================================================================== */
.portfolio-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-xs);
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--accent-emerald);
  color: #ffffff;
  border-color: var(--accent-emerald);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

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

.work-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.work-card-media {
  position: relative;
  aspect-ratio: 16/10;
  background: #0f172a;
  overflow: hidden;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-media img {
  transform: scale(1.05);
}

.work-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-xs);
  color: var(--accent-emerald-dark);
}

.work-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: #ffffff;
}

.work-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.work-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--text-primary);
}

.work-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.work-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald-dark);
  transition: var(--transition-smooth);
}

.work-card:hover .work-card-action {
  gap: 9px;
  color: var(--text-primary);
}

/* ==========================================================================
   Experience & Timeline Section (CV Core - Light Mode)
   ========================================================================== */
.timeline-section {
  padding: 90px 0;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-emerald) 0%, rgba(2, 132, 199, 0.4) 60%, transparent 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -36px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.3);
}

.timeline-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.timeline-content {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

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

.tl-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tl-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-emerald-dark);
}

.tl-period {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tl-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tl-highlights {
  margin-top: 14px;
  padding-left: 20px;
  list-style-type: square;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tl-highlights li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Tools & AI Matrix (Light Mode)
   ========================================================================== */
.tools-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tool-group-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

.tool-group-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tg-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-title svg {
  color: var(--accent-emerald);
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.tool-level {
  font-size: 0.7rem;
  color: var(--accent-emerald-dark);
  font-weight: 700;
}

/* ==========================================================================
   Education & Credentials (Light Mode)
   ========================================================================== */
.education-section {
  padding: 80px 0 90px;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.edu-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

.edu-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.edu-degree {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.edu-inst {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.edu-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Contact / Executive Call to Action (Light Mode)
   ========================================================================== */
.contact-section {
  padding: 90px 0 110px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #ffffff 100%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.contact-box {
  max-width: 760px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 38px;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 48px;
}

.contact-details-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.cd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cd-item svg {
  color: var(--accent-emerald);
}

/* Footer */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Internal Case Study Detail Page Specific Styles
   ========================================================================== */
.cs-detail-hero {
  padding: 40px 0 50px;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: var(--text-primary);
  transform: translateX(-3px);
}

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

.cs-detail-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.12;
  max-width: 860px;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.cs-meta-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.cs-meta-item dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cs-hero-media-wrapper {
  margin: 40px 0 70px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-hero-media-wrapper video, .cs-hero-media-wrapper img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.cs-overview-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}

.cs-overview-title {
  font-size: 2rem;
  font-weight: 700;
}

.cs-overview-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cs-overview-approach {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 20px;
}

.cs-challenge-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 60px 0;
}

.cs-info-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-xs);
}

.cs-box-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-emerald-dark);
  margin-bottom: 8px;
}

.cs-box-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cs-box-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0 80px;
}

.cs-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cs-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cs-gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.cs-deliverables-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px;
  margin: 60px 0;
}

.cs-deliverables-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  list-style: none;
}

.cs-deliverables-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cs-deliverables-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.cs-next-nav {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

/* Floating WhatsApp Quick Action Button */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 99;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-container {
  max-width: 1080px;
  width: 100%;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.lightbox-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lightbox-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--text-primary);
}

.lightbox-body {
  padding: 0;
  background: #090b0e;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 65vh;
  overflow: hidden;
}

.lightbox-body img, .lightbox-body video {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.lightbox-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1079px) {
  .portfolio-split-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 16px 60px;
  }
  
  .cv-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  
  .mobile-view-switcher {
    display: flex;
    position: sticky;
    top: 70px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    gap: 6px;
    margin-bottom: 20px;
  }
  
  .mobile-tab-btn {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    white-space: nowrap;
  }
  
  .mobile-tab-btn.active {
    background: #090b0e;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  .flagship-card {
    grid-template-columns: 1fr;
  }
  
  .flagship-content {
    padding: 24px;
  }
  
  .works-grid-stream {
    grid-template-columns: 1fr;
  }
  
  .stream-inquiry-card {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .bento-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .stream-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }
  
  .filter-btn {
    white-space: nowrap;
  }
  
  .flagship-metrics {
    grid-template-columns: 1fr;
  }
  
  .profile-actions-row {
    flex-direction: column;
  }
}

/* Print Stylesheet for Clean CV Printing */
@media print {
  body {
    background: #ffffff !important;
    color: #090b0e !important;
  }
  
  .architectural-bg, .ambient-glow, .site-nav, .filter-bar, .float-whatsapp, .hero-ctas, .lightbox-modal, .play-badge-overlay {
    display: none !important;
  }
  
  .case-study-card, .timeline-content, .work-card, .tool-group-card, .edu-card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   TECHNOBRID CASE STUDY 1:1 REPLICATION STYLES (LIGHT THEME)
   ========================================================================== */

.container-x {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container-x {
    padding-inline: 2.5rem;
  }
}

.display {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #090b0e;
}

.text-ink { color: #090b0e; }
.text-muted { color: #64748b; }
.text-accent { color: #059669; }
.bg-surface { background-color: #ffffff; }
.bg-bg { background-color: #f8f9fb; }
.border-line { border-color: #e2e8f0; }
.border-line-strong { border-color: #cbd5e1; }

/* Aspect Ratios */
.aspect-16-9, .aspect-16\/9 { aspect-ratio: 16 / 9; }
.aspect-21-9, .aspect-21\/9 { aspect-ratio: 21 / 9; }
.aspect-39-8, .aspect-39\/8 { aspect-ratio: 39 / 8; }
.aspect-32-9, .aspect-32\/9 { aspect-ratio: 32 / 9; }
.aspect-9-16, .aspect-9\/16 { aspect-ratio: 9 / 16; }
.aspect-1-138, .aspect-1\/1\.38 { aspect-ratio: 1 / 1.38; }
.aspect-16-10, .aspect-16\/10 { aspect-ratio: 16 / 10; }

/* Case Study Navigation & Header */
.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.cs-back-link:hover {
  color: #090b0e;
}

.cs-header-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .cs-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: #090b0e;
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 58rem;
}

.btn-visit-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-visit-live:hover {
  background: #262626;
  transform: scale(1.04);
}
.btn-visit-live:active {
  transform: scale(0.96);
}

/* 5-Column Metadata List */
.cs-meta-dl {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 28px 0;
}
@media (min-width: 640px) {
  .cs-meta-dl {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .cs-meta-dl {
    grid-template-columns: repeat(5, 1fr);
  }
}
.cs-meta-dl dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
.cs-meta-dl dd {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #090b0e;
  line-height: 1.4;
}

/* Hero Media Box */
.cs-hero-box {
  position: relative;
  margin-top: 36px;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.cs-hero-box video, .cs-hero-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

/* Overview & Approach */
.cs-overview-grid {
  margin-top: 64px;
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .cs-overview-grid {
    grid-template-columns: 5fr 7fr;
  }
}
.cs-overview-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #090b0e;
}
.cs-summary-p {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(9, 11, 14, 0.85);
  font-weight: 400;
}
.cs-approach-p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(9, 11, 14, 0.7);
}

/* Section Cards & Badges */
.cs-card-3xl {
  margin-top: 64px;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
@media (min-width: 768px) {
  .cs-card-3xl {
    padding: 48px;
  }
}
.pill-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: #090b0e;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}
.pill-amber {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

/* Highlights Grid */
.cs-highlights-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .cs-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cs-highlights-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.cs-highlight-box {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(248, 249, 251, 0.7);
  padding: 16px;
}
.cs-highlight-box span:first-child {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.cs-highlight-box span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #090b0e;
  line-height: 1.4;
}

/* Challenge & Solution */
.cs-two-col-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .cs-two-col-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.cs-two-col-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
@media (min-width: 768px) {
  .cs-two-col-card {
    padding: 40px;
  }
}

/* Key Metrics */
.cs-metrics-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .cs-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}
.cs-metric-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.cs-metric-val {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #059669;
}
.cs-metric-lbl {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
}

/* Scale & Production Scope */
.cs-stats-4col {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .cs-stats-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cs-stats-4col {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cs-stat-box {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.cs-stat-val {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: #059669;
}
.cs-stat-lbl {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #090b0e;
}
.cs-stat-sub {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 12px;
}

.cs-pillars-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .cs-pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.cs-pillar-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* Continuous Timeline Marquee Carousel */
@keyframes marquee-right {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes marquee-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.timeline-carousel-wrapper {
  position: relative;
  margin-top: 32px;
  width: 100%;
  overflow: hidden;
  user-select: none;
}
.timeline-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}
.timeline-carousel-card {
  width: 320px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .timeline-carousel-card { width: 420px; }
}
@media (min-width: 768px) {
  .timeline-carousel-card { width: 480px; }
}
@media (min-width: 1024px) {
  .timeline-carousel-card { width: 540px; }
}
.timeline-carousel-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 10px 24px -4px rgba(0,0,0,0.08);
}
.timeline-carousel-card .frame-img {
  position: relative;
  width: 100%;
  aspect-ratio: 39 / 8;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-carousel-card .frame-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease-out;
}
.timeline-carousel-card:hover .frame-img img {
  transform: scale(1.02);
}

.timeline-mask-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 10;
}
.timeline-mask-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to left, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 10;
}
@media (min-width: 768px) {
  .timeline-mask-left, .timeline-mask-right { width: 110px; }
}

/* Deliverables Tags */
.cs-deliverables-wrap {
  margin-top: 64px;
  border-top: 1px solid #e2e8f0;
  padding-top: 40px;
}
.cs-deliverables-pill {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(9, 11, 14, 0.85);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Next Project Link */
.cs-next-project-link {
  margin-top: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 40px;
  text-decoration: none;
  color: #090b0e;
  transition: all 0.3s ease;
}
.cs-next-project-link:hover .cs-next-title {
  transform: translateX(12px);
  color: #059669;
}
.cs-next-project-link:hover .cs-next-arrow {
  transform: rotate(45deg);
  stroke: #059669;
}
.cs-next-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-top: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.cs-next-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

/* ==========================================================================
   DRAGON KINGDOM THRONE HALL SIDE-BY-SIDE GRID (FIX FOR SCREEN L / R ALIGNMENT)
   ========================================================================== */
.throne-hall-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .throne-hall-grid {
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) !important;
    gap: 24px !important;
    align-items: center !important;
  }
}

@media (min-width: 1024px) {
  .throne-hall-grid {
    grid-template-columns: minmax(260px, 1fr) 220px minmax(260px, 1fr) !important;
    gap: 32px !important;
  }
}

.throne-screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 280px;
}

.throne-center-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 0;
  min-width: 200px;
}

/* ==========================================================================
   PORTFOLIO PERSONA & DESIGNATION SWITCHER (ZERO-OVERFLOW BALANCED GRID)
   ========================================================================== */
.role-switcher-card {
  margin: 18px 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  overflow: hidden;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.role-switcher-card:hover {
  border-color: var(--border-strong);
}

.role-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.role-switcher-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.role-active-indicator {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.role-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

.role-pill-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  line-height: 1.3;
  user-select: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.role-pill-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.role-pill-btn.active {
  background: #090b0e;
  border-color: #090b0e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Balance executive titles and avoid any overflow */
.role-pill-btn[data-role="all"],
.role-pill-btn[data-role="spatial-media"],
.role-pill-btn[data-role="website-design"] {
  grid-column: 1 / -1;
}

.role-pill-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.role-pill-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ==========================================================================
   DYNAMIC BACKGROUND LINE-ART THEMES (MATCHING DISCIPLINE / DESIGNATION)
   ========================================================================== */
.architectural-bg {
  transition: opacity 0.4s ease, background-image 0.5s ease;
}

/* Role 1: Default / Creative Director (Architectural Facade & Perspective) */
body[data-role="all"] .architectural-bg,
body:not([data-role]) .architectural-bg {
  opacity: 0.045;
  background-image: 
    radial-gradient(circle at 100% 0%, #0284c7 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, #059669 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h120v120H0z' fill='none'/%3E%3Cpath d='M0 60h120M60 0v120M0 0l120 120M120 0L0 120' stroke='%230f172a' stroke-width='0.6' stroke-opacity='0.4' stroke-dasharray='3 3'/%3E%3Crect x='15' y='15' width='90' height='90' fill='none' stroke='%230f172a' stroke-width='0.8' stroke-opacity='0.5'/%3E%3Crect x='30' y='30' width='60' height='60' fill='none' stroke='%230f172a' stroke-width='0.5' stroke-opacity='0.4'/%3E%3Ccircle cx='60' cy='60' r='4' fill='%23059669' fill-opacity='0.3'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 80px 80px;
}

/* Role 2: Graphic Design (Pen Tool Curves, Tangent Handles, Ruler Markings) */
body[data-role="graphic-design"] .architectural-bg {
  opacity: 0.055;
  background-image: 
    radial-gradient(circle at 80% 20%, #7c3aed 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, #0284c7 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 70 C 40 10, 100 130, 130 70' fill='none' stroke='%230f172a' stroke-width='0.9'/%3E%3Ccircle cx='10' cy='70' r='3.5' fill='%237c3aed'/%3E%3Ccircle cx='130' cy='70' r='3.5' fill='%237c3aed'/%3E%3Cline x1='40' y1='10' x2='10' y2='70' stroke='%230f172a' stroke-width='0.6' stroke-dasharray='2 2'/%3E%3Ccircle cx='40' cy='10' r='2.5' fill='none' stroke='%237c3aed' stroke-width='1'/%3E%3Cline x1='100' y1='130' x2='130' y2='70' stroke='%230f172a' stroke-width='0.6' stroke-dasharray='2 2'/%3E%3Ccircle cx='100' cy='130' r='2.5' fill='none' stroke='%237c3aed' stroke-width='1'/%3E%3Cpath d='M0 0h140M0 10h10M0 20h5M0 30h10M0 40h5M0 50h10M0 60h5M0 70h14M0 80h5M0 90h10M0 100h5M0 110h10M0 120h5M0 130h10' stroke='%230f172a' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 140px 140px;
}

/* Role 3: Motion Graphics (Filmstrip Sprockets, Keyframe Diamonds, Audio Waveforms) */
body[data-role="motion-graphics"] .architectural-bg {
  opacity: 0.055;
  background-image: 
    radial-gradient(circle at 90% 10%, #ea580c 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, #db2777 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='140' height='140' rx='6' fill='none' stroke='%230f172a' stroke-width='0.8'/%3E%3Crect x='18' y='22' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Crect x='18' y='50' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Crect x='18' y='78' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Crect x='18' y='106' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Crect x='130' y='22' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Crect x='130' y='50' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Crect x='130' y='78' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Crect x='130' y='106' width='12' height='18' rx='2' fill='%230f172a' fill-opacity='0.4'/%3E%3Cpolygon points='80,68 88,80 80,92 72,80' fill='%23ea580c' fill-opacity='0.5'/%3E%3Cline x1='36' y1='80' x2='124' y2='80' stroke='%230f172a' stroke-width='0.7' stroke-dasharray='4 2'/%3E%3Cline x1='80' y1='30' x2='80' y2='130' stroke='%23ea580c' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 160px 160px;
}

/* Role 4: Branding (Golden Ratio Circles, Brand Construction Grid, Fibonacci Spirals) */
body[data-role="branding"] .architectural-bg {
  opacity: 0.055;
  background-image: 
    radial-gradient(circle at 100% 50%, #f59e0b 0%, transparent 40%),
    radial-gradient(circle at 0% 50%, #6366f1 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='90' cy='90' r='80' fill='none' stroke='%230f172a' stroke-width='0.7' stroke-dasharray='4 3'/%3E%3Ccircle cx='90' cy='90' r='50' fill='none' stroke='%23f59e0b' stroke-width='0.8'/%3E%3Ccircle cx='90' cy='90' r='30' fill='none' stroke='%230f172a' stroke-width='0.6'/%3E%3Ccircle cx='90' cy='90' r='18' fill='none' stroke='%236366f1' stroke-width='0.8'/%3E%3Cline x1='0' y1='90' x2='180' y2='90' stroke='%230f172a' stroke-width='0.5'/%3E%3Cline x1='90' y1='0' x2='90' y2='180' stroke='%230f172a' stroke-width='0.5'/%3E%3Cline x1='26' y1='26' x2='154' y2='154' stroke='%230f172a' stroke-width='0.4' stroke-dasharray='2 2'/%3E%3Cline x1='154' y1='26' x2='26' y2='154' stroke='%230f172a' stroke-width='0.4' stroke-dasharray='2 2'/%3E%3Ccircle cx='90' cy='40' r='3' fill='%23f59e0b'/%3E%3Ccircle cx='140' cy='90' r='3' fill='%23f59e0b'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 180px 180px;
}

/* Role 5: AI Automation (Neural Network Nodes, Data Flow Arrows, Flowchart Pipelines) */
body[data-role="ai-automation"] .architectural-bg {
  opacity: 0.055;
  background-image: 
    radial-gradient(circle at 10% 20%, #10b981 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, #06b6d4 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='15' y='20' width='42' height='26' rx='6' fill='none' stroke='%2310b981' stroke-width='1'/%3E%3Crect x='93' y='20' width='42' height='26' rx='6' fill='none' stroke='%2306b6d4' stroke-width='1'/%3E%3Crect x='54' y='85' width='42' height='26' rx='6' fill='none' stroke='%230f172a' stroke-width='1'/%3E%3Cpath d='M36 46 v24 h39 v15' fill='none' stroke='%2310b981' stroke-width='0.8' stroke-dasharray='3 2'/%3E%3Cpath d='M114 46 v24 h-39 v15' fill='none' stroke='%2306b6d4' stroke-width='0.8' stroke-dasharray='3 2'/%3E%3Ccircle cx='36' cy='33' r='3' fill='%2310b981'/%3E%3Ccircle cx='114' cy='33' r='3' fill='%2306b6d4'/%3E%3Ccircle cx='75' cy='98' r='3' fill='%230f172a'/%3E%3Ccircle cx='75' cy='70' r='4' fill='none' stroke='%2310b981' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 150px 150px;
}

/* Role 6: Website Design (Browser Chrome, 12-Col Responsive Grid, Wireframes) */
body[data-role="website-design"] .architectural-bg {
  opacity: 0.055;
  background-image: 
    radial-gradient(circle at 50% 0%, #3b82f6 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, #6366f1 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='12' y='12' width='136' height='136' rx='8' fill='none' stroke='%230f172a' stroke-width='0.8'/%3E%3Cline x1='12' y1='32' x2='148' y2='32' stroke='%230f172a' stroke-width='0.7'/%3E%3Ccircle cx='22' cy='22' r='2' fill='%23ef4444'/%3E%3Ccircle cx='28' cy='22' r='2' fill='%23f59e0b'/%3E%3Ccircle cx='34' cy='22' r='2' fill='%2310b981'/%3E%3Crect x='44' y='17' width='60' height='10' rx='3' fill='none' stroke='%230f172a' stroke-width='0.5'/%3E%3Crect x='22' y='42' width='36' height='40' rx='4' fill='none' stroke='%233b82f6' stroke-width='0.7'/%3E%3Crect x='64' y='42' width='74' height='18' rx='4' fill='none' stroke='%230f172a' stroke-width='0.5'/%3E%3Crect x='64' y='66' width='74' height='16' rx='4' fill='none' stroke='%230f172a' stroke-width='0.5' stroke-dasharray='2 2'/%3E%3Crect x='22' y='92' width='116' height='44' rx='4' fill='none' stroke='%236366f1' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 160px 160px;
}

/* Role 7: Spatial Media & Facades (Parametric LED Facade Mesh, DMX Fixtures, Perspective Grid) */
body[data-role="spatial-media"] .architectural-bg {
  opacity: 0.06;
  background-image: 
    radial-gradient(circle at 80% 10%, #06b6d4 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, #8b5cf6 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 L80 10 L160 40 L160 120 L80 150 L0 120 Z' fill='none' stroke='%2306b6d4' stroke-width='0.9'/%3E%3Cline x1='80' y1='10' x2='80' y2='150' stroke='%238b5cf6' stroke-width='0.8' stroke-dasharray='3 2'/%3E%3Cline x1='0' y1='65' x2='80' y2='35' stroke='%230f172a' stroke-width='0.5'/%3E%3Cline x1='80' y1='35' x2='160' y2='65' stroke='%230f172a' stroke-width='0.5'/%3E%3Cline x1='0' y1='95' x2='80' y2='65' stroke='%230f172a' stroke-width='0.5'/%3E%3Cline x1='80' y1='65' x2='160' y2='95' stroke='%230f172a' stroke-width='0.5'/%3E%3Ccircle cx='80' cy='10' r='3' fill='%2306b6d4'/%3E%3Ccircle cx='160' cy='40' r='2.5' fill='%238b5cf6'/%3E%3Ccircle cx='0' cy='40' r='2.5' fill='%238b5cf6'/%3E%3Ccircle cx='80' cy='65' r='2.5' fill='%2306b6d4'/%3E%3Ccircle cx='80' cy='150' r='3' fill='%2306b6d4'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 160px 160px;
}

/* ==========================================================================
   REMAH SHOWCASE BESPOKE STYLING (LIVE SCREENS TABS & SCAN SIMULATOR)
   ========================================================================== */
.remah-live-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.remah-live-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #333333;
  background: #171717;
  color: #a3a3a3;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remah-live-tab-btn:hover {
  background: #262626;
  color: #ffffff;
}

.remah-live-tab-btn.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.remah-tab-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  color: #e5e5e5;
}

.remah-browser-chrome {
  background: #171717;
  padding: 12px 18px;
  border-bottom: 1px solid #262626;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #a3a3a3;
}

.remah-browser-dots {
  display: flex;
  gap: 6px;
}

.remah-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.remah-browser-dot.red { background: #ef4444; }
.remah-browser-dot.yellow { background: #f59e0b; }
.remah-browser-dot.green { background: #10b981; }

.remah-browser-url {
  margin-left: 14px;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d4d4d4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remah-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}

.remah-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 1.5s infinite;
}

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

.remah-sim-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1.58 / 1;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #333333;
  background: linear-gradient(135deg, #171717 0%, #1f1f1f 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.4s ease;
}

.remah-sim-card.scanning {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  transform: scale(1.02);
}


