/* ── LENIS NORMALIZATION ── */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM FEEL LAYER — v1.0
   Silicon Valley product-grade polish. Inspired by elastiq.ai / Linear.
   ─────────────────────────────────────────────────────────────────────
   · Smooth scroll via Lenis (applied in premium-feel.js)
   · Inter / Geist typography at premium scale
   · Elevated section spacing (generous whitespace = premium signal)
   · Subtle grain noise overlay (adds depth, used by Linear, Vercel, etc.)
   · Refined AOS animations (translate-up + fade, not just fade)
   · Hover magnetic lift on all cards
   · Section label system upgrade
   · Nav blur + refined shadow
═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   ADAPTIVE RENDERING — Performance Governor Hooks
   ───────────────────────────────────────────────────────────────────── */
[data-performance-tier="low"] *,
[data-reduced-motion="true"] * {
  /* Kill heavy transitions */
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

[data-performance-tier="low"] {
  /* Disable heavy blurs and filters */
  --backdrop-blur: 0px !important;
  --glass-blur: 0px !important;
}

[data-performance-tier="low"] .glass-card,
[data-performance-tier="low"] .premium-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--bg-2) !important; /* Fallback to solid background */
}

[data-performance-tier="low"] .hero-globe-canvas,
[data-performance-tier="low"] .noise-overlay {
  display: none !important;
}

/* ── END ADAPTIVE RENDERING ── */

/* ── 1. FONT SYSTEM — Native OS Stack + JetBrains Mono ── */
/* Inter Variable removed: native OS fonts render with mathematical perfection on each device */
/* GitHub, Atlassian Jira, Stripe Dashboard all use this exact approach */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* Override font stack with Phase 2 Blueprint */
:root,
[data-theme] {
  /* Dynamic Background Sync */
  --bg-color: var(--bg-1);
  --text-primary: var(--text-primary, #E8EAED);
  --text-secondary: var(--text-secondary, #BDC1C6);
  --text-muted: var(--text-muted, #9AA0A6);
  --accent-cyan: #22D3EE;

  /* The Phase 2 Font Stack — Geist / Inter */
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'Roboto Mono', monospace;

  /* Legacy Mapping (Regressions Prevention) */
  --bg-1: var(--bg-1);
  --bg-2: var(--bg-2);
  --bg-3: var(--bg-3);
  --text-body: var(--text-secondary);
  --font-body: var(--font-sans);
  --font-display: var(--font-sans);

  /* Premium spacing scale */
  --section-gap: clamp(80px, 10vw, 140px);
  --section-gap-sm: clamp(48px, 6vw, 80px);

  /* Premium easing */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  /* Skeleton Tokens */
  --skeleton-bg: rgba(255, 255, 255, 0.03);
  --skeleton-shimmer: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0, 
    rgba(255, 255, 255, 0.04) 20%, 
    rgba(255, 255, 255, 0) 40%
  );
}

html.light {
  --skeleton-bg: rgba(0, 0, 0, 0.04);
  --skeleton-shimmer: linear-gradient(
    90deg, 
    rgba(0, 0, 0, 0) 0, 
    rgba(0, 0, 0, 0.03) 20%, 
    rgba(0, 0, 0, 0) 40%
  );
}

/* ═══════════════════════════════════════════════════════════════════════
   SKELETON SCREENS — Progressive Hydration Suite
   ───────────────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: var(--skeleton-bg);
  background-image: var(--skeleton-shimmer);
  background-size: 1000px 100%;
  background-repeat: no-repeat;
  animation: shimmer 2.5s infinite linear;
  border-radius: 4px;
  display: block;
}

.skeleton-title { width: 70%; height: 28px; margin-bottom: 16px; }
.skeleton-text { width: 100%; height: 14px; margin-bottom: 10px; }
.skeleton-text-short { width: 40%; height: 14px; margin-bottom: 10px; }
.skeleton-tag { width: 60px; height: 24px; border-radius: 100px; display: inline-block; margin-right: 8px; }
.skeleton-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 20px; }

.skeleton-card {
    padding: 32px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* --- Elite Section Arrival Animation --- */
@keyframes section-arrive-glow {
  0% { background: transparent; }
  30% { background: rgba(99, 102, 241, 0.04); }
  100% { background: transparent; }
}

@keyframes section-arrive-line {
  0% { transform: scaleY(0); opacity: 0; }
  30% { transform: scaleY(1); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.7); opacity: 0; }
}



.section-arrived {
  position: relative;
  animation: section-arrive-glow 1.8s var(--ease-premium) forwards;
}

.section-arrived::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 3px;
  background: var(--accent-indigo);
  transform-origin: top;
  pointer-events: none;
  z-index: 100;
  animation: section-arrive-line 1.8s var(--ease-premium) forwards;
}

/* ═══════════════════════════════════════════════════════════════════════
   ELITE ACCESSIBILITY — Custom Focus Rings
   ───────────────────────────────────────────────────────────────────── */

/* 1. Remove default focus ring ONLY if the mouse triggered it */
*:focus:not(:focus-visible) {
  outline: none;
}

/* 2. The Elite Keyboard Focus State */
:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 4px;
  border-radius: inherit;
  transition: outline-offset 0.2s var(--ease-premium);
}

/* 3. The Activation Pulse for Cards & Buttons */
.btn-primary:focus-visible, 
.btn-resume:focus-visible, 
.btn-cmdk:focus-visible, 
.nav-link:focus-visible,
.proj:focus-visible, 
.sk:focus-visible,
.glass-card:focus-visible {
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15); 
  transform: translateY(-4px) scale(1.02) !important;
  z-index: 10;
}

/* Metadata weight split: Preserve high-fidelity IDE crispness for code */
code,
pre {
  font-weight: 400 !important;
}

/* Light Mode Contrast Boost */
html.light,
.light-mode {
  --bg-color: #FFFFFF;
  /* Pure white background */
  --text-primary: #09090B;
  /* Pure rich black — maximum contrast */
  --text-secondary: #3F3F46;
  /* Zinc-700 — deep and ink-like */
  --text-muted: #52525B;
  /* Zinc-600 — clear metadata contrast */
  --accent-cyan: #0891B2;

  /* Legacy Mapping - Light */
  --bg-1: var(--bg-color);
}

/* ── 2. BASE TYPOGRAPHY UPGRADE ── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  /* Standard weight — OS-optimized fonts render perfectly at 400 */
  background-color: var(--bg-color);
  color: var(--text-secondary);
  line-height: 1.7;
  /* Google line-height for airier legibility */
  -webkit-font-smoothing: auto;
  /* Google Standard: let OS handle stroke width in Dark Mode */
  -moz-osx-font-smoothing: auto;
}

/* Light mode needs subpixel antialiasing to prevent thin-looking text on white */
html.light body,
.light-mode body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  /* Crisp bold — not so heavy it loses sharpness */
  letter-spacing: -0.015em;
  /* Slightly relaxed from -0.02em for native font legibility */
  line-height: 1.2;
  margin-bottom: 1rem;
}

