:root {
  --bg: #0E0F12;
  --surface: #16181D;
  --text: #E6E8EC;
  --muted: #9AA0AA;
  --accent: #5EE6C0;
  --accent-2: #6AA0FF;
  --accent-ink: #04241C;
  --line: #23262D;
  --shadow: 0 0 0 1px rgba(94, 230, 192, .14), 0 18px 50px rgba(0, 0, 0, .5);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 84px; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(94,230,192,.05), transparent 480px),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #8af2d6; }

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

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 18, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.brand-dot { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-menu a:hover { color: var(--text); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 24px rgba(94, 230, 192, .25); }
.btn-primary:hover { background: #79efcf; color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 0 32px rgba(94, 230, 192, .4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-nav { padding: 9px 18px; background: var(--accent); color: var(--accent-ink); }
.btn-nav:hover { background: #79efcf; color: var(--accent-ink); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; font-family: var(--mono); }

/* Hero */
.hero { padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.eyebrow { font-family: var(--mono); font-size: .9rem; color: var(--accent); margin: 0 0 1.2rem; letter-spacing: .02em; }
h1 {
  font-weight: 700; letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 1.4rem; max-width: 16ch;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 44ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; color: var(--accent-2); text-transform: uppercase; margin: 0 0 .8rem; }
.section-title { font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 2.5rem; }
.section-note { color: var(--muted); font-size: .95rem; margin: -1.8rem 0 2.5rem; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { border-color: rgba(94, 230, 192, .4); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; margin: 0 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); background: rgba(94, 230, 192, .08); border: 1px solid var(--line);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .6rem; line-height: 1.2; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

.work-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.section-alt .work-card { background: #11131800; background: rgba(14,15,18,.5); }
.work-card:hover { border-color: rgba(94, 230, 192, .4); transform: translateY(-4px); box-shadow: var(--shadow); }
.work-glyph {
  width: 72px; height: 56px; margin: 0 0 16px;
  display: flex; align-items: center; justify-content: flex-start;
}
.work-glyph svg { width: 72px; height: 56px; }
.metric { font-family: var(--mono); color: var(--accent); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .5rem; line-height: 1; }
.work-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .5rem; }
.work-card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Prose */
.prose { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--text); margin: 0 0 1.4rem; line-height: 1.75; }
.prose:last-child { margin-bottom: 0; }

/* CTA */
.section-cta { text-align: center; }
.section-cta .lede { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: .92rem; margin: 0; font-family: var(--mono); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; border-radius: 2px; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 10px 4px; }
  .btn-nav { margin-top: 6px; text-align: center; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .section-note { margin-top: -1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
