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

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --fg: #fafafa;
  --fg-2: #a1a1a1;
  --fg-3: #666666;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(255,255,255,0.15);
}

/* Grain Texture Overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.grain::before {
  content: '';
  position: absolute;
  inset: -200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -2%); }
  20% { transform: translate(2%, 2%); }
  30% { transform: translate(-1%, 2%); }
  40% { transform: translate(2%, -1%); }
  50% { transform: translate(-2%, 1%); }
  60% { transform: translate(1%, -2%); }
  70% { transform: translate(-1%, -1%); }
  80% { transform: translate(2%, 1%); }
  90% { transform: translate(-2%, -2%); }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--fg-3) 0%, var(--fg) 100%);
  z-index: 101;
  transition: width 0.1s linear;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
}

nav.scrolled {
  background: rgba(0,0,0,0.9);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
}

nav .inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 13px;
  color: var(--fg-2);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a.highlight {
  color: #f97316;
}

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

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    z-index: 100;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 24px;
    font-weight: 500;
    padding: 12px 24px;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Grid Container - Works on all screen sizes */
.hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

/* Primary Grid - Close layer */
.hero-lines::before {
  content: '';
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform-style: preserve-3d;
  animation: gridWaveClose 8s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, black 0%, transparent 70%);
}

/* Secondary Grid - Far layer */
.hero-lines::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  transform-style: preserve-3d;
  animation: gridWaveFar 10s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, black 0%, transparent 65%);
}

@keyframes gridWaveClose {
  0%, 100% {
    transform: 
      rotateX(25deg) 
      rotateY(-10deg)
      translateZ(-150px)
      translateY(0%);
  }
  25% {
    transform: 
      rotateX(12deg) 
      rotateY(0deg)
      translateZ(-80px)
      translateY(6%);
  }
  50% {
    transform: 
      rotateX(25deg) 
      rotateY(10deg)
      translateZ(-150px)
      translateY(0%);
  }
  75% {
    transform: 
      rotateX(35deg) 
      rotateY(0deg)
      translateZ(-200px)
      translateY(-6%);
  }
}

@keyframes gridWaveFar {
  0%, 100% {
    transform: 
      rotateX(35deg)
      translateZ(-300px)
      translateY(0%)
      scale(1.3);
  }
  33% {
    transform: 
      rotateX(20deg)
      translateZ(-200px)
      translateY(5%)
      scale(1.15);
  }
  66% {
    transform: 
      rotateX(45deg)
      translateZ(-350px)
      translateY(-5%)
      scale(1.4);
  }
}

/* Desktop-only enhancements */
@media (min-width: 1025px) {
  /* Gradient Orbs - More visible */
  .hero-bg::before,
  .hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
  }
  
  .hero-bg::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(80,80,120,0.4) 0%, rgba(60,60,100,0.2) 40%, transparent 70%);
    top: -10%;
    right: 5%;
    opacity: 1;
  }
  
  .hero-bg::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100,80,120,0.35) 0%, rgba(70,60,100,0.15) 40%, transparent 70%);
    bottom: 0%;
    left: 5%;
    opacity: 1;
    animation-delay: -10s;
  }
  
  /* Gradient Mesh */
  .hero-mesh {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse 80% 50% at 20% 40%, rgba(30,30,40,0.8) 0%, transparent 50%),
      radial-gradient(ellipse 60% 40% at 80% 50%, rgba(35,35,45,0.6) 0%, transparent 50%),
      radial-gradient(ellipse 50% 30% at 50% 80%, rgba(25,25,35,0.5) 0%, transparent 50%);
    animation: meshShift 30s ease-in-out infinite;
  }
  
  /* Glow Accent */
  .hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 25%;
    left: 10%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 40%, transparent 60%);
    animation: glowPulse 6s ease-in-out infinite;
  }
  
  /* Cursor Following Glow */
  .cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120,100,160,0.15) 0%, rgba(100,80,140,0.08) 30%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(40px);
  }
  
  .cursor-glow.active {
    opacity: 1;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
      transform: translate(30px, -20px) scale(1.05);
    }
    66% {
      transform: translate(-20px, 20px) scale(0.95);
    }
  }
  
  @keyframes meshShift {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.02);
    }
  }
  
  
  @keyframes glowPulse {
    0%, 100% {
      opacity: 0.5;
      transform: scale(1);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.1);
    }
  }
  
  .hero .wrapper {
    position: relative;
    z-index: 1;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 120px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--fg-3);
  animation: lineExpand 0.8s var(--ease) 0.3s both;
}

