:root {
  color-scheme: dark;
  --ink: #f3f8f5;
  --muted: #9fb2ad;
  --soft: #d8e4de;
  --panel: #101a1c;
  --panel-strong: #152326;
  --panel-glass: rgba(15, 27, 30, 0.76);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #31d0bd;
  --accent-2: #ff8a3d;
  --accent-3: #ffd166;
  --danger: #ff5c5c;
  --bg: #071013;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(49, 208, 189, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 61, 0.11), transparent 22rem),
    var(--bg);
  color: var(--ink);
}

body.is-locked {
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 16, 19, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  padding: 120px clamp(18px, 4vw, 48px) 78px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 16, 19, 0.96) 0%, rgba(7, 16, 19, 0.78) 42%, rgba(7, 16, 19, 0.32) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 16, 19, 0) 34%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  width: min(var(--max), 100%);
  min-height: calc(94svh - 198px);
  margin: 0 auto;
}

.hero-content {
  width: min(730px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 12vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 660px;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-founder {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 750;
}

.hero-actions,
.contact-inline,
.tech-list,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
}

.control-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(18, 33, 36, 0.88), rgba(6, 15, 18, 0.84));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.panel-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  color: var(--soft);
  font-size: 0.9rem;
}

.panel-top strong {
  color: var(--accent);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(49, 208, 189, 0.15);
}

.signal-board {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.signal-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.signal-card strong {
  display: block;
  margin: 7px 0 12px;
  font-size: 1.8rem;
}

.bar {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
}

.trace {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  height: 84px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}

.trace span {
  display: block;
  height: var(--h, 42%);
  border-radius: 3px 3px 0 0;
  background: rgba(49, 208, 189, 0.88);
  animation: pulseBar 2.8s ease-in-out infinite;
}

.trace span:nth-child(1) { --h: 34%; animation-delay: -0.2s; }
.trace span:nth-child(2) { --h: 64%; animation-delay: -1.1s; }
.trace span:nth-child(3) { --h: 48%; animation-delay: -0.6s; }
.trace span:nth-child(4) { --h: 76%; animation-delay: -1.6s; background: rgba(255, 138, 61, 0.9); }
.trace span:nth-child(5) { --h: 52%; animation-delay: -0.8s; }
.trace span:nth-child(6) { --h: 70%; animation-delay: -1.3s; }

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 112px) 0;
}

.intro,
.founder,
.tech-stack {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: start;
}

.founder {
  align-items: center;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: end;
  max-width: none;
}

.split-heading > p {
  max-width: 430px;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.service-band article {
  min-height: 250px;
  padding: 28px;
  background: linear-gradient(180deg, var(--panel), rgba(16, 26, 28, 0.75));
}

.service-code {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-weight: 850;
}

.founder-photo-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.founder-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contact-inline {
  gap: 12px;
  margin-top: 22px;
}

.contact-inline a,
.tech-list span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

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

.card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 208, 189, 0.5);
  background: var(--panel-strong);
}

.icon {
  display: inline-grid;
  min-width: 44px;
  min-height: 34px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 6px;
  background: rgba(255, 138, 61, 0.12);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 850;
}

.projects {
  border-block: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--accent);
  background: rgba(49, 208, 189, 0.14);
  color: var(--ink);
}

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

.project-card {
  display: grid;
  min-height: 380px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(16, 26, 28, 0.74));
  transition: opacity 180ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card > span,
.project-card h3,
.project-card p,
.project-card .text-button {
  margin-inline: 24px;
}

