/* ==========================================================================
   DR. SHUBHAM KESHRI — ULTRA-LUXURY INTERACTIVE PORTFOLIO
   Dynamic Dual-Theme (Dark & Light) + Three.js 3D Model + High-Animation
   ========================================================================== */

:root {
  /* Default: Dark Theme */
  --bg-deep: #06080d;
  --bg-card: rgba(13, 18, 28, 0.68);
  --bg-card-hover: rgba(20, 27, 43, 0.84);
  --bg-surface: #0b0f17;
  --bg-modal: #0f1523;
  --nav-bg: rgba(6, 8, 13, 0.82);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-specular: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(245, 158, 11, 0.4);
  --grid-line: rgba(255, 255, 255, 0.03);
  
  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --cyan-primary: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  
  --card-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  --card-shadow-hover: 0 40px 100px rgba(245, 158, 11, 0.2);
  --spotlight-color: rgba(245, 158, 11, 0.12);

  /* Typography */
  --font-display: "Space Grotesk", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --font-sans: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables — Perfect Contrast & Visibility */
[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-modal: #ffffff;
  --nav-bg: rgba(248, 250, 252, 0.88);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-specular: rgba(15, 23, 42, 0.18);
  --border-glow: rgba(217, 119, 6, 0.35);
  --grid-line: rgba(15, 23, 42, 0.04);
  
  --gold-primary: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.25);
  --gold-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --cyan-primary: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.25);
  --emerald-primary: #059669;
  --emerald-glow: rgba(5, 150, 105, 0.2);
  
  --card-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 25px 60px rgba(217, 119, 6, 0.14);
  --spotlight-color: rgba(217, 119, 6, 0.08);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

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

/* Top Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px var(--gold-primary);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Ambient Radial Mesh & Gradients */
.ambient-background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  transition: opacity 0.5s ease;
  will-change: transform;
}

[data-theme="light"] .orb-glow {
  opacity: 0.08;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--gold-primary), transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatOrb 18s infinite ease-in-out alternate;
}

.orb-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: 35%;
  left: -250px;
  animation: floatOrb2 22s infinite ease-in-out alternate;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--emerald-primary), transparent 70%);
  bottom: 5%;
  right: 10%;
  animation: floatOrb 20s infinite ease-in-out alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
  100% { transform: translate(-40px, 120px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.1); }
  100% { transform: translate(50px, -100px) scale(1.05); }
}

/* Subtle Architectural Ambient Texture */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.container {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Typography Helpers */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gradient-text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* ==========================================================================
   NAVIGATION BAR WITH THEME SWITCHER
   ========================================================================== */

header.luxury-nav {
  position: sticky;
  top: 18px;
  margin: 18px auto 0 auto;
  width: calc(100% - 48px);
  max-width: 1220px;
  height: 66px;
  display: flex;
  align-items: center;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px; /* Floating Island Capsule Shape */
  padding: 0 10px 0 18px;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 30px rgba(217, 119, 6, 0.08);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] header.luxury-nav {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 
    0 16px 40px -10px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(2, 132, 199, 0.06);
}

header.luxury-nav.scrolled {
  top: 12px;
  height: 60px;
  background: rgba(6, 9, 16, 0.94);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(217, 119, 6, 0.14);
}

[data-theme="light"] header.luxury-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(217, 119, 6, 0.25);
  box-shadow: 0 18px 45px -8px rgba(15, 23, 42, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 4px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(6, 182, 212, 0.12));
  border: 1px solid var(--border-specular);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-emblem::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(45deg);
  animation: emblemShine 4s infinite linear;
}

@keyframes emblemShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.brand-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 220px;
}

.brand-meta h2 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-meta p,
.brand-meta .brand-role-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin: 2px 0 0 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

