@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --bg: #000000;
  --bg-deep: #000000;
  --panel: rgba(7, 18, 40, 0.72);
  --panel-soft: rgba(11, 28, 60, 0.45);
  --line: rgba(66, 134, 255, 0.22);
  --line-soft: rgba(120, 176, 255, 0.16);
  --text: rgba(245, 241, 232, 0.95);
  --text-glow: rgba(245, 241, 232, 0.25);
  --muted: rgba(180, 203, 235, 0.72);
  --muted-2: rgba(158, 182, 219, 0.58);
  --blue: #2f86ff;
  --blue-soft: #86bcff;
  --radius: 14px;
  --radius-lg: 22px;
  --header-height: 62px;
  --gard-glow-1: rgba(0, 187, 255, 0.33);
  --gard-glow-2: rgba(0, 187, 255, 0.66);
  --gard-glow-final: #90c9e5;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  background: #000000;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(1px 1px at 25% 35%, rgba(220, 235, 255, 0.42), transparent 55%), radial-gradient(1px 1px at 70% 18%, rgba(220, 235, 255, 0.35), transparent 55%), radial-gradient(1px 1px at 42% 74%, rgba(220, 235, 255, 0.25), transparent 55%);
  opacity: 0.42;
}

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

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

img.blueish {
  filter: hue-rotate(-140deg) saturate(1.15) contrast(1.1);
}

.universe {
  position: relative;
  min-height: 80vh;
}

.universe::before {
  content: "";
  position: fixed;
  inset: -20% 0;
  /* make it taller so moving doesn't show gaps */
  z-index: -1;
  background: #000000 url('./bg-full.jpg');
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  top: calc(var(--header-height) * -1 - 20px);
}

#top::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, black 0%, transparent min(60px, 5vw), transparent calc(100% - min(60px, 5vw)), black 100%);
  z-index: -1;
  height: 100%;
  width: 100%;
  max-width: 1024px;
  top: 0;
  margin: 0 auto;
}

#top {
  backdrop-filter: blur(0.66px);
  margin-top: -64px;
}

/* ====== Option C: Scroll-driven animation (no JS) ======
    Supported in modern Chromium-based browsers and increasingly elsewhere.
    If unsupported, fallback stays in place.
*/
@supports (animation-timeline: view()) {

  /* IMPORTANT:
      When we animate transform, the ::before layer should not rely on fixed bg attachment.
      We'll disable the fallback technique to avoid weird combos.
  */
  .universe::before {
    background-attachment: scroll;
    will-change: transform;

    /* Animate transform based on element's position in the viewport */
    animation-name: parallaxMove;
    animation-timing-function: linear;
    animation-fill-mode: both;

    /* Tie animation to the element entering/leaving viewport */
    animation-timeline: view();
    /* When section enters (0%) to exits (100%) */
    animation-range: entry 0% exit 100%;
  }

  /* Move background a bit upward while scrolling.
      Increase/decrease 120px for stronger/weaker parallax.
  */
  @keyframes parallaxMove {
    from {
      transform: translateY(120px);
    }

    to {
      transform: translateY(-120px);
    }
  }
}

.container {
  width: min(980px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(2, 8, 20, 0.66);
  border-bottom: 1px solid rgba(80, 140, 230, 0.18);
}

.site-header.header-managed {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.site-header.header-managed.header-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, #f9fdff, #45a1ff 45%, rgba(69, 161, 255, 0.2) 72%);
  box-shadow: 0 0 0 5px rgba(69, 161, 255, 0.14), 0 0 24px rgba(69, 161, 255, 0.44);
}

.brand-text {
  font-family: "Orbitron", "Eurostile", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 0.01em;
}

.wordmark-small {
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 28px;
  position: relative;
}

.hero::before {
  content: "";
  display: block;
  /* flex: 1; */
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  bottom: 0;
  background-image: radial-gradient(ellipse 684px 428px at 72% 56%,
      transparent 0%,
      transparent 44%,
      #000 70%);
  z-index: -1;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-family: "Inter", "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  font-weight: 500;
  transform: scaleY(0.9);
}

.hero-brand {
  margin: 0 0 12px;
  font-family: "Orbitron", "Eurostile", sans-serif;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  filter: blur(0.33px);
}

.lead {
  margin: 0;
  max-width: 50ch;
  color: rgba(230, 240, 255, 0.7);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 300;
}

.cta-row {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
}

.btn {
  border: 1px solid rgba(125, 177, 255, 0.25);
  border-radius: 7px;
  min-height: 50px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  filter: blur(0.33px);
}

.btn-primary {
  background: linear-gradient(180deg, #1b4c98, #12356e);
  border-color: rgba(100, 166, 255, 0.05);
  box-shadow: 0 10px 28px rgba(10, 34, 76, 0.52);
}

.btn-primary:hover {
  border-color: rgba(150, 200, 255, 0.5);
}

.btn-ghost {
  background: rgba(7, 17, 36, 0.82);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 160, 255, 0.55);
}

.meta {
  display: none;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section {
  padding: 38px 0;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, rgba(80, 140, 230, 0.05) 10%, rgba(80, 140, 230, 0.05) 90%, transparent) 1;
  position: relative;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.9) 5%, rgba(0, 0, 0, 0.9) 95%, rgba(0, 0, 0, 1));
  backdrop-filter: blur(1px);
}

.section::before {
  content: none;
}

