:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-strong: #02070b;
  --panel: rgba(9, 22, 31, 0.78);
  --panel-solid: #0b1821;
  --text: #edf7fb;
  --muted: #a7b8c2;
  --line: rgba(162, 239, 255, 0.18);
  --cyan: #35d9ff;
  --blue: #4977ff;
  --lime: #b8ff47;
  --amber: #ffc95b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1160px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 16, 22, 0.2), var(--bg) 82%),
    radial-gradient(circle at 12% 18%, rgba(53, 217, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 42%, rgba(184, 255, 71, 0.1), transparent 26rem),
    var(--bg);
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg-strong);
  padding: 0.65rem 0.8rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 7, 11, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(53, 217, 255, 0.55);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(53, 217, 255, 0.22), rgba(184, 255, 71, 0.12));
  color: var(--text);
  font-size: 0.8rem;
  box-shadow: 0 0 30px rgba(53, 217, 255, 0.2);
}

.nav {
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  padding: 0.45rem 0;
  transition:
    color 180ms ease,
    border-color 180ms ease;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  border-color: var(--cyan);
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 4rem) 4vw 4.5rem;
}

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

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.98) 0%, rgba(2, 7, 11, 0.78) 40%, rgba(2, 7, 11, 0.16) 76%),
    linear-gradient(180deg, rgba(2, 7, 11, 0.1) 60%, var(--bg) 100%);
}

.hero-content {
  align-self: center;
  width: min(720px, 100%);
  padding-top: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #d3e4eb;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--cyan);
  color: #031015;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.section {
  padding: 6rem 4vw;
}

.section-intro {
  padding-top: 2.4rem;
}

.section-grid,
.section-heading,
.capability-grid,
.contact-panel {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-heading {
  max-width: var(--max);
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  max-width: 780px;
}

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

.capability-card {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.capability-card:nth-child(2) {
  border-color: rgba(184, 255, 71, 0.25);
}

.capability-card:nth-child(3) {
  border-color: rgba(255, 201, 91, 0.24);
}

.card-index {
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.capability-card:nth-child(2) .card-index {
  color: var(--lime);
}

.capability-card:nth-child(3) .card-index {
  color: var(--amber);
}

.capability-card p,
.principle p {
  color: var(--muted);
}

.approach {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.principles {
  display: grid;
  gap: 0.8rem;
}

.principle {
  border-left: 2px solid var(--cyan);
  padding: 0.15rem 0 0.15rem 1rem;
}

.principle:nth-child(2) {
  border-color: var(--lime);
}

.principle:nth-child(3) {
  border-color: var(--amber);
}

.principle span {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 800;
}

.contact-section {
  padding: 6rem 4vw 4rem;
}

.contact-panel {
  border: 1px solid rgba(53, 217, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(53, 217, 255, 0.08), rgba(184, 255, 71, 0.05)),
    var(--panel-solid);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin-bottom: 0.75rem;
}

address {
  color: #d0e0e7;
  font-style: normal;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 4vw 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@media (max-width: 900px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 230px;
  }

  .card-index {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    align-items: flex-start;
    gap: 0.8rem;
    min-height: auto;
    padding: 0.75rem 4vw;
    flex-direction: column;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
    font-size: 0.72rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 2.4rem;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(2, 7, 11, 0.98) 0%, rgba(2, 7, 11, 0.78) 70%, rgba(2, 7, 11, 0.22) 100%),
      linear-gradient(180deg, rgba(2, 7, 11, 0.08) 60%, var(--bg) 100%);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .contact-section {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
