/* =================================================================
   Caleb Lazarus — caleblazarus.com
   AI & Automation Edition · 2026
   ================================================================= */

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

:root {
  /* Surfaces */
  --bg-0: #06070d;
  --bg-1: #0a0c14;
  --bg-2: #0f1220;
  --bg-3: #161a2c;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.05);

  /* Accents — cyan-electric primary, violet secondary */
  --accent: #6dd5f0;
  --accent-2: #8b5cf6;
  --accent-3: #4a90a4;
  --accent-glow: rgba(109, 213, 240, 0.45);
  --accent-soft: rgba(109, 213, 240, 0.08);
  --accent-2-glow: rgba(139, 92, 246, 0.35);

  --grad-1: linear-gradient(135deg, #6dd5f0 0%, #8b5cf6 60%, #ff7eb6 100%);
  --grad-2: linear-gradient(180deg, rgba(109, 213, 240, 0.18), rgba(139, 92, 246, 0.05) 60%, transparent);

  /* Text */
  --text: #f5f7fb;
  --text-muted: #a8b0c4;
  --text-dim: #6a7390;

  /* Borders */
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container: 1240px;
  --container-narrow: 820px;
  --pad: clamp(1.25rem, 3vw, 2.25rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Header */
  --header-h: 68px;
}

html {
  scroll-padding-top: var(--header-h);
}

/* Lenis hooks — required so Lenis can take over scroll cleanly */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg-0);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* Containers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container-narrow { max-width: var(--container-narrow); }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--hairline);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-img { width: 28px; height: 28px; border-radius: 6px; }
.logo-text span { color: var(--accent); }

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--text);
  color: var(--bg-0);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent); }

.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.toggle-bar {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
.mobile-toggle.active .toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.active .toggle-bar:nth-child(2) { opacity: 0; }
.mobile-toggle.active .toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}
.mobile-nav-link {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-nav-cta { color: var(--accent); }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 101;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-1);
  transition: width 0.05s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* =================================================================
   Buttons
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg-0);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--hairline-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 7.5rem;
  isolation: isolate;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(109, 213, 240, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(139, 92, 246, 0.10), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.005em;
  margin-bottom: 2.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 213, 240, 0.18);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(109, 213, 240, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(109, 213, 240, 0.04); }
}

.hero-title {
  font-size: clamp(2.75rem, 8.5vw, 7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 2rem;
}
.hero-title .line {
  display: block;
}
.hero-title .line > * {
  display: inline-block;
}
.grad-text {
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
.hero-tagline strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}
.hero-stat dt {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.hero-stat dd {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}
.hero-stat dd span:last-child {
  color: var(--accent);
  margin-left: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
  transition: opacity 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.scroll-indicator:hover { color: var(--accent); }

/* =================================================================
   Section primitives
   ================================================================= */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-eyebrow::before {
  content: '◇  ';
  opacity: 0.6;
}
.section-header { margin-bottom: 4rem; max-width: 760px; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section-lede {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 580px;
}

/* =================================================================
   MANIFESTO
   ================================================================= */
.manifesto {
  padding: var(--section-y) 0;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(109, 213, 240, 0.06), transparent 70%);
  pointer-events: none;
}
.manifesto-text {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}
.reveal-word {
  display: inline-block;
  margin-right: 0.32em;
  transition: color 0.6s var(--ease-out);
  will-change: color;
}
.reveal-word.is-active { color: var(--text); }
.reveal-word-accent.is-active {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

/* =================================================================
   CAPABILITIES (Apple-style stacked cards)
   ================================================================= */
.capabilities {
  padding: var(--section-y) 0;
  background: var(--bg-1);
  position: relative;
}
.caps-stack {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.cap-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  padding: 3rem;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--hairline);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  min-height: 380px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), border-color 0.4s var(--ease-out);
}
.cap-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cap-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at top right, var(--accent-soft), transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}
.cap-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cap-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cap-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.cap-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cap-title {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.cap-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.cap-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}
.cap-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.cap-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}