nav.nav-links .nav-link {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

nav.nav-links .nav-link:hover {
  color: var(--text-primary);
}

nav.nav-links .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-links .nav-link:hover::after,
nav.nav-links .nav-link.active::after {
  width: 100%;
}

/* Nav Actions Group (Theme Toggle + Initiate Dialogue CTA) */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-specular);
  color: var(--gold-primary);
  cursor: pointer;
  transition: all 0.25s var(--ease-snappy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.theme-toggle-btn:hover {
  transform: scale(1.06) rotate(12deg);
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
}

/* Nav CTA Button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: #06080d !important;
  padding: 9px 18px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--gold-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.4);
  filter: brightness(1.06);
}

[data-theme="light"] .nav-cta-btn {
  color: #06080d !important;
}



.nav-cta-btn::after {
  display: none !important;
}

/* ==========================================================================
   HERO SECTION WITH 3D CANVAS & ENRICHED ANIMATIONS
   ========================================================================== */

.hero-wrap {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 68% 44%, rgba(6, 182, 212, 0.10) 0%, rgba(245, 158, 11, 0.06) 35%, transparent 70%);
}

[data-theme="light"] .hero-wrap {
  background: radial-gradient(circle at 68% 44%, rgba(245, 158, 11, 0.09) 0%, rgba(2, 132, 199, 0.07) 35%, transparent 70%);
}

#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  position: relative;
  z-index: 2;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-specular);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: pulseGlow 3s infinite alternate;
}

.pill-badge .mono {
  color: var(--text-primary);
}

@keyframes pulseGlow {
  0% { border-color: var(--border-specular); box-shadow: 0 0 10px rgba(245, 158, 11, 0.1); }
  100% { border-color: var(--gold-primary); box-shadow: 0 0 25px var(--gold-glow); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-primary);
  box-shadow: 0 0 12px var(--emerald-primary);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(52px, 6.8vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

/* ==========================================================================
   PROMINENT EXECUTIVE EXTENDER TITLE BADGE (HERO)
   ========================================================================== */
.hero-executive-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 18px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 1.3vw, 13.5px);
  color: var(--gold-light);
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 100%;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.hero-executive-title:hover {
  border-color: var(--gold-primary);
  background: rgba(217, 119, 6, 0.12);
  transform: translateY(-2px);
}

.hero-executive-title .title-star {
  color: var(--cyan-primary);
  font-size: 13px;
  flex-shrink: 0;
}

.hero-executive-title .title-text {
  font-weight: 600;
}

[data-theme="light"] .hero-executive-title {
  background: rgba(217, 119, 6, 0.07);
  border-color: rgba(217, 119, 6, 0.32);
  color: #b45309;
}

.hero-desc {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.btn-glow-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #06080d;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 30px var(--gold-glow);
  transition: all 0.3s var(--ease-snappy);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .btn-glow-primary {
  color: #ffffff;
}

.btn-glow-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 45px var(--gold-glow);
}

.btn-outline-glass {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-specular);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-snappy);
}

.btn-outline-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

/* Quick Hero Stats Row */
.hero-stats-row {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-number span {
  color: var(--gold-primary);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 3D Floating Circular Portrait Frame */
.portrait-3d-card-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px 0;
}

.portrait-3d-card {
  position: relative;
  width: 480px;
  height: 480px;
  max-width: 88vw;
  max-height: 88vw;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-specular);
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 50px rgba(245, 158, 11, 0.15);
  transition: transform 0.4s var(--ease-snappy), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-3d-card:hover {
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.4), 0 0 65px rgba(245, 158, 11, 0.25);
}

/* Glowing Orbital Ring around the Circle */
.portrait-3d-card::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-primary), var(--cyan-primary), var(--emerald-primary), var(--gold-primary));
  z-index: -1;
  opacity: 0.65;
  filter: blur(5px);
  animation: borderRotate 8s infinite linear;
}

.portrait-3d-card::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 158, 11, 0.35);
  z-index: -2;
  animation: borderRotate 28s infinite linear reverse;
}

@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.35);
}

.portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  transition: transform 0.6s var(--ease-snappy);
}

.portrait-3d-card:hover .portrait-inner img {
  transform: scale(1.08);
}

/* Floating Bottom Executive Pill Badge */
.portrait-hologram-footer {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  padding: 10px 22px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-specular);
  border-radius: 9999px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.1);
  white-space: nowrap;
  z-index: 10;
}

.portrait-hologram-footer h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.portrait-hologram-footer p {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold-primary);
  margin-top: 2px;
}

/* Floating Top-Right Status Chip */
.floating-chip {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatChip 5s infinite ease-in-out;
  transform: translateZ(40px);
  z-index: 10;
}

