/* ===================================================================
   ZONE IT & TELECOM — signal build
   -------------------------------------------------------------------
   DIRECTION OF FLOW: along the path, left to right and downstream.
   Every animation here obeys it — packets travel right through the
   trace dividers, pulses run down the topology, card highlights draw
   from the left edge, the link rail fills top to bottom. One network,
   not a pile of separate effects.

   PALETTE: the mandated Zone Group blue system. Deep navy ground,
   raised navy surfaces, one working blue for action and a lighter
   blue reserved for connections and data. Nothing glows for the sake
   of glowing — this company installs real cable in real buildings.
   =================================================================== */

:root {
  /* --- Mandated design tokens ------------------------------------ */
  --background: #0A1020;
  --surface:    #121A2C;
  --primary:    #4F78E8;
  --secondary:  #91B5FF;
  --foreground: #F4F7FF;

  /* --- Derived, so nothing downstream hardcodes a hex ------------- */
  --surface-hi: #16203A;
  --sunk:       #0C1223;
  --primary-hi: #5A83F0;

  --muted: rgba(244, 247, 255, 0.66);
  --faint: rgba(244, 247, 255, 0.42);

  --line:    rgba(145, 181, 255, 0.14);
  --line-hi: rgba(145, 181, 255, 0.32);
  --tint:    rgba(79, 120, 232, 0.10);

  --danger:      #FF9AA4;
  --danger-line: #E86A78;

  --grad: linear-gradient(100deg, var(--primary), var(--secondary));

  /* --- Type ------------------------------------------------------- */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --shell: 1180px;

  /* Scroll velocity, written by signal.js. 0 = idle, 1 = saturated. */
  --traffic: 0;

  /* Precision, not bounce: a very small overshoot, then rest. */
  --settle: cubic-bezier(0.22, 1.12, 0.32, 1);
  --line-ease: cubic-bezier(0.65, 0, 0.20, 1);

  --section-gap: clamp(76px, 9vw, 128px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--primary);
  color: var(--foreground);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip:focus { left: 12px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   AMBIENT FIELD
   A technical grid for the ground plan, four soft masses for light.
   Slow and low-contrast: this sits behind text and must never
   compete with it.
   =================================================================== */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.field__mass {
  position: absolute;
  border-radius: 50%;
  filter: blur(84px);
  will-change: transform;
}

.field__mass--a {
  width: 46vw; height: 46vw;
  left: -10vw; top: 4vh;
  background: radial-gradient(circle at 45% 45%, var(--primary), transparent 66%);
  opacity: 0.30;
  animation: drift-a 58s ease-in-out infinite;
}
.field__mass--b {
  width: 36vw; height: 36vw;
  left: 52vw; top: 20vh;
  background: radial-gradient(circle at 50% 50%, var(--secondary), transparent 66%);
  opacity: 0.16;
  animation: drift-b 71s ease-in-out infinite;
}
.field__mass--c {
  width: 30vw; height: 30vw;
  left: 16vw; top: 62vh;
  background: radial-gradient(circle at 50% 50%, var(--primary), transparent 64%);
  opacity: 0.20;
  animation: drift-c 47s ease-in-out infinite;
}
.field__mass--d {
  width: 24vw; height: 24vw;
  left: 72vw; top: 66vh;
  background: radial-gradient(circle at 50% 50%, var(--secondary), transparent 62%);
  opacity: 0.12;
  animation: drift-d 63s ease-in-out infinite;
}

/* Unequal periods, so the combined pattern effectively never repeats. */
@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  38%      { transform: translate3d(6vw, -6vh, 0) scale(1.12); }
  70%      { transform: translate3d(11vw, 4vh, 0) scale(0.94); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  45%      { transform: translate3d(7vw, -10vh, 0) scale(0.9); }
  75%      { transform: translate3d(-2vw, 6vh, 0) scale(1.16); }
}
@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(8vw, 10vh, 0) scale(1.2); }
}
@keyframes drift-d {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-7vw, -11vh, 0) scale(1.18); }
}

/* The grid is the ground plan the whole site is drawn on. It fades
   out toward the bottom so it never reads as dashboard chrome. */
.field__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(145, 181, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(145, 181, 255, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 22%, #000 0%, transparent 78%);
}

.field__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Pointer wake — desktop only, switched on by signal.js */
.wake {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 120, 232, 0.16), transparent 62%);
  filter: blur(46px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform;
}
.wake.is-live { opacity: 1; }

