:root {
  --bg: #0d0f13;
  --surface: #1a1d22;
  --surface-2: #242933;
  --accent: #0a66ff;
  --accent-soft: #5a9cff;
  --text: #e5e7eb;
  --white: #ffffff;
  --muted: #a6adb8;
  --line: rgba(229, 231, 235, 0.13);
  --shadow: rgba(10, 102, 255, 0.22);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(10, 102, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.07), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, #090b0f 48%, var(--bg) 100%);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(229, 231, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(13, 15, 19, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(13, 15, 19, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max-width));
  min-height: 76px;
  margin: 0 auto;
}

.brand,
.footer-brand,
h1,
h2,
h3,
.eyebrow,
.button,
.panel-topline,
.telemetry,
.status-grid strong,
.pillars-grid span,
.card-index,
.status-badge,
.capability-icon,
.about-stats span {
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 1px solid rgba(229, 231, 235, 0.18);
  background: linear-gradient(135deg, rgba(10, 102, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 34px rgba(10, 102, 255, 0.2);
}

.brand-name {
  color: var(--white);
  font-size: 0.96rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links.is-static {
  display: flex;
}

.nav-links a {
  border: 1px solid transparent;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  border-color: rgba(10, 102, 255, 0.38);
  color: var(--white);
  background: rgba(10, 102, 255, 0.1);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(26, 29, 34, 0.86);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 430px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - 76px);
  padding-top: 64px;
}

.hero-grid {
  position: absolute;
  inset: 42px -120px auto auto;
  width: 560px;
  height: 420px;
  border: 1px solid rgba(10, 102, 255, 0.18);
  background:
    linear-gradient(rgba(10, 102, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 102, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  transform: perspective(700px) rotateX(58deg) rotateZ(-28deg);
  transform-origin: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(3rem, 8.8vw, 6.45rem);
  font-weight: 900;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-statement {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--white);
  font-family: Orbitron, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.45rem, 3.3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(10, 102, 255, 0.72);
  padding: 0 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), #6ca7ff);
  box-shadow: 0 16px 42px var(--shadow);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 20px 52px rgba(10, 102, 255, 0.3);
  outline: none;
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 520px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(10, 102, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(26, 29, 34, 0.96), rgba(12, 24, 45, 0.78)),
    linear-gradient(rgba(229, 231, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.045) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow: inset 0 0 50px rgba(10, 102, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.36);
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 102, 255, 0.14), transparent);
  animation: scan 5s linear infinite;
}

.panel-topline,
.telemetry {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-logo-stage {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
}

.hero-logo-stage::before,
.hero-logo-stage::after,
.logo-ring {
  position: absolute;
  content: "";
  border: 1px solid rgba(229, 231, 235, 0.14);
  transform: rotate(45deg);
}

.hero-logo-stage::before {
  width: 196px;
  height: 196px;
  border-color: rgba(10, 102, 255, 0.36);
}

.hero-logo-stage::after {
  width: 270px;
  height: 270px;
}

.logo-ring {
  width: 330px;
  height: 108px;
  border-color: rgba(10, 102, 255, 0.22);
  transform: rotate(-16deg);
}

.hero-logo-stage img {
  position: relative;
  z-index: 1;
  width: min(42vw, 185px);
  filter: drop-shadow(0 18px 42px rgba(10, 102, 255, 0.28));
}

.status-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
}

.status-grid div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(229, 231, 235, 0.12);
  padding: 12px 14px;
  background: rgba(13, 15, 19, 0.5);
}

.status-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-grid strong {
  color: var(--white);
  font-size: 0.78rem;
  text-align: right;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.pillars-section {
  padding-top: 34px;
}

.pillars-grid,
.project-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.pillars-grid article {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(26, 29, 34, 0.96), rgba(13, 15, 19, 0.74)),
    linear-gradient(rgba(10, 102, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 102, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
}

.pillars-grid article::after {
  position: absolute;
  right: -34px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(10, 102, 255, 0.22);
  transform: rotate(45deg);
}

.pillars-grid span,
.card-index {
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.pillars-grid h3 {
  margin: 66px 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.pillars-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.project-card,
.capability-grid article,
.about-stats,
.contact-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 29, 34, 0.96), rgba(26, 29, 34, 0.72));
}

.project-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 26px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card-link {
  color: inherit;
}

.project-card.flagship {
  border-color: rgba(10, 102, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(10, 102, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(26, 29, 34, 0.98), rgba(26, 29, 34, 0.76));
  box-shadow: inset 0 0 42px rgba(10, 102, 255, 0.08);
}

.project-card:hover {
  border-color: rgba(10, 102, 255, 0.46);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
}

.status-badge {
  border: 1px solid rgba(10, 102, 255, 0.4);
  padding: 5px 8px;
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
  background: rgba(10, 102, 255, 0.12);
}

.status-badge.live {
  border-color: rgba(229, 231, 235, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.flagship-badge {
  border-color: rgba(10, 102, 255, 0.72);
  background: rgba(10, 102, 255, 0.22);
}

.project-category {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-subtitle {
  margin: -4px 0 18px;
  color: var(--text);
  font-weight: 800;
}

.project-card p,
.capability-grid p,
.about-copy p,
.contact-section h2,
.site-footer {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(229, 231, 235, 0.12);
  padding: 5px 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(13, 15, 19, 0.42);
}

.capability-band {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(20px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(26, 29, 34, 0.36);
}

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

.capability-grid article {
  min-height: 250px;
  padding: 24px;
}

.capability-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(10, 102, 255, 0.38);
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 900;
  background: rgba(10, 102, 255, 0.1);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: start;
}

.about-copy p {
  max-width: 760px;
  font-size: 1.04rem;
}

.about-stats {
  display: grid;
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.about-stats div {
  padding: 24px;
  background: var(--surface);
}

.about-stats span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.about-stats p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 52px;
  padding: 34px;
}

.contact-section h2 {
  max-width: 660px;
  margin: 0;
}

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

.contact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(10, 102, 255, 0.36);
  padding: 0 16px;
  color: var(--white);
  background: rgba(10, 102, 255, 0.1);
  font-weight: 800;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(10, 102, 255, 0.72);
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 0 0 36px;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid rgba(229, 231, 235, 0.16);
  background: rgba(10, 102, 255, 0.12);
}

.project-page {
  min-height: 100vh;
}

.subpage-header {
  border-bottom-color: var(--line);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-top: 88px;
}

.project-detail-hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 9vw, 6.6rem);
}

.project-detail-subtitle {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
}

.project-context {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-meta-panel {
  border: 1px solid rgba(10, 102, 255, 0.34);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(26, 29, 34, 0.96), rgba(12, 24, 45, 0.78)),
    linear-gradient(rgba(229, 231, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.045) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.project-meta-panel img {
  width: 92px;
  margin-bottom: 26px;
  filter: drop-shadow(0 18px 42px rgba(10, 102, 255, 0.28));
}

.project-meta-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.project-meta-panel dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-meta-panel dd {
  margin: 2px 0 0;
  color: var(--white);
  font-weight: 800;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: start;
  padding-top: 24px;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.detail-card,
.technology-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: linear-gradient(180deg, rgba(26, 29, 34, 0.96), rgba(26, 29, 34, 0.72));
}

.detail-card h2,
.technology-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.detail-list,
.technology-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li,
.technology-list li {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.technology-card {
  position: sticky;
  top: 100px;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(10, 102, 255, 0.36);
  padding: 0 14px;
  color: var(--white);
  background: rgba(10, 102, 255, 0.1);
  font-weight: 800;
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(100%);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  h1,
  .hero-statement {
    max-width: 760px;
  }

  .hero-panel {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    padding: 10px;
    background: rgba(13, 15, 19, 0.96);
  }

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

  .nav-links.is-static {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .nav-links a {
    padding: 12px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-panel {
    min-height: 440px;
  }

  .pillars-grid,
  .capability-grid,
  .about-section {
    grid-template-columns: 1fr;
  }

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

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

  .technology-card {
    position: static;
  }

  .card-topline {
    margin-bottom: 34px;
  }

  .about-section {
    gap: 26px;
  }

  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .subpage-nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links.is-static {
    justify-content: flex-start;
  }

  .brand-name {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4.5rem);
  }

  h2 {
    font-size: 2rem;
  }

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

  .hero-panel {
    min-height: 410px;
    padding: 18px;
  }

  .hero-logo-stage {
    min-height: 210px;
  }

  .hero-logo-stage::before {
    width: 145px;
    height: 145px;
  }

  .hero-logo-stage::after {
    width: 198px;
    height: 198px;
  }

  .logo-ring {
    width: 230px;
    height: 82px;
  }

  .hero-logo-stage img {
    width: 124px;
  }

  .status-grid div {
    display: grid;
    gap: 3px;
  }

  .status-grid strong {
    text-align: left;
  }

  .telemetry {
    display: grid;
    gap: 8px;
  }

  .contact-section {
    padding: 24px;
  }

  .card-topline,
  .status-grid div {
    align-items: flex-start;
  }

  .status-badge {
    max-width: 150px;
  }
}