.floating-chip strong {
  color: var(--text-primary);
  font-size: 12px;
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   INFINITE MARQUEE TICKER
   ========================================================================== */

.marquee-container {
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 0;
  position: relative;
  z-index: 2;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-star {
  color: var(--gold-primary);
  font-size: 16px;
}

/* ==========================================================================
   SECTIONS & INTERACTIVE SPOTLIGHT BENTO GRID
   ========================================================================== */

.section-wrap {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

#profile-bento {
  background: radial-gradient(circle at 25% 50%, rgba(245, 158, 11, 0.06) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
}

#deep-tech {
  background: radial-gradient(circle at 80% 45%, rgba(6, 182, 212, 0.08) 0%, rgba(16, 185, 129, 0.05) 40%, transparent 70%);
}

#governance {
  background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.06) 0%, rgba(245, 158, 11, 0.05) 45%, transparent 70%);
}

#gallery {
  background: radial-gradient(circle at 75% 50%, rgba(99, 102, 241, 0.07) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
}

#credentials {
  background: radial-gradient(circle at 25% 50%, rgba(245, 158, 11, 0.06) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
}

#contact {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, rgba(245, 158, 11, 0.06) 40%, transparent 70%);
}

[data-theme="light"] #profile-bento {
  background: radial-gradient(circle at 25% 50%, rgba(217, 119, 6, 0.07) 0%, rgba(79, 70, 229, 0.05) 40%, transparent 70%);
}

[data-theme="light"] #deep-tech {
  background: radial-gradient(circle at 80% 45%, rgba(2, 132, 199, 0.08) 0%, rgba(5, 150, 105, 0.06) 40%, transparent 70%);
}

[data-theme="light"] #governance {
  background: radial-gradient(circle at 30% 50%, rgba(5, 150, 105, 0.07) 0%, rgba(217, 119, 6, 0.05) 45%, transparent 70%);
}

[data-theme="light"] #gallery {
  background: radial-gradient(circle at 75% 50%, rgba(79, 70, 229, 0.07) 0%, rgba(2, 132, 199, 0.05) 40%, transparent 70%);
}

[data-theme="light"] #credentials {
  background: radial-gradient(circle at 25% 50%, rgba(217, 119, 6, 0.07) 0%, rgba(2, 132, 199, 0.05) 40%, transparent 70%);
}

[data-theme="light"] #contact {
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.08) 0%, rgba(217, 119, 6, 0.06) 40%, transparent 70%);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
}

.section-pill-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title-large {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.bento-showcase-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
}

.spotlight-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 44px;
  overflow: hidden;
  transition: all 0.4s var(--ease-snappy);
  box-shadow: var(--card-shadow);
}

.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--card-shadow-hover);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--spotlight-color), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), transparent);
  border: 1px solid var(--border-glow);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--gold-primary);
  margin-bottom: 26px;
  box-shadow: 0 0 20px var(--gold-glow);
}

.spotlight-card h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.spotlight-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

[data-theme="light"] .tech-chip {
  background: rgba(15, 23, 42, 0.04);
}

