/* ============================================
   Design System — CSS Custom Properties
   ============================================ */
:root {
  /* Colors */
  --bg-primary: #0A0A0F;
  --bg-card: #111118;
  --bg-card-hover: #1A1A24;
  --border: #1E293B;
  --border-hover: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --accent: #22C55E;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-secondary: #3B82F6;

  /* Typography */
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing - 8px base unit */
  --section-gap: 120px;
  --container-max: 1200px;
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* Scroll Progress Bar */
/* Entry Gate */
.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.entry-gate--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.entry-gate-content {
  text-align: center;
}
.entry-gate-name {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(110deg, var(--text-primary) 35%, var(--accent) 50%, var(--text-primary) 65%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 4s linear infinite;
  margin-bottom: 0.5rem;
}
.entry-gate-the {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.8rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.entry-gate-the:last-of-type {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}
.entry-gate-btn {
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.75rem 2.5rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(34,197,94,0.1);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}
.entry-gate-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}
.entry-gate-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.scroll-progress--visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

[data-theme="light"] * {
  scrollbar-color: var(--border) transparent;
}

[data-theme="light"] *::-webkit-scrollbar-thumb {
  background: var(--border);
}

[data-theme="light"] *::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

html, body {
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text-primary);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Skip to Content
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Section Shared
   ============================================ */
section {
  padding: var(--section-gap) 0;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav--scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Socialise brand palette (AI-researched) */
:root {
  --socialise-terracotta: #E3705B;
  --socialise-teal: #245C66;
  --socialise-sage: #7EAA9C;
  --socialise-gold: #F4B942;
  --socialise-cream: #F7F4EC;
}

.hero-content {
  max-width: 800px;
}

/* Hero Photo */
.hero-photo-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.hero-photo-wrapper:hover .hero-photo {
  border-color: var(--accent);
  transform: scale(1.05);
}

.hero-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-secondary), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: photoRingSpin 8s linear infinite;
  z-index: 1;
}

@keyframes photoRingSpin {
  to { transform: rotate(360deg); }
}

.hero-photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-photo-wrapper:hover .hero-photo-glow {
  opacity: 1;
}

.hero-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 5.5vw, 4rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(110deg, var(--text-primary) 35%, var(--accent) 50%, var(--text-primary) 65%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 4s linear infinite;
  margin-bottom: 1rem;
  opacity: 0;
}

@keyframes shineText {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Particle Canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  transition: color 0.2s;
}

.hero-scroll:hover {
  color: var(--text-primary);
}

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

/* Blur reveal words */
.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out, transform 0.5s ease-out;
}

.blur-word--visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ============================================
   Stats Bar
   ============================================ */
.stats {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
}

/* Rolling Digit Ticker */
.stat-number {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
}
.digit-col {
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  position: relative;
}
.digit-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.digit-strip span {
  display: block;
  height: 1.2em;
  line-height: 1.2;
  text-align: center;
}
.digit-separator {
  display: inline-block;
  width: 0.3em;
}
.digit-suffix {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.digit-suffix--visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .digit-strip { transition: none; }
  .digit-suffix { transition: none; opacity: 1; }
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ============================================
   Projects
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

/* card hover handled by [data-tilt] */

.project-card-inner {
  padding: 2rem;
  position: relative;
}

/* Uniform tilt + glow on all interactive cards */
.tiltable {
  transition: transform 0.1s ease-out, border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

.tiltable:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* Spotlight Card Effect */
.project-showcase,
.project-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}
.project-showcase > .project-card-inner::before,
.project-card > .project-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mouse-x) var(--mouse-y), rgba(34,197,94,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.project-showcase:hover > .project-card-inner::before,
.project-card:hover > .project-card-inner::before {
  opacity: 1;
}

/* Magnetic Buttons */
.magnetic-btn {
  will-change: transform;
  transition: transform 0.2s ease-out;
}
.magnetic-btn.releasing {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (prefers-reduced-motion: reduce) {
  .magnetic-btn { transition: none !important; }
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.project-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.project-stat {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.project-role {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-links a {
  font-size: 0.875rem;
  font-weight: 500;
}

.project-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.2s;
}

.project-cta:hover {
  background: #16a34a;
  color: var(--bg-primary);
  transform: translateY(-1px);
}

/* Project Showcase (large featured projects) */
.project-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: border-color 0.3s;
}

.project-showcase:hover {
  border-color: var(--border-hover);
}

.project-showcase--dark {
  background: linear-gradient(170deg, #111118 0%, #0d0d14 100%);
}

.project-showcase-header {
  margin-bottom: 1rem;
}

.project-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.project-screenshot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}

/* Lightbox zoom */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
  padding: 2rem;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.highlight-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.highlight-number {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.2;
}

.highlight-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.project-desc--muted {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Interactive CV Cards Showcase */
.cv-cards-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  perspective: 800px;
}

.cv-card {
  width: 200px;
  min-height: 260px;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  cursor: pointer;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.cv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-150%); }
  50% { transform: translateX(150%); }
}

.cv-card:hover {
  transform: translateY(-8px);
}

.cv-card--objection {
  background: linear-gradient(170deg, #3a1818 0%, #1e0c0c 100%);
  border: 2px solid #8b2020;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.cv-card--objection:hover {
  box-shadow: 0 0 20px rgba(212,64,48,0.55), 0 0 40px rgba(212,64,48,0.2);
  border-color: #d44030;
}

.cv-card--counter {
  background: linear-gradient(170deg, #183a22 0%, #0c1e12 100%);
  border: 2px solid #1a6b33;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.cv-card--counter:hover {
  box-shadow: 0 0 20px rgba(48,184,104,0.55), 0 0 40px rgba(48,184,104,0.2);
  border-color: #30b868;
}

.cv-card-art {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 70%);
}

.cv-card-title {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cv-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.cv-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.cv-card-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.cv-card-badge--red {
  background: rgba(212,64,48,0.3);
  color: #f06050;
  border: 1px solid rgba(212,64,48,0.5);
}

.cv-card-badge--green {
  background: rgba(48,184,104,0.3);
  color: #5cc084;
  border: 1px solid rgba(48,184,104,0.5);
}

.cv-card-power {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}

.cv-card-vs {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-muted);
  text-shadow: 0 0 20px rgba(224,180,74,0.3);
}

/* Demo Embed */
.demo-embed {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  display: flex;
  justify-content: center;
}

.demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.demo-placeholder:hover {
  background: rgba(34,197,94,0.05);
}

.demo-placeholder span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.demo-iframe {
  width: 100%;
  height: 85vh;
  min-height: 700px;
  border: none;
  border-radius: 12px;
}

/* Agent Flow Diagram */
.agent-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.agent-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  max-width: 280px;
}

.agent-node--ceo {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent-secondary);
}

