/* ============================================
   0xLazar — Alternative Portfolio Design System
   Ecosystem Influence & Professional Authority
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary: #07070d;
  --bg-secondary: #0e0e18;
  --bg-tertiary: #141422;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(139, 92, 246, 0.3);

  --text-primary: #f2f2f7;
  --text-secondary: #b0b0c8;
  --text-muted: #6e6e8a;

  --accent-1: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #a78bfa;
  --accent-4: #22d3ee;
  --accent-glow: rgba(139, 92, 246, 0.15);

  --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #a78bfa 100%);
  --gradient-text: linear-gradient(90deg, #8b5cf6, #06b6d4, #a78bfa);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(6, 182, 212, 0.04));

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-base: 400ms var(--ease-out-expo);
  --transition-slow: 600ms var(--ease-out-expo);

  --z-nav: 100;
  --z-overlay: 200;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-link {
  color: var(--accent-3);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.3);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.inline-link:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-1);
  margin-bottom: var(--space-xs);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: var(--space-sm) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
}

.nav-brand span {
  color: var(--accent-1);
}

.nav-avatar {
  width: 0;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  opacity: 0;
  margin-right: 0;
  transition: width 0.3s ease, opacity 0.3s ease, margin-right 0.3s ease;
}

.nav--avatar-visible .nav-avatar {
  width: 28px;
  opacity: 1;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 13, 0.96);
  backdrop-filter: blur(24px);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-menu-links a {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--text-primary);
}

/* ============================================
   HERO — Split Screen
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero>.container {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  animation: orb-float 20s ease-in-out infinite;
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: -10%;
  right: 20%;
}

.hero-orb--2 {
  width: 450px;
  height: 450px;
  background: var(--accent-2);
  bottom: -15%;
  left: 5%;
  animation-delay: -7s;
}

.hero-orb--3 {
  width: 300px;
  height: 300px;
  background: #6d28d9;
  top: 50%;
  right: -5%;
  animation-delay: -14s;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
}

.hero-content {
  max-width: 580px;
  padding-top: 60px;
}

/* Mobile-only circular avatar — hidden on desktop */
.hero-avatar-mobile {
  display: none;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.08), 0 8px 32px rgba(139, 92, 246, 0.2);
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.hero-avatar-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero-avatar-mobile .hero-portrait-placeholder {
  border-radius: 0;
}


.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-3);
  margin-bottom: var(--space-lg);
  letter-spacing: 1px;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--space-md);
  letter-spacing: -1.5px;
}

.hero-pillars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.18);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.hero-pill:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--accent-3);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-proof {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-bottom: var(--space-lg);
  opacity: 0.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}

.btn--ghost {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.05);
}

/* Hero portrait */
.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
}

.hero-portrait-frame {
  width: 300px;
  height: 370px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(139, 92, 246, 0.08);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient placeholder when no image */
.hero-portrait-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.hero-portrait-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
}

.hero-portrait-placeholder .silhouette {
  width: 70%;
  height: 80%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 50% 50% 0 0;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Decorative ring */
.hero-portrait-ring {
  position: absolute;
  width: 360px;
  height: 430px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-xl);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(3deg);
  pointer-events: none;
}

.hero-portrait-name {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================
   TRUSTED BY — Marquee
   ============================================ */
.trusted-by {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 7, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.trusted-by::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
  animation: shimmer-across 8s ease-in-out infinite;
}

@keyframes shimmer-across {

  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

.trusted-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-3);
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.trusted-label::before,
.trusted-label::after {
  display: none;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-logo {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 10px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
  cursor: default;
  display: inline-flex;
  align-items: center;
}

.marquee-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

/* Specific size overrides to balance visually */
.marquee-logo img[alt="Logos"],
.marquee-logo img[alt="Lovepunks"],
.marquee-logo img[alt="Kollektiv Systems"],
.marquee-logo img[alt="0xPragma"] {
  height: 38px;
}

.marquee-logo:hover img {
  opacity: 1;
}

.marquee-logo:hover {
  color: var(--accent-3);
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
}

/* ============================================
   ABOUT — Human Narrative
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "heading stats"
    "p1      stats"
    "p2      stats"
    "pills   stats";
  gap: 0 var(--space-2xl);
  align-items: start;
}

#about {
  padding-bottom: var(--space-lg);
}

#timeline {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.about-heading {
  grid-area: heading;
}

.about-p1 {
  grid-area: p1;
}

.about-p2 {
  grid-area: p2;
}

.expertise-pills {
  grid-area: pills;
}

.about-stats {
  grid-area: stats;
}

.about-p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.about-p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: var(--space-lg);
}

.stat-card {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-card:first-child {
  border-top: 1px solid var(--border-subtle);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 80px;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Expertise Pills */
.expertise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-lg);
}