.spotlight-card:hover .tech-chip {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

/* ==========================================================================
   ULTRA-REALISTIC 3D CADASTRE OS EXECUTIVE WORKSTATION SHOWCASE
   ========================================================================== */

.cadastre-workstation-showcase {
  position: relative;
  margin-top: 48px;
  perspective: 1400px;
}

.workstation-outer-wrap {
  position: relative;
  width: 100%;
}

/* 3D Hardware Chassis (CNC Machined Titanium & Glass) */
.workstation-chassis {
  position: relative;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 40px rgba(217, 119, 6, 0.12);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

[data-theme="light"] .workstation-chassis {
  background: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 
    0 25px 60px -15px rgba(15, 23, 42, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0 35px rgba(2, 132, 199, 0.15);
}

/* Specular Bevel Rim Highlight */
.workstation-bezel-rim {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  pointer-events: none;
  z-index: 10;
}

/* Specular Glass Glare Sheen */
.workstation-glass-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 11;
  transition: background 0.1s ease;
}

/* Physical Hardware Top Bar */
.workstation-hw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(14, 20, 34, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.hw-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.hw-dot-red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
.hw-dot-yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.hw-dot-green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }

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

.hw-logo-badge {
  background: var(--gold-gradient);
  color: #06080d;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.hw-system-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.hw-status-telemetry {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #cbd5e1;
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Master 3-Column Screen Display */
.workstation-screen {
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  min-height: 560px;
  background: #06080f;
  position: relative;
}

/* 1. Left Sidebar */
.screen-sidebar-left {
  background: rgba(10, 15, 26, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.sidebar-header {
  margin-bottom: 2px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 10px;
  border-radius: 6px;
  color: #94a3b8;
}

.sidebar-search input {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 11px;
  width: 100%;
  outline: none;
}

.sidebar-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.layer-switch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layer-toggle-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.layer-toggle-row.active {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.4);
  color: #ffffff;
}

.layer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.layer-icon {
  font-size: 16px;
}

.layer-info strong {
  display: block;
  font-size: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.layer-info small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.layer-status-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.layer-status-pill.green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.layer-status-pill.blue { background: rgba(2, 132, 199, 0.15); color: #38bdf8; border: 1px solid rgba(2, 132, 199, 0.3); }
.layer-status-pill.gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.parcel-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parcel-ledger-item {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.parcel-ledger-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.parcel-ledger-item.active {
  background: rgba(217, 119, 6, 0.1);
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.15);
}

.parcel-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.parcel-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
}

.parcel-badge-gold {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: var(--gold-gradient);
  color: #06080d;
  padding: 1px 5px;
  border-radius: 3px;
}

.parcel-badge-cyan {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.parcel-name {
  font-size: 12px;
  color: #f1f5f9;
  font-weight: 500;
  margin-bottom: 2px;
}

.parcel-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
}

/* 2. Center GIS Viewport */
.screen-viewport {
  position: relative;
  overflow: hidden;
  background: #030712;
  min-height: 540px;
}

.viewport-layer-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease;
  pointer-events: none;
}

.viewport-layer-image.visible {
  opacity: 1;
  pointer-events: auto;
}

.viewport-layer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Radar Scanline Animation */
.viewport-radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.08) 50%, rgba(16, 185, 129, 0.35) 98%, #10b981 100%);
  pointer-events: none;
  animation: radarScan 5s linear infinite;
  z-index: 5;
}

@keyframes radarScan {
  0% { transform: translateX(-140px); }
  100% { transform: translateX(850px); }
}

/* Interactive Pins */
.interactive-pin {
  position: absolute;
  cursor: pointer;
  z-index: 8;
  transform: translate(-50%, -50%);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-pin:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.pin-hq {
  top: 48%;
  left: 54%;
}

.pin-commercial#pin-lot-101 {
  top: 32%;
  left: 42%;
}

.pin-commercial#pin-lot-102 {
  top: 66%;
  left: 62%;
}

.pin-radar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  animation: ringPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.pin-marker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 20, 34, 0.92);
  border: 1.5px solid var(--gold-primary);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px var(--gold-glow);
  backdrop-filter: blur(8px);
}

.pin-commercial .pin-marker {
  border-color: #38bdf8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.4);
}

.pin-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-primary);
  border-radius: 50%;
  display: inline-block;
}

.pin-commercial .pin-dot {
  background: #38bdf8;
}

.pin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Floating Sovereign Deed Inspector Modal */
.sovereign-deed-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 320px;
  background: rgba(10, 16, 28, 0.94);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(217, 119, 6, 0.2);
  backdrop-filter: blur(14px);
  z-index: 15;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sovereign-deed-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
}

.deed-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.deed-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deed-crest {
  font-size: 20px;
}

.deed-cert-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
}

.deed-cert-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.deed-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.deed-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.deed-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deed-field {
  display: flex;
  flex-direction: column;
}

.deed-field.full-width {
  grid-column: 1 / -1;
}

.deed-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.deed-val {
  font-size: 11px;
  color: #f1f5f9;
  font-weight: 600;
}

.deed-hash-code {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 8px;
  border-radius: 4px;
  color: #38bdf8;
  word-break: break-all;
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: block;
}

.deed-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.deed-pill-approved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.deed-pill-dpiit {
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}

.deed-download-action {
  background: var(--gold-gradient);
  border: none;
  color: #06080d;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.deed-download-action:hover {
  transform: translateY(-1px);
}

/* Viewport Bottom Floating HUD */
.viewport-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9;
  pointer-events: none;
}