p,
li {
  font-size: 1.05rem;
  /* Large, readable body text */
}

/* JetBrains Mono stays razor-sharp at 400 — never muddy up the IDE feel */
code,
pre,
.code-joke,
.meta-perf,
.status-chip,
[class*="mono"],
[class*="terminal"],
[class*="code"] {
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

h1,
.hero h1,
.h-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2,
.s-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

p,
li,
.s-desc,
.about-text p,
.tl-summary,
.h-sub {
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sk h3,
.tl-title,
.proj h4,
.cert-name,
.article-title,
.edu-degree {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.btn,
.nav-links a,
.nav-link,
.rm-pill {
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.code-joke,
.meta-perf,
.status-chip,
.h-term {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ── 3. GRAIN NOISE OVERLAY — the Linear/Vercel premium signal ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.015; /* Subtler noise */
}



/* ── 4. SECTION SPACING — generous = premium ── */
.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section.s-tight {
  padding-top: var(--section-gap-sm);
  padding-bottom: var(--section-gap-sm);
}

/* ── 5. AOS ANIMATIONS — translate-up + fade (Linear style) ── */
/* Override the default AOS: just fade. Premium = translate + fade. */
.aos {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease-premium),
    transform 0.75s var(--ease-premium);
  will-change: opacity, transform;
}

.aos.on {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-aware: hero elements come from below faster */
.hero .aos {
  transition-duration: 0.6s;
}

.hero .aos:nth-child(1) {
  transition-delay: 0.05s;
}

.hero .aos:nth-child(2) {
  transition-delay: 0.15s;
}

.hero .aos:nth-child(3) {
  transition-delay: 0.25s;
}

.hero .aos:nth-child(4) {
  transition-delay: 0.35s;
}

/* Cards: feather in from slightly lower */
.proj.aos,
.sk.aos,
.tl-item.aos,
.cert.aos,
.article-card.aos,
.edu-item.aos {
  transform: translateY(36px);
  transition-duration: 0.8s;
}

/* ── 6. NAV UPGRADE — glass blur + premium shadow ── */
/* .nav moved to consolidated block in section 29 */

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0, 0, 0, 0.1);
  transform: translateX(-50%) !important;
}

/* ── 6.5. ELITE NAVIGATION TYPOGRAPHY — Broad & Bold ── */
.nav-logo {
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  font-size: 1.0625rem !important;
  /* 17px */
  letter-spacing: -0.04em !important;
  color: var(--text-primary) !important;
  text-transform: uppercase;
}

.nav-center .nav-link,
.nav-center .dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  padding: 0 8px !important; /* Atlassian link padding */

  font-size: 0.9375rem !important;
  /* 15px */
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  color: var(--text-secondary) !important;
  transition: transform 0.2s var(--ease-premium), opacity 0.2s var(--ease-premium), background-color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium), color 0.2s var(--ease-premium) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  margin: 0 !important;
  line-height: normal !important;
  vertical-align: middle !important;
}
}

/* Ensure dropdown wrapper doesn't add structural offset */
.nav-dropdown {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-center .nav-link:hover,
.nav-center .dropdown-toggle:hover {
  color: var(--text-primary) !important;
  background: var(--accent-indigo-lo) !important;
  border-radius: 7px !important;
  transform: translateY(-1px);
}

/* Elite Caret Calibration */
.nav-caret {
  font-size: 0.65rem !important;
  margin-left: 6px !important;
  opacity: 0.5;
  transition: transform 0.2s var(--ease-premium);
}


.dropdown-toggle:hover .nav-caret {
  opacity: 1;
  transform: translateY(1px);
}


/* High-fidelity mobile nav sync */
.mob-menu a {
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  /* 18px */
  letter-spacing: -0.02em !important;
  padding: 16px 0 !important;
}


/* ── 7. CARD HOVER LIFT — magnetic premium feel ── */
.proj,
.sk,
.tl-card,
.cert,
.article-card,
.edu-card,
.tcrd {
  transition:
    transform 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium),
    border-color 0.3s var(--ease-premium);
  will-change: transform;
}

.proj:hover,
.sk:hover,
.cert:hover,
.article-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tl-card:hover {
  transform: translateX(4px);
}

/* ── 8. SECTION LABEL SYSTEM UPGRADE ── */
.s-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  /* 11px */
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Animated dot for live labels */
.s-label .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

/* ── 9. BUTTON UPGRADE — pill style, premium weight ── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.25s var(--ease-premium),
    box-shadow 0.25s var(--ease-premium),
    background 0.25s var(--ease-premium),
    border-color 0.25s var(--ease-premium);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent-indigo) !important;
  color: var(--text-primary) !important;
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ── 10. SMOOTH SCROLL WRAPPER — works with Lenis ── */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ── 11. SCROLL PROGRESS BAR UPGRADE ── */
#sp {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg,
      var(--accent-indigo) 0%,
      var(--accent-cyan) 50%,
      var(--accent-violet) 100%);
  z-index: 10001;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px var(--accent-indigo), 0 0 2px var(--accent-cyan);
}

/* ── 12. LINK UNDERLINE — premium animated hover ── */
.nav-links a.nav-link {
  position: relative;
}

.nav-links a.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-indigo);
  border-radius: 2px;
  transition: width 0.3s var(--ease-premium);
}

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

/* ── 13. HERO SECTION — generous breathing room ── */
.hero {
  min-height: 100svh;
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(60px, 8vh, 100px);
}