/* ===================================================================
   SIGNATURE — the link rail
   A fiber run down the right edge. The packet tracks scroll through a
   spring, so it overshoots and settles the way a buffer catches up.
   =================================================================== */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.rail__label,
.rail__readout {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.rail__tube {
  position: relative;
  width: 3px;
  height: 176px;
  border-radius: 3px;
  background: rgba(145, 181, 255, 0.13);
}

.rail__run {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.rail__packet {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(145, 181, 255, 0.16);
}

@media (max-width: 1100px) { .rail { display: none; } }

/* ===================================================================
   RISE — content arrives along the path, from below and slightly left
   =================================================================== */
.js .rise {
  opacity: 0;
  transform: translate3d(-10px, 26px, 0);
}

.js .rise.is-live {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--line-ease),
    transform 0.9s var(--settle);
}

.rise[data-delay="1"].is-live { transition-delay: 0.06s; }
.rise[data-delay="2"].is-live { transition-delay: 0.12s; }
.rise[data-delay="3"].is-live { transition-delay: 0.18s; }
.rise[data-delay="4"].is-live { transition-delay: 0.24s; }
.rise[data-delay="5"].is-live { transition-delay: 0.30s; }

/* ===================================================================
   Wordmark — the dot between ZONE and the unit name is a live node
   =================================================================== */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 16px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.wordmark__unit {
  font-weight: 500;
  font-size: 0.86em;
  color: var(--secondary);
  letter-spacing: 0.1em;
}

.wordmark--small { font-size: 15px; }

.wordmark__node {
  position: relative;
  width: 6px; height: 6px;
  margin: 0 9px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.wordmark__node::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--secondary);
  animation: node-ping 3.2s var(--line-ease) infinite;
}

@keyframes node-ping {
  0%, 60% { transform: scale(0.7); opacity: 0; }
  72%     { opacity: 0.7; }
  100%    { transform: scale(2.1); opacity: 0; }
}

/* ===================================================================
   Top bar
   =================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.35s ease;
}

/* The underline draws in from the left — the flow rule, on hover */
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--line-ease);
}

.nav a:hover { color: var(--foreground); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-current { color: var(--secondary); }
.nav a.is-current::after { transform: scaleX(1); }

.callbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--tint);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.5s var(--settle);
}

.callbtn:hover {
  border-color: var(--primary);
  background: rgba(79, 120, 232, 0.2);
  transform: translateY(-1px);
}

.callbtn__icon { display: grid; place-items: center; color: var(--secondary); }
.callbtn__icon svg { width: 18px; height: 18px; }
.callbtn__text { display: flex; flex-direction: column; line-height: 1.15; }

.callbtn__label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.callbtn__number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.5s var(--settle), box-shadow 0.5s ease,
              border-color 0.4s ease, background 0.4s ease;
}

.btn > span:not(.btn__sweep) { position: relative; z-index: 2; }

.btn--primary {
  background: var(--primary);
  color: var(--foreground);
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(79, 120, 232, 0.24);
}

.btn--primary:hover {
  background: var(--primary-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(79, 120, 232, 0.34);
}

.btn--ghost {
  color: var(--secondary);
  border-color: var(--line-hi);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--secondary);
  background: rgba(145, 181, 255, 0.08);
  transform: translateY(-2px);
}

/* A packet of light crosses the button, left to right */
.btn__sweep {
  position: absolute;
  left: -35%;
  top: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgba(244, 247, 255, 0.22), transparent);
  transition: left 0.8s var(--line-ease);
  z-index: 1;
}

.btn:hover .btn__sweep { left: 110%; }

/* ===================================================================
   Section furniture
   =================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: var(--section-gap) 0;
}

.sechead { max-width: 720px; margin: 0 0 44px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin: 0 0 18px;
}

.eyebrow__lead {
  width: 26px;
  height: 1px;
  background: var(--grad);
  flex: none;
}

.sechead__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
}

.sechead__lead {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0;
  max-width: 620px;
}

/* ===================================================================
   TRACE DIVIDERS
   A hairline run between sections with packets travelling right.
   Brightness is driven by --traffic, so scrolling raises the load.
   =================================================================== */
.trace {
  position: relative;
  z-index: 2;
  height: 62px;
  overflow: hidden;
}

.trace::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hi) 14%, var(--line-hi) 86%, transparent);
}

.trace::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: -50%;
  width: 200%;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--secondary) 0 22px, transparent 22px 200px);
  opacity: calc(0.1 + var(--traffic) * 0.55);
  transition: opacity 0.5s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  animation: packets 3.6s linear infinite;
}

