:root {
  --bg: #070708;
  --surface: #0d0d10;
  --surface-hover: #121217;
  --text: #f5f5f7;
  --muted: #92929b;
  --line: #24242a;
  --accent-a: #6d5dfc;
  --accent-b: #67d9ff;
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 7%, rgba(109, 93, 252, .08), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 20px; }
.site-nav { display: flex; gap: 38px; color: var(--muted); font-size: 14px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }
.menu-button { display: none; }

.hero {
  min-height: 680px;
  padding: 145px 24px 110px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: #c7c7cc;
  background: rgba(255,255,255,.025);
  font-size: 13px;
}

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-b); box-shadow: 0 0 14px var(--accent-b); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 950px;
  margin: 34px 0 22px;
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 500;
}

h1 span {
  background: linear-gradient(90deg, var(--text) 15%, #8f8f99 58%, var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy { max-width: 660px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #0a0a0b; background: #f5f5f7; border-color: #f5f5f7; }
.button-primary:hover { background: #fff; }
.button-secondary { background: rgba(255,255,255,.015); }
.button-secondary:hover { border-color: #55555f; }

.split-section {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 720px;
  margin: 0 auto;
  padding: 145px 0;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 110px;
}

.kicker { margin-bottom: 22px; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.section-intro h2, .section-heading h2, .contact-section h2 {
  margin-bottom: 26px;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 500;
}

.section-intro h2 span { color: #686870; }
.section-intro > p:last-child { max-width: 550px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.capability-list article {
  min-height: 136px;
  padding: 26px 2px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.capability-list article:first-child { border-top: 1px solid var(--line); }
.capability-list h3 { margin-bottom: 9px; font-size: 18px; font-weight: 500; }
.capability-list p { margin: 0; color: var(--muted); font-size: 14px; }
.capability-list article > span { color: #56565e; font-size: 20px; }

.projects-section { padding: 140px max(24px, calc((100% - var(--max-width)) / 2)); background: #0a0a0c; border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 54px; display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 360px; color: var(--muted); line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.project-card {
  position: relative;
  min-height: 410px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background .25s ease, transform .25s ease;
}
.project-card:hover { background: var(--surface-hover); transform: translateY(-3px); }
.project-card.featured::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  top: -230px;
  border: 1px solid rgba(103,217,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(109,93,252,.1), inset 0 0 100px rgba(103,217,255,.03);
}
.project-meta { display: flex; justify-content: space-between; color: #5e5e68; font-size: 12px; }
.tag { padding: 6px 9px; border: 1px solid rgba(103,217,255,.25); border-radius: 999px; color: #a8eaff; }
.tag.muted { border-color: var(--line); color: var(--muted); }
.project-label { color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 15px; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.05em; font-weight: 500; }
.project-card p:last-child { max-width: 520px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.card-arrow { position: absolute; right: 28px; bottom: 27px; color: #5d5d67; font-size: 22px; }

.contact-section { min-height: 590px; padding: 155px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.contact-section h2 { margin-bottom: 16px; }
.contact-section > p:not(.kicker) { max-width: 590px; margin-bottom: 34px; color: var(--muted); line-height: 1.6; }

footer {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 110px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand { color: var(--text); }
footer p { margin: 0; }

@media (max-width: 800px) {
  .site-header { width: min(calc(100% - 32px), var(--max-width)); height: 72px; }
  .menu-button { width: 42px; height: 42px; padding: 12px; border: 0; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .menu-button span:not(.sr-only) { width: 100%; height: 1px; background: var(--text); transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; z-index: 10; left: 16px; right: 16px; top: 67px; padding: 22px; border: 1px solid var(--line); background: rgba(10,10,12,.98); display: none; flex-direction: column; gap: 22px; }
  .site-nav.open { display: flex; }
  .hero { min-height: 650px; padding-top: 125px; }
  h1 { letter-spacing: -.055em; }
  .split-section { width: min(calc(100% - 40px), var(--max-width)); padding: 100px 0; grid-template-columns: 1fr; gap: 70px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 360px; }
  footer { width: calc(100% - 40px); }
}

@media (max-width: 520px) {
  .brand span { font-size: 14px; }
  .hero { padding-inline: 20px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .projects-section { padding-block: 100px; }
  .project-card { padding: 24px; }
  .card-arrow { display: none; }
  .contact-section { min-height: 520px; }
  footer { padding: 30px 0; flex-direction: column; align-items: flex-start; gap: 20px; }
}

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