/* SKYNAPSE — public site v1 */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #04060a;
  --bg-2: #080c12;
  --bg-3: #0c121b;
  --text: #edf2f7;
  --muted: #94a3b5;
  --dim: #5f6c7c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #45d1ff;
  --accent-2: #1e7dff;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --nav-h: 4.75rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(69, 209, 255, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
}
.skip:focus {
  left: 0;
}

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before {
  display: none;
}

.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.25rem);
  line-height: 1.6;
  color: #c3ced9;
  max-width: 34rem;
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover {
  border-color: var(--text);
}
.btn--primary {
  background: var(--text);
  border-color: var(--text);
  color: #05070b;
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn .arrow {
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.35s var(--ease);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow {
  width: 1.6rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(4, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}
.brand__mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.brand__word {
  height: 0.8rem;
  width: auto;
  flex: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
}
.nav__links a:not(.btn) {
  position: relative;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8c4d1;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav__links a:not(.btn):hover,
.nav__links a[aria-current="page"] {
  color: #fff;
}
.nav__links a[aria-current="page"]::after {
  opacity: 1;
}
.nav__links .btn {
  min-height: 2.5rem;
  padding: 0 1.15rem;
  font-size: 0.68rem;
}

.nav__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:nth-child(1) {
  top: 1.1rem;
}
.nav__toggle span:nth-child(2) {
  top: 1.6rem;
}
.nav-open .nav__toggle span:nth-child(1) {
  top: 1.35rem;
  transform: rotate(45deg);
}
.nav-open .nav__toggle span:nth-child(2) {
  top: 1.35rem;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .nav__toggle {
    display: block;
    z-index: 2;
  }
  .brand {
    z-index: 2;
  }
  .nav__links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: var(--nav-h) var(--gutter) 2rem;
    background: rgba(4, 6, 10, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-open .nav__links {
    opacity: 1;
    visibility: visible;
  }
  .nav__links a:not(.btn) {
    font-family: var(--display);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--text);
  }
  .nav__links a:not(.btn)::after {
    display: none;
  }
  .nav__links a[aria-current="page"] {
    color: var(--accent);
  }
  .nav__links .btn {
    margin-top: 1rem;
    min-height: 3.25rem;
    padding: 0 1.75rem;
  }
  .nav-open {
    overflow: hidden;
  }
}

/* ---------- Scenes (full-screen) ---------- */

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.scene + .scene,
.scene + .band,
.band + .scene {
  border-top: 1px solid var(--line);
}

.scene__media {
  position: absolute;
  inset: -6% 0;
  z-index: -3;
  will-change: transform;
}
.scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.scene__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.78) 0%, rgba(4, 6, 10, 0) 22%, rgba(4, 6, 10, 0) 70%, rgba(4, 6, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(4, 6, 10, 0.94) 0%, rgba(4, 6, 10, 0.72) 32%, rgba(4, 6, 10, 0.08) 62%, rgba(4, 6, 10, 0.3) 100%);
}
.scene--right .scene__scrim {
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.78) 0%, rgba(4, 6, 10, 0) 22%, rgba(4, 6, 10, 0) 70%, rgba(4, 6, 10, 0.9) 100%),
    linear-gradient(270deg, rgba(4, 6, 10, 0.94) 0%, rgba(4, 6, 10, 0.72) 32%, rgba(4, 6, 10, 0.08) 62%, rgba(4, 6, 10, 0.3) 100%);
}
.scene--right {
  justify-content: flex-end;
}

.scene__content {
  width: min(100%, 35rem);
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}