/* ── 14. SECTION HEADER — aligned vertical rhythm ── */
.section-header {
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* ── 15. FOCUS RING — accessibility + premium ── */
*:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 16. SELECTION STYLE — branded ── */
::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}
[data-theme="light"] ::selection {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

/* ── 17. SCROLLBAR — minimal, premium ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── 18. IMAGE RENDER QUALITY ── */
img {
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
}

/* ── 19. TIMELINE CARDS — premium left accent line ── */
.tl-item {
  position: relative;
}

/* ── 20. SKILL TAGS — refined pill style ── */
.skill-tag,
.tl-tech span,
.proj-tech span {
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

/* ── 21. HERO SUBTEXT — premium sizing ── */
.h-sub {
  font-size: 1.125rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

/* ── 22. ARTICLE CARDS — magazine feel ── */
.article-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.article-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
}

/* ─── §29 · OVERLAY GLASSMORPISM (ATLASSIAN ELITE) ─── */
.mob-menu,
.app-sidenav {
  background: #000000 !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

html.light .mob-menu {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.mob-menu {
  padding-top: env(safe-area-inset-top, 24px) !important;
}

/* ── 23. FOOTER TYPOGRAPHY ── */
.footer {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* ── 24. MOBILE REFINEMENTS ── */
@media (max-width: 768px) {
  :root {
    --section-gap: clamp(60px, 8vw, 100px);
  }

  .hero h1,
  .h-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    letter-spacing: -0.035em;
  }

  .s-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    letter-spacing: -0.03em;
  }

  .s-desc,
  p,
  .tl-summary,
  .h-sub {
    font-size: 1rem;
  }

  /* Reduce grain on mobile for performance */
  body::before {
    opacity: 0.015;
    animation: none;
  }
}

/* ── 25. REDUCED MOTION RESPECT ── */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .aos {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .proj:hover,
  .sk:hover,
  .cert:hover,
  .article-card:hover {
    transform: none;
  }
}

/* ── 26. PROJECTS PAGE SPECIFIC ── */
.projects-page {
  padding: 120px 0 100px;
  position: relative;
  z-index: 10;
}

.projects-header {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.projects-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}

.projects-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.proj-stat {
  text-align: center;
}

.proj-stat-v {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-indigo-hi);
  line-height: 1;
}

.proj-stat-l {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

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

.filter-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: var(--radius-pill, 99px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-premium), opacity 0.2s var(--ease-premium), background-color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium), color 0.2s var(--ease-premium);
  min-height: 36px;
}

.filter-btn:hover {
  border-color: var(--accent-indigo-bd);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-indigo);
  color: white;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
  /* Default glow fallback */
}

.proj-bento.proj-grid {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .projects-page {
    padding-top: 100px;
  }

  .projects-header {
    margin-bottom: 30px;
  }
}

/* ── 27. RADAR PAGE SPECIFIC ── */
.radar-page {
  padding: 140px 0 100px;
  position: relative;
  z-index: 10;
}

.radar-header {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}

.radar-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}

.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media(max-width:767px) {
  .radar-grid {
    grid-template-columns: 1fr !important;
  }
}

.quadrant {
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium);
}

.quadrant:hover {
  transform: translateY(-4px);
  border-color: var(--accent-indigo-bd);
}

.quad-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.quad-adopt {
  border-top: 3px solid var(--accent-green);
}

.quad-trial {
  border-top: 3px solid var(--accent-cyan);
}

.quad-assess {
  border-top: 3px solid #F59E0B;
}

.quad-hold {
  border-top: 3px solid var(--accent-red);
}

.quadrant h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.quadrant>p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.tech-item:last-child {
  border-bottom: none;
}

.tech-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  width: 35%;
  flex-shrink: 0;
}

.tech-context {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.quad-adopt .tech-name {
  color: var(--accent-green);
}

.quad-trial .tech-name {
  color: var(--accent-cyan);
}

.quad-assess .tech-name {
  color: #F59E0B;
}

.quad-hold .tech-name {
  color: var(--accent-red);
}

/* ── 28. NOW PAGE SPECIFIC ── */
.now-page {
  padding: 140px 0 100px;
  position: relative;
  z-index: 10;
}

/* ─── GLOBAL SUBPAGE STABILITY PATCH ─── */
.radar-page,
.now-page,
.uses-page,
.speaking-page,
.community-page,
.projects-page {
  padding-top: clamp(120px, 15vh, 180px) !important;
  min-height: 100svh;
}

@media (max-width: 768px) {

  .radar-page,
  .now-page,
  .uses-page,
  .speaking-page,
  .community-page,
  .projects-page {
    padding-top: 110px !important;
  }
}

.now-header {
  max-width: 800px;
  margin: 0 auto 60px;
}

.now-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.now-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--accent-indigo-lo);
  border: 1px solid var(--accent-indigo-bd);
  color: var(--accent-indigo-hi);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.now-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media(max-width:767px) {
  .now-content {
    grid-template-columns: 1fr !important;
  }
}

.now-section {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium);
}

.now-section:hover {
  transform: translateY(-4px);
  border-color: var(--accent-indigo-bd);
}

.now-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-indigo);
  opacity: 0.4;
}

.now-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
}

.now-section h2 i {
  color: var(--accent-indigo);
  font-size: 1.25rem;
}

.now-section p,
.now-section li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.now-section ul {
  padding-left: 4px;
}

.now-section li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  list-style: none;
}

.now-section li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent-indigo);
  font-size: 0.75rem;
  opacity: 0.7;
}

.inspiration-quote {
  border-left: 3px solid var(--accent-violet);
  padding: 24px 32px;
  background: var(--accent-violet-lo);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
  grid-column: 1/-1;
  font-size: 1.05rem;
  line-height: 1.6;
}

.inspiration-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-violet);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

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

/* ═══════════════════════════════════════════════════
   29. APEX NAVIGATION — v2.0 (FAANG-Tier)
   Strict 3-Column Geometry & Theme Engine
═══════════════════════════════════════════════════ */

:root,
html.light {
  /* Light Theme (Default) — FAANG Apex v2.1 Sync Engine */
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-border: rgba(9, 30, 66, 0.08);
  --text-primary: #172B4D;
  --text-muted: #44546F;
  --btn-resume-bg: #0C66E4;
  --btn-resume-text: #FFFFFF;
  --dropdown-bg: rgba(255, 255, 255, 0.95);
  --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Bridge Legacy Tokens */
  --bg-1: #FFFFFF;
  --bg-2: #F4F5F7;
}

.dark-theme,
html.dark-theme {
  /* Dark Theme — FAANG Apex v2.1 Sync Engine */
  --nav-bg: rgba(10, 10, 10, 0.8);
  --nav-border: rgba(255, 255, 255, 0.08);
  --text-primary: #EDEDED;
  --text-muted: #A1A1AA;
  --btn-resume-bg: #EDEDED;
  --btn-resume-text: #050505;
  --dropdown-bg: rgba(15, 15, 15, 0.98);
  --dropdown-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);

  /* Bridge Legacy Tokens */
  --bg-1: #000000;
  --bg-2: #050505;
}

.nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 56px; /* Precise Atlassian Cloud height */
  background: var(--ds-bg-1) !important; /* Solid Atlassian Surface */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9999 !important;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 16px; /* Standard Atlassian horizontal padding */

  /* GPU Hardware Acceleration */
  transform: translate3d(0, 0, 0) !important;
  -webkit-backface-visibility: hidden;
  will-change: backdrop-filter, transform;

  transition:
    background-color 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium) !important;
}

html.light .nav {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Strict Atlassian Team '26 Geometry */
.nav-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px; /* Atlassian-grade tight grouping */
  margin-left: 24px; /* Spacing from logo/breadcrumbs */
  margin-right: auto; /* Push utilities to the right */
  position: relative;
}


.nav-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  margin-left: 16px;
}