.agent-node--manager {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  color: #a855f7;
}

.agent-node--agent {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--accent);
}

.agent-node--architect {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
}

.agent-node--testwriter {
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.3);
  color: #14b8a6;
}

.agent-node--qa {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}

.agent-flow-row--specialists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 100%;
}

.agent-flow-row--specialists .agent-node-expanded {
  max-width: 100%;
}

.agent-icon {
  font-size: 1.1rem;
}

.agent-role {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

.agent-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Expanded Agent Flow */
.agent-flow-expanded {
  margin: 1.5rem 0;
}

.agent-flow-row {
  display: flex;
  justify-content: center;
}

.agent-node-expanded {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
}

.agent-node-expanded strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.agent-node-expanded span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.agent-node-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.agent-node-content {
  flex: 1;
}

.agent-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0;
}

.agent-flow-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent));
}

.agent-flow-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin: 0.25rem 0;
}

/* Agentic Detail Cards */
.agentic-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.agentic-detail-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.agentic-detail-card:hover {
  border-color: var(--border-hover);
}

.agentic-detail-card h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.agentic-detail-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mango Mascot */
.mango {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 60;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

.mango:active {
  cursor: grabbing;
}

.mango-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.mango--idle .mango-label {
  opacity: 1;
}

/* Mango Chat Panel */
.mango-chat {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  width: 340px;
  max-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  z-index: 59;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.mango-chat--open {
  display: flex;
}

.mango-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.mango-chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

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

.mango-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  max-height: 280px;
}

.mango-msg {
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  max-width: 90%;
}

.mango-msg--bot {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--text-secondary);
  align-self: flex-start;
}

.mango-msg--user {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  align-self: flex-end;
}

.mango-msg--loading {
  color: var(--text-muted);
  font-style: italic;
}

.mango-chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.mango-chat-input input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.mango-chat-input input::placeholder {
  color: var(--text-muted);
}

.mango-chat-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.mango-chat-input button {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mango-chat-input button:hover {
  background: #16a34a;
}

/* Floating Compass */
.floating-compass {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transform: translateY(16px);
  box-shadow: 0 2px 16px rgba(34, 197, 94, 0.15);
}

.floating-compass--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-compass:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.floating-compass:active {
  transform: scale(0.92);
}

/* Compass drop target — pulses when Mango is being dragged */
.floating-compass--drop-target {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2), 0 0 40px rgba(245, 158, 11, 0.1);
  animation: dropTargetPulse 1.2s ease-in-out infinite;
}

@keyframes dropTargetPulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 20px rgba(245,158,11,0.2); }
  50% { transform: translateY(-3px) scale(1.08); box-shadow: 0 0 30px rgba(245,158,11,0.35), 0 0 60px rgba(245,158,11,0.1); }
}

.floating-compass--drop-target::after {
  content: 'Drop MangoAI here';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #f59e0b;
  white-space: nowrap;
  animation: fadeIn 0.3s ease;
}

/* Compass cannon mode */
.floating-compass--loaded {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), 0 0 50px rgba(245, 158, 11, 0.15);
  animation: cannonCharge 0.6s ease infinite;
}

@keyframes cannonCharge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.floating-compass--firing {
  animation: cannonFire 0.3s ease-out;
}