.scene__index {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Overlay drawing primitives (SVG) */
.o-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}
.o-thin {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1;
}
.o-dash {
  stroke-dasharray: 5 7;
}
.o-fill {
  fill: rgba(69, 209, 255, 0.09);
  stroke: rgba(69, 209, 255, 0.55);
  stroke-width: 1;
}
.o-fill-soft {
  fill: rgba(69, 209, 255, 0.05);
  stroke: none;
}
.o-node {
  fill: var(--accent);
}
.o-node-w {
  fill: #fff;
}
.o-ring {
  fill: none;
  stroke: rgba(69, 209, 255, 0.45);
  stroke-width: 1;
}
.o-box {
  fill: rgba(4, 6, 10, 0.35);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1;
}
.o-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}
.o-label--accent {
  fill: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  align-items: flex-end;
  padding-bottom: clamp(5.5rem, 13vh, 9rem);
}
.hero .scene__media {
  inset: 0;
  perspective: 1100px;
  perspective-origin: 50% 30%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 33%, #000 62%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 33%, #000 62%);
}
.hero .scene__media img {
  position: absolute;
  left: -75%;
  bottom: -30%;
  width: 250%;
  height: 300%;
  max-width: none;
  transform: rotateX(64deg);
  transform-origin: 50% 100%;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 22% at 60% 36%, rgba(69, 209, 255, 0.17), rgba(30, 125, 255, 0.05) 55%, transparent 78%);
}
.hero .scene__scrim {
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0) 45%, rgba(4, 6, 10, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 6, 10, 0.9) 0%, rgba(4, 6, 10, 0.55) 38%, rgba(4, 6, 10, 0) 70%);
}
.hero__content {
  width: min(100%, 62rem);
  display: grid;
  gap: clamp(1.4rem, 2.6vh, 2.1rem);
  justify-items: start;
}
.hero__brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  letter-spacing: 0.62em;
  color: var(--accent);
}
.hero .lede {
  max-width: 36rem;
}
.hero__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__meta ul {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.5rem);
}

/* ---------- Bands (non full-bleed sections) ---------- */

.band {
  position: relative;
  padding: clamp(5rem, 13vh, 9.5rem) var(--gutter);
  background: var(--bg);
}
.band--alt {
  background: var(--bg-2);
}
.band--tall {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.band__head {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  margin-bottom: clamp(3rem, 7vh, 5.5rem);
  max-width: 60rem;
}

/* Industries — typographic index, no cards */
.index {
  border-top: 1px solid var(--line);
}
.index li {
  border-bottom: 1px solid var(--line);
}
.index a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 2.6vh, 1.9rem) 0;
  color: #cfd8e2;
  transition: color 0.4s var(--ease), padding-left 0.5s var(--ease);
}
.index__n {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  transition: color 0.4s var(--ease);
}
.index__t {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.index__d {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.index a:hover {
  color: #fff;
  padding-left: 0.75rem;
}
.index a:hover .index__n {
  color: var(--accent);
}
.index a:hover .index__d {
  opacity: 1;
}

/* Final CTA */
.closing {
  justify-content: center;
  text-align: center;
}
.closing .scene__scrim {
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(4, 6, 10, 0.55) 0%, rgba(4, 6, 10, 0.93) 78%);
}
.closing .scene__content {
  width: min(100%, 64rem);
  justify-items: center;
  gap: 2.4rem;
}

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative;
  min-height: 74vh;
  min-height: 74svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero .scene__scrim {
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.85) 0%, rgba(4, 6, 10, 0.25) 40%, rgba(4, 6, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 6, 10, 0.88) 0%, rgba(4, 6, 10, 0.2) 80%);
}
.page-hero__content {
  width: min(100%, 60rem);
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}
.page-hero .lede {
  max-width: 40rem;
}