/* Logo */
.nav-logo {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.95rem; /* Matches links better */
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

/* Center Links */
.nav-link {
  color: var(--ds-text-subtle);
  text-decoration: none;
  font-size: 14px; /* Standard Atlassian link size */
  font-weight: 500;
  padding: 6px 12px;
  margin: 0 2px;
  border-radius: 3px; /* Precise 3px Charlie radius */
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 1px;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown:hover .nav-link,
.nav-dropdown.is-open .nav-link,
.nav-link:hover {
  color: #0052CC;
  background: rgba(9, 30, 66, 0.08);
}

html.dark-theme .nav-dropdown:hover .nav-link,
html.dark-theme .nav-dropdown.is-open .nav-link,
html.dark-theme .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Mega-Menu Dropdown Trigger */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0; /* Align to left like Atlassian */
  transform: translateY(4px);
  width: max-content;
  min-width: 500px;
  background: var(--ds-surface-overlay) !important;
  border: 1px solid rgba(137, 147, 164, 0.2);
  border-radius: 4px; 
  box-shadow: var(--ds-shadow-raised);
  padding: 24px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ds-ease), transform 0.2s var(--ds-ease), visibility 0.2s !important;
  z-index: 1001;
  pointer-events: none;
}

.nav-dropdown-menu.align-right {
  left: auto !important;
  right: 0 !important;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
  pointer-events: auto;
}

.nav-dropdown.is-open .dropdown-toggle {
  color: var(--ds-text-brand) !important;
  background: rgba(9, 30, 66, 0.04) !important;
}

.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg) !important;
  color: var(--ds-text-brand) !important;
}


.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0 64px; /* Slightly larger gap for clarity since they are closer now */
  align-items: start;
  justify-content: start;
}

.nav-dropdown-menu.align-right .mega-grid {
  grid-template-columns: repeat(2, auto);
}

.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 240px;
  align-items: flex-start !important;
}

@media (max-width: 1024px) {
  .mega-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.mega-label {
  font-size: 0.6875rem !important; /* 11px */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--ds-text-subtle) !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 24px 0 !important; /* Rigid bottom spacing */
  height: 20px !important; /* Fixed height for horizontal sync */
  display: flex !important;
  align-items: center !important;
  pointer-events: none;
}

.mega-label:not(:first-child) {
  margin-top: 12px !important; /* Spacing between sections in same column */
}

.mega-link {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 12px !important;
  padding: 10px 0 !important; /* Zeroed left padding */
  margin: 0 0 24px 0 !important; /* Reset horizontal margins */
  min-height: 52px !important; /* Locked height for horizontal alignment */
  border-radius: 3px !important;
  color: var(--ds-text) !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: background-color 0.15s var(--ds-ease), transform 0.15s var(--ds-ease) !important;
  position: relative;
}

.mega-link:hover {
  background: var(--ds-surface-hovered) !important;
  color: var(--ds-text-brand) !important;
}

.mega-link-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start !important; /* Align the icon itself to the left */
  width: 28px !important; /* Fixed width prevents text staggering */
  margin-top: 2px;
  height: 20px; /* Align with title height */
  opacity: 0.6;
  font-size: 0.95rem;
  transition: opacity 0.15s var(--ds-ease);
}

.mega-link:hover .mega-link-icon {
  opacity: 1;
}

.mega-link-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link:hover .mega-link-icon {
  color: var(--ds-text-brand);
}

.mega-link-text {
  flex: 1;
}

.mega-arrow {
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s var(--ds-ease), transform 0.15s var(--ds-ease);
  color: var(--ds-text-brand);
}

.mega-link:hover .mega-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Light Mode Overrides for Mega-Menu */
html.light .mega-link:hover {
  background: rgba(9, 30, 66, 0.04) !important;
}

html.light .mega-section-title {
  color: #44546F !important; /* Atlassian Slate */
}