@keyframes packets {
  0%   { transform: translateX(0); }
  100% { transform: translateX(200px); }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.hero__line { display: block; }

/* Light runs through the second line the way it runs through fiber */
.hero__line--live {
  background: linear-gradient(100deg,
    var(--foreground) 0%, var(--secondary) 30%, var(--primary) 48%,
    var(--secondary) 64%, var(--foreground) 88%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: carrier 14s linear infinite;
}

@keyframes carrier {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero__tagline {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.fact { margin: 0; }

.fact dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 6px;
}

.fact dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--secondary);
}

/* -------------------------------------------------------------------
   Topology panel — the thesis of the page: the thing the company
   actually builds, drawn live.
   ------------------------------------------------------------------- */
.topo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 30px 70px rgba(5, 8, 18, 0.5);
}

.topo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.topo__title { color: var(--faint); }
.topo__status { display: inline-flex; align-items: center; gap: 7px; color: var(--secondary); }

.topo__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: heartbeat 2.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.topo__svg { width: 100%; height: auto; }

.topo__links path {
  fill: none;
  stroke: var(--line-hi);
  stroke-width: 1.4;
}

.topo__pulses path {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 5 34;
  animation: run 2.6s linear infinite;
}

@keyframes run {
  0%   { stroke-dashoffset: 39; }
  100% { stroke-dashoffset: -39; }
}

.topo__node rect {
  fill: var(--surface-hi);
  stroke: var(--line-hi);
  stroke-width: 1;
}

.topo__node text {
  fill: var(--foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.topo__node--core rect { stroke: var(--primary); fill: rgba(79, 120, 232, 0.16); }
.topo__node--fiber rect { stroke: rgba(145, 181, 255, 0.5); }
.topo__node--leaf text { font-size: 10px; fill: var(--muted); }

/* Nodes come up one at a time, upstream first — the order an
   installation actually gets commissioned in. */
.js .topo__node {
  opacity: 0;
  animation: node-in 0.6s var(--settle) forwards;
  animation-delay: calc(0.32s + var(--i) * 0.11s);
}

@keyframes node-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.topo__note {
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.5;
  margin: 10px 2px 0;
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .topo { max-width: 480px; }
}

/* ===================================================================
   Filter chips
   =================================================================== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.chip {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.chip span { position: relative; z-index: 2; }

/* The active state floods in from the left rather than switching */
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateX(-101%);
  transition: transform 0.55s var(--line-ease);
  z-index: 1;
}

.chip:hover { color: var(--foreground); border-color: var(--line-hi); }

.chip.is-active {
  color: var(--foreground);
  border-color: transparent;
  font-weight: 500;
}

.chip.is-active::before { transform: translateX(0); }

/* ===================================================================
   Service cards
   =================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s var(--settle), border-color 0.4s ease, box-shadow 0.5s ease;
}

/* A live line draws across the top edge from the left on hover */
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--line-ease);
  z-index: 3;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  box-shadow: 0 22px 48px rgba(5, 8, 18, 0.55);
}

.card:hover::before,
.card:focus-visible::before { transform: scaleX(1); }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 0;
}

.card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-hi);
  background: var(--tint);
  color: var(--secondary);
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.card__icon svg { width: 22px; height: 22px; }

.card:hover .card__icon {
  color: var(--foreground);
  background: var(--primary);
  border-color: var(--primary);
}

/* A patch panel port strip: eight ports, the last two coming up on
   hover. Small, but it is the detail that says what this firm does. */
.card__ports { display: flex; gap: 4px; }

.card__ports i {
  width: 7px; height: 11px;
  border-radius: 2px;
  background: rgba(145, 181, 255, 0.14);
  transition: background 0.4s ease;
  transition-delay: calc(var(--p) * 0.03s);
}

.card:hover .card__ports i { background: rgba(145, 181, 255, 0.3); }
.card:hover .card__ports i:nth-child(7),
.card:hover .card__ports i:nth-child(8) { background: var(--secondary); }

.card__body { padding: 16px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: 19.5px;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0 0 6px;
}

.card__tagline {
  font-size: 13.5px;
  color: var(--secondary);
  margin: 0 0 12px;
}

.card__summary {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
}

.card__group { color: var(--faint); }

.card__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
}

.card__open i {
  width: 14px; height: 1px;
  background: var(--secondary);
  transition: width 0.4s var(--line-ease);
}

.card:hover .card__open i { width: 24px; }

.cards__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

/* ===================================================================
   The signal path
   =================================================================== */
.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
}

.path__item {
  position: relative;
  padding: 34px 14px 0 0;
}

