:root {
  /* Living Lab Design Tokens - Premium Dark Mode Adaptation */
  --bg-primary: #0a0f14; /* Deep Slate Tech Canvas */
  --bg-secondary: #10161d;
  --bg-tertiary: #16202a;
  
  --text-primary: #f6faff; /* Light Tech White */
  --text-secondary: #a0b2c6;
  --text-muted: #647b93;
  
  /* Brand Accents from Living Lab */
  --blue: #0969d6; /* Primary Blue */
  --blue-glow: rgba(9, 105, 214, 0.2);
  
  --lime: #ceff42; /* Secondary Volt Lime */
  --lime-rgb: 206, 255, 66;
  --lime-glow: rgba(206, 255, 66, 0.15);
  
  --coral: #ff8065;
  --gold: #f4c84a;
  
  --border-subtle: rgba(246, 250, 255, 0.08);
  --border-active: rgba(206, 255, 66, 0.3);
  
  /* Layout */
  --container-width: 1180px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  
  --font-mono: 'JetBrains Mono', monospace; /* Mono labels from Living Lab */
  --font-sans: 'Inter', sans-serif; /* Body font from Living Lab */
  --font-headline: 'Manrope', sans-serif; /* Headline font from Living Lab */
  
  /* Interpolation spaces */
  --in-oklab: ;
  --in-oklch: ;
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Technical grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    linear-gradient(to right, rgba(216, 255, 84, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(216, 255, 84, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Glowing background ambient lights */
body::after {
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle var(--in-oklch), rgba(216, 255, 84, 0.06) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lime);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* Typography Utilities */
.eyebrow,
.section-kicker,
.feature-card span,
.service-detail span,
.project-type,
.rank {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(216, 255, 84, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(216, 255, 84, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(216, 255, 84, 0); }
}

h1 {
  font-family: var(--font-headline);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 16px;
  margin-bottom: 24px;
}

h2 {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 8px;
}

.button.primary {
  background: var(--lime);
  color: var(--bg-primary);
  border: 1px solid var(--lime);
  box-shadow: 0 4px 20px rgba(216, 255, 84, 0.15);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 255, 84, 0.3);
  background: #e2ff7a;
}

.button.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.button.secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-tertiary);
  border-color: var(--lime);
}

.button.ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.button.ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

/* Layout Wrap */
.site-header,
.hero,
.intro-band,
.feature-grid-section,
.stack-preview,
.portfolio-strip,
.contact,
.site-footer,
.page-hero,
.service-detail-grid,
.company-flow,
.use-cases,
.portfolio-page-grid,
.portfolio-notes,
.stack-ranking,
.tool-principles,
.experiments-section,
.tech-stack-section,
.team-location-section {
  width: min(var(--container-width), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 0 10px var(--blue-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.brand:hover .brand-logo-mark {
  background: var(--lime);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--lime-glow);
  border-color: var(--lime);
}

.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-header nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
}

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

.site-header nav a[aria-current="page"] {
  color: var(--lime);
}

.site-header nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.header-link {
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
}

.header-link:hover {
  border-color: var(--lime);
  background: rgba(216, 255, 84, 0.05);
  color: var(--lime);
}

/* Hero Section */
.hero {
  min-height: calc(80vh - 90px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 60px 0 100px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Interactive Hero Visual (No static images) */
.hero-media {
  margin: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.3;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

/* Technical flowchart CSS details */
.flowchart-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 320px;
  z-index: 2;
  position: relative;
}

.flowchart-node {
  background: rgba(18, 30, 26, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.flowchart-node:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 255, 84, 0.1);
}

.flowchart-node.active {
  border-color: var(--lime);
  box-shadow: 0 0 15px rgba(216, 255, 84, 0.15);
}

.node-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.active .node-icon {
  background: var(--lime);
  color: var(--bg-primary);
  border-color: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.flowchart-node.action-node {
  border-color: rgba(90, 167, 214, 0.3);
}

.flowchart-node.action-node:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(90, 167, 214, 0.1);
}

.action-node .node-icon {
  color: var(--blue);
}

.action-node.active .node-icon {
  background: var(--blue);
  color: var(--bg-primary);
  border-color: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.flowchart-arrow {
  height: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow-line {
  width: 2px;
  height: 100%;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.arrow-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--lime), transparent);
  animation: flowDown 2s infinite linear;
}

.arrow-line.to-action::after {
  background: linear-gradient(to bottom, transparent, var(--blue), transparent);
  animation: flowDown 2.5s infinite linear;
}

@keyframes flowDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

.flowchart-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.tech-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
  opacity: 0.3;
}

.tech-dot:nth-child(1) { top: 20%; left: 20%; animation: blink 3s infinite 0.5s; }
.tech-dot:nth-child(2) { top: 75%; left: 15%; animation: blink 4s infinite 1.2s; }
.tech-dot:nth-child(3) { top: 30%; left: 80%; animation: blink 2.5s infinite 0.1s; }
.tech-dot:nth-child(4) { top: 80%; left: 75%; animation: blink 5s infinite 2.2s; }

@keyframes blink {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.7; transform: scale(1.5); }
}

/* Page Hero Header */
.page-hero {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

/* Intro Band */
.intro-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.intro-band h2 {
  max-width: 600px;
}

.intro-band > p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  align-self: end;
}

.section-kicker {
  color: var(--lime);
  margin-bottom: 16px;
}

/* Feature Grid Section */
.feature-grid-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 50px;
}

.section-head h2 {
  max-width: 720px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  background: var(--bg-tertiary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(216, 255, 84, 0.03);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card span {
  color: var(--lime);
  margin-bottom: 40px;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Stack Preview */
.stack-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.stack-preview p {
  margin: 20px 0 30px;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.logo-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.logo-tile strong {
  font-size: 20px;
  font-weight: 700;
}

.logo-tile span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Custom individual glowing states for tech brands */
.logo-tile.google:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(244, 200, 74, 0.08);
}
.logo-tile.antigravity {
  background: rgba(18, 30, 26, 0.7);
  border-color: rgba(216, 255, 84, 0.15);
}
.logo-tile.antigravity:hover {
  border-color: var(--lime);
  box-shadow: 0 8px 25px rgba(216, 255, 84, 0.1);
}
.logo-tile.chatgpt:hover {
  border-color: #10a37f;
  box-shadow: 0 8px 25px rgba(16, 163, 127, 0.08);
}
.logo-tile.codex:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 25px rgba(90, 167, 214, 0.08);
}
.logo-tile.work:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 25px rgba(255, 128, 101, 0.08);
}
.logo-tile.claude:hover {
  border-color: #d97745;
  box-shadow: 0 8px 25px rgba(217, 119, 69, 0.08);
}

/* Google Labs Experiments Grid */
.experiments-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.experiment-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.experiment-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(9, 105, 214, 0.05);
}

.experiment-logo {
  min-height: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.experiment-logo strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-headline);
}

.experiment-logo span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.experiment-card:hover .experiment-logo {
  border-color: var(--blue);
}

.experiment-logo.google-flow {
  border-left: 4px solid var(--blue);
}
.experiment-logo.google-music {
  border-left: 4px solid var(--coral);
}
.experiment-logo.pomelli {
  border-left: 4px solid var(--lime);
}

.experiment-card h3 {
  font-family: var(--font-headline);
  font-size: 22px;
  margin-bottom: 12px;
}

.experiment-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.experiment-link-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* Portfolio strip */
.portfolio-strip {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.project-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.project-link {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-link span {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
}

.project-link strong {
  font-size: 26px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 10px;
  display: block;
}

.project-link p {
  font-size: 14px;
}

/* Contact Section & Form */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 0;
}

.contact h2 {
  max-width: 500px;
  margin-top: 10px;
}

.contact form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  gap: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact label {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact input,
.contact textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.25s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 10px rgba(216, 255, 84, 0.1);
  background: var(--bg-tertiary);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.form-actions button {
  flex: 1;
}

#form-status {
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 40px 0;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-footer nav a:hover {
  color: var(--lime);
}

/* SERVICES PAGE (.service-detail-grid) */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 100px;
}

.service-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-tertiary);
}