/* Buttons & Icons */
/* Buttons & Icons */
.nav-icon,
.theme-toggle-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px; /* Strictly Charlie 3px */
  border: 1px solid rgba(137, 147, 164, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ds-text-subtle);
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.15, 1, 0.3, 1);
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-icon:hover,
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
  color: var(--text-primary);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cmdk {
  height: 32px; /* Standardized height */
  border-radius: 3px; /* Strictly Charlie 3px */
  padding: 0 10px;
  border: 1px solid rgba(137, 147, 164, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ds-text-subtle);
  transition: all 0.2s cubic-bezier(0.15, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cmdk:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-resume {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(9, 30, 66, 0.04);
  color: #172B4D;
  border: 1px solid rgba(9, 30, 66, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  gap: 8px;
}

.btn-resume:hover {
  background: rgba(9, 30, 66, 0.08);
  transform: translateY(-1px);
}

html.dark-theme .btn-resume {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

#recruiter-trigger-global.recruiter-btn-elite {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important; /* Compact Atlassian padding */
  border-radius: 3px !important; /* Strictly Charlie 3px */
  font-weight: 600 !important;
  font-size: 14px !important; /* Atlassian standard */
  background: #0C66E4 !important; /* Modern Atlassian Brand Blue */
  color: #ffffff !important;
  box-shadow: none !important; /* Atlassian avoids heavy shadows */
  transition: all 0.2s cubic-bezier(0.15, 1, 0.3, 1) !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  margin-left: 8px !important;
  height: 32px !important; /* Precise button height */
  gap: 8px !important;
  white-space: nowrap !important;
}

#recruiter-trigger-global.recruiter-btn-elite:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.3) !important;
  background: #0747A6 !important;
}

.nav-v-divider {
  width: 1px;
  height: 20px;
  background: var(--text-primary);
  opacity: 0.15;
  margin: 0 4px;
  display: block;
}

/* Mobile Component — FAANG Refinement */
.mob-btn {
  background: transparent;
  border: 1px solid var(--nav-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.mob-btn:hover {
  background: var(--nav-border);
}

.nav-mob-wrapper {
  display: none;
}

@media (max-width: 1024px) {
  .nav {
    padding: 0 16px !important; /* Move elements closer to edges */
  }

  .nav-center {
    display: none;
  }

  .nav-mob-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px; /* Control gap between recruiter button and toggle */
  }

  .nav-right {
    flex: initial;
    gap: 10px !important;
  }

  /* Hide specific desktop-only actions on mobile */
  .nav-v-divider,
  .btn-cmdk,
  .btn-resume {
    display: none;
  }

  /* Premium Hamburger Refinement */
  .mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-right: -8px !important; /* Nudge closer to edge */
  }

  .hamburger-line {
    width: 22px !important;
    height: 2px !important;
    background-color: var(--text-primary) !important;
    border-radius: 2px !important;
    transition: transform 0.3s var(--ease-premium), opacity 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), color 0.3s var(--ease-premium) !important;
  }

  /* Ensure Logo stays left-anchored */
  .nav-left {
    flex: 1;
  }

  .nav-right {
    flex: 0;
  }
}

/* ══ ATLASSIAN-ELITE FOOTER (Enhanced v2.1) ══ */
:root {
  --footer-bg: #F8FAFC;
  --footer-border: rgba(9, 30, 66, 0.08);
  --footer-heading: #1E293B;
  --footer-text: #475569;
  --footer-link: #44546F;
  --footer-link-hover: #0C66E4;
  --footer-accent: #0C66E4;
}

.dark-theme,
html.dark-theme {
  --footer-bg: #030304;
  --footer-border: rgba(255, 255, 255, 0.05);
  --footer-heading: #EDEDED;
  --footer-text: #A1A1AA;
  --footer-link: #A1A1AA;
  --footer-link-hover: #FFFFFF;
  --footer-accent: #22D3EE;
}

.atlassian-footer {
  background: var(--bg-1) !important;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 100px;
  position: relative;
  z-index: 100;
  font-family: var(--font-body);
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  min-height: 400px;
  /* Resilience against dynamic content scaling */
}

@media (max-width: 768px) {
  .atlassian-footer {
    padding: 60px 0 20px;
    margin-top: 60px;
    min-height: auto;
  }
}

/* ── FOOTER TRUST HEADER (COLLAPSED) ── */
.footer-trust-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 0 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-trust-row i {
  margin-right: 6px;
  opacity: 0.8;
}

.footer-copyright-banner {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-copyright-banner a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.footer-copyright-banner a:hover {
  text-decoration: underline;
}

.atlassian-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.footer-product-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--footer-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-version {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--footer-accent);
}

.footer-mission {
  color: var(--footer-text);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 32px;
}

.system-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 8px 16px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse-green 2s infinite;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.contact-item i {
  color: var(--footer-accent);
  width: 16px;
  text-align: center;
}

.contact-item:hover {
  color: var(--footer-link-hover);
  transform: translateX(4px);
}

.footer-col h4 {
  color: var(--footer-heading);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.atlassian-links {
  list-style: none;
  padding: 0;
}

.atlassian-links li {
  margin-bottom: 16px;
}

.atlassian-links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.atlassian-links a:hover {
  color: var(--footer-link-hover);
  transform: translateX(4px);
}

.atlassian-links a.highlight-link {
  color: var(--footer-accent);
}

.atlassian-footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 30px 32px 0;
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-left,
.footer-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.code-joke {
  color: var(--text-muted);
}

.copyright,
.meta-item {
  color: var(--text-muted);
}

.meta-perf {
  color: #4ade80;
}

/* 📱 ELISTIQ-STYLE MOBILE OVERHAUL */
@media (max-width: 768px) {
  .atlassian-footer {
    padding: 60px 0 30px 0;
    margin-top: 40px;
  }

  .atlassian-footer .footer-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 48px 24px !important;
    text-align: left !important;
    padding: 0 20px !important;
  }

  .brand-col, 
  .footer-col:last-child {
    grid-column: span 2 !important;
    text-align: center !important;
  }

  .footer-product-logo {
    justify-content: center !important;
    margin-bottom: 16px !important;
  }

  .footer-mission {
    margin: 0 auto 32px auto !important;
    max-width: 100% !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    opacity: 0.8;
  }

  .system-status-chip,
  .footer-product-logo {
    justify-content: flex-start;
  }

  /* Social Icons Row (Elastiq Ref Image) */
  .social-row {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 16px !important;
    padding: 0 !important;
  }

  .social-row li {
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  .social-row a {
    width: 48px !important;
    height: 48px !important;
    background: var(--footer-border) !important;
    border: 1px solid var(--footer-border) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    color: var(--footer-text) !important;
    transition: transform 0.3s var(--ease-premium), opacity 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium), color 0.3s var(--ease-premium) !important;
    padding: 0 !important;
    gap: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }

  .social-row a i {
    font-size: 1.4rem !important;
    margin: 0 !important;
    display: block !important;
    line-height: 1 !important;
  }

  .social-row a:hover {
    background: var(--footer-accent) !important;
    color: white !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
  }

  .atlassian-links a {
    justify-content: flex-start;
  }

  .atlassian-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 80px;
    /* Safe space for bottom dock */
    text-align: left;
  }
}



/* ══ BENTO STACK REFINEMENT (Phase 2) ══ */
@media (max-width: 768px) {

  .grid,
  .bento-grid,
  .mega-grid,
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .s-tight {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* ── 22. METADATA HARDENING SURGICAL STRIKE ── */
/* Boost weight for small labels while preserving 400-weight for code blocks */
.footer-product-logo {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

.edu-grade,
.edu-period,
.edu-location,
.footer-trust-row span,
.footer-copyright-banner,
.atlassian-links a,
.footer-links a,
.tech-tag,
.pmodal-tech-tag,
.skill-tags span,
.meta-perf,
.status-chip,
.system-status-chip,
.product-version {
  font-weight: 500 !important;
}


/* Visibility calibration for technical iconography */
.edu-grade i {
  opacity: 1 !important;
  color: var(--accent-cyan) !important;
  margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   INDUSTRIAL BENTO SYSTEM — v1.0 (SRE-Grade)
   Strict geometric alignment, high-fidelity glassmorphism, and responsive matrix logic.
   ───────────────────────────────────────────────────────────────────── */

.skills-matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
}

.bento-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--nav-border);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* GPU Acceleration */
  transform: translateZ(0);
  will-change: transform, opacity;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(99, 102, 241, 0.05), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium);
}

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

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-indigo-bd);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Bento Grid Spans — Architecture Logic */
.bento-span-12 {
  grid-column: span 12;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-span-4 {
  grid-column: span 4;
}

@media (max-width: 1024px) {

  .bento-span-8,
  .bento-span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .skills-matrix {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-span-12,
  .bento-span-8,
  .bento-span-6,
  .bento-span-4 {
    grid-column: span 1;
  }

  .bento-card {
    padding: 24px;
  }
}

/* ADR Design Tokens */
.adr-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-green-lo);
  color: var(--accent-green-hi);
  border: 1px solid var(--accent-green-bd);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.adr-badge.status-accepted {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.2);
}

.adr-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.adr-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.adr-log {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}


/* ─── § SPOTLIGHT AURA SYSTEM ─────────────────────────────────────────
   The "Vercel" proximity-based border illumination.
   Uses CSS variables for 60fps GPU-accelerated rendering.
──────────────────────────────────────────────────────────────────────── */

.focus-cards-grid {
  display: grid;
  /* Proximity variables inherited by children */
  --mouse-x: 0px;
  --mouse-y: 0px;
}

.focus-card {
  position: relative;
  overflow: hidden;
  /* Mask the glow pseudo-element */
  z-index: 1;

  /* GPU Acceleration */
  transform: translateZ(0);
  will-change: transform, opacity;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* The glowing border that tracks the mouse */
.focus-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  /* Cover border gap */
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(16, 185, 129, 0.15),
      transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease-premium);
  pointer-events: none;
}

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

/* Dark theme boost for the illumination */
.dark-theme .focus-card::before {
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(99, 102, 241, 0.2),
      transparent 40%);
}