/* The run itself: one hairline behind the whole row */
.path__item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--line-hi);
}

.path__item:last-child::before { right: calc(100% - 7px); }

.path__node {
  position: absolute;
  left: 0; top: 3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--background);
  border: 1.5px solid var(--primary);
  z-index: 2;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.path__item.is-live .path__node {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 120, 232, 0.18);
}

.path__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 8px;
}

.path__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: 14.5px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.path__note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .path { grid-template-columns: 1fr; }
  .path__item { padding: 0 0 26px 30px; }
  .path__item::before {
    left: 4px; right: auto; top: 6px; bottom: -6px;
    width: 1px; height: auto;
  }
  .path__item:last-child::before { display: none; }
  .path__node { left: 0; top: 2px; }
  .path__index { display: inline-block; margin: 0 10px 0 0; }
  .path__title { display: inline; font-size: 16.5px; }
  .path__note { margin-top: 6px; }
}

/* ===================================================================
   Focus blocks — the four sections that carry the imagery
   =================================================================== */
.focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  padding: clamp(40px, 5vw, 60px) 0;
}

.focus + .focus { border-top: 1px solid var(--line); }
.focus:nth-child(even) .focus__media { order: 2; }

.focus__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.focus__media img {
  width: 100%;
  height: auto;
  transition: transform 1.4s var(--line-ease);
}

.focus__media:hover img { transform: scale(1.03); }

/* One diagonal sweep of light, held back so it reads as a highlight
   rather than a glow */
.focus__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, transparent 36%, rgba(145, 181, 255, 0.12) 50%, transparent 64%);
  background-size: 260% 100%;
  background-position: 190% 0;
  transition: background-position 1.4s var(--line-ease);
  pointer-events: none;
}

.focus__media:hover .focus__sheen { background-position: -60% 0; }

.focus__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
}

.focus__body { color: var(--muted); margin: 0 0 24px; }

.focus__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.focus__points li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
}

/* Bullets are nodes on a run */
.focus__points li::before {
  content: "";
  position: absolute;
  left: 1px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--background);
  z-index: 2;
}

.focus__points li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 16px;
  bottom: -18px;
  width: 1px;
  background: var(--line-hi);
}

.focus__points li:last-child::after { display: none; }

@media (max-width: 860px) {
  .focus { grid-template-columns: 1fr; gap: 28px; }
  .focus:nth-child(even) .focus__media { order: 0; }
}

/* ===================================================================
   Sectors
   =================================================================== */
.sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 14px;
}

.sector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 20px;
  transition: border-color 0.4s ease, transform 0.5s var(--settle);
}

.sector:hover { border-color: var(--line-hi); transform: translateY(-3px); }

.sector__title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 8px;
}

.sector__title::before {
  content: "";
  margin-top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
  transition: box-shadow 0.4s ease;
}

.sector:hover .sector__title::before { box-shadow: 0 0 0 4px rgba(79, 120, 232, 0.2); }

.sector__note { font-size: 13px; color: var(--muted); margin: 0; }

/* ===================================================================
   Reasons
   =================================================================== */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.reason {
  background: var(--surface);
  padding: 24px 22px 26px;
  transition: background 0.4s ease;
}

.reason:hover { background: var(--surface-hi); }

.reason__mark {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--grad);
  margin-bottom: 16px;
}

.reason__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.reason__note { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ===================================================================
   Process steps — numbered, because this genuinely is a sequence
   =================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 24px;
  transition: border-color 0.4s ease, transform 0.5s var(--settle);
}

.step:hover { border-color: var(--line-hi); transform: translateY(-3px); }

.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 14px;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.step__note { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ===================================================================
   Quote section and form
   =================================================================== */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 46px);
}

.quote__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
}

.quote__lead { color: var(--muted); margin: 0 0 30px; }

.quote__direct {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.quote__direct-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 4px;
}

.quote__direct-value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--secondary);
  transition: color 0.35s ease;
}

a.quote__direct-value:hover { color: var(--foreground); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field-group { margin-bottom: 16px; border: none; padding: 0; min-width: 0; }
.form__row .field-group { margin-bottom: 0; }
.field-group--full { margin-bottom: 18px; }

.field-group label,
.field-group legend {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 8px;
  padding: 0;
}

.field-optional { text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  background: var(--sunk);
  color: var(--foreground);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.field-group textarea { resize: vertical; min-height: 96px; }

.field-group input::placeholder,
.field-group textarea::placeholder { color: rgba(244, 247, 255, 0.28); }

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(10, 16, 32, 0.9);
}

.field-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2391B5FF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field-group option { background: var(--surface); color: var(--foreground); }

.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea { border-color: var(--danger-line); }

.field-error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 7px;
}

