/* ═══════════════════════════════════════════════════════════════
   DEEPAK BHARADWAJ — PORTFOLIO DESIGN SYSTEM
   Editorial Craft, Warm Architectural Ivory Drafting Canvas,
   Transient Ambient Lighting, Floating Pill Nav, and Fluid Mobile System
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── Design Tokens & Theme Variables ─── */
:root {
  /* Canvas & Surfaces (Warm Architectural Ivory / Bone Linen) */
  --bg:                #F5F3EB; /* Refined bone-linen drafting canvas */
  --bg-surface:        #FFFFFF; /* Crisp card surface */
  --bg-elevated:       #EDEAE0; /* Elevated drafting block */
  --bg-muted:          #E4E0D2; /* Secondary container fill */
  --bg-input:          #FFFFFF;

  /* Ink & Typography */
  --text:              #191614; /* Deep warm ink */
  --text-muted:        #5C554B; /* Balanced body neutral */
  --text-dim:          #8A8275; /* Subtle metadata */
  --text-inverse:      #F5F3EB;

  /* Editorial Borders & Shadows */
  --border:            rgba(26, 22, 18, 0.12);
  --border-strong:     rgba(26, 22, 18, 0.28);
  --border-dark:       #191614;
  --card-shadow:       0 4px 20px -2px rgba(26, 22, 18, 0.05), 0 1px 3px rgba(26, 22, 18, 0.03);
  --card-shadow-hover: 0 16px 36px -4px rgba(26, 22, 18, 0.1), 0 2px 6px rgba(26, 22, 18, 0.04);
  --card-shadow-pop:   0 20px 48px -6px rgba(26, 22, 18, 0.14);

  /* Signature Accents */
  --coral-btn:         #F28564; /* Hero CTA button (Peach/Coral) */
  --coral-btn-hover:   #E47553;
  --coral-btn-text:    #191614;
  --wine-accent:       #4A0E2E;

  /* Colored Pill Badges */
  --pill-mint-bg:      #D4F4E7;
  --pill-mint-text:    #125E47;
  --pill-gold-bg:      #FBEBC4;
  --pill-gold-text:    #7A5208;
  --pill-coral-bg:     #FCE2D9;
  --pill-coral-text:   #8C381E;
  --pill-navy-bg:      #E0EBF8;
  --pill-navy-text:    #193B66;
  --pill-berry-bg:     #F7E0EC;
  --pill-berry-text:   #731846;
  --pill-teal-bg:      #D8F2EF;
  --pill-teal-text:    #0E524D;

  /* Drafting Pattern & Globe Lighting */
  --matrix-dot:        rgba(26, 22, 18, 0.075);
  --matrix-line:       rgba(26, 22, 18, 0.024);
  --globe-glow-color:  #F28564;
  --globe-dot-color:   #191614;

  /* Ambient Glow Tokens with Rich Luminous Depth */
  --spotlight-glow:    rgba(242, 133, 100, 0.28);
  --orb-glow-1:        rgba(251, 146, 60, 0.22);
  --orb-glow-2:        rgba(45, 212, 191, 0.20);
  --orb-glow-3:        rgba(168, 85, 247, 0.18);
  --orb-glow-4:        rgba(56, 189, 248, 0.18);

  /* Typography Stacks */
  --font-serif:        'Playfair Display', Georgia, Cambria, serif;
  --font-sans:         'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:         'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing & Containers */
  --container-max:     1180px;
  --container-wide:    1320px;
  --radius-sm:         8px;
  --radius-md:         14px;
  --radius-lg:         20px;
  --radius-pill:       9999px;

  /* Motion */
  --ease-spring:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:   0.18s ease;
  --transition-normal: 0.28s ease;
}