/* Fallback for projects that use ::after for glass spec */
.proj.focus-card::before {
  border-radius: inherit;
}

/* ─── §29 · ULTRA PREMIUM NAVIGATION — v3.0 ─── */
/* ─── §29 · ULTRA PREMIUM NAVIGATION — v3.0 (Atlassian Parity) ─── */
.nav-premium {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);

  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1440px !important;
  z-index: 9999 !important;
  height: 64px; 
  font-family: var(--font-body, "Charlie Text", -apple-system, sans-serif);

  will-change: backdrop-filter, transform;
  transition: all 0.3s ease;
}

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

/* Dark Mode Overrides */
html.dark-theme .nav-premium {
  background: rgba(10, 10, 12, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* --- Brand Identity --- */
.atlassian-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.atlassian-logo:hover {
  opacity: 0.8;
}

.atlassian-mark {
  width: 24px;
  height: 24px;
  color: #0052CC; /* Atlassian Blue */
}

.atlassian-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #0052CC;
}

/* --- Navigation Links --- */
.atlassian-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
  height: 100%;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 3px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Removed duplicate nav-link:hover */

.nav-caret {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
}

/* --- Action Cluster --- */
.atlassian-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.atlassian-btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0052CC;
}

.atlassian-v-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 8px;
}

.atlassian-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.atlassian-user-profile:hover {
  background: rgba(0, 0, 0, 0.05);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-info {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .atlassian-nav-links,
  .atlassian-v-divider,
  .atlassian-user-profile {
    display: none !important;
  }
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Consolidated duplicate nav-dropdown-menu styles */

.mega-link {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mega-link:hover {
  background: rgba(0, 82, 204, 0.04);
}

.mega-link-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.atlassian-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recruiter-btn-atlassian {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-display, inherit);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 12px;
}

.recruiter-btn-atlassian:hover {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.recruiter-btn-atlassian:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(67, 56, 202, 0.2), inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.recruiter-btn-atlassian i {
  font-size: 0.9rem;
}

/* Theme Toggle Polish */
.theme-toggle-btn .ti-moon {
  color: #FFD700;
}
.theme-toggle-btn .ti-sun {
  color: #FFA500;
}

/* ── Scroll Progress bar ── */
.nav-progress, .nav-indicator {
  display: none !important;
}

/* ── Theme Toggle Rotation ── */
.theme-rotate {
  animation: themeRotate 0.6s var(--ease-premium);
}

@keyframes themeRotate {
  0% {
    transform: rotate(0) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* View Transition Polish */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: var(--ease-premium);
}


/* ── 30. ANTHROPIC-TIER EDITORIAL PHYSICS ── */

/* --- ANTHROPIC GRID MASKING --- */
.focus-cards-grid {
  /* Fades out the bottom 15% of the grid so cards look like they are emerging from the void */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  padding-bottom: 2.5rem;
  /* Give space for the fade */
}

/* --- EDITORIAL TEXT READOUT (ILLUMINATED PROSE) --- */
.prose-reveal {
  /* Base state: Muted */
  background: linear-gradient(to right, var(--text-primary) 50%, var(--text-muted) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  /* Start gradient on the muted side */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.prose-reveal.illuminated {
  /* Active state: Bright white */
  background-position: 0 0;
}

/* --- TIER-0 VOLUMETRIC SPOTLIGHT --- */
.focus-cards-grid {
  position: relative;
}

/* Base card types supported */
.focus-card,
.proj,
.sk,
.cert,
.article-card,
.quadrant,
.now-section {
  position: relative;
  overflow: hidden;
}

.focus-card::before,
.proj::before,
.sk::before,
.cert::before,
.article-card::before,
.quadrant::before,
.now-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(16, 185, 129, 0.08),
      transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.focus-cards-grid:hover .focus-card::before,
.focus-cards-grid:hover .proj::before,
.focus-cards-grid:hover .sk::before,
.focus-cards-grid:hover .cert::before,
.focus-cards-grid:hover .article-card::before,
.radar-grid:hover .quadrant::before,
.now-content:hover .now-section::before {
  opacity: 1;
}

.focus-card>*,
.proj>*,
.sk>*,
.cert>*,
.article-card>*,
.quadrant>*,
.now-section>* {
  position: relative;
  z-index: 1;
}

/* --- LIVE TELEMETRY HUD BASE --- */
.telemetry-hud-elite {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9000;
  display: none;
  /* Desktop only via JS or Media Query */
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease-premium);
  pointer-events: none;
}

@media (min-width: 640px) {
  .telemetry-hud-elite {
    display: flex;
  }
}

.telemetry-hud-elite:hover {
  opacity: 1;
}

.tel-spark-row {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 1rem;
  margin-bottom: 0.25rem;
}

.tel-spark-bar {
  width: 2px;
  background: var(--accent-emerald);
  opacity: 0.4;
  transition: height 0.3s ease;
}

.tel-box {
  background: var(--bg-surface-1, #0B0B0C);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  padding: 0.375rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tel-loc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tel-node {
  color: var(--text-secondary);
}

.tel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 5px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

.tel-latency {
  margin-top: 0.25rem;
  color: var(--text-primary);
}

.tel-sys {
  opacity: 0.5;
}

/* ── SRE STATUS BADGE (TopNav) ── */
.nav-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-premium);
  cursor: help;
  user-select: none;
}

.nav-status-badge .status-dot {
  width: 6px;
  height: 6px;
  background: #34A853;
  border-radius: 50%;
  box-shadow: 0 0 10px #34A853;
}

.nav-status-badge.warn .status-dot {
  background: #F59E0B;
  box-shadow: 0 0 10px #F59E0B;
}

.nav-status-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

@media (max-width: 1100px) {
  .nav-status-badge {
    display: none;
  }
}

/* ══ INCIDENT POST-MORTEM STYLES ══ */
.incident-page {
    padding-top: 140px;
    padding-bottom: 100px;
}

.incident-ticket-header {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.incident-ticket-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-indigo);
}

.ticket-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tag-ghost {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-indigo);
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-resolved {
    background: rgba(52, 168, 83, 0.1);
    color: #34A853;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Timeline */
.incident-timeline {
    position: relative;
    padding-left: 32px;
    margin: 48px 0;
}

.incident-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-event {
    position: relative;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--bg-1);
    border: 2px solid var(--accent-indigo);
    border-radius: 50%;
    z-index: 2;
}

.timeline-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-indigo);
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.timeline-content:hover {
    border-color: var(--accent-indigo);
    transform: translateX(4px);
}

.timeline-log {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
    background: #000;
    margin-top: 0;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #34A853;
}

.timeline-event.expanded .timeline-log {
    max-height: 300px;
    margin-top: 12px;
    padding: 12px;
}

/* RCA Accordion */
.rca-section {
    margin: 64px 0;
}

.rca-accordion details {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.rca-accordion summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rca-accordion summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s;
}

.rca-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.rca-accordion .details-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Remediation Checklist */
.remediation-checklist {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

.check-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-indigo);
}

.check-item.completed span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* ── 27. ATLASSIAN IMPACT CARDS (CREDENTIALS) ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 40px !important;
}