.section-head {
  margin-bottom: 22px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 500;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text);
  transform: scaleY(0.8);
  text-shadow:
    0 0 4px var(--text-glow),
    0 0 12px var(--text-glow),
    0 0 24px var(--text-glow),
    0 0 48px var(--text-glow),
    0 0 96px var(--text-glow);
}

.section-head h2::before,
.section-head h2::after {
  content: "";
  flex: 1;
  height: 1px;
}

.section-head h2:not(:empty)::before {
  margin-right: 0.5em;
  background: linear-gradient(90deg, transparent, rgba(80, 140, 230, 0.25) 95%, transparent);
}

.section-head h2:not(:empty)::after {
  margin-left: 0.5em;
  background: linear-gradient(90deg, transparent, rgba(80, 140, 230, 0.25) 5%, transparent);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 90%;
  margin: 0 auto;
}

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

.steps {
  width: 90%;
  margin: 0 auto;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 23, 52, 0.44), rgba(5, 14, 34, 0.52));
  border: 1px solid rgba(92, 147, 226, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  /* overflow: hidden; */
}

.card::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 15%;
  bottom: -2px;
  height: 5px;
  background:
    radial-gradient(closest-side,
      var(--gard-glow-final),
      var(--gard-glow-2),
      var(--gard-glow-1),
      transparent 72%);
  /* filter: blur(0.5px); */
  /* opacity: 0.7; */
}

#approach::after {
  content: "";
  position: absolute;
  left: 33%;
  right: 33%;
  bottom: -2px;
  height: 5px;
  background:
    radial-gradient(closest-side,
      var(--gard-glow-final),
      var(--gard-glow-2),
      var(--gard-glow-1),
      transparent 72%);
}

.card h3 {
  margin: 0 0 7px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 25px;
  line-height: 1.15;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.feature-icon {
  width: 54px;
  height: 40px;
  margin-bottom: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.feature-icon-gr1 {
  background-image: url("./gr1.png");
}

.feature-icon-gr2 {
  background-image: url("./gr2.png");
}

.feature-icon-gr3 {
  background-image: url("./gr3.png");
}

.feature-icon-gr4 {
  background-image: url("./gr4.png");
}

#focus::before {
  content: "";
  display: block;
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  position: absolute;
  bottom: 100%;
  z-index: -1;
  height: 32px;
  width: 100%;
  margin-bottom: 1px;
}

#focus .card {
  background: transparent;
  border: none;
  box-shadow: none;
}

#focus .card::after {
  content: none;
}

#focus .card .feature-icon {
  margin-left: auto;
  margin-right: auto;
}

#focus .card h3 {
  font-family: "Inter", "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 24px;
  line-height: 1.08;
  text-align: center;
}

#focus .card p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(230, 240, 255, 0.7);
}

#approach .step-body h3 {
  font-family: "Inter", "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#approach .step-body p,
#approach .divider-quote {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  color: rgba(230, 240, 255, 0.7);
}

/* .section-muted { */
/* background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)); */
/* } */

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

.step {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;
}

.step-num {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #7db8ff;
  border: 1px solid rgba(109, 176, 255, 0.05);
  background: linear-gradient(180deg, rgba(44, 115, 221, 0.26), rgba(28, 73, 146, 0.22));
}

.step-body h3 {
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.12;
}

.step-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
}

.divider-quote {
  margin-top: 14px;
  text-align: center;
  color: rgba(213, 231, 255, 0.9);
  font-size: 16px;
}

.project {
  background: linear-gradient(180deg, rgba(10, 22, 51, 0.68), rgba(5, 14, 33, 0.76));
  border-color: rgba(95, 149, 226, 0.24);
}

.project-shot {
  border-radius: 10px;
  border: 1px solid rgba(60, 100, 160, 0.15);
  background: rgba(10, 20, 36, 0.6);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.project-shot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: radial-gradient(closest-side, rgba(78, 162, 255, 0.25), transparent 72%);
  filter: blur(8px);
}

.project-shot-a::before,
.project-shot-b::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(195, 221, 255, 0.08);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.pill {
  border: 1px solid rgba(112, 171, 251, 0.38);
  color: rgba(201, 225, 255, 0.9);
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 9px;
  background: rgba(49, 111, 205, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack span {
  font-size: 11px;
  color: rgba(194, 219, 255, 0.85);
  border: 1px solid rgba(103, 158, 236, 0.28);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 40, 84, 0.42);
}

.card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #9dc9ff;
}

.philo {
  border: 0;
  background: transparent;
  padding: 8px 0 0;
  text-align: center;
}

.philo p {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  color: rgba(221, 235, 255, 0.9);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: rgba(7, 22, 49, 0.56);
  border: 1px solid rgba(93, 148, 226, 0.24);
  border-radius: var(--radius);
  padding: 14px;
}

.contact-label {
  color: var(--muted-2);
  font-family: "Michroma", sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.contact-link {
  color: rgba(220, 237, 255, 0.94);
  font-size: 14px;
}

.footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(84, 138, 220, 0.2);
  color: var(--muted-2);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-dot {
  opacity: 0.5;
}

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

  .hero-visual {
    min-height: 286px;
  }

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

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

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

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(980px, calc(100% - 28px));
  }

  .hero {
    padding-top: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(22px, 7vw, 34px);
  }

  .hero-brand {
    font-size: clamp(28px, 9vw, 42px);
  }

  .cta-row {
    flex-direction: column;
    gap: 12px;
  }

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

  #focus .card h3,
  .card h3,
  .step-body h3,
  .philo p {
    font-size: 18px;
  }
}