.cap-card-visual {
  position: relative;
  border-radius: 16px;
  background: var(--bg-1);
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

/* Capability visual: orbit (cap 01) */
.orbit { position: relative; width: 220px; height: 220px; }
.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--grad-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-0);
  box-shadow: 0 0 40px var(--accent-glow);
  z-index: 2;
}
.orbit-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px dashed var(--hairline-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-ring-1 { width: 110px; height: 110px; animation: orbit-spin 8s linear infinite; }
.orbit-ring-2 { width: 170px; height: 170px; animation: orbit-spin 14s linear infinite reverse; }
.orbit-ring-3 { width: 230px; height: 230px; animation: orbit-spin 22s linear infinite; }
.orbit-ring span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent-glow);
}
.orbit-ring-2 span { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2-glow); }
.orbit-ring-3 span { background: #ff7eb6; box-shadow: 0 0 12px rgba(255, 126, 182, 0.5); }
@keyframes orbit-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Capability visual: grid-flow (cap 02) */
.grid-flow {
  position: relative;
  width: 240px;
  height: 240px;
}
.grid-flow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.5;
  stroke-dasharray: 4 6;
  animation: dash-move 6s linear infinite;
}
@keyframes dash-move { to { stroke-dashoffset: -200; } }
.grid-flow .node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  animation: node-pulse 2s ease-in-out infinite;
}
.grid-flow .n1 { top: 30%; left: 20%; }
.grid-flow .n2 { top: 30%; right: 20%; background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2-glow); animation-delay: 0.3s; }
.grid-flow .n3 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; animation-delay: 0.6s; }
.grid-flow .n4 { bottom: 30%; left: 20%; background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2-glow); animation-delay: 0.9s; }
.grid-flow .n5 { bottom: 30%; right: 20%; animation-delay: 1.2s; }
@keyframes node-pulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.25); }
}
.grid-flow .n3 { animation: node-pulse-center 2s ease-in-out infinite; }
@keyframes node-pulse-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.25); }
}

/* Capability visual: pipe (cap 03) */
.pipe {
  position: relative;
  width: 280px;
  height: 60px;
}
.pipe-rail {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--hairline-strong), transparent);
  transform: translateY(-50%);
}
.pipe-rail::before, .pipe-rail::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-2);
  transform: translateY(-50%);
}
.pipe-rail::before { left: 0; }
.pipe-rail::after { right: 0; }
.pipe .packet {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-50%);
  animation: pipe-flow 3s linear infinite;
}
.pipe .p2 { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2-glow); animation-delay: 0.75s; }
.pipe .p3 { animation-delay: 1.5s; }
.pipe .p4 { background: #ff7eb6; box-shadow: 0 0 12px rgba(255, 126, 182, 0.5); animation-delay: 2.25s; }
@keyframes pipe-flow {
  0% { left: 12px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 24px); opacity: 0; }
}

/* Capability visual: browser-frame (cap 04) */
.browser-frame {
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--hairline);
}
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hairline-strong);
}
.browser-bar span:first-child { background: #ff5f56; }
.browser-bar span:nth-child(2) { background: #ffbd2e; }
.browser-bar span:nth-child(3) { background: #27c93f; }
.browser-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.browser-body .bar {
  height: 12px;
  border-radius: 4px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.browser-body .bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-1);
  width: 0%;
  animation: bar-fill 4s ease-in-out infinite;
}
.browser-body .bar-1::before { animation-delay: 0s; }
.browser-body .bar-2::before { animation-delay: 0.4s; }
.browser-body .bar-3::before { animation-delay: 0.8s; }
.browser-body .bar-4::before { animation-delay: 1.2s; }
@keyframes bar-fill {
  0%, 100% { width: 20%; }
  50% { width: 92%; }
}

/* Capability visual: blueprint (cap 05) */
.blueprint {
  position: relative;
  width: 260px;
  height: 200px;
}
.bp-box {
  position: absolute;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: rgba(109, 213, 240, 0.06);
}
.bp-1 { top: 0; left: 0; width: 90px; height: 60px; }
.bp-2 { top: 0; right: 0; width: 90px; height: 60px; animation-delay: 0.3s; }
.bp-3 { bottom: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 80px; border-color: var(--accent-2); background: rgba(139, 92, 246, 0.06); }
.bp-4 { top: 30%; left: 50%; transform: translate(-50%, -30%); width: 50px; height: 50px; border-radius: 50%; background: var(--grad-1); border: none; opacity: 0.7; }
.bp-line {
  position: absolute;
  background: var(--hairline-strong);
}
.bp-l1 { top: 30px; left: 90px; right: 90px; height: 1px; }
.bp-l2 { top: 60px; left: 45px; width: 1px; height: 60px; }
.bp-l3 { top: 60px; right: 45px; width: 1px; height: 60px; }

/* =================================================================
   PROCESS
   ================================================================= */
.process {
  padding: var(--section-y) 0;
  background: var(--bg-0);
  position: relative;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.process-step {
  padding: 2rem;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-1);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.process-step:hover { transform: translateY(-4px); border-color: var(--hairline-strong); }
.process-step:hover::before { opacity: 1; }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}
.process-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.process-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =================================================================
   WORK / PORTFOLIO
   ================================================================= */
.work {
  padding: var(--section-y) 0;
  background: var(--bg-1);
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0.5rem;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  width: fit-content;
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--text); color: var(--bg-0); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.3s var(--ease-out);
}
.portfolio-card.visible { opacity: 1; transform: translateY(0); }
.portfolio-card:hover { border-color: var(--accent); }
.portfolio-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }
.portfolio-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.portfolio-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.portfolio-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.5;
}
.portfolio-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s var(--ease-out), gap 0.2s var(--ease-out);
}
.portfolio-link:hover { gap: 0.5rem; }