.expertise-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.14);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-3);
  transition: all var(--transition-fast);
}

.expertise-pill:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
}

.expertise-pill .pill-icon {
  font-size: var(--text-sm);
}

/* Gallery Strip */
.gallery-strip-wrapper {
  margin-top: var(--space-lg);
  overflow: hidden;
  position: relative;
  padding: var(--space-md) 0;
}

.gallery-strip-wrapper::before,
.gallery-strip-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}

.gallery-strip-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.gallery-strip-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.gallery-strip {
  display: flex;
  gap: var(--space-md);
  animation: gallery-scroll 25s linear infinite;
  width: max-content;
}

.gallery-strip:hover {
  animation-play-state: paused;
}

@keyframes gallery-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.gallery-item {
  width: 440px;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter var(--transition-base);
}

.gallery-item:hover img {
  filter: grayscale(0%) contrast(1.0);
}

/* Gallery gradient placeholders */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.gallery-placeholder span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(7, 7, 13, 0.8) 0%, rgba(7, 7, 13, 0) 40%);
  z-index: 1;
  pointer-events: none;
}

.gallery-overlay span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
}

.gp-1 {
  background: linear-gradient(135deg, #1a0533 0%, #2d1b69 40%, #1e3a5f 100%);
}

.gp-2 {
  background: linear-gradient(135deg, #0c1b2a 0%, #1b2838 40%, #2d1b69 100%);
}

.gp-3 {
  background: linear-gradient(135deg, #1b2838 0%, #0f3460 40%, #533483 100%);
}

.gp-4 {
  background: linear-gradient(135deg, #2d1b69 0%, #1e3a5f 50%, #0a192f 100%);
}

.gp-5 {
  background: linear-gradient(135deg, #0a192f 0%, #1a0533 50%, #1e3a5f 100%);
}

.gp-6 {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d1b69 50%, #533483 100%);
}

.gp-7 {
  background: linear-gradient(135deg, #0a192f 0%, #0f3460 50%, #1a0533 100%);
}

.gp-8 {
  background: linear-gradient(135deg, #1a0533 0%, #0c1b2a 50%, #1e3a5f 100%);
}

/* Scroll prompt */
.scroll-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 1px;
  animation: float-prompt 3s ease-in-out infinite;
}

.scroll-prompt svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-1);
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes float-prompt {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ============================================
   HYBRID TIMELINE
   ============================================ */
.hybrid-timeline {
  position: relative;
  margin-top: var(--space-xl);
}

/* Main vertical line */
.hybrid-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-1) 5%, var(--accent-2) 50%, var(--accent-1) 95%, transparent);
}

/* Role item (main line) */
.tl-role {
  position: relative;
  padding-left: 80px;
  margin-bottom: var(--space-lg);
}

.tl-dot {
  position: absolute;
  left: 21px;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-1);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.tl-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tl-role:hover .tl-dot {
  border-color: var(--accent-2);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.4);
}

.tl-role:hover .tl-dot::after {
  opacity: 1;
  background: var(--accent-2);
}

/* Active/present dot pulse */
.tl-dot--active::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-1);
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tl-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tl-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.06);
}

.tl-card:hover::before {
  opacity: 1;
}

.tl-card>* {
  position: relative;
  z-index: 1;
}

.tl-role-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.tl-company {
  font-size: var(--text-base);
  color: var(--accent-3);
  font-weight: 500;
  margin-bottom: 4px;
}

.tl-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(139, 92, 246, 0.15);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.tl-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
}

/* --- Branch projects --- */
.tl-branches {
  margin-top: var(--space-sm);
  padding-left: var(--space-md);
  border-left: 2px dashed rgba(6, 182, 212, 0.2);
  margin-left: var(--space-sm);
}

.tl-branch {
  position: relative;
  padding-left: var(--space-md);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-xs);
}

.tl-branch::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 22px;
  width: 16px;
  height: 1px;
  background: rgba(6, 182, 212, 0.3);
}

.tl-branch-dot {
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-2);
  z-index: 2;
}

.tl-branch-card {
  display: block;
  text-decoration: none;
  background: rgba(6, 182, 212, 0.03);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-fast);
}

