:root {
  --orange: #f05a1a;
  --orange-dim: #d44a10;
  --orange-glow: rgba(240, 90, 26, 0.12);
  --black: #0d0d0d;
  --gray-900: #1a1a1a;
  --gray-700: #3d3d3d;
  --gray-500: #6b6b6b;
  --gray-300: #b8b8b8;
  --gray-100: #e8e8e8;
  --gray-50: #f4f4f4;
  --white: #fafafa;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 10px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--gray-50);
  overflow-x: hidden;
}

.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
}

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--gray-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 244, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.logo-accent {
  color: var(--gray-500);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--black);
  margin: 0 0 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  min-width: 140px;
}

.meta-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 500;
}

.meta-value {
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.orbit-svg {
  width: min(360px, 90%);
  height: auto;
  animation: slow-spin 60s linear infinite;
}

.orbit-ring {
  fill: none;
  stroke: var(--gray-300);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.orbit-ring-inner {
  stroke: var(--orange);
  stroke-opacity: 0.35;
  stroke-dasharray: 2 8;
}

.orbit-core {
  fill: var(--orange);
  filter: drop-shadow(0 0 20px var(--orange-glow));
}

.orbit-node {
  fill: var(--black);
}

.orbit-node-sm { fill: var(--orange); }

.orbit-axis {
  stroke: var(--gray-300);
  stroke-width: 0.5;
  stroke-dasharray: 3 5;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.formula-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.formula-strip code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--gray-100);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 500;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.7;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
}

.about-list strong {
  display: block;
  color: var(--black);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.about-list span {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Pipeline */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pipe-step {
  flex: 1 1 200px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.pipe-icon {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.pipe-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

.pipe-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.pipe-connector {
  display: flex;
  align-items: center;
  color: var(--gray-300);
  font-size: 1.5rem;
  font-family: var(--mono);
  padding: 0 0.25rem;
}

/* Projects */
.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.project-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-glow), 0 8px 32px rgba(0,0,0,0.04);
}

.project-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  background: var(--orange-glow);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}

.project-body h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.project-tagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--orange);
  margin: 0 0 1rem;
}

.project-body p {
  color: var(--gray-700);
  margin: 0 0 1.25rem;
  max-width: 48ch;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.project-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.project-graphic {
  width: 180px;
  align-self: center;
}

.wave-chart {
  height: 80px;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.wave-chart svg { width: 100%; height: 100%; }

.wave-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
}

.wave-line-2 {
  stroke: var(--gray-300);
  stroke-width: 1.5;
  opacity: 0.7;
}

.project-upcoming {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
}

.upcoming-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.project-upcoming p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-500);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 24px var(--orange-glow);
}

.team-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--black);
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--orange);
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

.team-role {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  font-family: var(--mono);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 800px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }

  .pipe-connector { display: none; }

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

  .project-graphic { width: 100%; }

  .project-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }

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

@media (max-width: 520px) {
  .nav-links { display: none; }

  .hero { padding: 3rem 0 2.5rem; }
}

/* Variant switcher (shared) */
.variant-bar {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  gap: 0.35rem;
  background: var(--black);
  padding: 0.35rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.variant-bar a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray-300);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

.variant-bar a:hover { color: var(--white); }

.variant-bar a.active {
  background: var(--orange);
  color: var(--white);
}
