@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #06101c;
  --bg-2: #0a1828;
  --panel: #0d1c2e;
  --line: rgba(126, 196, 255, 0.16);
  --text: #eef5ff;
  --muted: #9db0c7;
  --accent: #3aa9ff;
  --accent-2: #7ee0ff;
  --danger: #ff6b7d;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: #fff; color: #06101c;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(6, 16, 28, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 16, 28, 0.94);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand img { width: 72px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.08em; }
.brand-text small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 0.35rem 1.1rem; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; margin: 6px 8px;
  transition: transform 0.2s, opacity 0.2s;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  gap: 3rem;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  opacity: 0.45;
  pointer-events: none;
}
.hero-copy, .hero-facts { position: relative; z-index: 1; }
.hero-copy { max-width: 38rem; }
.hero h1, .page-hero h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0.3rem 0 1rem;
}
.hero h1 { font-size: clamp(1.9rem, 6.2vw, 4.6rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-2);
  margin: 0;
}
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-note { color: var(--muted); font-size: 0.92rem; }

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.hero-facts div {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.hero-facts dt { color: var(--muted); font-size: 0.8rem; }
.hero-facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #041018; }
.btn-primary:hover { background: var(--accent-2); color: #041018; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-2); color: #fff; }

.band, .split, .cta-band, .stack, .prose, .two-col, .page-hero, .wide-media {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.page-hero { padding: 4.5rem 0 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }

.section-head { max-width: 38rem; margin-bottom: 2.5rem; }
.band { padding: 4.5rem 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card, .panel, .contact-card, .stack-item {
  background: linear-gradient(180deg, rgba(58,169,255,0.07), rgba(13,28,46,0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover, .contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 224, 255, 0.45);
}
.idx {
  font-family: var(--display);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}
.section-more { margin-top: 2rem; }
.text-link { font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 5rem;
}
.split-media img, .wide-media img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.wide-media { padding: 1rem 0 3rem; }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  margin: 0 auto 4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(58,169,255,0.25), transparent 40%),
    var(--panel);
  border: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 0.4rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }

.stack { display: grid; gap: 1rem; padding: 1rem 0 4rem; }
.stack-item { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; }
.prose { max-width: 46rem; padding-bottom: 2rem; }
.prose p, .prose li { color: #d5e3f3; }
.prose ul { padding-left: 1.2rem; }
.prose code {
  font-size: 0.9em;
  background: #081421;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 1rem 0 4.5rem;
}
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.contact-card {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 0.35rem;
}
.contact-card span { color: var(--muted); font-size: 0.82rem; }

.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.92rem; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #081421;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: auto; margin-top: 0.25rem; }
.form-error { color: var(--danger); }
.form-status { min-height: 1.4em; color: var(--accent-2); }
.inline-form { margin-top: 1rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--bg-2);
}
.footer-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--accent-2); }
.footer-lead { font-family: var(--display); font-size: 1.3rem; margin: 0 0 0.6rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--accent-2); }
.footer-copy {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: none;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 76px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #0b1a2c;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  body.nav-open .nav { display: flex; }
  .nav a::after { display: none; }
  .service-grid, .split, .two-col, .footer-grid, .hero-facts {
    grid-template-columns: 1fr;
  }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in, .btn, .service-card { transition: none; transform: none; opacity: 1; }
}