.hud-stat-chip {
  background: rgba(14, 20, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 11px;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.hud-tool-buttons {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.hud-btn {
  background: rgba(14, 20, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: var(--gold-gradient);
  color: #06080d;
  border-color: transparent;
}

/* 3. Right Sidebar */
.screen-sidebar-right {
  background: rgba(10, 15, 26, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.analytics-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.analytics-large-num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2px;
}

.analytics-sub {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono);
}

.sparkline-wrap {
  width: 100%;
  height: 52px;
  margin: 6px 0;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #64748b;
}

.fiduciary-seal-card {
  display: flex;
  gap: 10px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 10px;
  padding: 12px;
}

.seal-icon {
  font-size: 22px;
}

.seal-content strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.seal-content p {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.live-terminal-feed {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.terminal-log-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.3;
}

.log-line.green { color: #34d399; }
.log-line.gold { color: #fbbf24; }

/* Outer Bottom Interactive Control Deck */
.workstation-outer-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.deck-controls-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deck-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-specular);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-snappy);
}

.deck-btn:hover {
  background: var(--gold-gradient);
  color: #06080d;
  border-color: transparent;
  box-shadow: 0 0 15px var(--gold-glow);
}

.deck-btn.active {
  background: var(--gold-gradient);
  color: #06080d;
  border-color: transparent;
  box-shadow: 0 0 15px var(--gold-glow);
}

[data-theme="light"] .deck-btn.active,
[data-theme="light"] .deck-btn:hover {
  color: #ffffff;
}

.deck-status-readout {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.status-indicator-live {
  color: var(--emerald-primary);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .workstation-screen {
    grid-template-columns: 240px 1fr;
  }
  .screen-sidebar-right {
    display: none;
  }
}

@media (max-width: 820px) {
  .workstation-screen {
    grid-template-columns: 1fr;
  }
  .screen-sidebar-left {
    display: none;
  }
  .workstation-outer-deck {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   MULTI-STATE ELECTORAL STRATEGY RADAR
   ========================================================================== */

.states-radar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.state-radar-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-snappy);
  box-shadow: var(--card-shadow);
}

.state-radar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--cyan-primary));
  opacity: 0.8;
}

.state-radar-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--card-shadow-hover);
}

.state-top-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.state-top-head h4 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.state-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  border: 1px solid var(--border-glow);
}

.state-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.state-meta-box {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}

.state-meta-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.state-meta-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
}

.state-meta-box li::before {
  content: "→ ";
  color: var(--gold-primary);
}

/* ==========================================================================
   PHOTO ARCHIVE & LIGHTBOX
   ========================================================================== */

.filter-pill-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease-snappy);
}

.filter-pill-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.filter-pill-btn.active {
  background: var(--gold-gradient);
  color: #06080d;
  border-color: transparent;
  box-shadow: 0 0 20px var(--gold-glow);
}

[data-theme="light"] .filter-pill-btn.active {
  color: #ffffff;
}

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

.gallery-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-snappy);
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: var(--card-shadow-hover);
}

.gallery-card-img-box {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.gallery-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-snappy);
}

.gallery-card:hover .gallery-card-img-box img {
  transform: scale(1.08);
}

.gallery-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-specular);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.gallery-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.gallery-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 30px;
}

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

.lightbox-inner {
  max-width: 960px;
  width: 100%;
  background: var(--bg-modal);
  border: 1px solid var(--border-specular);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.95);
  animation: scaleUpModal 0.3s var(--ease-snappy) forwards;
}

@keyframes scaleUpModal {
  to { transform: scale(1); }
}

.lightbox-img {
  max-height: 75vh;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: block;
}

.lightbox-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 38px;
  cursor: pointer;
}

/* ==========================================================================
   ACADEMIC RESEARCH TIMELINE
   ========================================================================== */

.research-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-row {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: baseline;
  transition: all 0.3s var(--ease-snappy);
  box-shadow: var(--card-shadow);
}

.timeline-row:hover {
  border-color: var(--gold-primary);
  transform: translateX(6px);
  box-shadow: var(--card-shadow-hover);
}

.timeline-year-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-primary);
  font-weight: 600;
}

.timeline-inst {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   EXECUTIVE CONSULTATION FORM (MONGODB POWERED)
   ========================================================================== */

.consultation-wrap-box {
  background: var(--bg-card);
  border: 1px solid var(--border-specular);
  border-radius: 28px;
  padding: 70px 60px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.consultation-wrap-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--gold-gradient);
  box-shadow: 0 0 20px var(--gold-primary);
}

