:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #10151d;
  --panel: #141a22;
  --panel-2: #1b2028;
  --text: #f2f5f0;
  --muted: #aeb8b3;
  --line: rgba(242, 245, 240, 0.16);
  --green: #8cff9c;
  --green-on-light: #075f34;
  --cyan: #7ce7ff;
  --amber: #ffce73;
  --red: #ff7777;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  z-index: 0;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 160ms ease, padding 160ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(7, 9, 13, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(140, 255, 156, 0.55);
  background: rgba(140, 255, 156, 0.09);
  color: var(--green);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover,
.project-card a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(28px, 5vw, 64px);
  padding: 140px clamp(18px, 5vw, 64px) 70px;
  isolation: isolate;
}

.hero-art,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(1.06) contrast(1.05);
  z-index: -3;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.96) 0%, rgba(7, 9, 13, 0.78) 45%, rgba(7, 9, 13, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.28), rgba(7, 9, 13, 0.92));
  z-index: -2;
}

.hero-content {
  max-width: 900px;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

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

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

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #061006;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

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

.status-panel {
  width: 100%;
  border: 1px solid rgba(124, 231, 255, 0.28);
  background: rgba(10, 15, 20, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-body {
  padding: 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.terminal-body p {
  margin-bottom: 12px;
}

.terminal-body b {
  color: var(--cyan);
}

.band {
  background: #edf1e8;
  color: #10151d;
}

.band .section-kicker,
.section:not(.dark) .section-kicker {
  color: var(--green-on-light);
}

.section,
.intro,
.cta {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 64px);
  background: #f3f5ef;
  color: #10151d;
}

.section.dark {
  background: var(--bg-2);
  color: var(--text);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro {
  padding: 60px clamp(18px, 5vw, 64px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.intro h2 {
  margin-bottom: 0;
}

.intro p:last-child {
  color: #3c453f;
  font-size: 1.04rem;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.profile-links a {
  display: grid;
  gap: 3px;
  min-width: 168px;
  padding: 12px 14px;
  border: 1px solid rgba(140, 255, 156, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 255, 156, 0.52);
  background: rgba(140, 255, 156, 0.08);
}

.profile-links span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-links strong {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.service-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.project-card {
  border: 1px solid rgba(16, 21, 29, 0.16);
  background: #ffffff;
  padding: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.service-code {
  color: #6f7b73;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  margin-bottom: 28px;
}

.service-card p,
.project-card p,
.process-list p,
.cta p {
  color: #526057;
}

.service-card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: #333d36;
  font-weight: 600;
}

.service-card li + li {
  margin-top: 8px;
}

.service-card li::before {
  content: "+ ";
  color: var(--green-on-light);
  font-family: "JetBrains Mono", monospace;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-color: rgba(242, 245, 240, 0.14);
  color: var(--text);
}

.project-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(140, 255, 156, 0.18), rgba(124, 231, 255, 0.08)),
    var(--panel);
}

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

.project-card a {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 12px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 86px);
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(16, 21, 29, 0.14);
}

.process-list span {
  color: var(--green-on-light);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.cta {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(140, 255, 156, 0.1), rgba(124, 231, 255, 0.08)),
    #0b0f14;
}

.cta-inner {
  width: min(940px, 100%);
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 18px;
}

.cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  background: #05070a;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    min-height: auto;
  }

  .status-panel {
    max-width: 560px;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .section-heading.split {
    display: block;
  }

  .profile-links {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .profile-links a {
    flex: 1 1 190px;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .service-card,
  .project-card {
    min-height: auto;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
