:root {
  --bg: #0B0B0F;
  --bg-alt: #111118;
  --fg: #F5F5F2;
  --muted: #8A8A92;
  --border: #20202A;
  --accent: #D4FF3C;
  --accent-ink: #0B0B0F;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1200px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s var(--ease), opacity .18s var(--ease);
}

a:hover { opacity: .85; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 960px) {
  .container { padding-inline: 48px; }
}

/* ========== HEADER / NAV ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  letter-spacing: .02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: none;
}

.logo-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo-primary {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
}

.logo-secondary {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.primary-nav a {
  color: var(--muted);
  font-weight: 500;
}

.primary-nav a:hover { color: var(--fg); opacity: 1; }

.primary-nav .nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.primary-nav .nav-cta:hover {
  opacity: 1;
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
    font-size: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }

  .primary-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
  }

  .primary-nav a:last-child { border-bottom: 0; }

  .primary-nav .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ========== HERO ========== */

.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 10vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at center, rgba(212, 255, 60, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 28px;
  max-width: 16ch;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.btn:hover { opacity: 1; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { filter: brightness(1.05); }

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

.btn-ghost:hover { border-color: var(--fg); }

.btn-xl {
  padding: 20px 32px;
  font-size: clamp(17px, 2.2vw, 22px);
  border-radius: 999px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  max-width: 820px;
}

@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.hero-stats > div { margin: 0; }

.hero-stats dt {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.01em;
}

/* ========== SECTIONS ========== */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--bg-alt); }

.section-label {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 22ch;
}

.section-lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 48px;
}

/* ========== THESIS ========== */

.thesis-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

@media (min-width: 640px) { .thesis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .thesis-grid { grid-template-columns: repeat(4, 1fr); } }

.thesis-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.thesis-card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.thesis-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.thesis-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 960px) { .specs { grid-template-columns: repeat(4, 1fr); } }

.specs > div { margin: 0; }

.specs dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.specs dd {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

/* ========== PORTFOLIO ========== */

.portfolio-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

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

.portfolio-grid > li { display: block; }

.portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 180px;
  padding: 24px 24px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.section-alt .portfolio-card { background: #0c0c12; }

.portfolio-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  opacity: 1;
}

.portfolio-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.portfolio-tag {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ========== TEAM ========== */

.team-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 760px;
}

@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.team-card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, #D4FF3C, #3CFFD4, #3C7BFF, #D43CFF, #D4FF3C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.team-card .role {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.team-card .bio {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: lowercase;
}

.socials a:hover { color: var(--fg); border-color: var(--fg); opacity: 1; }

/* ========== PITCH ========== */

.section-pitch {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 255, 60, 0.10), transparent 55%),
    var(--bg);
  padding: clamp(96px, 14vw, 160px) 0;
}

.section-pitch .section-label { display: inline-block; }

.pitch-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 auto 20px;
  max-width: 22ch;
}

.pitch-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 40px;
}

/* ========== FOOTER ========== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.footer-socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.footer-socials a { color: var(--muted); }
.footer-socials a:hover { color: var(--fg); opacity: 1; }

/* ========== REVEAL ANIMATION ========== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
