:root {
  --midnight: #0A0E1A;
  --ink: #05070D;
  --indigo: #6C63FF;
  --cyan: #00D4FF;
  --gold: #C9A75D;
  --white: #F5F7FA;
  --slate: #8A94A6;
  --line: rgba(245, 247, 250, 0.14);
  --gutter: clamp(20px, 5vw, 72px);
  --display: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.4s ease, padding 0.4s ease, transform 0.5s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.75), rgba(5, 7, 13, 0));
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav.is-solid { background: rgba(10, 14, 26, 0.88); backdrop-filter: blur(14px); padding-block: 14px; }
.nav.is-solid::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo { position: relative; z-index: 2; }
.nav__logo img { height: 38px; width: auto; }

.nav__links { position: relative; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__links a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links .nav__cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 18px;
  transition: background 0.35s ease, color 0.35s ease;
}
.nav__links .nav__cta:hover { background: var(--gold); color: var(--ink); }

.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px;
  height: 2px; background: var(--white);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- PANELS (full-screen media sections) ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--midnight);
}
.panel__media { position: absolute; inset: 0; }
.panel__media video, .panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.88) 0%, rgba(5, 7, 13, 0.55) 42%, rgba(5, 7, 13, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0) 45%),
    rgba(10, 14, 26, 0.25);
}
.panel__shade--heavy { background: linear-gradient(90deg, rgba(5, 7, 13, 0.8), rgba(5, 7, 13, 0.55)), linear-gradient(0deg, rgba(5, 7, 13, 0.85), rgba(5, 7, 13, 0) 50%); }

.panel__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 140px var(--gutter) clamp(72px, 12vh, 130px);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow b { color: var(--gold); font-weight: 600; margin-right: 12px; }

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display--md { font-size: clamp(38px, 5.4vw, 76px); }

.lede {
  max-width: 560px;
  margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  color: rgba(245, 247, 250, 0.82);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-width: 620px; }
.tags li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 26, 0.45);
  backdrop-filter: blur(6px);
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* SpaceX-style button: outline that fills from the bottom on hover */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 17px 30px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font: 600 13px/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn span { position: relative; }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost { border-color: rgba(245, 247, 250, 0.4); }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  width: 1px; height: 70px;
  background: rgba(245, 247, 250, 0.25);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--cyan);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- FACT STRIP ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--midnight);
  border-block: 1px solid var(--line);
}
.facts__item { padding: 44px var(--gutter); border-left: 1px solid var(--line); }
.facts__item:first-child { border-left: 0; }
.facts__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  background: linear-gradient(100deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.facts__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- CONTENT BLOCKS ---------- */
.block { padding: clamp(84px, 13vh, 150px) var(--gutter); background: var(--midnight); }
.block + .block { border-top: 1px solid var(--line); }
.block__head { max-width: 820px; margin-bottom: clamp(44px, 7vh, 76px); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.col { background: var(--midnight); padding: clamp(28px, 3.4vw, 48px); transition: background 0.4s ease; }
.col:hover { background: #0E1424; }
.col__num { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); }
.col h3, .steps h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 18px 0 12px;
}
.col p, .steps p { color: var(--slate); font-size: 16px; }

/* Industries */
.block--flush { background: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--midnight); }
.tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) brightness(0.72);
  transition: transform 1.2s var(--ease), filter 0.6s ease;
}
.tile:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.9); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.9) 0%, rgba(5, 7, 13, 0) 55%);
  pointer-events: none;
}
.tile__text { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.tile__text span { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.tile__text h3 { font-family: var(--display); font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; text-transform: uppercase; line-height: 1.05; margin-top: 4px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); counter-reset: step; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.steps li::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
}
.steps span { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* About */
.block--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { color: rgba(245, 247, 250, 0.8); font-size: clamp(16px, 1.3vw, 19px); }
.prose p + p { margin-top: 20px; }
.prose .sign { margin-top: 38px; padding-left: 18px; border-left: 2px solid var(--gold); }
.sign strong { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.sign span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }

/* ---------- CONTACT ---------- */
.panel--contact { align-items: center; }
.contact {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: 140px var(--gutter) 100px;
}
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label {
  display: grid; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate);
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  font: 400 16px/1.4 var(--body);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { background: var(--midnight); color: var(--white); }
.form textarea { resize: vertical; }
.form input::placeholder { color: rgba(138, 148, 166, 0.6); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); background: rgba(10, 14, 26, 0.85); }
.form .is-invalid { border-color: #FF6B6B; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { min-height: 22px; font-size: 14px; color: var(--gold); }

/* ---------- FOOTER ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px var(--gutter);
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.footer img { height: 30px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); transition: color 0.3s ease; }
.footer nav a:hover { color: var(--white); }
.footer p { width: 100%; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(138, 148, 166, 0.7); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(5, 7, 13, 0.97);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(3) { border-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .block--split, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__logo img { height: 30px; }
  .panel__shade { background: linear-gradient(0deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.55) 60%, rgba(5, 7, 13, 0.35) 100%); }
  .panel__shade--heavy { background: linear-gradient(0deg, rgba(5, 7, 13, 0.95), rgba(5, 7, 13, 0.82)); }
  .btn { width: 100%; }
  .scroll-cue { display: none; }
  .facts__item { padding: 30px var(--gutter); }
  .steps, .form__row { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 1 / 1; }
  .tile--wide { aspect-ratio: 4 / 3; }
  .contact { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .tile img, .btn::before { transition: none; }
}