/* ─── Dark Mode Overrides (Warm Obsidian & Espresso) ─── */
[data-theme="dark"] {
  --bg:                #131211; /* Deep obsidian charcoal */
  --bg-surface:        #1C1A18; /* Espresso card surface */
  --bg-elevated:       #25221F; /* Elevated dark block */
  --bg-muted:          #2E2A26;
  --bg-input:          #1F1D1A;

  --text:              #F7F4EA; /* Cream text */
  --text-muted:        #ABA395; /* Warm grey body */
  --text-dim:          #7A7367;
  --text-inverse:      #131211;

  --border:            rgba(255, 255, 255, 0.1);
  --border-strong:     rgba(255, 255, 255, 0.24);
  --border-dark:       #F7F4EA;
  --card-shadow:       0 6px 24px -2px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 16px 40px -4px rgba(0, 0, 0, 0.65), 0 0 20px rgba(242, 133, 100, 0.12);

  --pill-mint-bg:      rgba(46, 182, 125, 0.18);
  --pill-mint-text:    #55E0A5;
  --pill-gold-bg:      rgba(245, 190, 71, 0.18);
  --pill-gold-text:    #F8CB5C;
  --pill-coral-bg:     rgba(242, 133, 100, 0.2);
  --pill-coral-text:   #FFA285;
  --pill-navy-bg:      rgba(59, 130, 246, 0.18);
  --pill-navy-text:    #82B7FC;
  --pill-berry-bg:     rgba(219, 39, 119, 0.2);
  --pill-berry-text:   #F472B6;
  --pill-teal-bg:      rgba(20, 184, 166, 0.2);
  --pill-teal-text:    #4EE4D5;

  --matrix-dot:        rgba(255, 255, 255, 0.08);
  --matrix-line:       rgba(255, 255, 255, 0.024);
  --globe-dot-color:   #F7F4EA;

  --spotlight-glow:    rgba(242, 133, 100, 0.36);
  --orb-glow-1:        rgba(249, 115, 22, 0.28);
  --orb-glow-2:        rgba(45, 212, 191, 0.24);
  --orb-glow-3:        rgba(168, 85, 247, 0.22);
  --orb-glow-4:        rgba(56, 189, 248, 0.22);
}

/* ─── Base Styles ─── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: light dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(255, 255, 255, 0.7) 0%, transparent 75%),
    radial-gradient(circle at 50% 100%, rgba(228, 224, 210, 0.5) 0%, transparent 60%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(255, 255, 255, 0.04) 0%, transparent 75%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
}

/* ─── Bespoke Engineering Drafting Matrix Background ─── */
.bg-grid-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, var(--matrix-dot) 1.2px, transparent 0),
    linear-gradient(to right, var(--matrix-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--matrix-line) 1px, transparent 1px);
  background-size: 32px 32px, 96px 96px, 96px 96px;
  opacity: 0.95;
}

/* ─── Luminous Depth & Transient Ambient Glow Lighting ─── */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-spotlight {
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 96vw);
  height: 620px;
  background: radial-gradient(ellipse at 50% 30%, var(--spotlight-glow) 0%, rgba(242, 133, 100, 0.06) 50%, transparent 75%);
  filter: blur(85px);
  animation: spotlightBreathe 12s ease-in-out infinite alternate;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.ambient-orb--1 {
  top: 15%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--orb-glow-1) 0%, transparent 75%);
}

.ambient-orb--2 {
  top: 45%;
  right: -8%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, var(--orb-glow-2) 0%, transparent 75%);
  animation-duration: 26s;
  animation-delay: -6s;
}

.ambient-orb--3 {
  top: 75%;
  left: 8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--orb-glow-3) 0%, transparent 75%);
  animation-duration: 30s;
  animation-delay: -12s;
}

.ambient-orb--4 {
  top: 90%;
  right: 6%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--orb-glow-4) 0%, transparent 75%);
  animation-duration: 24s;
  animation-delay: -16s;
}

@keyframes spotlightBreathe {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(25px, -30px) scale(1.08);
  }
  100% {
    transform: translate(-20px, 25px) scale(0.94);
  }
}