.project-card > span {
  display: inline-flex;
  margin-top: 22px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-card p {
  min-height: 82px;
}

.project-visual {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #0a1517;
  background-size: 24px 24px;
}

.project-visual span {
  position: absolute;
  display: block;
  border: 2px solid var(--accent);
  border-radius: 8px;
}

.telemetry-visual span:nth-child(1) { width: 70px; height: 46px; left: 28px; top: 48px; }
.telemetry-visual span:nth-child(2) { width: 84px; height: 4px; left: 98px; top: 68px; border-radius: 4px; background: var(--accent); }
.telemetry-visual span:nth-child(3) { width: 70px; height: 70px; right: 42px; top: 38px; border-radius: 50%; border-color: var(--accent-2); }
.telemetry-visual span:nth-child(4) { width: 10px; height: 10px; right: 72px; top: 68px; background: var(--accent-2); }

.relay-visual span:nth-child(1) { width: 86px; height: 52px; left: 32px; top: 48px; border-color: var(--accent-2); }
.relay-visual span:nth-child(2) { width: 34px; height: 34px; right: 54px; top: 32px; border-radius: 50%; }
.relay-visual span:nth-child(3) { width: 34px; height: 34px; right: 54px; bottom: 32px; border-radius: 50%; }
.relay-visual span:nth-child(4) { width: 150px; height: 4px; left: 120px; top: 72px; border-radius: 4px; background: var(--accent); }

.energy-visual span:nth-child(1) { width: 180px; height: 86px; left: 34px; top: 34px; border-color: rgba(49, 208, 189, 0.5); }
.energy-visual span:nth-child(2) { width: 26px; height: 68px; left: 64px; bottom: 28px; background: var(--accent); }
.energy-visual span:nth-child(3) { width: 26px; height: 92px; left: 112px; bottom: 28px; background: var(--accent-3); border-color: var(--accent-3); }
.energy-visual span:nth-child(4) { width: 26px; height: 52px; left: 160px; bottom: 28px; background: var(--accent-2); border-color: var(--accent-2); }

.fixture-visual span:nth-child(1) { width: 92px; height: 68px; left: 42px; top: 42px; }
.fixture-visual span:nth-child(2) { width: 56px; height: 56px; right: 76px; top: 44px; border-color: var(--accent-2); }
.fixture-visual span:nth-child(3) { width: 140px; height: 4px; left: 134px; top: 72px; border-radius: 4px; background: var(--accent); }
.fixture-visual span:nth-child(4) { width: 14px; height: 14px; right: 97px; top: 65px; background: var(--accent-2); }

.text-button {
  justify-self: start;
  align-self: end;
  min-height: 40px;
  margin-bottom: 24px;
  border: 0;
  border-bottom: 1px solid rgba(49, 208, 189, 0.55);
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.systems {
  padding-bottom: 0;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.system-map div {
  position: relative;
  min-height: 210px;
  padding: 24px;
  background: var(--panel);
}

.system-map div + div {
  border-left: 1px solid var(--line);
}

.system-map strong {
  display: block;
  color: var(--accent-2);
  margin-bottom: 42px;
}

.system-map span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.system-map small {
  color: var(--muted);
  line-height: 1.55;
}

.tech-list {
  gap: 10px;
}

.tech-list span {
  min-height: 42px;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.steps span {
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 72px;
  padding: clamp(36px, 6vw, 60px);
  border: 1px solid rgba(49, 208, 189, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(49, 208, 189, 0.13), rgba(255, 138, 61, 0.09));
}

.contact-actions {
  justify-content: flex-end;
  gap: 12px;
}

.contact h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(26px, 5vw, 42px);
  background: var(--panel-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.modal-card h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.modal-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes pulseBar {
  0%, 100% { transform: scaleY(0.72); opacity: 0.68; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
  .hero-grid,
  .intro,
  .founder,
  .tech-stack,
  .contact,
  .split-heading {
    grid-template-columns: 1fr;
  }

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

  .contact-actions,
  .filter-bar {
    justify-content: flex-start;
  }

  .capability-grid,
  .service-band,
  .steps,
  .system-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .system-map div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .system-map div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    background: rgba(7, 16, 19, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 73px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 5.8rem);
  }

  .capability-grid,
  .service-band,
  .steps,
  .system-map {
    grid-template-columns: 1fr;
  }

  .system-map div + div,
  .system-map div:nth-child(3),
  .system-map div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer {
    display: grid;
  }
}
