:root {
  --bg: #0b0f14;
  --surface: #111720;
  --surface-2: #151d28;
  --text: #edf3f8;
  --muted: #9aa9b8;
  --line: #25303c;
  --accent: #69b8ff;
  --accent-2: #b7dcff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% 5%, rgba(77, 157, 255, .13), transparent 32rem),
    radial-gradient(circle at 10% 35%, rgba(51, 108, 168, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11, 15, 20, .78);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 700 14px/1 "Space Grotesk", sans-serif;
  background: var(--surface);
}

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: .93rem; }
nav a:hover { color: var(--text); }

.hero {
  min-height: 690px;
  padding: 110px 0 90px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -.03em;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  line-height: .95;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #c7d2dd;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .92rem;
}

.button.primary {
  background: var(--accent);
  color: #07111a;
  border-color: var(--accent);
}

.button.secondary { background: rgba(255,255,255,.02); }
.button:hover { transform: translateY(-1px); }

.hero-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 34, 47, .95), rgba(15, 21, 29, .95));
  box-shadow: 0 22px 70px rgba(0,0,0,.25);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .83rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ee787;
  box-shadow: 0 0 0 5px rgba(126,231,135,.08);
}

.hero-card h2 {
  margin: 22px 0 12px;
  font-size: 1.75rem;
}

.hero-card p { color: var(--muted); }

.projects { padding: 95px 0; }

.section-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.05;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.project.featured {
  padding-top: 0;
  border-top: 0;
}

.project:nth-of-type(odd) .project-media { order: 2; }

.project-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #080b0f;
}

.project-media video {
  height: 100%;
  object-fit: cover;
  background: #080b0f;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(rgba(105,184,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,184,255,.08) 1px, transparent 1px),
    #0c1219;
  background-size: 28px 28px;
  color: var(--muted);
}

.media-placeholder span {
  color: var(--accent-2);
  font: 700 1.05rem/1 "Space Grotesk", sans-serif;
  letter-spacing: .12em;
}

.media-placeholder p { margin: 12px 0 0; font-size: .83rem; }
.project-media.has-video .media-placeholder { display: none; }

.project-meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project h3, .compact-project h3 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.project-copy > p, .compact-project p, .about-copy p { color: #b7c4d0; }

.project ul {
  margin: 18px 0 22px;
  padding-left: 20px;
  color: #cbd5df;
}

.project li { margin: 6px 0; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: #b9c6d2;
  font-size: .78rem;
}

.control-studies {
  margin: 4px 0 42px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17,23,32,.92), rgba(12,17,24,.78));
}

.control-studies-heading {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 26px;
}

.control-studies-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.control-studies-heading > p {
  margin: 0;
  color: var(--muted);
}

.study-group + .study-group {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.study-group-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.study-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
  font: 700 .72rem/1 "Space Grotesk", sans-serif;
  background: rgba(105,184,255,.05);
}

.study-group-heading h4 {
  margin: 0 0 4px;
  font: 600 1.15rem/1.2 "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -.02em;
}

.study-group-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.study-card,
.wide-study-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.study-media {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  aspect-ratio: 16/9;
}

.study-copy {
  padding: 22px;
}

.study-copy h4,
.wide-study-copy h4 {
  margin: 0 0 10px;
  font: 600 1.25rem/1.15 "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -.02em;
}

.study-copy p,
.wide-study-copy p {
  margin: 0;
  color: #b7c4d0;
}

.wide-study-card {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: stretch;
}

.wide-study-media {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  aspect-ratio: 16/9;
}

.wide-study-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.compact-project {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.compact-project h3 { font-size: 1.45rem; }

.about {
  padding: 100px 0 120px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 100px;
  border-top: 1px solid var(--line);
}

.about-copy p:first-child { margin-top: 0; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 80px 0 70px;
  }

  .project,
  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project:nth-of-type(odd) .project-media { order: initial; }
  .control-studies-heading,
  .study-grid,
  .wide-study-card { grid-template-columns: 1fr; }
  .control-studies-heading { gap: 16px; }
  .wide-study-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .compact-grid { grid-template-columns: 1fr; }
  .about { gap: 32px; }
  nav { gap: 16px; }
}

@media (max-width: 560px) {
  .shell, .nav-wrap { width: min(calc(100% - 28px), var(--max)); }
  nav a:first-child { display: none; }
  .hero { padding-top: 64px; }
  .project { padding: 34px 0; }
  .control-studies { padding: 22px; }

  .footer-inner {
    padding: 28px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}