/* Accessibility: Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}

/* ═══════════════ FLOATING PILL NAVBAR ═══════════════ */
.header-shell {
  position: sticky;
  top: 0.75rem;
  z-index: 1000;
  width: 100%;
  padding: 0 1rem;
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Floating Capsule Navbar */
.pill-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

[data-theme="dark"] .pill-nav {
  background: rgba(28, 26, 24, 0.94);
  border-color: var(--border);
}

/* Brand Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.nav-brand__mark {
  background: var(--text);
  color: var(--bg);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-brand:hover .nav-brand__mark {
  transform: rotate(-6deg) scale(1.05);
}

.nav-brand__meta {
  display: flex;
  flex-direction: column;
}

.nav-brand__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-brand__sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Nav Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--coral-btn-hover);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.is-active {
  color: #FFA285;
}

.nav-caret {
  font-size: 0.72rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.nav-link:hover .nav-caret {
  transform: translateY(1px);
}

/* Nav Right Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elevated);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-cta-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
}

.nav-cta-arrow {
  font-size: 0.88rem;
  transition: transform 0.2s ease;
}
.nav-cta-link:hover .nav-cta-arrow {
  transform: translate(2px, -2px);
}

/* Theme Toggle Button */
.theme-switch {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.theme-switch:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.theme-icon--sun {
  display: none;
}
.theme-icon--moon {
  display: block;
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
}
[data-theme="dark"] .theme-icon--moon {
  display: none;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.mobile-toggle__line {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s ease;
}

/* ═══════════════ HERO SECTION ═══════════════ */
.hero-section {
  position: relative;
  z-index: 10;
  padding: clamp(3rem, 7vh, 5.5rem) 1.5rem clamp(2rem, 5vh, 4rem);
  text-align: center;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Unboxed Editorial Profile Introduction (Not a button!) */
.hero-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
  animation: fadeInDown 0.6s ease forwards;
}

.hero-profile-avatar-frame {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  box-shadow: 0 4px 14px rgba(26, 22, 18, 0.08);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.hero-profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-profile-status-indicator {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: radarPulse 2.5s infinite;
}

.hero-profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-profile-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-profile-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-profile-divider {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-profile-location {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
}

.hero-profile-role-line {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Editorial Serif Headline */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.4rem;
  max-width: 960px;
  word-break: break-word;
}

.hero-title-main {
  display: block;
  font-weight: 700;
}

.hero-title-highlight {
  display: inline-block;
  position: relative;
}

.serif-italic {
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hand-Drawn Sketch Underline SVG */
.sketch-underline {
  position: absolute;
  left: -2%;
  bottom: -10px;
  width: 104%;
  height: 20px;
  pointer-events: none;
  color: var(--text);
  opacity: 0.9;
}

/* Hero Subtitle */
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
  margin: 0 auto 2.2rem;
}

.text-accent {
  color: var(--text);
  font-weight: 700;
}

/* CTA Group: Coral Button with Arrow Block + Ghost Editorial */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Primary Peach/Coral Button */
.btn-coral {
  background: var(--coral-btn);
  color: var(--coral-btn-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.45rem 0.55rem 0.45rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-dark);
  box-shadow: 0 4px 14px rgba(242, 133, 100, 0.32);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-coral:hover {
  background: var(--coral-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 133, 100, 0.4);
}

.btn-coral__icon {
  background: var(--border-dark);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.btn-coral:hover .btn-coral__icon {
  transform: translate(2px, -2px);
}

[data-theme="dark"] .btn-coral__icon {
  background: #121110;
  color: #FFFFFF;
}

/* Ghost Editorial Button */
.btn-ghost-editorial {
  background: var(--bg-surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost-editorial:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ═══════════════ DOTTED GLOBE STAGE & TECHNICAL BADGES ═══════════════ */
.globe-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 1rem auto 0;
  height: 480px;
  overflow: visible;
  user-select: none;
}

.globe-graphic-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-hemisphere-svg {
  width: 100%;
  height: 100%;
  color: var(--globe-dot-color);
  overflow: visible;
}

/* Floating Badges Overlay */
.globe-badges-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Technical Keyword Pill Badge Base */
.geo-pill {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  animation: badgeFloat 6s ease-in-out infinite alternate;
  white-space: nowrap;
}

.geo-pill:hover {
  transform: scale(1.1) translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.geo-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Default label visibility: Desktop shows full text, mobile text hidden */
.geo-text-full {
  display: inline;
}
.geo-text-mob {
  display: none;
}

/* Distinct Pill Colors for Technical Badges */
.geo-pill--gold {
  background: #F5BE47;
  color: #1A1612;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.geo-pill--yellow {
  background: #F2C94C;
  color: #1A1612;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.geo-pill--berry {
  background: #661B3D;
  color: #FFFFFF;
}

.geo-pill--wine {
  background: #560A34;
  color: #FFFFFF;
}

.geo-pill--teal {
  background: #1A5252;
  color: #FFFFFF;
}

.geo-pill--forest {
  background: #144D3F;
  color: #FFFFFF;
}

.geo-pill--blue {
  background: #2F568A;
  color: #FFFFFF;
}

.geo-pill--navy {
  background: #182C4A;
  color: #FFFFFF;
}

.geo-pill--coral {
  background: #F28564;
  color: #1A1612;
}

/* Primary Location (Bengaluru HQ) */
.geo-pill--primary {
  background: #204068;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(32, 64, 104, 0.45);
}

.geo-pill__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: radarPulse 2s infinite;
  flex-shrink: 0;
}

/* Engineering Milestone Badges */
.geo-pill--milestone {
  font-family: var(--font-mono);
  padding: 0.38rem 0.85rem;
}
.geo-pill--emerald {
  background: #14532D;
  color: #86EFAC;
  border: 1px solid rgba(134, 239, 172, 0.3);
}
.geo-pill--indigo {
  background: #1E1B4B;
  color: #C7D2FE;
  border: 1px solid rgba(199, 210, 254, 0.3);
}
.geo-pill__metric {
  font-weight: 800;
  color: #FFFFFF;
  margin-right: 0.2rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Desktop Precision Badge Positioning */
.geo-pill--kafka          { top: 68%; left: 6%;  animation-delay: 0.2s; }
.geo-pill--microservices  { top: 46%; left: 21%; animation-delay: 0.6s; }
.geo-pill--redis          { top: 66%; left: 26%; animation-delay: 1.1s; }
.geo-pill--postgres       { top: 86%; left: 22%; animation-delay: 2.2s; }
.geo-pill--ocpp           { top: 62%; left: 44%; animation-delay: 1.8s; }
.geo-pill--tariffs        { top: 71%; left: 61%; animation-delay: 0.8s; }
.geo-pill--ocpi           { top: 48%; left: 66%; animation-delay: 1.4s; }
.geo-pill--k8s            { top: 56%; left: 55%; animation-delay: 2.0s; }
.geo-pill--bengaluru      { top: 65%; left: 74%; animation-delay: 0.5s; }
.geo-pill--sap            { top: 84%; left: 76%; animation-delay: 1.6s; }
.geo-pill--prds           { top: 87%; left: 49%; animation-delay: 2.5s; }
.geo-pill--txns           { top: 34%; left: 12%; animation-delay: 0.4s; }
.geo-pill--uptime         { top: 36%; left: 77%; animation-delay: 1.3s; }

/* Tooltip on Hover */
.geo-pill__tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #191614;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
}
.geo-pill__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #191614 transparent transparent transparent;
}
.geo-pill:hover .geo-pill__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Metric Stat Strip below Globe */
.hero-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 1060px;
  margin-top: 2rem;
}

.stat-box {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: left;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

/* Hardware Telemetry Meter Fill Line */
.stat-box::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: var(--meter-fill, 0%);
  background: linear-gradient(90deg, var(--coral-btn), #E47553);
  opacity: 0;
  border-radius: 0 2px 2px 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.stat-box.is-meter-running {
  border-color: var(--coral-btn);
  box-shadow: 0 6px 20px rgba(242, 133, 100, 0.16);
}
.stat-box.is-meter-running::after {
  opacity: 1;
}

.stat-box.is-meter-done {
  border-color: var(--border-strong);
}
.stat-box.is-meter-done::after {
  opacity: 0.85;
  width: 100%;
  transition: opacity 0.5s ease, width 0.25s ease;
}

.stat-box__val {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  will-change: transform;
}

.stat-box__val.meter-settle,
.outcome-stat__num.meter-settle {
  animation: meterSettle 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes meterSettle {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--coral-btn); }
  100% { transform: scale(1); }
}

.stat-box__lbl {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.stat-box__sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ═══════════════ HORIZONTAL MOVING CARDS (MARQUEE SECTION) ═══════════════ */
.marquee-section {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 8vh, 6.5rem) 0;
  overflow: hidden;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Centered Editorial Header */
.section-center-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

/* Badge Mint */
.badge-mint {
  display: inline-block;
  background: var(--pill-mint-bg);
  color: var(--pill-mint-text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title-editorial {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.serif-italic-block {
  display: block;
  position: relative;
  width: fit-content;
  margin: 0.2rem auto 0;
  font-style: italic;
}

.sketch-underline-mint {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 16px;
  color: var(--text);
  pointer-events: none;
}

.section-subtitle-editorial {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Marquee Viewport with Edge Gradient Fade Masks */
.marquee-viewport {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: fit-content;
  user-select: none;
}

/* Pause marquee motion when user hovers any track */
.marquee-track:hover {
  animation-play-state: paused !important;
}

.marquee-track--left {
  animation: marqueeLeft 42s linear infinite;
}

.marquee-track--right {
  animation: marqueeRight 46s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
  flex-shrink: 0;
}

/* Individual Scrolling Card (Desktop dimensions) */
.scroll-card {
  width: 320px;
  min-width: 320px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease, border-color 0.28s ease;
}

.scroll-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong);
}

.scroll-card__badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.scroll-card__loc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Visual Graphic Banner */
.scroll-card__graphic {
  height: 120px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.scroll-card__graphic--cpms     { background: linear-gradient(135deg, #E6F7F0 0%, #C8EEDB 100%); }
.scroll-card__graphic--ocpp     { background: linear-gradient(135deg, #FDEAE4 0%, #F8D2C5 100%); }
.scroll-card__graphic--tariffs  { background: linear-gradient(135deg, #FEF7E6 0%, #FBE9BC 100%); }
.scroll-card__graphic--sap      { background: linear-gradient(135deg, #EBF3FC 0%, #D4E6FA 100%); }
.scroll-card__graphic--perf     { background: linear-gradient(135deg, #F9EAF2 0%, #F1CEE1 100%); }
.scroll-card__graphic--roaming  { background: linear-gradient(135deg, #E4F7F5 0%, #C4EEEA 100%); }
.scroll-card__graphic--k8s      { background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%); }
.scroll-card__graphic--pm       { background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%); }
.scroll-card__graphic--energy   { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); }
.scroll-card__graphic--apm      { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); }

[data-theme="dark"] .scroll-card__graphic {
  filter: brightness(0.75) contrast(1.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.tech-icon-chip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tech-metric-highlight {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: #191614;
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.scroll-card__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.scroll-card__desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.scroll-card__footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.scroll-card__link {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}
.scroll-card__link:hover {
  transform: translateX(2px);
  color: var(--coral-btn-hover);
}
[data-theme="dark"] .scroll-card__link {
  color: #FFA285;
}

/* Generic Pill Tag Styles */
.pill-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}
.pill-tag--mint  { background: var(--pill-mint-bg);  color: var(--pill-mint-text); }
.pill-tag--gold  { background: var(--pill-gold-bg);  color: var(--pill-gold-text); }
.pill-tag--coral { background: var(--pill-coral-bg); color: var(--pill-coral-text); }
.pill-tag--navy  { background: var(--pill-navy-bg);  color: var(--pill-navy-text); }
.pill-tag--berry { background: var(--pill-berry-bg); color: var(--pill-berry-text); }
.pill-tag--teal  { background: var(--pill-teal-bg);  color: var(--pill-teal-text); }

/* ═══════════════ EDITORIAL SECTION SYSTEM ═══════════════ */
.section-editorial {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 9vh, 7rem) 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 3.2rem;
}

.section-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.section-index-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  border: 1.5px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-surface);
}

.section-heading-editorial {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.section-desc-editorial {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════ FEATURED PROJECTS (ACCORDION CARDS) ═══════════════ */
.cases-editorial {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.25s ease;
}

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

.case-card.is-open {
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-hover);
}

.case-card__header {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  background: var(--bg-surface);
  transition: background 0.2s ease;
}
.case-card__header:hover {
  background: var(--bg-elevated);
}

.case-card__num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 44px;
}

.case-card.is-open .case-card__num {
  color: var(--coral-btn);
}

.case-card__meta {
  flex-grow: 1;
}

.case-card__title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.case-card__tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.case-badge {
  font-weight: 600;
  color: var(--text);
}
.case-sep {
  opacity: 0.4;
}
.case-corp {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.case-metric {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pill-mint-text);
  background: var(--pill-mint-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.case-card__chevron {
  color: var(--text-dim);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-card.is-open .case-card__chevron {
  transform: rotate(180deg);
  color: var(--text);
}

/* Accordion Drawer */
.case-card__drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid transparent;
}

.case-card.is-open .case-card__drawer {
  max-height: 2000px;
  border-top-color: var(--border);
}

.case-card__grid {
  padding: 2rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: var(--bg-surface);
}

.case-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.case-box--wide {
  grid-column: 1 / -1;
}

.case-box--metric {
  grid-column: 1 / -1;
  background: var(--bg-muted);
}

.case-box--diagram {
  grid-column: 1 / -1;
  background: var(--bg-surface);
}

.case-box__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.case-box__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.case-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-check-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}
.case-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--coral-btn);
  font-weight: 800;
  font-size: 0.95rem;
}

/* Outcome Stat Row */
.outcome-stat-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

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

.outcome-stat__num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  will-change: transform;
}

.outcome-stat__text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* System Flow Diagram */
.arch-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 0.5rem;
}

.arch-step {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.arch-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
}

.arch-chip--client { background: var(--pill-navy-bg); color: var(--pill-navy-text); }
.arch-chip--gw     { background: var(--pill-gold-bg); color: var(--pill-gold-text); }
.arch-chip--srv    { background: var(--pill-mint-bg); color: var(--pill-mint-text); }
.arch-chip--db     { background: var(--pill-berry-bg); color: var(--pill-berry-text); }

.arch-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.arch-arrow {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 800;
}

.arch-step--group,
.arch-step--data {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ═══════════════ APPROACH FRAMEWORK ═══════════════ */
.approach-grid-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.approach-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.approach-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.approach-card__num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 0.85rem;
  opacity: 0.7;
}

.approach-card .pill-tag {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.approach-card__title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.approach-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════ EV & ENERGY DOMAIN ═══════════════ */
.ev-grid-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.domain-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.domain-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.domain-card__icon {
  font-size: 1.7rem;
  margin-bottom: 0.85rem;
}

.domain-card .pill-tag {
  align-self: flex-start;
  margin-bottom: 0.85rem;
}

.domain-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.domain-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════ CAPABILITIES ═══════════════ */
.cap-grid-editorial {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cap-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--card-shadow);
}

.cap-card--full {
  grid-column: 1 / -1;
}

.cap-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cap-card__mark {
  color: var(--coral-btn);
  font-size: 1.3rem;
  font-weight: 800;
}

.cap-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.cap-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.cap-pill-list li {
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.cap-pill-list li:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.kw-pill {
  color: var(--text) !important;
  font-weight: 700 !important;
  background: var(--bg-muted) !important;
  border-color: var(--border-strong) !important;
}

.cap-footnote {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ═══════════════ CAREER TIMELINE ═══════════════ */
.editorial-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 980px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 140px 32px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.timeline-row__side {
  text-align: right;
  padding-top: 0.25rem;
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}
.timeline-badge--current {
  background: var(--pill-mint-bg);
  color: var(--pill-mint-text);
}

.timeline-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.timeline-row__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.timeline-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--text-dim);
  box-shadow: 0 0 0 2px var(--border-strong);
  margin-top: 0.35rem;
}

.timeline-row--active .timeline-node-dot {
  background: var(--coral-btn);
  box-shadow: 0 0 0 2px var(--coral-btn), 0 0 10px rgba(242, 133, 100, 0.4);
}

.timeline-node-line {
  width: 2px;
  flex-grow: 1;
  background: var(--border);
  margin-top: 0.5rem;
}

.timeline-row__card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.timeline-row__card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.timeline-row__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.timeline-corp {
  font-size: 0.84rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════ ABOUT SECTION ═══════════════ */
.about-grid-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-bio-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--card-shadow);
}

.about-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.about-avatar-frame {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.about-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.about-creds {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--coral-btn);
  margin-top: 0.2rem;
}

.about-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 0.35rem;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-narrative p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-side-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
}

.about-side-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.principles-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 1.2rem;
  position: relative;
}
.principles-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--coral-btn);
  font-weight: 800;
}

.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.award-name {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
}

.award-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* ═══════════════ CONTACT HUB ═══════════════ */
.contact-hub-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--card-shadow-pop);
}

.contact-hub-top {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.contact-badge-pill {
  display: inline-block;
  background: var(--pill-coral-bg);
  color: var(--pill-coral-text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.contact-hub-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.contact-hub-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-action-bar {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.75rem 0.6rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 780px;
  margin: 0 auto 2.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-email-link {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.contact-email-link:hover {
  color: var(--coral-btn);
}

.contact-btn-pair {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-secondary-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-channel-item {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}
.contact-channel-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--bg-surface);
}

.channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  flex-shrink: 0;
}

.channel-meta {
  flex-grow: 1;
}

.channel-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.channel-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.channel-handle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.channel-arrow {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}
.contact-channel-item:hover .channel-arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer-editorial {
  position: relative;
  z-index: 10;
  border-top: 1.5px solid var(--border);
  background: var(--bg-surface);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.footer-quick-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-quick-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-quick-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-mono);
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes radarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes marqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* ═══════════════ COMPREHENSIVE RESPONSIVENESS & MOBILE SYSTEM ═══════════════ */
@media (max-width: 1080px) {
  .hero-metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-grid-editorial {
    grid-template-columns: 1fr;
  }
  .about-grid-editorial {
    grid-template-columns: 1fr;
  }
  .contact-secondary-channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  /* Mobile Navigation Menu Drawer */
  .header-shell {
    padding: 0 0.75rem;
  }

  .pill-nav {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0.75rem;
    right: 0.75rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow-pop);
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    display: none;
    z-index: 1001;
  }
  .nav-links.is-open {
    display: flex;
    animation: fadeInDown 0.25s ease forwards;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.96rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    justify-content: space-between;
  }
  
  .mobile-toggle {
    display: flex;
  }

  /* Compact nav CTA on mobile matching Screenshot 1 */
  .nav-cta-link {
    padding: 0.32rem 0.68rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  /* Globe Stage Scaling */
  .globe-stage {
    height: 380px;
  }

  /* Case study accordion */
  .case-card__header {
    padding: 1.25rem 1.2rem;
    gap: 1rem;
  }
  .case-card__num {
    font-size: 1.4rem;
    min-width: 32px;
  }
  .case-card__grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.2rem;
  }

  /* Timeline */
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .timeline-row__side {
    text-align: left;
  }
  .timeline-row__node {
    display: none;
  }
  .timeline-row__card {
    padding: 1.25rem;
  }
}

/* ─── Mobile Viewport System (Matches User Screenshots 1 & 2) ─── */
@media (max-width: 768px) {
  /* Switch badge text to compact keyword labels on mobile */
  .geo-text-full {
    display: none !important;
  }
  .geo-text-mob {
    display: inline !important;
  }

  /* Compact non-overlapping mobile badges */
  .geo-pill {
    padding: 0.2rem 0.52rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    animation: none; /* Prevent floating oscillation collision on mobile */
  }

  /* Hide pill dots on mobile matching reference screenshot */
  .geo-pill__dot {
    display: none;
  }
  .geo-pill__pulse {
    width: 6px;
    height: 6px;
    margin-right: 0.15rem;
  }

  /* Globe Stage Proportions on Mobile */
  .globe-stage {
    height: clamp(260px, 68vw, 340px);
    margin-top: 1rem;
  }

  /* Zero-Collision Dedicated Mobile Coordinates (10 Non-Overlapping Badges across 3 Tiers) */
  /* Tier 1 (Top Arc: Y ~ 57%) */
  .geo-pill--kafka          { top: 57%; left: 16%; }
  .geo-pill--k8s            { top: 57%; left: 50%; transform: translateX(-50%); }
  .geo-pill--ocpi           { top: 59%; left: 69%; }

  /* Tier 2 (Middle Arc: Y ~ 64-65%) */
  .geo-pill--microservices  { top: 65%; left: 5%; }
  .geo-pill--ocpp           { top: 63%; left: 31%; }
  .geo-pill--redis          { top: 65%; left: 53%; }
  .geo-pill--postgres       { top: 65%; left: 73%; }

  /* Tier 3 (Lower Arc: Y ~ 70-72%) */
  .geo-pill--tariffs        { top: 72%; left: 16%; }
  .geo-pill--bengaluru      { top: 70%; left: 40%; }
  .geo-pill--sap            { top: 72%; left: 70%; }

  /* Hide milestone & secondary badges on mobile to keep hemisphere clean and uncluttered */
  .geo-pill--txns,
  .geo-pill--uptime,
  .geo-pill--prds {
    display: none !important;
  }

  /* ─── Mobile Horizontal Moving Cards Belt (Matches Screenshot 1 & 2!) ─── */
  .marquee-section {
    padding: 3rem 0;
  }

  .section-center-head {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .badge-mint {
    font-size: 0.7rem;
    padding: 0.24rem 0.68rem;
    margin-bottom: 0.75rem;
  }

  .section-title-editorial {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    margin-bottom: 0.75rem;
  }

  .section-subtitle-editorial {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .marquee-viewport {
    gap: 0.85rem;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  .marquee-content {
    gap: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Compact editorial card - matches proportion in Screenshot 1 */
  .scroll-card {
    width: 152px;
    min-width: 152px;
    padding: 0.62rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-surface);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  }

  .scroll-card:hover {
    transform: translateY(-4px);
  }

  .scroll-card__badge-row {
    margin-bottom: 0.45rem;
  }

  .scroll-card__badge-row .pill-tag {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.14rem 0.42rem;
    border-radius: var(--radius-pill);
  }

  .scroll-card__loc {
    display: none; /* Hide subtitle inside small mobile card */
  }

  .scroll-card__graphic {
    height: 76px;
    margin-bottom: 0.55rem;
    padding: 0.45rem;
    border-radius: 8px;
  }

  .tech-icon-chip {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .tech-metric-highlight {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.12rem 0.36rem;
    border-radius: 4px;
  }

  .scroll-card__title {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    height: 1.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Hide long card body paragraph on mobile so belt stays sleek like Screenshot 1 */
  .scroll-card__desc {
    display: none;
  }

  .scroll-card__footer {
    padding-top: 0.4rem;
    border-top: 1px dashed var(--border);
    gap: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .tech-pill {
    font-size: 0.58rem;
    padding: 0.12rem 0.36rem;
    border-radius: 4px;
  }

  .scroll-card__link {
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2rem 1rem 1.6rem;
  }

  /* Hero profile intro */
  .hero-profile-header {
    margin-bottom: 1.3rem;
    gap: 0.8rem;
  }
  .hero-profile-avatar-frame {
    width: 48px;
    height: 48px;
  }
  .hero-profile-name {
    font-size: 0.95rem;
  }
  .hero-profile-role-line {
    font-size: 0.8rem;
  }

  /* Hero Title & Subtitle */
  .hero-title {
    font-size: clamp(1.95rem, 8.2vw, 2.65rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
  }
  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 1.6rem;
  }

  /* Buttons on Mobile */
  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
  }
  .btn-coral,
  .btn-ghost-editorial {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  /* Metrics strip */
  .hero-metric-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat-box {
    padding: 0.95rem 0.8rem;
  }
  .stat-box__val {
    font-size: 1.65rem;
  }

  /* Contact Action Bar */
  .contact-hub-card {
    padding: 1.6rem 1.1rem;
  }
  .contact-action-bar {
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 1.15rem;
    text-align: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }
  .contact-email-link {
    font-size: 0.98rem;
  }
  .contact-btn-pair {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }
  .contact-btn-pair .btn-coral,
  .contact-btn-pair .btn-ghost-editorial {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .pill-nav {
    padding: 0.45rem 0.75rem;
  }
  .nav-brand__name {
    font-size: 0.76rem;
  }
  .nav-brand__sub {
    display: none;
  }
  .nav-cta-link .nav-cta-text {
    font-size: 0.75rem;
  }

  .hero-metric-strip {
    grid-template-columns: 1fr;
  }

  /* Micro card and pill size for extra small phones */
  .scroll-card {
    width: 140px;
    min-width: 140px;
    padding: 0.55rem;
  }
  .scroll-card__graphic {
    height: 68px;
  }
  .scroll-card__title {
    font-size: 0.75rem;
  }

  .geo-pill {
    padding: 0.16rem 0.44rem;
    font-size: 0.56rem;
  }

  .outcome-stat-row {
    gap: 1.25rem;
  }
}