.consultation-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-meta-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

[data-theme="light"] .contact-meta-card {
  background: rgba(15, 23, 42, 0.02);
}

.contact-meta-row {
  display: flex;
  flex-direction: column;
}

.contact-meta-row span.mono {
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.contact-meta-row a, .contact-meta-row p {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

.form-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group-field {
  margin-bottom: 22px;
}

.form-group-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input-lux {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all 0.25s var(--ease-snappy);
}

[data-theme="light"] .form-input-lux {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.form-input-lux:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px var(--gold-glow);
}

.form-input-lux option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-feedback-alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  display: none;
}

.form-feedback-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-primary);
}

.form-feedback-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* ==========================================================================
   FOOTER & MODAL SYSTEM PORTAL
   ========================================================================== */

footer.luxury-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0;
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-copy {
  color: var(--text-primary);
  font-weight: 600;
}

.portal-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

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

.portal-modal-card {
  background: var(--bg-modal);
  border: 1px solid var(--border-specular);
  border-radius: 18px;
  padding: 36px;
  max-width: 580px;
  width: 100%;
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
}

.portal-modal-card h3, .portal-modal-card h4 {
  color: var(--text-primary);
}

.portal-modal-card button#portal-close {
  color: var(--text-primary);
}

/* Scroll Animation */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-snappy), transform 0.8s var(--ease-snappy);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE MENU TOGGLE & SLIDING DRAWER
   ========================================================================== */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-specular);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s var(--ease-snappy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-menu-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
}

.hamburger-line {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 360px;
  background: #090d16;
  border-left: 1px solid var(--border-specular);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

[data-theme="light"] .mobile-drawer-panel {
  background: #ffffff;
  border-left-color: rgba(15, 23, 42, 0.1);
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.15);
}

.mobile-nav-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

[data-theme="light"] .mobile-drawer-close {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-primary);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

[data-theme="light"] .mobile-nav-item {
  background: rgba(15, 23, 42, 0.02);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.3);
}

.mobile-nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-primary);
  font-weight: 700;
}