.field-group.has-error .field-error { display: block; }

/* Service picks — multi-select chips */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }

.pick {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.pick:hover { color: var(--foreground); border-color: var(--line-hi); }

.pick.is-picked {
  color: var(--foreground);
  background: rgba(79, 120, 232, 0.22);
  border-color: var(--primary);
}

.pick.is-picked::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  margin-right: 8px;
  vertical-align: 1.5px;
}

.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.form__note {
  font-size: 13px;
  color: var(--faint);
  margin: 16px 0 0;
  line-height: 1.5;
}

.form__note.is-sent { color: var(--secondary); }

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

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(14, 21, 38, 0.6);
  padding: 56px 0 28px;
  margin-top: var(--section-gap);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer__note {
  color: var(--muted);
  font-size: 14px;
  max-width: 380px;
  margin: 16px 0 0;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

.footer__heading {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 4px;
}

.footer__links a { color: var(--muted); transition: color 0.35s ease; }
.footer__links a:hover { color: var(--secondary); }
.footer__links span:not(.footer__heading) { color: var(--muted); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
}

.footer__sister a { color: var(--secondary); }

@media (max-width: 780px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ===================================================================
   Detail panel
   =================================================================== */
.detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.detail[hidden] { display: none; }

.detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.4s ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.detail__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 920px);
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(3, 6, 14, 0.7);
  animation: connect 0.5s var(--settle) both;
}

/* Opens the way a link comes up: a thin line, then the full panel */
@keyframes connect {
  0%   { opacity: 0; transform: translateY(20px) scaleY(0.86); }
  100% { opacity: 1; transform: none; }
}

.detail__scroll { overflow-y: auto; max-height: min(88vh, 920px); }

.detail__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: rgba(10, 16, 32, 0.8);
  color: var(--foreground);
  display: grid;
  place-items: center;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.detail__close svg { width: 17px; height: 17px; }
.detail__close:hover { background: var(--primary); border-color: var(--primary); }

.detail__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(79, 120, 232, 0.14), transparent);
}

.detail__icon {
  width: 52px; height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--primary);
  background: rgba(79, 120, 232, 0.2);
  color: var(--secondary);
}

.detail__icon svg { width: 26px; height: 26px; }

.detail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0 0 4px;
  padding-right: 40px;
}

.detail__tagline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--secondary);
  margin: 0;
}

.detail__body { padding: 26px 30px 30px; }

.detail__text {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
  margin: 0 0 26px;
}

.detail__subhead {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin: 0 0 14px;
}

.detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}

.detail__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
}

.detail__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--primary);
}

.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }

.detail__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--sunk);
  border-radius: 999px;
  padding: 6px 13px;
}

.detail__actions { display: flex; flex-wrap: wrap; gap: 11px; }
.detail__actions .btn { flex: 1; min-width: 190px; }

.detail__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  margin: 16px 0 0;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .detail { padding: 0; }
  .detail__panel { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; border: none; }
  .detail__scroll { max-height: 100vh; }
  .detail__head { padding: 24px 20px 20px; }
  .detail__body { padding: 22px 20px 30px; }
  @keyframes connect {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: none; }
  }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1080px) {
  .topbar__inner { flex-wrap: wrap; row-gap: 10px; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .callbtn { margin-left: auto; }
  html { scroll-padding-top: 124px; }
}

@media (max-width: 560px) {
  .shell, .hero__inner { padding-left: 18px; padding-right: 18px; }
  .topbar__inner { padding: 12px 18px; }
  .callbtn__label { display: none; }
  .callbtn { padding: 8px 15px 8px 12px; gap: 8px; }
  .wordmark { font-size: 13.5px; }
  .wordmark__node { margin: 0 6px; }
  .hero__actions .btn { flex: 1; min-width: 148px; padding: 14px 18px; font-size: 13px; }
  .hero__facts { gap: 22px; }
  .trace { height: 46px; }
  .sechead { margin-bottom: 32px; }
}

/* ===================================================================
   REDUCED MOTION
   Ambient motion stops. Everything stays legible and in place —
   nothing is left stuck invisible.
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .js .rise { opacity: 1; transform: none; }
  .js .topo__node { opacity: 1; }
  .field__mass { opacity: 0.16; }
  .wake { display: none; }
  .card:hover { transform: none; }
  .trace::after { opacity: 0.16; }
}