.portfolio-view-all {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}
.project-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.4rem;
}

/* =================================================================
   CLIENTS / MARQUEE
   ================================================================= */
.clients {
  padding: var(--section-y) 0;
  background: var(--bg-0);
  overflow: hidden;
}
.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee {
  overflow: hidden;
  width: 100%;
}
.marquee-content {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.marquee-row-2 .marquee-content {
  animation-direction: reverse;
  animation-duration: 75s;
}
.marquee-row-3 .marquee-content {
  animation-duration: 90s;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.client-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.client-pill:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-3);
}

/* =================================================================
   ABOUT
   ================================================================= */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-1);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.about-col p { color: var(--text-muted); margin-bottom: 1rem; }
.about-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 1.25rem;
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 213, 240, 0.08);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.015em;
}
.timeline-company {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.timeline-item > p:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =================================================================
   VISION
   ================================================================= */
.vision {
  padding: var(--section-y) 0;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(139, 92, 246, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(109, 213, 240, 0.08), transparent 60%);
  pointer-events: none;
}
.vision .container { position: relative; }
.vision .section-title { margin: 0 auto 2rem; }
.vision-text {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

/* =================================================================
   FAQ
   ================================================================= */
.faq {
  padding: var(--section-y) 0;
  background: var(--bg-1);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact {
  padding: var(--section-y) 0;
  background: var(--bg-0);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(109, 213, 240, 0.1), transparent 70%);
}
.contact .container { position: relative; }
.contact-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  margin-bottom: 2.5rem;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.contact-social-btn:hover { color: var(--text); border-color: var(--accent); }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--bg-0);
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.footer-brand span { color: var(--accent); }
.footer-tag {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
}
.footer-nav a:hover { color: var(--accent); }
.footer-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-meta a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
}
.footer-meta a:hover { color: var(--accent); }

/* =================================================================
   Reveal animations
   ================================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1024px) {
  .cap-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    min-height: auto;
    position: static;
  }
  .cap-card-visual { min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .main-nav, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 5rem; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }
  .hero-actions .btn { padding: 0.75rem 1.25rem; font-size: 0.85rem; }

  .caps-stack { gap: 1.25rem; }
  .cap-card { padding: 1.75rem; }
  .cap-title { font-size: 1.5rem; }

  .process-grid { grid-template-columns: 1fr; }

  .portfolio-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .filter-btn { white-space: nowrap; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-nav, .footer-meta { justify-content: center; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-eyebrow { font-size: 0.7rem; padding: 0.4rem 0.75rem; }
  .hero-title { letter-spacing: -0.035em; }
  .section-title { font-size: 1.85rem; }
  .cap-card { padding: 1.5rem; }
  .cap-meta { flex-wrap: wrap; gap: 0.5rem; }
}