@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to { width: 32px; opacity: 1; }
}

.hero h1 {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
}

.hero h1 .line-1 {
  background: linear-gradient(90deg, var(--fg) 0%, var(--fg) 50%, var(--fg-2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s ease 1s both;
}

.hero h1 .line-2 {
  color: var(--fg-2);
  opacity: 0;
  animation: fadeSlideUp 0.7s var(--ease) 0.4s forwards;
}

@keyframes textShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.hero-right {
  padding-top: 20px;
}

.hero-desc {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  border-radius: inherit;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.3) 100%);
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease);
  animation: btnBorderGlow 3s ease infinite paused;
}

@keyframes btnBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover::after {
  opacity: 1;
  animation-play-state: running;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(255,255,255,0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px -4px rgba(255,255,255,0.2);
}

/* Focus states for keyboard navigation */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg-2);
}

.nav-links a:focus-visible {
  outline: none;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--fg-3);
}

.contact-email:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg-2);
  border-radius: 4px;
}

.contact-links a:focus-visible {
  outline: none;
}

.contact-links a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 2px var(--fg-3);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--border-hover);
  background: var(--surface);
  transform: translateY(-2px);
}

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

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: scale(1.1);
}

/* Currently Section */
.currently {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.currently-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.currently-item {
  padding: 0;
}

.currently-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.currently-value {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .currently {
    padding: 32px 0;
  }

  .currently-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Sections */
section {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 72px;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--fg-3) 0%, transparent 100%);
  transition: width 0.6s var(--ease);
}

.reveal.visible .section-label::after {
  animation: labelLine 0.8s var(--ease) forwards;
}

@keyframes labelLine {
  from { width: 0; }
  to { width: 40px; }
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--fg) 0%, var(--fg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  transition: background-position 0.6s var(--ease);
}

/* Section title blur-reveal */
.reveal .section-title {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(16px);
}

.reveal.visible .section-title {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease), background-position 0.6s var(--ease);
  transition-delay: 0.05s;
}

.section-title:hover {
  background: linear-gradient(90deg, var(--fg) 0%, var(--fg-2) 50%, var(--fg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: titleShimmer 1.5s ease infinite;
}

@keyframes titleShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background-size: 200% 200%;
  animation: borderGlow 3s ease infinite paused;
}

.work-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.work-card:hover {
  border-color: transparent;
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 20px 40px -16px rgba(255,255,255,0.08),
    0 30px 60px -20px rgba(255,255,255,0.04),
    inset 0 1px 0 0 rgba(255,255,255,0.06);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

/* Ambient glow beneath card on hover */
.work-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: -1;
}

.work-card:hover::after {
  opacity: 1;
}

/* Staggered card reveals */
.work-card {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.visible .work-card {
  animation: cardReveal 0.7s var(--ease) forwards;
}

.reveal.visible .work-card:nth-child(1) { animation-delay: 0.1s; }
.reveal.visible .work-card:nth-child(2) { animation-delay: 0.2s; }
.reveal.visible .work-card:nth-child(3) { animation-delay: 0.3s; }
.reveal.visible .work-card:nth-child(4) { animation-delay: 0.4s; }

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

.work-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.work-card-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.work-card:hover .work-card-name {
  color: var(--fg);
}

.work-card-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 5px 12px;
  background: var(--surface-2);
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.work-card:hover .work-card-tag {
  background: var(--border-hover);
  color: var(--fg-2);
}

.work-card-role {
  font-size: 15px;
  color: var(--fg-2);
  margin-bottom: 16px;
}

.work-card-desc {
  font-size: 15px;
  color: var(--fg-3);
  line-height: 1.7;
}

/* Philosophy */
.philosophy-content {
  max-width: 720px;
}

.philosophy-text {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.85;
}

.philosophy-text p {
  transition: color 0.3s ease, filter 0.8s var(--ease), opacity 0.8s var(--ease);
  filter: blur(0);
}

.philosophy-text p:hover {
  color: var(--fg);
}

.philosophy-text p + p {
  margin-top: 28px;
}

/* Staggered philosophy text blur-reveal */
.reveal .philosophy-text p {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
}

.reveal.visible .philosophy-text p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease), color 0.3s ease;
}