.service-detail span {
  color: var(--lime);
}

.service-detail h2 {
  font-size: 32px;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.service-detail p {
  font-size: 15.5px;
  margin-bottom: 30px;
}

.service-detail ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.service-detail li {
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}

.service-detail li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime);
}

.service-detail.highlighted {
  border-color: var(--lime);
  background: rgba(216, 255, 84, 0.02);
  box-shadow: 0 10px 30px rgba(216, 255, 84, 0.03);
}

.service-detail.highlighted::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lime);
}

/* COMPANIES FLOW & TIMELINE (.company-flow) */
.company-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 100px;
}

.company-flow article {
  padding: 40px 30px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.company-flow article + article {
  border-left: 1px solid var(--border-subtle);
}

.company-flow span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 8px rgba(216, 255, 84, 0.3);
}

.company-flow h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.company-flow p {
  font-size: 14px;
  line-height: 1.6;
}

/* Use cases list */
.use-cases {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.use-case-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.use-case-list article {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 180px;
  transition: all 0.3s ease;
}

.use-case-list article:hover {
  border-color: var(--border-active);
  background: var(--bg-tertiary);
}

.use-case-list h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

/* PORTFOLIO PAGE GRID */
.portfolio-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 100px;
}

.portfolio-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-logo {
  min-height: 160px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 30px 0 24px;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.portfolio-card.dark .project-logo {
  color: var(--lime);
}

.portfolio-card.speed .project-logo {
  color: var(--coral);
}

.portfolio-card h2 {
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.portfolio-card strong {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
}

.portfolio-notes {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.note-grid article {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 180px;
}

.note-grid h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

/* STACK RANKING & DETAIL CARDS */
.stack-ranking {
  display: grid;
  gap: 20px;
  padding-bottom: 100px;
}

.stack-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  transition: all 0.3s ease;
}

.stack-card:hover {
  border-color: var(--border-active);
  background: var(--bg-tertiary);
}

.stack-card.primary-stack {
  border-color: var(--lime);
  background: rgba(216, 255, 84, 0.01);
}

.stack-card.primary-stack:hover {
  background: rgba(216, 255, 84, 0.03);
}

.rank {
  color: var(--lime);
}

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

.stack-card:nth-child(2) .stack-logos {
  grid-template-columns: repeat(3, 1fr);
}

.mini-logo {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease;
}

.mini-logo.google { border-color: rgba(244, 200, 74, 0.15); }
.mini-logo.antigravity { border-color: rgba(216, 255, 84, 0.2); }
.mini-logo.chaingpt { border-color: rgba(216, 255, 84, 0.15); }
.mini-logo.codex { border-color: rgba(90, 167, 214, 0.15); }
.mini-logo.work { border-color: rgba(255, 128, 101, 0.15); }
.mini-logo.claude { border-color: rgba(217, 119, 69, 0.15); }

.mini-logo strong {
  font-size: 16px;
  font-weight: 700;
}

.mini-logo span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stack-card h2 {
  font-size: 32px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.tool-principles {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.experiment-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.experiment-card:hover .experiment-icon {
  transform: scale(1.1);
  color: var(--lime);
}

.portfolio-logo-icon {
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.portfolio-card:hover .portfolio-logo-icon,
.project-link:hover .portfolio-logo-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--lime);
}

/* Technologies Section */
.tech-stack-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-grid-small {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tech-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-item:hover {
  border-color: var(--blue);
  background: var(--bg-tertiary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(9, 105, 214, 0.05);
}

.tech-icon {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.tech-item:hover .tech-icon {
  color: var(--lime);
  transform: scale(1.1);
}

.tech-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Team & Location Section */
.team-location-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.team-info, .location-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-info h2, .location-info h2 {
  font-size: 28px;
  line-height: 1.25;
}

.lead-small {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.team-info p, .location-info p {
  line-height: 1.6;
  color: var(--text-muted);
}

.text-link {
  color: var(--lime);
  text-decoration: underline;
  transition: color 0.25s ease;
}

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

/* RESPONSIVE LAYOUTS & MEDIA QUERIES */
@media (max-width: 1024px) {
  .site-header {
    min-height: auto;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 80px;
  }
  
  .hero-media {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .intro-band {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .feature-grid,
  .logo-cloud,
  .project-row,
  .service-detail-grid,
  .company-flow,
  .use-case-list,
  .note-grid,
  .portfolio-page-grid,
  .experiments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .company-flow article + article {
    border-left: none;
  }
  
  .company-flow article:nth-child(even) {
    border-left: 1px solid var(--border-subtle);
  }
  
  .company-flow article:nth-child(n + 3) {
    border-top: 1px solid var(--border-subtle);
  }
  
  .stack-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 768px) {
  .site-header,
  .hero,
  .intro-band,
  .feature-grid-section,
  .stack-preview,
  .portfolio-strip,
  .contact,
  .site-footer,
  .page-hero,
  .service-detail-grid,
  .company-flow,
  .use-cases,
  .portfolio-page-grid,
  .portfolio-notes,
  .stack-ranking,
  .tool-principles,
  .experiments-section,
  .tech-stack-section,
  .team-location-section {
    width: min(calc(100% - 32px), var(--container-width));
  }
  
  .header-link {
    display: none;
  }
  
  h1 {
    font-size: 38px;
  }
  
  .lead {
    font-size: 16px;
  }
  
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-grid,
  .logo-cloud,
  .project-row,
  .service-detail-grid,
  .company-flow,
  .use-case-list,
  .note-grid,
  .portfolio-page-grid,
  .experiments-grid {
    grid-template-columns: 1fr;
  }
  
  .company-flow article {
    min-height: auto;
    padding: 30px 20px;
  }
  
  .company-flow article:nth-child(even) {
    border-left: none;
  }
  
  .company-flow article:nth-child(n + 2) {
    border-top: 1px solid var(--border-subtle);
  }
  
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 0;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