@keyframes cannonFire {
  0% { transform: scale(1.15); }
  50% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

/* Mango cannon states */
.mango--cannon-ready .mango-label {
  color: #f59e0b;
}

.mango--in-cannon .mango-svg,
.mango--in-cannon .mango-label {
  opacity: 0;
  transition: opacity 0.2s;
}

.mango--flying {
  transition: none !important;
  z-index: 100;
  pointer-events: none;
}

/* Socialise project accent borders */
.project-card--socialise .project-card-inner {
  border-color: rgba(227, 112, 91, 0.3);
}

.project-card--socialise:hover .project-card-inner {
  border-color: var(--socialise-terracotta);
  box-shadow: 0 0 30px rgba(227, 112, 91, 0.15);
}

.socialise-palette {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.palette-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.2s;
}

.palette-dot:hover {
  transform: scale(1.3);
}

/* ============================================
   Hub Interactive Demo
   ============================================ */
.hub-demo {
  margin: var(--space-xl) 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hub-demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.hub-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.hub-tab:hover { color: var(--text-secondary); }
.hub-tab--active { color: var(--accent); border-bottom-color: var(--accent); }

.hub-panel {
  display: none;
  padding: var(--space-lg);
  min-height: 300px;
}

.hub-panel--active { display: block; }

/* Sync Flow */
.sync-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sync-platform {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  min-width: 120px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.sync-platform--meetup { border-color: rgba(237,28,36,0.3); }
.sync-platform--eventbrite { border-color: rgba(247,107,28,0.3); }
.sync-platform--headfirst { border-color: rgba(100,149,237,0.3); }

.sync-platform--active { box-shadow: 0 0 15px var(--accent-glow); border-color: var(--accent); }

.sync-platform-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.sync-platform-type {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sync-arrows {
  display: flex;
  gap: 4px;
  align-items: center;
}

.sync-arrow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}

.sync-arrow--pulse { background: var(--accent); animation: syncPulse 0.5s ease; }

@keyframes syncPulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.8); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.sync-hub-center {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: rgba(34,197,94,0.05);
  text-align: center;
}

.sync-hub-icon {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.sync-hub-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sync-platform-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hub-demo-btn {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hub-demo-btn:hover { background: #16a34a; transform: translateY(-1px); }
.hub-demo-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.sync-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.sync-event-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
}

.sync-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
  animation: syncEventIn 0.3s ease;
  font-size: 0.7rem;
  border: 1px solid transparent;
}

@keyframes syncEventIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.sync-event-row--conflict {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.05);
}

.sync-event-name {
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.sync-event-src {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.sync-event-src--meetup { background: rgba(237,28,36,0.12); color: #ed1c24; }
.sync-event-src--eventbrite { background: rgba(247,107,28,0.12); color: #f76b1c; }
.sync-event-src--headfirst { background: rgba(100,149,237,0.12); color: #6495ed; }

.sync-log {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  max-height: 180px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .sync-results { grid-template-columns: 1fr; }
}

.sync-log-line {
  padding: 0.15rem 0;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.sync-log-line--success { color: var(--accent); }
.sync-log-line--info { color: var(--accent-secondary); }

@keyframes fadeIn { to { opacity: 1; } }

/* Events Panel */
.hub-events-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hub-event {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.hub-event-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.hub-event-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hub-event-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}

.hub-event-score {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.hub-event-score--visible { opacity: 1; }
.hub-event-score--high { background: rgba(34,197,94,0.2); color: var(--accent); }
.hub-event-score--mid { background: rgba(245,158,11,0.2); color: #f59e0b; }
.hub-event-score--low { background: rgba(239,68,68,0.2); color: #ef4444; }

/* Analytics */
.hub-chart-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.hub-chart h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hub-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
}

.hub-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}

.hub-bar:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
}

/* Analytics Controls */
.analytics-controls {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.analytics-range {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.analytics-range:hover { color: var(--text-secondary); border-color: var(--border-hover); }
.analytics-range--active { color: var(--accent); border-color: var(--accent); background: rgba(34,197,94,0.08); }

/* Timeline Chart */
.timeline-chart-wrap {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.timeline-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.timeline-chart-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
}
.timeline-chart-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.timeline-proj-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}
.timeline-proj-btn--active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34,197,94,0.1);
}
.timeline-proj-icon {
  display: inline-block;
  width: 16px;
  border-top: 2px dashed currentColor;
}
.timeline-proj-range {
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.timeline-proj-range:disabled {
  opacity: 0.4;
}
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.timeline-legend-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}
.timeline-legend-btn--active {
  background: var(--btn-bg);
  color: var(--text-primary);
  border-color: var(--btn-border);
}
.timeline-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.timeline-chart-container {
  position: relative;
}
.timeline-chart-container canvas {
  width: 100%;
  height: 380px;
  display: block;
}
.timeline-tooltip {
  position: absolute;
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 10;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.timeline-tooltip-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}
.timeline-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.1rem 0;
}
.timeline-tooltip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.timeline-tooltip-proj {
  opacity: 0.6;
  font-style: italic;
}

/* Heatmap */
.heatmap-section {
  margin: 1.5rem 0;
}

.heatmap-section h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.heatmap {
  display: grid;
  grid-template-columns: 50px repeat(12, 1fr);
  gap: 2px;
}

.heatmap-row-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding-right: 0.25rem;
  justify-content: flex-end;
}

.heatmap-col-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 0.15rem;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.heatmap-cell:hover {
  transform: scale(1.4);
  z-index: 5;
  box-shadow: 0 0 8px rgba(34,197,94,0.3);
}

.heatmap-cell:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.heatmap-legend-bar {
  width: 100px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, rgba(34,197,94,0.05), rgba(34,197,94,0.3), rgba(34,197,94,0.6), var(--accent));
}

/* Category bars */
.category-section {
  margin: 1.5rem 0;
}

.category-section h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.category-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.category-bar-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  width: 110px;
  flex-shrink: 0;
  text-align: right;
}

.category-bar {
  flex: 1;
  height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-bar-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 35px;
}

.hub-chart-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hub-chart-stat {
  text-align: center;
}

.hub-chart-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.hub-chart-stat span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* MCP Terminal */
.mcp-terminal {
  background: #000;
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.mcp-line {
  padding: 0.1rem 0;
  color: var(--text-secondary);
}

.mcp-line--comment { color: var(--text-muted); }
.mcp-line--cmd { color: var(--accent); }
.mcp-line--result { color: var(--accent-secondary); }

.mcp-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mcp-tool-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.mcp-tool-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34,197,94,0.05);
}

/* ============================================
   Sprint Simulation
   ============================================ */
.sprint-sim {
  margin: var(--space-xl) 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 100%;
}

.sprint-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sprint-sim-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
}

.sprint-sim-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sprint-speed-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Agents Row */
.sprint-agents {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sprint-agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.sprint-agent--active {
  border-color: var(--accent);
  background: rgba(34,197,94,0.05);
}

.sprint-agent--busy {
  border-color: var(--accent-secondary);
  background: rgba(59,130,246,0.05);
}

.sprint-agent-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.sprint-agent--active .sprint-agent-indicator {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.sprint-agent--busy .sprint-agent-indicator {
  background: var(--accent-secondary);
  box-shadow: 0 0 8px rgba(59,130,246,0.3);
  animation: agentPulse 1s ease infinite;
}

@keyframes agentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Reduce animation cost on tickets */
.sprint-ticket {
  will-change: opacity;
}

.sprint-agent {
  will-change: border-color, background;
}

.sprint-agent-info {
  display: flex;
  flex-direction: column;
}

.sprint-agent-info strong {
  font-size: 0.75rem;
  color: var(--text-primary);
}

.sprint-agent-model {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.sprint-agent-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.sprint-agent--ceo .sprint-agent-indicator { background: #f59e0b; }
.sprint-agent--ceo.sprint-agent--active .sprint-agent-indicator { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.sprint-agent--ceo.sprint-agent--busy .sprint-agent-indicator { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.4); animation: agentPulse 1s ease infinite; }

/* Live Files */
.sprint-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.sprint-file {
  flex: 1;
  min-width: 140px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.sprint-file--flash {
  border-color: var(--accent);
  background: rgba(34,197,94,0.05);
}

.sprint-file--flash-ceo {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.05);
}

.sprint-file--flash-architect {
  border-color: #fbbf24;
  background: rgba(251,191,36,0.05);
}

.sprint-file-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sprint-file-content {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.4;
  max-height: 40px;
  overflow: hidden;
}

/* Sprint Board */
.sprint-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-height: 180px;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.sprint-col {
  border-right: 1px solid var(--border);
  padding: 0.75rem;
  min-height: 160px;
  min-width: 0;
}

.sprint-col:last-child { border-right: none; }

.sprint-col-header {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sprint-ticket {
  padding: 0.5rem;
  margin-bottom: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  transition: all 0.4s ease;
  animation: ticketSlideIn 0.3s ease;
}

@keyframes ticketSlideIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sprint-ticket-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.sprint-ticket-meta {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
}

.sprint-ticket--bug { border-left: 3px solid #ef4444; }
.sprint-ticket--feature { border-left: 3px solid var(--accent-secondary); }
.sprint-ticket--improvement { border-left: 3px solid #a855f7; }

.sprint-ticket--moving {
  opacity: 0.5;
}

/* Sprint Log */
.sprint-log {
  max-height: 140px;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.sprint-log-line {
  padding: 0.1rem 0;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.sprint-log-line--qa { color: #f59e0b; }
.sprint-log-line--dev1 { color: var(--accent); }
.sprint-log-line--dev2 { color: #818cf8; }
.sprint-log-line--manager { color: var(--accent-secondary); }
.sprint-log-line--system { color: var(--text-muted); }
.sprint-log-line--mcp { color: #e879f9; }
.sprint-log-line--error { color: #ef4444; }

/* Typewriter Cursor */
.sprint-log-line--typing::after {
  content: '|';
  animation: blink 530ms step-end infinite;
  color: var(--accent);
  font-weight: bold;
}
@keyframes blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sprint-log-line--typing::after { animation: none; }
}

/* Loading Skeletons */
.skeleton-loading {
  position: relative;
  min-height: 80px;
  overflow: hidden;
}
.skeleton-loading > * {
  visibility: hidden;
}
.skeleton-loading::before,
.skeleton-loading::after {
  content: '';
  position: absolute;
  background: var(--bg-card-hover);
  border-radius: 8px;
  visibility: visible;
}
.skeleton-loading::before {
  top: 1rem; left: 1rem; right: 30%; height: 16px;
}
.skeleton-loading::after {
  top: 2.5rem; left: 1rem; right: 50%; height: 16px;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Mini App Preview */
.sprint-app-preview {
  margin: 0;
  border-radius: 0;
}

.sprint-app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: #1a1a24;
  border-bottom: 1px solid var(--border);
}

.sprint-app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sprint-app-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.sprint-app-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 140px;
  background: var(--bg-card);
}

.sprint-app-sidebar {
  border-right: 1px solid var(--border);
  padding: 0.5rem;
}

.sprint-app-nav-item {
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-radius: 4px;
  margin-bottom: 0.2rem;
  cursor: default;
}

.sprint-app-nav-item--active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.sprint-app-main {
  padding: 0.75rem;
  position: relative;
}

.sprint-app-event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  transition: border-color 0.3s, background 0.3s;
}

.sprint-app-event--highlight {
  border-color: var(--accent);
  background: rgba(34,197,94,0.05);
}

.sprint-app-event--error {
  border-color: #ef4444;
  background: rgba(239,68,68,0.05);
}

.sprint-app-event-name {
  color: var(--text-primary);
  flex: 1;
}

.sprint-app-event-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.sprint-app-event-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
}

.sprint-app-bug {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  right: 0.75rem;
  padding: 0.4rem 0.6rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #ef4444;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
  .sprint-board { grid-template-columns: repeat(2, 1fr); }
  .sprint-files { grid-template-columns: 1fr; }
  .hub-events-list { grid-template-columns: 1fr; }
  .hub-chart-row { grid-template-columns: 1fr; }
  .sync-flow { flex-direction: column; }
  .sprint-app-body { grid-template-columns: 1fr; }
  .sprint-app-sidebar { display: none; }
}

/* Small cards row */
.projects-small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.projects-small .project-name {
  font-size: 1.25rem;
}

.projects-small .project-desc {
  font-size: 0.875rem;
}

/* ============================================
   Experience Timeline
   ============================================ */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline-line {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 4px var(--accent);
  transform: translateX(calc(-50% + 7px));
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

.timeline-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.timeline-achievements li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.timeline-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================
   Education
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

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

.education-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.education-meta {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.education-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact .section-title {
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
}

.reveal--visible {
  animation: revealIn 0.5s ease-out forwards;
}

@keyframes revealIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-small {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 49;
  }

  .nav-links--open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  /* Hamburger animation */
  .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);
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* Projects */
  .projects-small {
    grid-template-columns: 1fr;
  }

  .project-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .project-highlights {
    grid-template-columns: 1fr;
  }

  .project-showcase {
    padding: 1.5rem;
  }

  .cv-cards-showcase {
    flex-direction: column;
    gap: 1rem;
  }

  .cv-card {
    width: 100%;
    max-width: 260px;
    min-height: auto;
  }

  .cv-card-vs {
    transform: rotate(90deg);
  }

  .demo-iframe {
    height: 70vh;
    min-height: 500px;
  }

  .mango {
    bottom: 1rem;
    left: 1rem;
  }

  .agentic-detail-grid {
    grid-template-columns: 1fr;
  }

  .agent-node-expanded {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Education */
  .education-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 2.5rem;
  }
}

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

  .hero-name {
    letter-spacing: 0.08em;
  }
}

/* ============================================
   SocialiseApp Phone Mockup
   ============================================ */
.project-card--app-demo {
  overflow: visible;
  grid-column: 1 / -1;
}

.project-card--app-demo .project-card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: start;
}

.project-card--app-demo .app-text-col {
  display: flex;
  flex-direction: column;
}

.project-card--app-demo .app-embed-wrapper {
  margin: 0;
}

@media (max-width: 768px) {
  .project-card--app-demo .project-card-inner {
    grid-template-columns: 1fr;
  }
  .project-card--app-demo .app-embed-wrapper {
    order: -1;
  }
}

.app-embed-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.app-embed-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.app-embed-hint-arrow {
  font-size: 1rem;
  animation: hintBounce 1.5s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.phone-mockup {
  width: 300px;
  margin: 0 auto;
  border-radius: 32px;
  border: 3px solid #333;
  background: #F9F7F2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}

.phone-mockup--live {
  width: 280px;
  flex-shrink: 0;
}

/* Multiplatform layout */
.app-multi-platform {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.app-multi-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Browser mockup */
.browser-mockup {
  border-radius: var(--radius-md);
  border: 2px solid #333;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  width: 560px;
  flex-shrink: 0;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.75rem;
  background: #1a1a24;
  border-bottom: 1px solid var(--border);
}

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

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  flex: 1;
}

.browser-viewport {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.browser-viewport .app-live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
}

@media (max-width: 1024px) {
  .app-multi-platform {
    flex-direction: column;
    align-items: center;
  }
  .browser-mockup {
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .browser-mockup:not(.browser-mockup--cv) { display: none; }
}

/* CV Browser Mockup */
.browser-mockup--cv {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
}
.browser-viewport--cv {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
}
.browser-viewport--cv .cv-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 133.33%;
  height: 133.33%;
  border: none;
  transform: scale(0.75);
  transform-origin: top left;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: #333;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.phone-screen {
  height: 600px;
  overflow: hidden;
  position: relative;
  background: #F9F7F2;
}

.phone-screen .app-live-iframe {
  width: 150%;
  height: 150%;
  transform: scale(0.6667);
  transform-origin: top left;
  border: none;
}

.app-live-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.app-page {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: #F9F7F2;
  animation: appPageIn 0.3s ease;
}

.app-page--active { display: block; }

@keyframes appPageIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #F9F7F2;
  border-bottom: 1px solid #e8e4dc;
  position: sticky;
  top: 0;
  z-index: 3;
}

.app-topbar-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #E2725B;
}

.app-topbar-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: #2C2520;
}

.app-topbar-xp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #F4B942;
  background: rgba(244,185,66,0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* Event Cards */
.app-events {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-event-card {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e4dc;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.app-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.app-event-card::after {
  content: 'Tap to join +' attr(data-xp) 'XP';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226,114,91,0.9);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.app-event-card:active::after {
  opacity: 1;
}

.app-event-card--joined {
  border-color: #E2725B;
  background: rgba(226,114,91,0.05);
}

.app-event-card--joined::after {
  content: 'Joined ✓';
  background: rgba(45,95,93,0.9);
}

.app-event-cat {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  padding: 0.3rem 0.15rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  min-width: 18px;
}

.app-event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.app-event-info strong {
  font-size: 0.8rem;
  color: #2C2520;
}

.app-event-info span {
  font-size: 0.65rem;
  color: #6B6560;
}

.app-event-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #E2725B;
}

.app-event-fill {
  position: absolute;
  bottom: 4px;
  left: 0.6rem;
  right: 0.6rem;
  height: 3px;
  background: #e8e4dc;
  border-radius: 2px;
}

.app-event-fill-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #2D5F5D, #E2725B);
}

/* Feed */
.app-feed {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-feed-post {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e4dc;
}

.app-feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.app-feed-body {
  flex: 1;
}

.app-feed-body strong {
  font-size: 0.75rem;
  color: #2C2520;
  display: block;
  margin-bottom: 0.2rem;
}

.app-feed-body p {
  font-size: 0.7rem;
  color: #6B6560;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.app-feed-reactions {
  display: flex;
  gap: 0.4rem;
}

.app-reaction {
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #f0ece4;
  cursor: pointer;
  transition: background 0.2s;
}

.app-reaction:hover { background: #e8e0d4; }
.app-reaction--active { background: rgba(226,114,91,0.15); }

/* Profile */
.app-profile {
  padding: 1rem;
}

.app-profile-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E2725B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.app-profile-info strong {
  display: block;
  font-size: 1rem;
  color: #2C2520;
}

.app-profile-title {
  font-size: 0.75rem;
  color: #F4B942;
}

.app-profile-xp {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.app-profile-level {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: #2C2520;
  margin-bottom: 0.4rem;
}

.app-profile-bar {
  height: 8px;
  background: #e8e4dc;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.app-profile-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #E2725B, #F4B942);
}

.app-profile-xp-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #6B6560;
}

.app-profile-skills {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.app-skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  font-size: 0.7rem;
  color: #2C2520;
}

.app-skill-level {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #E2725B;
  font-size: 0.65rem;
}

.app-profile-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.app-profile-stats div strong {
  display: block;
  font-size: 1.1rem;
  color: #E2725B;
}

.app-profile-stats div span {
  font-size: 0.65rem;
  color: #6B6560;
}

/* Phone Bottom Nav */
.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0.5rem;
  background: #fff;
  border-top: 1px solid #e8e4dc;
}

.phone-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6B6560;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.phone-nav-btn span {
  font-size: 0.55rem;
  font-family: var(--font-body);
}

.phone-nav-btn--active {
  color: #E2725B;
  background: rgba(226,114,91,0.08);
}

.phone-nav-btn:hover {
  color: #E2725B;
}

/* ============================================
   CI/CD Pipeline Demo
   ============================================ */
.cicd-demo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cicd-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.cicd-panel--wide {
  grid-column: 1 / -1;
}

.cicd-panel h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Git flow */
.cicd-git-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.cicd-git-step code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.cicd-git-step--active {
  border-color: var(--accent);
  background: rgba(34,197,94,0.05);
}

.cicd-git-step--conflict {
  border-left: 3px solid #f59e0b;
}

.cicd-git-step--conflict.cicd-git-step--active {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.05);
}

.cicd-git-step--pr {
  border-left: 3px solid #a855f7;
}

.cicd-git-step--pr.cicd-git-step--active {
  border-color: #a855f7;
  background: rgba(168,85,247,0.05);
}

.cicd-git-step--deploy {
  border-left: 3px solid var(--accent);
}

.cicd-git-step--deploy.cicd-git-step--active {
  border-color: var(--accent);
  background: rgba(34,197,94,0.08);
}

.cicd-git-check {
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.cicd-git-step--done .cicd-git-check {
  opacity: 1;
}

.cicd-learning {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
}

/* Hooks */
.cicd-hook {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: border-color 0.3s, background 0.3s;
}

.cicd-hook--active {
  border-color: var(--accent);
  background: rgba(34,197,94,0.05);
}

.cicd-hook--blocked {
  border-color: #ef4444;
  background: rgba(239,68,68,0.05);
}

.cicd-hook-icon { font-size: 1rem; }

.cicd-hook-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.cicd-hook--active .cicd-hook-status,
.cicd-hook--blocked .cicd-hook-status {
  opacity: 1;
}

/* CI Pipeline flow */
.cicd-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cicd-pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 70px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.cicd-pipe-node--active {
  border-color: var(--accent-secondary);
  background: rgba(59,130,246,0.08);
  color: var(--accent-secondary);
  box-shadow: 0 0 12px rgba(59,130,246,0.2);
}

.cicd-pipe-node--done {
  border-color: var(--accent);
  color: var(--accent);
}

.cicd-pipe-node--fail {
  border-color: #ef4444;
  color: #ef4444;
}

.cicd-pipe-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cicd-pipe-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Test coverage bars */
.cicd-tests {
  margin-bottom: 1rem;
}

.cicd-test-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cicd-test-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  width: 90px;
  flex-shrink: 0;
}

.cicd-test-bar {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.cicd-test-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--accent);
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cicd-test-fill--blue { background: var(--accent-secondary); }
.cicd-test-fill--purple { background: #a855f7; }

.cicd-test-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 50px;
  text-align: right;
}

.cicd-test-total {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cicd-test-total-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
}

/* 6-env pipeline */
.cicd-env-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.cicd-env {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.4s;
}

.cicd-env--active {
  border-color: var(--accent);
  background: rgba(34,197,94,0.08);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.cicd-env--done {
  border-color: var(--accent);
  opacity: 0.5;
}

.cicd-env-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Night Shift */
.nightshift-panel {
  background: linear-gradient(170deg, #0a0a14 0%, #0d0d1a 100%);
  border-color: rgba(99,102,241,0.2);
}

.nightshift-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.nightshift-timeline {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(99,102,241,0.3);
}

.nightshift-event {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nightshift-event--visible {
  opacity: 1;
  transform: translateX(0);
}

.nightshift-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #818cf8;
  min-width: 40px;
  flex-shrink: 0;
}

.nightshift-action {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.nightshift-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.nightshift-rules span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(99,102,241,0.3);
  color: #818cf8;
  background: rgba(99,102,241,0.05);
}

@media (max-width: 768px) {
  .cicd-demo { grid-template-columns: 1fr; }
  .cicd-pipeline-flow, .cicd-env-flow { gap: 0.15rem; }
  .cicd-pipe-node, .cicd-env { min-width: 55px; padding: 0.4rem 0.5rem; font-size: 0.7rem; }
}

/* ============================================
   DevGuide Compass Demo
   ============================================ */
.project-card--devguide-wide {
  max-width: var(--container-max);
  margin-top: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
}

/* Socialise Website — full width with browser mockup */
.project-card--socialise-web {
  margin-top: var(--space-lg);
}
.browser-mockup--socialise-web {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
}
.browser-mockup--socialise-web .browser-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 143%;
  height: 143%;
  transform: scale(0.7);
  transform-origin: top left;
  border: none;
}
.project-card--socialise-web .project-tags {
  justify-content: center;
}
.project-card--socialise-web .project-links {
  justify-content: center;
}

/* Edge AI Robot — full width with media grid */
.project-card--robot {
  margin-top: var(--space-lg);
}
.robot-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px auto;
  gap: var(--space-md);
  margin: 1.5rem 0;
}
.robot-photo,
.robot-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.robot-photo--selfie {
  grid-column: 1 / -1;
  max-height: 350px;
  object-position: center 30%;
}
.project-card--robot .project-tags {
  justify-content: center;
}

@media (max-width: 768px) {
  .robot-media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .robot-photo,
  .robot-video {
    height: 250px;
  }
}

.devguide-compass-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  margin: 1.5rem 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.devguide-compass-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.devguide-compass-svg {
  width: 100%;
  height: 100%;
}

.devguide-compass-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* Pipeline Sim */
.pipeline-sim {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pipeline-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 80px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.pipeline-node--active {
  border-color: var(--accent);
  background: rgba(34,197,94,0.08);
  box-shadow: 0 0 12px var(--accent-glow);
}

.pipeline-node--done {
  border-color: var(--accent);
  opacity: 0.6;
}

.pipeline-node-icon { font-size: 1.25rem; }
.pipeline-node-label { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); margin-top: 0.2rem; }
.pipeline-node-sub { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); }
.pipeline-arrow { color: var(--text-muted); font-size: 1rem; }

.pipeline-log {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  max-height: 100px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.pipeline-counter {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pipeline-counter-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

.project-card--devguide-wide .project-tags {
  justify-content: center;
}

.project-card--devguide-wide .project-links {
  justify-content: center;
}

/* ============================================
   Hub: AI Augment Demo
   ============================================ */
.augment-rule {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.augment-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.augment-columns h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.augment-code {
  background: #000;
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
  min-height: 140px;
  border: 1px solid var(--border);
}

.augment-code--safe {
  color: var(--accent);
  min-height: 140px;
}

.augment-steps {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.augment-step {
  padding: 0.2rem 0;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.augment-step--normalize { color: var(--accent-secondary); }
.augment-step--check { color: #f59e0b; }
.augment-step--default { color: #a855f7; }
.augment-step--wrap { color: var(--accent); }

/* ============================================
   Hub: Idea Generator
   ============================================ */
.ideas-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ideas-input-card {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
}

.ideas-input-card h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  margin-bottom: 0.25rem;
}

.ideas-input-card p {
  color: var(--text-secondary);
  line-height: 1.4;
}

.ideas-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.idea-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

.idea-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.idea-card-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.idea-stat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.idea-stat strong {
  color: var(--accent);
}

.idea-card-reasoning {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

/* ============================================
   Hub: Content Prompts
   ============================================ */
.prompts-event-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompts-event-card strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.prompts-event-card span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.prompts-output {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

.prompt-card-platform {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prompt-card-context {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.prompt-card-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
  padding: 0.5rem;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

@media (max-width: 768px) {
  .devguide-compass-demo { flex-direction: column; text-align: center; }
  .augment-columns { grid-template-columns: 1fr; }
  .ideas-inputs { grid-template-columns: 1fr; }
  .ideas-results { grid-template-columns: 1fr; }
  .pipeline-nodes { gap: 0.15rem; }
  .pipeline-node { min-width: 60px; padding: 0.4rem; }
}

/* === EASTER EGGS === */

/* Hacker Theme */
html.theme-hacker {
  --bg-primary: #000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0a0f0a;
  --bg-card-hover: #0a1a0a;
  --text-primary: #00ff00;
  --text-secondary: #00cc00;
  --text-muted: #008800;
  --accent: #00ff00;
  --accent-glow: rgba(0, 255, 0, 0.2);
  --accent-secondary: #00cc00;
  --border: #003300;
  --border-hover: #00ff00;
}
html.theme-hacker * {
  font-family: var(--font-mono) !important;
}
html.theme-hacker .hero-particles {
  filter: brightness(2) saturate(2);
}
html.theme-hacker .nav-links a::before {
  content: '> ';
  color: var(--accent);
}
html.theme-hacker::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,0,0.03) 2px,
    rgba(0,255,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
html.theme-hacker-exit {
  transition: all 1s ease-out;
}

/* Footer Easter Egg */
.footer-easter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s, max-height 0.5s;
}
.footer-easter--visible {
  opacity: 1;
  max-height: 2rem;
  margin-top: 0.5rem;
}

/* Overscroll Easter Egg */
.overscroll-msg {
  text-align: center;
  padding: 2rem 1rem;
  opacity: 0;
  transition: opacity 0.5s;
}
.overscroll-msg--visible {
  opacity: 1;
}
.overscroll-msg p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Mango Peek */
.mango-peek {
  position: fixed;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 60;
  pointer-events: none;
}
.mango-peek--visible {
  bottom: 0;
}

/* Hero Glitch */
.hero-content--glitch {
  animation: heroGlitch 200ms steps(3);
}
@keyframes heroGlitch {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
}

/* ============================================
   Light Theme
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f8fafb;
  --bg-card: #eef2f5;
  --bg-card-hover: #dfe6eb;
  --border: #d4dde3;
  --border-hover: #c0cdd5;
  --text-primary: #0c1820;
  --text-secondary: #3d5060;
  --text-muted: #7a8e9e;
  --accent: #16a34a;
  --accent-glow: rgba(22, 163, 74, 0.08);
  --accent-secondary: #0d6a7a;
}

[data-theme="light"] .hero {
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
}

[data-theme="light"] .hero-name {
  background: linear-gradient(110deg, #F8FAFC 35%, #22C55E 50%, #F8FAFC 65%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-description {
  color: #94A3B8;
}

[data-theme="light"] .cv-card--objection {
  background: linear-gradient(170deg, #f5e0e0 0%, #faf0f0 100%);
  border-color: #d88;
}

[data-theme="light"] .cv-card--counter {
  background: linear-gradient(170deg, #e0f5e8 0%, #f0faf4 100%);
  border-color: #6b6;
}

[data-theme="light"] .contact-shader {
  display: none;
}

[data-theme="light"] .project-showcase--dark {
  background: linear-gradient(170deg, #eef2f5 0%, #f8fafb 100%);
  border-color: var(--border);
}

[data-theme="light"] .nightshift-panel {
  background: linear-gradient(170deg, #eef0f8 0%, #f5f6fc 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.theme-toggle:active svg {
  transform: rotate(45deg);
}

.theme-toggle svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sound Toggle */
.sound-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.sound-toggle:hover {
  color: var(--accent);
  border-color: var(--border-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .blur-word {
    opacity: 1;
    filter: none;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Offscreen section pause */
.section--offscreen * {
  animation-play-state: paused !important;
}

/* Mango chat disclaimer */
.mango-chat-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem 0.5rem;
  opacity: 0.6;
}

/* Mango typing indicator */
.mango-msg--typing .typing-dots span {
  animation: typingBounce 1.4s infinite;
  display: inline-block;
  font-weight: bold;
  font-size: 1.2em;
}
.mango-msg--typing .typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.mango-msg--typing .typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Project Showcase — tags/links positioning fix */
.sprint-sim-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Compact cards — center tags */
.project-card--compact .project-tags {
  justify-content: center;
}

/* DevGuide Articles */
.devguide-articles {
  margin: 1.5rem 0;
}
.devguide-articles-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.devguide-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.devguide-article {
  display: block;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.devguide-article:hover {
  border-color: var(--accent);
  background: rgba(34,197,94,0.05);
}
.devguide-article-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.devguide-article-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .devguide-articles-grid {
    grid-template-columns: 1fr;
  }
}
