:root {
  --bg: #000000;
  --panel: #050505;
  --panel-2: #090909;
  --text: #ffffff;
  --muted: rgba(255,255,255,.72);
  --soft: rgba(255,255,255,.48);
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand img {
  width: 168px;
  height: auto;
  filter: invert(1);
}
.main-nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.main-nav a { color: rgba(255,255,255,.78); }
.main-nav a:hover { color: #fff; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 28px 90px;
  background: #000;
}
.hero-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.hero-logo {
  width: min(420px, 78vw);
  margin: 0 auto 42px;
  filter: invert(1);
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(255,255,255,.62);
}
h1, h2, h3 {
  margin: 0;
  font-weight: 500;
}
h1, h2, h3, .software-list span, .contact-email {
  font-family: "Playfair Display", serif;
}
h1 {
  max-width: 950px;
  margin: 0 auto;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: -.03em;
}
.hero-copy {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
}

.section {
  padding: 100px max(28px, calc((100vw - var(--max)) / 2));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.section-heading,
.section-copy {
  max-width: 840px;
}
.section-heading { margin-bottom: 50px; }
h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.project-card {
  min-height: 250px;
  padding: 34px 28px 32px 0;
}
.project-card + .project-card {
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}
.project-meta {
  margin-bottom: 30px;
  color: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}
.project-card h3 {
  font-size: 36px;
}
.project-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.software-list {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.software-list span {
  padding: 22px 18px 22px 0;
  font-size: 22px;
}
.software-list span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.contact {
  padding-bottom: 120px;
}
.contact-email {
  display: inline-block;
  margin-top: 30px;
  font-size: clamp(28px, 3.8vw, 46px);
  border-bottom: 1px solid rgba(255,255,255,.34);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--soft);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    height: 74px;
    padding: 0 22px;
  }
  .brand img { width: 144px; }
  .menu-toggle { display: block; font-size: 12px; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 18px 22px 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    background: #000;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .hero {
    min-height: auto;
    padding: 126px 24px 74px;
  }
  .section {
    padding: 76px 24px;
  }
  .project-grid { grid-template-columns: 1fr; }
  .project-card {
    min-height: auto;
    padding: 28px 0;
  }
  .project-card + .project-card {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .software-list { grid-template-columns: 1fr 1fr; }
  .software-list span {
    padding: 18px 14px 18px 0;
    font-size: 20px;
  }
  .software-list span + span { padding-left: 14px; }
  .software-list span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-left: 0;
  }
  .software-list span:nth-child(4) {
    border-top: 1px solid var(--line-strong);
  }
  .site-footer {
    margin: 0 24px;
    padding: 24px 0 34px;
  }
}

@media (max-width: 560px) {
  h1 { font-size: 39px; }
  .hero-copy { font-size: 17px; }
  .software-list { grid-template-columns: 1fr; }
  .software-list span,
  .software-list span + span,
  .software-list span:nth-child(3),
  .software-list span:nth-child(4) {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .software-list span:first-child { border-top: 0; }
  .site-footer { flex-direction: column; }
}
