:root {
  /* Deep space black */
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --text: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666;
  --accent: #c9a86c;
  --accent-dim: #8b7355;
  --border: #262626;
  --border-subtle: #1f1f1f;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Cursor — toned down */
.cursor {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.visible {
  opacity: 1;
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.cursor-follower.visible {
  opacity: 0.4;
}

/* Canvas Background */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Navigation — cleaner */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

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

/* Hero Section — refined */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: var(--space-2xl) 0;
}

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

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  transform: translateY(100%);
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-subtitle .word {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.hero-subtitle .word:nth-child(1) { animation-delay: 0.6s; }
.hero-subtitle .word:nth-child(2) { animation-delay: 0.75s; }
.hero-subtitle .word:nth-child(3) { animation-delay: 0.9s; }

.hero-subtitle .word::after {
  content: '•';
  margin-left: 1.5rem;
  color: var(--accent);
  opacity: 0.6;
}

.hero-subtitle .word:last-child::after {
  display: none;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  max-width: 480px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.1s;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.5s;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease infinite;
}

/* Sections — consistent rhythm */
section {
  padding: var(--space-2xl) 0;
}

section:not(:first-of-type) {
  border-top: 1px solid var(--border-subtle);
}

.section-content {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  position: sticky;
  top: 6rem;
}

/* About — improved */
.about-text {
  max-width: 640px;
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.large-text {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

/* Interests — visual node grid */
.interests-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .interests-visual {
    grid-template-columns: repeat(3, 1fr);
  }
}

.interest-node {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.interest-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.interest-node[data-category="business"]::before {
  background: linear-gradient(90deg, var(--accent), #e8c9a0);
}

.interest-node[data-category="tech"]::before {
  background: linear-gradient(90deg, #6496ff, #a8c5ff);
}

.interest-node[data-category="creative"]::before {
  background: linear-gradient(90deg, #c968ff, #e8b3ff);
}

.interest-node:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  background: var(--bg-card);
}

.interest-node:hover::before {
  transform: scaleX(1);
}

.node-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.node-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.interest-node:hover .node-meta {
  color: var(--text-secondary);
}

/* Work — elevated treatment */
.work-item {
  padding: var(--space-md) 0;
  border-left: 2px solid var(--accent);
  padding-left: var(--space-md);
  margin-left: 2px;
}

.work-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.work-company {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.work-description {
  color: var(--text-tertiary);
  font-size: 1rem;
  max-width: 400px;
}

/* Connect — refined */
.connect-cta {
  margin-bottom: var(--space-xl);
}

.connect-cta .large-text {
  margin-bottom: 0;
}

.connect-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
}

.connect-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.connect-link:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.connect-link .arrow {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.connect-link:hover .arrow {
  transform: translateX(4px);
}

/* Footer — minimal */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Animations */
@keyframes revealUp {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .cursor, .cursor-follower {
    display: none !important;
  }
  
  .section-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .section-label {
    position: static;
  }
  
  .hero-subtitle {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .hero-subtitle .word::after {
    display: none;
  }
  
  .connect-links {
    grid-template-columns: 1fr;
  }
}

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