:root {
  color-scheme: dark;
  --bg: #080d0a;
  --bg-2: #101510;
  --bg-3: #15120d;
  --ink: #f4f1e8;
  --muted: #aeb8aa;
  --soft: rgba(244, 241, 232, 0.1);
  --line: rgba(244, 241, 232, 0.16);
  --lime: #b9ff61;
  --teal: #18d3bf;
  --amber: #ffba4b;
  --rose: #ff4f7e;
  --violet: #a276ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::selection {
  background: rgba(185, 255, 97, 0.35);
  color: var(--ink);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--teal), var(--amber));
  box-shadow: 0 0 22px rgba(24, 211, 191, 0.8);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 90;
  width: min(calc(100% - 32px), var(--max));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(8, 13, 10, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(185, 255, 97, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(185, 255, 97, 0.22), rgba(24, 211, 191, 0.12)),
    rgba(255, 255, 255, 0.05);
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  overflow: hidden;
  padding: 2px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(244, 241, 232, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a {
  min-width: 86px;
  padding: 8px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(185, 255, 97, 0.12);
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #101510;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.section-band {
  position: relative;
  padding: 110px 24px;
  scroll-margin-top: 104px;
}

.hero {
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding-top: 132px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(185, 255, 97, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 18%, rgba(255, 186, 75, 0.14), transparent 22rem),
    linear-gradient(135deg, #050705 0%, #0f130d 42%, #171008 100%);
}

#threat-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 10, 0.95), rgba(8, 13, 10, 0.62) 46%, rgba(8, 13, 10, 0.3)),
    linear-gradient(0deg, rgba(8, 13, 10, 0.96), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto 150px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-title {
  max-width: 880px;
  margin: 0;
  font-size: 6.4rem;
  line-height: 0.96;
  font-weight: 800;
  text-wrap: balance;
}

.hero-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  background: rgba(10, 16, 12, 0.68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.hero-identity img {
  width: 72px;
  height: 72px;
  display: block;
  border: 1px solid rgba(185, 255, 97, 0.5);
  border-radius: 50%;
  object-fit: cover;
}

.hero-identity span,
.hero-identity strong {
  display: block;
  line-height: 1.2;
}

.hero-identity span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.hero-identity strong {
  margin-top: 4px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-statement {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  text-wrap: balance;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

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

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--lime), var(--teal));
  color: #07100c;
  box-shadow: 0 16px 44px rgba(24, 211, 191, 0.22);
}

.button-secondary {
  border-color: rgba(244, 241, 232, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(185, 255, 97, 0.46);
  background: rgba(185, 255, 97, 0.1);
}

.signal-board {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 36px;
  z-index: 3;
  display: grid;
  width: min(620px, calc(100% - 48px));
  grid-template-columns: 0.8fr 1.4fr 1fr;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  background: rgba(10, 16, 12, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.signal-board > div {
  min-height: 88px;
  padding: 18px;
  border-right: 1px solid rgba(244, 241, 232, 0.12);
}

.signal-board > div:last-child {
  border-right: 0;
}

.signal-label {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signal-board strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.35;
}

.expertise {
  background:
    linear-gradient(180deg, var(--bg) 0%, #0d1511 100%),
    var(--bg);
}

.section-heading {
  width: min(100%, var(--max));
  margin: 0 auto 44px;
}

.section-heading h2,
.method-copy h2,
.contact-content h2 {
  max-width: 820px;
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.04;
  font-weight: 800;
  text-wrap: balance;
}

.capability-grid,
.project-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-card,
.project-card,
.stack-panel,
.method-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.capability-card {
  min-height: 318px;
  padding: 22px;
}

.card-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 255, 97, 0.35);
  border-radius: 8px;
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.capability-card h3,
.project-card h3,
.stack-panel h3 {
  margin: 24px 0 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.capability-card p,
.project-card p,
.method-copy p,
.method-step p,
.contact-content p {
  margin: 0;
  color: var(--muted);
}

.stack {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 79, 126, 0.12), transparent 22rem),
    radial-gradient(circle at 92% 52%, rgba(255, 186, 75, 0.13), transparent 24rem),
    #11120d;
}

.stack-layout {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stack-panel {
  padding: 24px;
}

.stack-panel h3 {
  margin-top: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span,
.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: #dfe5d7;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: 42px;
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  background:
    linear-gradient(180deg, #080d0a, #11100d),
    var(--bg);
}

.method-copy {
  align-self: start;
  position: sticky;
  top: 128px;
  padding: 0 0 0 24px;
}

.method-copy p {
  max-width: 520px;
  margin-top: 20px;
}

.method-steps {
  display: grid;
  gap: 14px;
  padding-right: 24px;
}

.method-step {
  min-height: 148px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px;
}

.method-step span {
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.projects {
  background:
    radial-gradient(circle at 12% 30%, rgba(24, 211, 191, 0.12), transparent 22rem),
    linear-gradient(180deg, #11100d, #0c1010);
}

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

.project-card {
  min-height: 320px;
  padding: 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-card:hover {
  border-color: rgba(185, 255, 97, 0.36);
  background:
    linear-gradient(180deg, rgba(185, 255, 97, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 32px;
  font-size: 1.55rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.proof {
  padding-top: 58px;
  padding-bottom: 58px;
  background: #15120d;
}

.proof-strip {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 186, 75, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 186, 75, 0.14), rgba(24, 211, 191, 0.07)),
    rgba(255, 255, 255, 0.04);
}

.proof-strip div {
  min-height: 120px;
  padding: 26px;
  border-right: 1px solid rgba(244, 241, 232, 0.12);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  color: var(--lime);
  font-size: 2rem;
  line-height: 1;
}

.proof-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.contact {
  min-height: 70svh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 74% 22%, rgba(162, 118, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 16% 80%, rgba(185, 255, 97, 0.1), transparent 22rem),
    #080d0a;
}

.contact-layout {
  width: min(100%, 980px);
  margin: 0 auto;
}

.contact-content {
  min-width: 0;
}

.contact-content h2 {
  max-width: 900px;
}

.contact-content p {
  max-width: 640px;
  margin-top: 24px;
  font-size: 1.08rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 8, 6, 0.76);
  backdrop-filter: blur(18px);
}

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

.contact-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100svh - 44px);
  overflow: auto;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  cursor: pointer;
  font: 800 1.35rem "Inter", Arial, sans-serif;
  line-height: 1;
}

.contact-form {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(9, 15, 11, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.form-header {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
}

.form-header span,
.form-header strong {
  display: block;
}

.form-header span {
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-header strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: 600 0.95rem "Inter", Arial, sans-serif;
  letter-spacing: 0;
  outline: 0;
  padding: 12px 13px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(174, 184, 170, 0.72);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(185, 255, 97, 0.62);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 3px rgba(185, 255, 97, 0.12);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  border-top: 1px solid rgba(244, 241, 232, 0.12);
  background: #070a08;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .section-band {
    scroll-margin-top: 224px;
  }

  .site-header {
    top: 12px;
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
  }

  .brand {
    margin-right: auto;
  }

  .header-cta {
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: space-between;
  }

  .main-nav a {
    min-width: max-content;
  }

  .hero {
    padding-top: 174px;
  }

  .hero-content {
    margin-bottom: 190px;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-statement {
    font-size: 1.65rem;
  }

  .capability-grid,
  .stack-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method {
    display: block;
    width: 100%;
  }

  .method-copy {
    position: relative;
    top: auto;
    width: min(100%, var(--max));
    margin: 0 auto 34px;
    padding: 0 24px;
  }

  .method-steps {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 0 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .section-band {
    padding: 86px 18px;
  }

  .hero {
    min-height: auto;
    display: block;
    padding-top: 186px;
    padding-bottom: 36px;
  }

  .hero-content {
    margin-bottom: 34px;
  }

  .hero-title,
  .section-heading h2,
  .method-copy h2,
  .contact-content h2 {
    font-size: 2.55rem;
  }

  .hero-statement {
    font-size: 1.3rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .signal-board {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .signal-board > div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  }

  .signal-board > div:last-child {
    border-bottom: 0;
  }

  .capability-grid,
  .stack-layout,
  .project-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

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

  .method-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proof-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .brand {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .header-cta {
    display: none;
  }

  .hero-title,
  .section-heading h2,
  .method-copy h2,
  .contact-content h2 {
    font-size: 2.1rem;
  }

  .hero-identity {
    display: flex;
    width: 100%;
  }

  .hero-identity img {
    width: 64px;
    height: 64px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