.cert {
  background: var(--ds-surface, #ffffff) !important;
  border: 1px solid var(--ds-border, rgba(9, 30, 66, 0.14)) !important;
  border-radius: 3px !important;
  padding: 24px !important;
  box-shadow: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  transition: all 0.2s var(--ease-premium) !important;
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  min-height: 240px !important;
}

.cert::before, .cert::after {
  display: none !important; /* Remove legacy gradient effects */
}

.cert-top {
  display: none !important;
}

.cert-head {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  margin-bottom: 0 !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
}

.cert-ico {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  background: var(--ds-surface-sunken, #f4f5f7) !important;
  border-radius: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  border: 1px solid var(--ds-border, rgba(0, 0, 0, 0.05)) !important;
  box-shadow: inset 0 0 0 1px rgba(9, 30, 66, 0.08) !important;
  margin: 0 !important;
}

.cert-head-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.cert-name {
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--ds-text, #172B4D) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.cert-issuer {
  font-size: 12px !important;
  color: var(--ds-text-subtle, #6B778C) !important;
  text-transform: none !important;
  font-weight: 500 !important;
  text-align: left !important;
}

.cert-body {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin: 0 !important;
  background: none !important;
}

.cert-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.cert-date {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  color: var(--ds-text-subtle, #6B778C) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.cert-status {
  border-radius: 3px !important;
  padding: 2px 6px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.cert-status-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  position: static !important;
}

.cert-status.pursuing {
  background: #FFF0B3 !important;
  color: #172B4D !important;
}

.cert-status.pursuing .cert-status-dot {
  background: #FFAB00 !important;
}

.cert-status.certified {
  background: #E3FCEF !important;
  color: #006644 !important;
}

.cert-status.certified .cert-status-dot {
  background: #36B37E !important;
}

.cert-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cert-badge {
  background: var(--ds-surface-sunken, #f4f5f7) !important;
  color: var(--ds-text-subtle, #42526E) !important;
  border: 1px solid var(--ds-border, rgba(0,0,0,0.1)) !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  display: inline-block !important;
}

.cert-link {
  margin-top: auto !important;
  border-top: 1px solid var(--ds-border, rgba(9, 30, 66, 0.08)) !important;
  padding-top: 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0052CC !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  background: none !important;
}

.cert-link:hover {
  color: #0747A6 !important;
  background: none !important;
}

/* Dark Mode Overrides */
[data-theme="dark"] .cert {
  background: #1D2125 !important;
  border-color: #454F59 !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .cert-ico {
  background: #22272B !important;
  border-color: #454F59 !important;
}

[data-theme="dark"] .cert-name {
  color: #B3D4FF !important;
}

[data-theme="dark"] .cert-issuer {
  color: #8C9BAB !important;
}

[data-theme="dark"] .cert-status.pursuing {
  background: rgba(255, 171, 0, 0.2) !important;
  color: #FFC400 !important;
}

[data-theme="dark"] .cert-status.certified {
  background: rgba(54, 179, 126, 0.2) !important;
  color: #57D9A3 !important;
}

[data-theme="dark"] .cert-link {
  border-color: #454F59 !important;
  color: #65B7FF !important;
}

[data-theme="dark"] .cert-badge {
  background: #22272B !important;
  border-color: #454F59 !important;
  color: #8C9BAB !important;
}

.cert:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.15) !important;
  border-color: #0065FF !important;
}

[data-theme="dark"] .cert:hover {
  border-color: #65B7FF !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* ── 28. ATLASSIAN TESTIMONIAL WORKSPACE ── */
#testimonials {
  position: relative;
  overflow: hidden;
}

.peoples-visual-anchor {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 520px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1) brightness(0.85) contrast(1.1);
  transition: all 0.5s var(--ease-premium);
}

[data-theme="dark"] .peoples-visual-anchor {
  opacity: 0.25;
  filter: invert(1) brightness(1.4) contrast(0.9) drop-shadow(0 0 20px rgba(101, 183, 255, 0.1));
}

.tcrd {
  background: var(--ds-surface, #ffffff) !important;
  border: 1px solid var(--ds-border, rgba(9, 30, 66, 0.14)) !important;
  border-radius: 3px !important;
  padding: 32px !important;
  box-shadow: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31) !important;
  min-width: 400px !important;
  margin-right: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  transition: all 0.3s var(--ease-premium) !important;
}

.tcrd-bar {
  display: none !important; /* Remove legacy side bar */
}

.t-stars {
  color: #FFAB00 !important; /* Atlassian Yellow */
  font-size: 0.75rem !important;
  margin-bottom: 8px !important;
  display: flex !important;
  gap: 2px !important;
}

.tcrd blockquote {
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--ds-text, #172B4D) !important;
  font-style: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 400 !important;
  flex-grow: 1;
}

.t-foot {
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--ds-border, rgba(9, 30, 66, 0.08)) !important;
}

.t-auth {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.t-av {
  width: 40px !important;
  height: 40px !important;
  border-radius: 3px !important; /* Atlassian style square-ish avatar */
  background: var(--ds-surface-sunken, #f4f5f7) !important;
  color: var(--ds-text-brand, #0052CC) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--ds-border, rgba(0,0,0,0.1)) !important;
  box-shadow: inset 0 0 0 1px rgba(9, 30, 66, 0.08) !important;
}

.t-name {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--ds-text, #172B4D) !important;
  margin: 0 !important;
  font-family: var(--font-sans) !important;
}

.t-role {
  font-size: 12px !important;
  color: var(--ds-text-subtle, #6B778C) !important;
  margin: 0 !important;
  font-family: var(--font-sans) !important;
}

.t-ext {
  color: #0052CC !important;
  font-size: 1.1rem !important;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.t-ext:hover {
  opacity: 1;
}

.t-nav-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 3px !important;
  background: var(--ds-surface, #ffffff) !important;
  border: 1px solid var(--ds-border, rgba(9, 30, 66, 0.14)) !important;
  color: var(--ds-text-subtle, #42526E) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 1px rgba(9, 30, 66, 0.1) !important;
}

.t-nav-btn:hover {
  background: var(--ds-background-neutral-hovered, #EBECF0) !important;
  color: var(--ds-text, #172B4D) !important;
  border-color: var(--ds-border-focused, #0052CC) !important;
}

/* Dark Mode Overrides for Testimonials */
[data-theme="dark"] .tcrd {
  background: #1D2125 !important;
  border-color: #454F59 !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .tcrd blockquote {
  color: #B3D4FF !important;
}

[data-theme="dark"] .t-name {
  color: #B3D4FF !important;
}

[data-theme="dark"] .t-role {
  color: #8C9BAB !important;
}

[data-theme="dark"] .t-nav-btn {
  background: #22272B !important;
  border-color: #454F59 !important;
  color: #8C9BAB !important;
}

[data-theme="dark"] .t-nav-btn:hover {
  background: #2C333A !important;
  border-color: #65B7FF !important;
  color: #B3D4FF !important;
}

.tcrd:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.08) !important;
}

[data-theme="dark"] .tcrd:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ── 29. ATLASSIAN COMMUNITY ENTITIES ── */
.comm-card {
  background: var(--ds-surface, #ffffff) !important;
  border: 1px solid var(--ds-border, rgba(9, 30, 66, 0.14)) !important;
  border-radius: 3px !important;
  padding: 32px !important;
  box-shadow: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  transition: all 0.2s var(--ease-premium) !important;
  height: 100% !important;
  position: relative;
  overflow: hidden;
}

.comm-card::before, .comm-card::after {
  display: none !important; /* Remove legacy effects */
}

.comm-ico, .comm-icon {
  width: 48px !important;
  height: 48px !important;
  background: var(--ds-surface-sunken, #f4f5f7) !important;
  border-radius: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  margin: 0 !important;
  border: 1px solid var(--ds-border, rgba(0, 0, 0, 0.05)) !important;
  box-shadow: inset 0 0 0 1px rgba(9, 30, 66, 0.08) !important;
  transition: all 0.2s ease !important;
}

.comm-card h4 {
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--ds-text, #172B4D) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  line-height: 1.2 !important;
}

.comm-card h4::after {
  content: 'ACTIVE';
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  background: #E3FCEF !important;
  color: #006644 !important;
  border-radius: 3px !important;
  letter-spacing: 0.04em !important;
  transition: all 0.2s ease !important;
}

.comm-card p {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--ds-text-subtle, #42526E) !important;
  margin: 0 !important;
  flex-grow: 1;
}

/* Dark Mode Overrides for Community Roles */
[data-theme="dark"] .comm-card {
  background: #1D2125 !important;
  border-color: #454F59 !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .comm-ico, [data-theme="dark"] .comm-icon {
  background: #22272B !important;
  border-color: #454F59 !important;
}

[data-theme="dark"] .comm-card h4 {
  color: #B3D4FF !important;
}

[data-theme="dark"] .comm-card h4::after {
  background: rgba(54, 179, 126, 0.2) !important;
  color: #57D9A3 !important;
}

[data-theme="dark"] .comm-card p {
  color: #8C9BAB !important;
}

.comm-card:hover {
  transform: translateY(-4px) !important;
  border-color: #0052CC !important;
  box-shadow: 0 12px 24px rgba(9, 30, 66, 0.15) !important;
}

.comm-card:hover .comm-ico, .comm-card:hover .comm-icon {
  background: #DEEBFF !important;
  color: #0052CC !important;
  border-color: #0052CC !important;
}

[data-theme="dark"] .comm-card:hover {
  border-color: #65B7FF !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .comm-card:hover .comm-ico, [data-theme="dark"] .comm-card:hover .comm-icon {
  background: rgba(101, 183, 255, 0.1) !important;
  color: #65B7FF !important;
  border-color: #65B7FF !important;
}

/* ── SYSTEM STATUS INDICATOR ── */
.nav-sys-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ds-text-subtle);
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(137, 147, 164, 0.15);
  margin-right: 16px;
  height: 24px;
  transition: all 0.2s ease;
}

.nav-sys-status:hover {
  color: var(--ds-text-brand);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #36B37E; /* Atlassian Success Green */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(54, 179, 126, 0.4);
  animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.status-text {
  white-space: nowrap;
}

/* ── ELITE NAVIGATION SYNC ── */
.nav-inner, .nav-left, .nav-right, .nav-sys-status, .recruiter-btn-atlassian, .atlassian-logo {
  display: flex !important;
  align-items: center !important;
}

.atlassian-mark {
  margin-top: 1px;
}

/* ── MOBILE NAVIGATION OPTIMIZATION ── */
@media (max-width: 768px) {
  /* Enforce Strict Vertical Centering Across All Nav Clusters */
  .nav-inner, .nav-left, .nav-right, .nav-sys-status, .atlassian-logo, .mobile-toggle {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }
  
  .recruiter-btn-atlassian {
    display: none !important; /* Hide on mobile to achieve elite look */
  }

  /* Reset inner spacing for perfect horizontal rhythm */
  .nav-inner {
    justify-content: space-between !important;
    padding: 0 16px !important;
    height: 56px !important; /* Standardized mobile nav height */
  }

  .nav-left { 
    justify-content: flex-start !important;
    gap: 12px !important; 
    flex: 0 1 auto !important; /* Don't grow, stay at edge */
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
  }
  
  .nav-right { 
    justify-content: flex-end !important;
    gap: 12px !important; 
    flex: 1 1 auto !important; /* Grow to fill center, pushing status/toggle to right */
    display: flex !important;
    align-items: center !important;
    padding-right: 0 !important;
  }

  /* Logo Logic: Symbol only on Mobile */
  .atlassian-brand { display: none !important; }
  .atlassian-mark { width: 28px !important; height: 28px !important; }
  
  /* Utilities Cluster: Hide everything EXCEPT Status, Mobile Toggle, and Mobile Recruiter Trigger */
  .nav-right > *:not(.nav-sys-status):not(.mobile-toggle):not(.mobile-only):not(#recruiter-trigger-global-mob) {
    display: none !important;
  }

  .desktop-only,
  .atlassian-btn-group,
  .atlassian-v-divider,
  .recruiter-btn-atlassian,
  .atlassian-user-profile {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  /* Recruiter Button: Fixed Width Single Line */
  .recruiter-btn-atlassian {
    display: none !important;
    padding: 0 10px !important;
    height: 30px !important;
    font-size: 11px !important;
    background: #0052CC !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    gap: 6px !important;
  }

  .recruiter-btn-atlassian span {
    font-weight: 600 !important;
  }

  /* Compact System Status */
  .nav-sys-status {
    padding: 0 !important;
    margin-right: 4px !important;
    background: transparent !important;
    border: none !important;
    gap: 6px !important;
  }
  
  .nav-sys-status .status-text {
    font-size: 0 !important;
    color: var(--text-primary) !important;
  }
  
  .nav-sys-status .status-text::after {
    content: "NOMINAL";
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    font-family: var(--font-mono) !important;
  }

  .nav-sys-status .status-dot {
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
  }

  /* Mobile Toggle: Perfect Alignment */
  .mobile-toggle {
    margin-left: 4px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .hamburger-line {
    width: 20px !important;
    height: 2px !important;
    background: var(--text-primary) !important;
    border-radius: 2px !important;
    display: block !important;
  }
}

/* Desktop-only display logic */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}