/* Capability rows */
.group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
  border-top: 1px solid var(--line);
}
.group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.group:last-of-type {
  padding-bottom: 0;
}
.group__head {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  justify-items: start;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}
.group__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.rows > li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 1rem clamp(1.25rem, 3vw, 3rem);
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.rows > li:last-child {
  border-bottom: 1px solid var(--line);
}
.rows__n {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.rows__t {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.rows__d {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Solutions: challenge -> response */
.pair {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem clamp(1.25rem, 3vw, 3.5rem);
  align-items: start;
  padding: clamp(2.25rem, 5vh, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.pair:last-child {
  border-bottom: 1px solid var(--line);
}
.pair__k {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.pair p {
  color: var(--muted);
  font-size: 0.98rem;
}
.pair p.pair__a {
  color: #d5dee8;
}

/* Industries page sections */
.sector .scene__content {
  width: min(100%, 38rem);
}
.sector {
  min-height: 88vh;
  min-height: 88svh;
}
.ticks {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}
.ticks li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: #c3ced9;
}
.ticks li::before {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 1px;
  background: var(--accent);
  transform: translateY(-0.3em);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(3.5rem, 10vh, 7rem)) var(--gutter) clamp(4rem, 10vh, 7rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.contact .scene__scrim {
  background: linear-gradient(90deg, rgba(4, 6, 10, 0.86) 0%, rgba(4, 6, 10, 0.96) 55%);
}
.contact__intro {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}
.contact__notes {
  display: grid;
  gap: 1.1rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.contact__notes dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.3rem;
}
.contact__notes dd {
  color: #c3ced9;
  font-size: 0.96rem;
}

.form {
  display: grid;
  gap: 1.9rem;
  padding-top: 0.5rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.3s var(--ease);
}
.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--accent);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.9rem;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}
.form__status {
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.form__status.is-note {
  color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(3rem, 7vh, 4.5rem) var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
}
.footer__tag {
  margin-top: 1.1rem;
  max-width: 24rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__nav a {
  color: #b8c4d1;
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover {
  color: var(--accent);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Motion (minimal) ---------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .reveal[data-d="1"] {
  transition-delay: 0.1s;
}
.js .reveal[data-d="2"] {
  transition-delay: 0.2s;
}
.js .reveal[data-d="3"] {
  transition-delay: 0.3s;
}
.js .scene__overlay.reveal {
  transform: none;
  transition: opacity 1.8s var(--ease) 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .group {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .group__head {
    position: static;
  }
  .pair {
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr);
  }
  .pair__h {
    grid-column: 2 / -1;
  }
  .pair > div:nth-of-type(1) {
    grid-column: 2;
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 4rem;
  }
  .scene {
    align-items: flex-end;
    padding-bottom: 4.5rem;
  }
  .scene__scrim,
  .scene--right .scene__scrim {
    background: linear-gradient(180deg, rgba(4, 6, 10, 0.8) 0%, rgba(4, 6, 10, 0.05) 18%, rgba(4, 6, 10, 0.1) 38%, rgba(4, 6, 10, 0.9) 62%, rgba(4, 6, 10, 0.97) 100%);
  }
  /* keep the drawn overlay centred in the upper half on portrait screens */
  .scene__overlay {
    top: -17svh;
  }
  .scene--left .scene__overlay {
    transform: translateX(-34svh);
  }
  .scene--right .scene__overlay {
    transform: translateX(30svh);
  }
  .js .scene--left .scene__overlay.reveal,
  .js .scene--left .scene__overlay.reveal.is-in {
    transform: translateX(-34svh);
  }
  .js .scene--right .scene__overlay.reveal,
  .js .scene--right .scene__overlay.reveal.is-in {
    transform: translateX(30svh);
  }
  .hero {
    padding-bottom: 6.5rem;
  }
  .hero .scene__media img {
    left: -150%;
    width: 400%;
  }
  .hero .scene__scrim {
    background: linear-gradient(180deg, rgba(4, 6, 10, 0) 30%, rgba(4, 6, 10, 0.88) 62%, rgba(4, 6, 10, 0.96) 100%);
  }
  .hero__meta ul {
    display: none;
  }
  .closing .scene__scrim {
    background: radial-gradient(ellipse 110% 60% at 50% 50%, rgba(4, 6, 10, 0.6) 0%, rgba(4, 6, 10, 0.94) 80%);
  }
  .closing {
    align-items: center;
  }
  .actions {
    width: 100%;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .index a {
    grid-template-columns: 2.75rem 1fr;
  }
  .index__d {
    display: none;
  }
  .rows > li {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }
  .rows__d {
    grid-column: 2;
  }
  .pair {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }
  .pair > div {
    grid-column: 2 !important;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: 68svh;
  }
  .scene__index span:last-child {
    display: none;
  }
}

.o-corridor {
  fill: none;
  stroke: rgba(69, 209, 255, 0.1);
  stroke-width: 46;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ---------- Overlay animation (drawn, not decorative) ---------- */

/* lines that draw themselves when their scene enters (pathLength="1") */
.js .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.8s var(--ease) 0.35s;
}
.js .is-in .draw,
.js .is-on .draw {
  stroke-dashoffset: 0;
}
.js .draw--slow {
  transition-duration: 4.5s;
}

/* elements that appear in sequence */
.js .pop {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.js .is-in .pop,
.js .is-on .pop {
  opacity: 1;
}
.js .pop[data-s="1"] { transition-delay: 0.5s; }
.js .pop[data-s="2"] { transition-delay: 0.9s; }
.js .pop[data-s="3"] { transition-delay: 1.3s; }
.js .pop[data-s="4"] { transition-delay: 1.7s; }
.js .pop[data-s="5"] { transition-delay: 2.1s; }
.js .pop[data-s="6"] { transition-delay: 2.6s; }

.pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.breathe {
  animation: breathe 5.5s ease-in-out infinite alternate;
}
.breathe--b {
  animation-delay: -2.7s;
}
@keyframes breathe {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.sweep {
  transform-origin: 1130px 810px;
  animation: sweep 11s ease-in-out infinite alternate;
}
@keyframes sweep {
  from { transform: rotate(-13deg); }
  to { transform: rotate(13deg); }
}

.drift-a { animation: drift-a 14s ease-in-out infinite alternate; }
.drift-b { animation: drift-b 17s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(58px, -27px); } }
@keyframes drift-b { to { transform: translate(-46px, -34px); } }

/* markers that travel along a path */
.mover {
  display: none;
}
@supports (offset-path: path("M0 0L1 1")) {
  .mover {
    display: inline;
    offset-rotate: 0deg;
    offset-distance: 0%;
    animation: travel 20s linear infinite;
  }
}
@keyframes travel {
  to { offset-distance: 100%; }
}
.mv-plan { offset-path: path("M180 720 300 560 430 600 540 420 700 380 820 230"); animation-duration: 15s; animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); animation-direction: alternate; }
.mv-sar { offset-path: path("M200 270H480V330H200V390H480V450H200V510H480V570H200V630H480V690H200"); animation-duration: 34s; }
.sar-covered { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cover 34s linear infinite; }
@keyframes cover { to { stroke-dashoffset: 0; } }
.mv-sq { offset-path: path("M700 580h40v40h-80v-80h120v120h-160v-160h200v200h-220"); animation-duration: 26s; }
.sq-covered { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cover 26s linear infinite; }

.packet { animation-name: packet; animation-duration: 4.6s; animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1); }
@keyframes packet {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.pk-1 { offset-path: path("M900 330 1120 490"); }
.pk-2 { offset-path: path("M1345 300 1120 490"); animation-delay: -1.1s; }
.pk-3 { offset-path: path("M1120 490 1400 570"); animation-delay: -2.3s; }
.pk-4 { offset-path: path("M1120 490 1180 745"); animation-delay: -3.4s; }
.pk-5 { offset-path: path("M885 655 1120 490"); animation-delay: -0.6s; }
.pk-6 { offset-path: path("M1010 360 1110 600"); animation-delay: -1.5s; }
.pk-7 { offset-path: path("M1330 330 1110 600"); animation-delay: -3s; }
.pk-8 { offset-path: path("M1110 600 930 640"); animation-delay: -2.2s; }
.pk-9 { offset-path: path("M1110 600 1240 660"); animation-delay: -0.4s; }
.pk-10 { offset-path: path("M1490 760 1420 620"); animation-delay: -1s; }

.mv-f1 { offset-path: path("M800 800 1160 500V380H1220V500H1280V380H1340V500H1390"); animation-duration: 24s; animation-direction: alternate; }
.mv-f2 { offset-path: path("M800 800 980 720H1250V660H1000"); animation-duration: 19s; animation-direction: alternate; }
.mv-f3 { offset-path: path("M800 800 880 560 900 380H960V520H1020V360"); animation-duration: 21s; animation-direction: alternate; }

/* nothing animates while its scene is off screen */
.scene__overlay:not(.is-live) * {
  animation-play-state: paused !important;
}

/* ---------- Hero motion ---------- */

.js .hero .scene__media img {
  animation: glide 70s linear infinite alternate;
}
@keyframes glide {
  from { transform: rotateX(64deg) translate3d(0, 0, 0); }
  to { transform: rotateX(64deg) translate3d(-2%, 9%, 0); }
}
.js .hero .scene__media {
  animation: dawn 2.6s var(--ease) both;
}
@keyframes dawn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hw {
  display: inline-block;
}
.js .hw {
  opacity: 0;
  transform: translate3d(0, 0.18em, 0);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js .is-in .hw {
  opacity: 1;
  transform: none;
}
.js .hw:nth-child(1) { transition-delay: 0.25s; }
.js .hw:nth-child(2) { transition-delay: 0.6s; }
.js .hw:nth-child(4) { transition-delay: 0.95s; }
.js .hw:nth-child(5) { transition-delay: 1.3s; }
.js .hero .display.reveal {
  transform: none;
  opacity: 1;
}
.js .hero .lede.reveal { transition-delay: 1.7s; }
.js .hero .actions.reveal { transition-delay: 1.95s; }
.js .hero__meta {
  opacity: 0;
  transition: opacity 1.4s var(--ease) 2.3s;
}
.js .hero.is-ready .hero__meta {
  opacity: 1;
}

/* ---------- Flow: scroll-driven sequence ---------- */

.flow {
  position: relative;
  border-top: 1px solid var(--line);
}
.js .flow {
  height: 460vh;
}
.flow__sticky {
  position: sticky;
  top: 0;
  border-top: 0;
}
.flow .scene__content {
  width: min(100%, 33rem);
  gap: 1.5rem;
}
.flow__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.flow__steps {
  position: relative;
  width: 100%;
  margin-top: 0.5rem;
  padding-left: 1.6rem;
  display: grid;
  gap: 0.2rem;
}
.flow__steps::before,
.flow__bar {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line-strong);
}
.flow__bar {
  background: var(--accent);
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 1));
}
.flow__steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: baseline;
  padding: 0.55rem 0;
  color: var(--dim);
  transition: color 0.6s var(--ease);
}
.flow__steps .n {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}
.flow__steps h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.02rem, 1.35vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.flow__steps p {
  grid-column: 2;
  color: #c3ced9;
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 27rem;
  padding-top: 0.45rem;
}
.js .flow__steps p {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  padding-top: 0;
  transition: grid-template-rows 0.7s var(--ease), opacity 0.7s var(--ease), padding-top 0.7s var(--ease);
}
.js .flow__steps p > span {
  overflow: hidden;
}
.js .flow__steps li.is-active p {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 0.45rem;
}
.flow__steps li.is-done {
  color: #8b99aa;
}
.flow__steps li.is-active {
  color: #fff;
}
.flow__steps li.is-active .n {
  color: var(--accent);
}
.no-js-all .flow__steps li {
  color: #fff;
}

.js .flow [data-at] {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.js .flow [data-at].is-on {
  opacity: 1;
}
.o-zone-1 { fill: rgba(69, 209, 255, 0.2); stroke: rgba(69, 209, 255, 0.6); stroke-width: 1; }
.o-zone-2 { fill: rgba(69, 209, 255, 0.11); stroke: rgba(69, 209, 255, 0.35); stroke-width: 1; }
.o-zone-3 { fill: rgba(69, 209, 255, 0.05); stroke: rgba(69, 209, 255, 0.22); stroke-width: 1; }
.o-line--w { stroke: rgba(255, 255, 255, 0.85); }
.o-line--s { stroke: #8fb6ff; }

/* ---------- Specs (sovereignty) & integrations ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.split__head {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
}
.specs {
  border-top: 1px solid var(--line);
}
.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.specs dd {
  color: var(--muted);
  font-size: 0.98rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div {
  padding: clamp(2rem, 5vh, 3.25rem) clamp(1rem, 2.5vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.facts > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts dt {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.facts dd {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 15rem;
}

.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vh, 5rem);
  border-top: 1px solid var(--line);
}
.works li {
  padding: 1.75rem clamp(1rem, 2.5vw, 2.5rem) 0.25rem;
  border-left: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: #e3eaf1;
}
.works li:first-child {
  border-left: 0;
  padding-left: 0;
}
.works small {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--dim);
}

/* nav link underline grows from the left */
.nav__links a:not(.btn)::after {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__head {
    position: static;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .flow .scene__content {
    gap: 1rem;
  }
  .flow__steps li {
    padding: 0.3rem 0;
  }
  .flow__steps p {
    font-size: 0.9rem;
  }
  .specs > div {
    grid-template-columns: 1fr;
  }
  .facts > div {
    padding-left: 1rem;
  }
  .works {
    grid-template-columns: 1fr 1fr;
  }
  .works li:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .flow .scene__overlay {
    top: -27svh;
  }
  .flow .scene__scrim {
    background: linear-gradient(180deg, rgba(4, 6, 10, 0.8) 0%, rgba(4, 6, 10, 0.05) 14%, rgba(4, 6, 10, 0.1) 30%, rgba(4, 6, 10, 0.93) 47%, rgba(4, 6, 10, 0.98) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mover,
  .pulse {
    display: none !important;
  }
  .js .draw,
  .sar-covered,
  .sq-covered {
    stroke-dashoffset: 0 !important;
  }
  .js .pop,
  .js .hw,
  .js .hero__meta {
    opacity: 1 !important;
    transform: none !important;
  }
  *,
  .js .hero .scene__media,
  .js .hero .scene__media img {
    animation: none !important;
  }
  .js .flow {
    height: auto;
  }
  .js .flow [data-at] {
    opacity: 1;
  }
  .js .flow__steps p {
    grid-template-rows: 1fr;
    opacity: 1;
    padding-top: 0.45rem;
  }
  .flow__steps li {
    color: #fff;
  }
}

/* clip (not hidden): full-bleed sections must never become scroll containers */
@supports (overflow: clip) {
  .scene,
  .page-hero,
  .contact,
  .hero .scene__media {
    overflow: clip;
  }
}