.mobile-nav-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   COMPREHENSIVE DEVICE RESPONSIVENESS (MOBILE, TABLET, DESKTOP, ULTRA-WIDE)
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-wrap {
    padding: 60px 0 80px;
  }
  .hero-grid-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-align: center;
  }
  .portrait-3d-card-wrap {
    order: -1; /* Circular photo renders BEFORE name on mobile/tablet */
    max-width: 420px;
    margin: 10px auto 20px auto;
  }
  .hero-text-side {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .portrait-3d-card {
    width: 320px;
    height: 320px;
    margin: 0 auto;
  }
  .bento-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cadastre-workstation-showcase {
    perspective: none;
  }
  .workstation-screen {
    grid-template-columns: 240px 1fr;
  }
  .screen-sidebar-right {
    display: none;
  }
  .states-radar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .gallery-interactive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* 1.5. Laptops & Medium Screens (1081px - 1260px) */
@media (max-width: 1260px) {
  nav.nav-links {
    gap: 14px;
  }
  nav.nav-links .nav-link {
    font-size: 12.5px;
  }
  .nav-cta-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .brand-badge {
    gap: 10px;
  }
}

/* 2. Tablets, Compact Laptops & Mobile Nav Collapse (<= 1080px) */
@media (max-width: 1080px) {
  nav.nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  header.luxury-nav {
    width: calc(100% - 32px);
    top: 14px;
    margin: 14px auto 0 auto;
    height: 60px;
    padding: 0 10px 0 16px;
  }
  .brand-meta p,
  .brand-meta .brand-role-tag {
    display: none; /* Keep brand emblem + title compact on mobile nav */
  }
  .directorships-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .states-radar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3. Phablets & Smartphones (<= 768px) */
@media (max-width: 768px) {
  header.luxury-nav {
    width: calc(100% - 20px);
    top: 10px;
    margin: 10px auto 0 auto;
    height: 56px;
    padding: 0 8px 0 12px;
  }
  .nav-cta-btn {
    display: none; /* Available in mobile drawer */
  }
  .hero-wrap {
    padding: 40px 0 60px;
    min-height: auto;
  }
  .hero-headline {
    font-size: clamp(2.2rem, 7.5vw, 3.6rem);
  }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .portrait-3d-card-wrap {
    order: -1;
    margin: 5px auto 25px auto;
  }
  .portrait-3d-card {
    width: 275px;
    height: 275px;
    margin: 0 auto;
  }
  .portrait-hologram-footer {
    bottom: -14px;
    padding: 8px 16px;
    gap: 10px;
  }
  .portrait-hologram-footer h4 {
    font-size: 13.5px;
  }
  .portrait-hologram-footer p {
    font-size: 9.5px;
  }
  .floating-chip {
    top: -6px;
    right: -4px;
    padding: 7px 12px;
  }
  .floating-chip p {
    display: none;
  }
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .hero-stats-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat-item {
    padding: 12px 8px;
  }
  .stat-number {
    font-size: clamp(22px, 5.5vw, 32px);
  }
  .stat-label {
    font-size: 11px;
  }

  /* Cadastre Workstation Mobile Optimization */
  .workstation-chassis {
    border-radius: 14px;
  }
  .workstation-hw-bar {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hw-status-telemetry {
    display: none; /* Hide dense telemetry text in header on small screens */
  }
  .workstation-screen {
    grid-template-columns: 1fr;
    min-height: 420px;
  }
  .screen-sidebar-left {
    display: none;
  }
  .screen-viewport {
    min-height: 420px;
    height: 60vw;
  }
  .viewport-hud-bottom {
    left: 8px;
    right: 8px;
    bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hud-stat-chip {
    font-size: 9.5px;
    padding: 4px 8px;
  }
  .hud-btn {
    font-size: 9.5px;
    padding: 4px 8px;
  }
  .sovereign-deed-modal {
    top: auto;
    bottom: 50px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: calc(100% - 16px);
    padding: 12px;
  }
  .deed-body-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .workstation-outer-deck {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .deck-controls-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .deck-btn {
    justify-content: center;
    font-size: 11.5px;
    padding: 8px 12px;
  }
  .deck-status-readout {
    font-size: 11px;
    padding: 10px 14px;
    text-align: center;
  }

  /* Other Sections */
  .hero-executive-title {
    font-size: 11px;
    padding: 6px 12px;
    gap: 6px;
    margin-bottom: 16px;
    border-radius: 12px;
    line-height: 1.45;
  }
  .directorships-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .directorship-card {
    padding: 24px 20px;
  }
  .states-radar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .state-radar-card {
    padding: 24px 20px;
  }
  .gallery-interactive-grid {
    grid-template-columns: 1fr;
  }
  .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 18px;
  }
  .consultation-wrap-box {
    padding: 32px 18px;
    border-radius: 18px;
  }
  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-input-lux {
    font-size: 16px; /* Critical for iOS Safari auto-zoom prevention */
  }
  footer.luxury-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* 4. Ultra-Compact Mobile Phones (<= 420px) */
@media (max-width: 420px) {
  header.luxury-nav {
    width: calc(100% - 16px);
    top: 8px;
    margin: 8px auto 0 auto;
    padding: 0 6px 0 10px;
  }
  .brand-badge {
    gap: 10px;
  }
  .brand-emblem {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .brand-meta h2 {
    font-size: 15px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .portrait-3d-card {
    width: 250px;
    height: 250px;
  }
  .floating-chip {
    display: none;
  }
  .portrait-hologram-footer {
    padding: 6px 12px;
  }
  .portrait-hologram-footer .mono {
    display: none;
  }
  .deck-controls-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DYNAMIC CORPORATE DIRECTORSHIPS & EXPERIENCE GRID
   ========================================================================== */
.directorships-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.directorship-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-snappy);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.directorship-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-primary), var(--gold-primary));
  opacity: 0.8;
}

.directorship-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-primary);
  box-shadow: var(--card-shadow-hover);
}

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

.directorship-top-head h4 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.directorship-role {
  font-size: 14px;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.directorship-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  white-space: nowrap;
}

.directorship-badge.past {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.directorship-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 10px;
  flex-grow: 1;
}

.directorship-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.directorship-footer a {
  color: var(--cyan-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.directorship-footer a:hover {
  color: var(--gold-primary);
}

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

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