.reveal.visible .philosophy-text p:nth-child(1) { transition-delay: 0.15s; }
.reveal.visible .philosophy-text p:nth-child(2) { transition-delay: 0.3s; }
.reveal.visible .philosophy-text p:nth-child(3) { transition-delay: 0.45s; }

/* Signals Grid */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.signal-item {
  background: var(--surface);
  padding: 40px;
  transition: all 0.4s var(--ease);
  position: relative;
}

.signal-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--fg);
  transition: all 0.4s var(--ease);
  transform: translateX(-50%);
}

.signal-item:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
}

.signal-item:hover::after {
  width: 40px;
}

/* Staggered signal reveals */
.signal-item {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.visible .signal-item {
  animation: signalReveal 0.6s var(--ease) forwards;
}

.reveal.visible .signal-item:nth-child(1) { animation-delay: 0.1s; }
.reveal.visible .signal-item:nth-child(2) { animation-delay: 0.15s; }
.reveal.visible .signal-item:nth-child(3) { animation-delay: 0.2s; }
.reveal.visible .signal-item:nth-child(4) { animation-delay: 0.25s; }
.reveal.visible .signal-item:nth-child(5) { animation-delay: 0.3s; }
.reveal.visible .signal-item:nth-child(6) { animation-delay: 0.35s; }

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

.signal-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.signal-item:hover .signal-label {
  color: var(--fg-2);
}

.signal-value {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  transition: transform 0.3s var(--ease);
}

.signal-item:hover .signal-value {
  transform: translateX(4px);
}

.signal-note {
  font-size: 14px;
  color: var(--fg-3);
}

/* Contact */
.contact-section {
  text-align: center;
  padding: 60px 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.contact-email {
  font-size: clamp(22px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: inline-block;
  transition: all 0.4s var(--ease), transform 0.3s var(--ease);
  background: linear-gradient(90deg, var(--fg) 0%, var(--fg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% 100%;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.contact-email:hover {
  background: linear-gradient(90deg, #fff 0%, #666 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: shimmer 2s ease infinite;
  transform: translateY(-2px);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Work card keyboard focus */
.work-card:focus-within {
  border-color: transparent;
  outline: none;
}

.work-card:focus-visible {
  outline: 2px solid var(--fg-3);
  outline-offset: 2px;
  border-color: transparent;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
}

.contact-links a {
  font-size: 14px;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.contact-links a::before {
  content: '';
  position: absolute;
  inset: -8px -16px;
  background: var(--surface);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s var(--ease);
  z-index: -1;
}

.contact-links a:hover {
  color: var(--fg);
}

.contact-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.contact-links svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}

.contact-links a:hover svg {
  transform: translateY(-2px) rotate(-5deg);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left, .footer-right {
  font-size: 13px;
  color: var(--fg-3);
  transition: color 0.3s ease;
}

.footer-right span:first-child::after {
  content: ' | ';
}

footer:hover .footer-left,
footer:hover .footer-right {
  color: var(--fg-2);
}

/* Responsive */
@media (max-width: 1024px) {
  .wrapper { padding: 0 32px; }
  nav { padding: 16px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { padding-top: 0; }
  .philosophy-content { max-width: 100%; }
}

@media (max-width: 768px) {
  .wrapper { padding: 0 20px; }
  nav { padding: 14px 20px; }
  nav.scrolled { padding: 12px 20px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 12px; }
  .hero { padding: 100px 0 80px; }
  section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-card { padding: 28px; }
  .signals-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .signal-item { padding: 24px 28px; }
  .contact-section { padding: 80px 0; }
  .contact-links { flex-direction: column; gap: 20px; align-items: center; }
  footer .wrapper { flex-direction: column; gap: 8px; text-align: center; }
  .footer-right { 
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .wrapper { padding: 0 16px; }
  .nav-logo { font-size: 13px; }
  .nav-links { gap: 16px; }
  .nav-links a { 
    font-size: 11px;
    padding: 8px 4px;
    margin: -8px -4px;
  }
  .hero { padding: 90px 0 60px; min-height: auto; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 24px; }
  .hero-desc { font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
  .hero-links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-links .btn {
    width: 100%;
    justify-content: center;
  }
  .btn { padding: 14px 20px; font-size: 14px; }
  section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }
  .work-card { padding: 24px; }
  .work-card-name { font-size: 20px; }
  .work-card-desc { font-size: 14px; line-height: 1.65; }
  .signals-grid { grid-template-columns: 1fr; }
  .signal-item { padding: 20px 24px; }
  .signal-value { font-size: 16px; }
  .signal-note { font-size: 13px; }
  .contact-section { padding: 64px 0; }
  .footer-right span { display: block; }
  .footer-right span:first-child::after { content: none; }
}

/* Global animation settings */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeIn 0.7s var(--ease) forwards;
  }
  
  .fade-in:nth-child(1) { animation-delay: 0.1s; }
  .fade-in:nth-child(2) { animation-delay: 0.2s; }
  .fade-in:nth-child(3) { animation-delay: 0.3s; }
  .fade-in:nth-child(4) { animation-delay: 0.4s; }
  
  @keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
  }
  
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ================================
   Lab Page Styles
   ================================ */

.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { transform: scaleX(1); }

.page-header {
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-header .subtitle {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 500px;
  margin: 0 auto;
}

.intro {
  max-width: 680px;
  margin: 0 auto 80px;
  text-align: center;
}

.intro p {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.7;
}

.intro p + p {
  margin-top: 16px;
}

.experiments {
  padding-bottom: 120px;
}

.section-subhead {
  font-size: 14px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.experiment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s var(--ease);
}

.experiment-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.experiment-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.experiment-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.experiment-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.experiment-meta {
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 20px;
}

.experiment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.2s;
}

.experiment-link:hover {
  color: var(--fg);
}

.experiment-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.experiment-link:hover svg {
  transform: translateX(4px);
}

/* ================================
   Story Page - Clean Narrative Layout
   ================================ */

.story-page {
  padding-top: 80px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.story-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
}

.story-main {
  max-width: 640px;
}

.story-header {
  margin-bottom: 24px;
}

.story-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Story Content */
.story-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg-2);
}

.story-section {
  margin-bottom: 0;
}

.story-content p {
  margin-bottom: 1.5em;
  transition: color 0.3s ease;
}

.story-content p:hover {
  color: var(--fg);
}

.story-content strong {
  color: var(--fg);
  font-weight: 500;
}

.story-content a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--fg-3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.story-content a:hover {
  text-decoration-color: var(--accent);
}

/* Lede Paragraph */
.story-lede {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 1.5em;
  padding-bottom: 1.25em;
  border-bottom: 1px solid var(--border);
}

/* Pullquote */
.story-pullquote {
  margin: 0 0 1.5em 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--border-hover);
  position: relative;
}

.story-pullquote::before {
  display: none;
}

.story-pullquote p {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--fg-2);
  line-height: 1.65;
  margin: 0;
}

.story-pullquote p:hover {
  color: var(--fg);
}

/* Story page reveals - faster and more immediate */
.story-page .reveal {
  opacity: 1;
  transform: none;
}

/* Override generic section styles for story page */
.story-page section {
  padding: 0;
  border-top: none;
}

/* Responsive - Mobile */
@media (max-width: 900px) {
  .story-container {
    padding: 0 24px;
  }

  .story-main {
    max-width: 100%;
  }

  .story-page {
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .story-header {
    margin-bottom: 20px;
  }

  .story-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .story-lede {
    font-size: 17px;
  }

  .story-pullquote {
    padding: 0 0 0 16px;
  }

  .story-pullquote p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .story-container {
    padding: 0 20px;
  }

  .story-page {
    padding-top: 64px;
    padding-bottom: 40px;
  }

  .story-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .story-content p {
    margin-bottom: 1.25em;
  }

  .story-lede {
    font-size: 16px;
    margin-bottom: 1.25em;
    padding-bottom: 1em;
  }

  .story-pullquote {
    padding: 0 0 0 14px;
  }

  .story-pullquote p {
    font-size: 14px;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .story-content {
    font-size: 18px;
  }
}

@media (min-width: 1600px) {
  .story-header h1 {
    font-size: 48px;
  }
}