.tl-branch-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.06);
  transform: translateX(4px);
}

.stealth-link {
  color: inherit;
  text-decoration: underline;
  transition: opacity var(--transition-base);
}

.stealth-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.tl-branch-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.tl-branch-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.tl-branch-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

/* Standalone campaigns section */
.tl-standalone {
  margin-top: var(--space-lg);
  padding-left: 80px;
  position: relative;
}

.tl-standalone-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
  margin-bottom: var(--space-sm);
}

.tl-standalone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tl-standalone-chip {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.12);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-4);
  transition: all var(--transition-fast);
}

.tl-standalone-chip:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.1);
}

/* ============================================
   NETWORKS & COMMUNITIES
   ============================================ */
.networks {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.networks-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.network-bar {
  overflow: hidden;
  position: relative;
}

.network-bar::before,
.network-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.network-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.network-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.network-track {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  animation: marquee-scroll 35s linear infinite;
  width: max-content;
}

.network-track--reverse {
  animation-direction: reverse;
  animation-duration: 40s;
}

.network-track:hover {
  animation-play-state: paused;
}

.network-pill {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
}

.network-pill img {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.network-pill:hover img {
  opacity: 1;
}

.network-pill:hover {
  color: var(--accent-3);
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.06);
  transform: scale(1.05);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
}

.contact .section-subtitle {
  margin: 0 auto var(--space-xl);
}

.contact-grid {
  display: none;
  /* deprecated, replaced by contact-email-link */
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-lg);
  transition: color var(--transition-base);
  text-decoration: none;
}

.contact-email-link:hover {
  color: var(--accent-3);
}

.contact-email-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
  transition: opacity var(--transition-base);
}

.contact-email-arrow {
  font-size: var(--text-3xl);
  color: var(--accent-2);
  display: inline-block;
  transform: translateX(-8px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  -webkit-text-fill-color: var(--accent-2);
}

.contact-email-link:hover .contact-email-arrow {
  transform: translateX(0);
  opacity: 1;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition-base);
}

.social-link:hover {
  border-color: var(--accent-1);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill var(--transition-fast);
}

.social-link:hover svg {
  fill: var(--accent-3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    padding-bottom: var(--space-lg);
  }

  .hero-portrait {
    display: none;
  }

  .hero-avatar-mobile {
    display: block;
    margin: 0 auto var(--space-md);
  }

  .hero-pillars {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-md);
  }

  .trusted-by {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .about-heading {
    order: 1;
  }

  .about-p1 {
    order: 2;
  }

  .about-stats {
    order: 3;
  }

  .about-p2 {
    order: 4;
  }

  .expertise-pills {
    order: 5;
  }

  .about-stats {
    flex-direction: row;
    border-top: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-sm) 0;
    gap: 0;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  .about-stats .stat-card {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-xs);
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }

  .about-stats .stat-card:first-child {
    border-top: none;
  }

  .about-stats .stat-card:last-child {
    border-right: none;
  }

  .about-stats .stat-number {
    min-width: auto;
    font-size: var(--text-2xl);
  }

  .about-stats .stat-label {
    font-size: var(--text-xs);
  }

  .expertise-pills {
    justify-content: center;
    margin-top: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }


  .hero-scroll {
    display: none;
  }



  .gallery-strip {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    animation-duration: 35s;
    /* slowed slightly to match scale */
  }

  .gallery-item {
    width: 280px;
    height: 180px;
  }

  .hybrid-timeline::before {
    left: 16px;
  }

  .tl-role {
    padding-left: 50px;
  }

  .tl-dot {
    left: 5px;
    width: 22px;
    height: 22px;
  }

  .tl-standalone {
    padding-left: 50px;
  }

  .footer .container {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats .stat-card {
    padding: var(--space-xs) 2px;
  }

  .about-stats .stat-number {
    font-size: var(--text-xl);
  }

  .gallery-item {
    width: 220px;
    height: 140px;
  }

  .contact-email-link {
    font-size: var(--text-xl);
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
  }

  .contact-email-arrow {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   STICKY CONTACT CTA
   ============================================ */
.sticky-contact-cta {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gradient-hero);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  z-index: var(--z-nav);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sticky-contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6);
}

@media (max-width: 1024px) {
  .sticky-contact-cta.visible {
    display: inline-block;
    animation: fade-in-up 0.5s var(--ease-out-expo) forwards;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}