/* ===================================================================
   ZONE GROUP SOFTWARE & DEVELOPMENT
   -------------------------------------------------------------------
   Sibling build to Zone Real Estate. Same skeleton — token system,
   reveal-on-scroll engine, sticky bar, filtered card grid, detail
   panel, section dividers — retuned from liquid to software.

   DIRECTION OF FLOW: forward along the wire. Where Real Estate moved
   down and to the right like water, this moves the way data does:
   packets run start-to-end along every connection, pipelines advance
   left to right, the deploy rail fills top to bottom. One system
   executing, not a set of separate effects.

   PALETTE: instrument-panel dark. Near-black blue-grey ground, a
   single lime that means "this is live" and a blue that means "this
   is connected". Lime is rationed on purpose — it should read as a
   status light, not as decoration.
   =================================================================== */

/* ===================================================================
   DESIGN TOKENS
   Change colours here and nowhere else.
   =================================================================== */
:root {
  /* Core palette */
  --background: #080C12;
  --surface:    #101720;
  --primary:    #B7F34A;
  --secondary:  #4A8FFF;
  --text:       #F4F7FA;

  /* Derived surfaces */
  --surface-2:  #16202C;
  --surface-3:  #0C1219;

  /* Derived text */
  --text-mid:   rgba(244, 247, 250, 0.64);
  --text-dim:   rgba(244, 247, 250, 0.40);
  --text-faint: rgba(244, 247, 250, 0.24);

  /* Derived lines and washes */
  --line:        rgba(244, 247, 250, 0.09);
  --line-strong: rgba(244, 247, 250, 0.16);
  --danger:      #FF6B6B;
  --danger-text: #FF8A8A;

  --primary-dim:   rgba(183, 243, 74, 0.14);
  --primary-line:  rgba(183, 243, 74, 0.42);
  --secondary-dim: rgba(74, 143, 255, 0.14);
  --secondary-line:rgba(74, 143, 255, 0.42);

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Outfit", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --shell: 1180px;

  /* Scroll velocity, written by engine.js. 0 = idle, 1 = busy.
     Feeds packet brightness the way --churn fed wave height. */
  --flow: 0;

  /* Easing */
  --settle: cubic-bezier(0.22, 1.12, 0.36, 1);
  --exec:   cubic-bezier(0.65, 0, 0.20, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  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(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

/* ===================================================================
   AMBIENT FIELD
   An engineering grid, two slow blooms, fine grain. Deliberately
   quiet: the diagrams are the technical content, the background is
   only depth.
   =================================================================== */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.field__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 247, 250, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 247, 250, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  /* Fades out toward the edges so it never reads as graph paper */
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}

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

.field__bloom--lime {
  width: 44vw; height: 44vw;
  left: -10vw; top: 2vh;
  background: radial-gradient(circle at 50% 50%, rgba(183, 243, 74, 0.16), transparent 66%);
  animation: drift-a 58s ease-in-out infinite;
}

.field__bloom--blue {
  width: 52vw; height: 52vw;
  left: 52vw; top: 30vh;
  background: radial-gradient(circle at 50% 50%, rgba(74, 143, 255, 0.20), transparent 68%);
  animation: drift-b 71s ease-in-out infinite;
}

/* Unequal periods so the pair never lands in the same place twice */
@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40%      { transform: translate3d(9vw, 14vh, 0) scale(1.18); }
  72%      { transform: translate3d(3vw, 34vh, 0) scale(0.9); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  45%      { transform: translate3d(-11vw, -12vh, 0) scale(0.88); }
  76%      { transform: translate3d(-4vw, 18vh, 0) scale(1.2); }
}

.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 trace — desktop only, switched on by engine.js */
.trace {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 143, 255, 0.13), transparent 62%);
  filter: blur(46px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform;
}
.trace.is-live { opacity: 1; }

/* ===================================================================
   SIGNATURE — the deploy rail
   Scroll progress read as a build pipeline. The fill is spring
   damped, so it overshoots and settles when you stop scrolling; the
   stage label swaps as the head passes each tick.
   =================================================================== */
.rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.rail__stage {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  writing-mode: vertical-rl;
  transition: color 0.4s ease;
}

.rail__track {
  position: relative;
  width: 3px;
  height: 190px;
  border-radius: 3px;
  background: rgba(244, 247, 250, 0.10);
}

.rail__tick {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--line-strong);
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.rail__tick.is-passed {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 10px rgba(183, 243, 74, 0.5);
}

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

/* The head of the fill — a packet that has just arrived */
.rail__packet {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(183, 243, 74, 0.16), 0 0 14px rgba(183, 243, 74, 0.6);
}

.rail__readout {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

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

/* ===================================================================
   REVEAL — content arrives the way a module loads: it settles into
   place rather than fading in from nowhere.
   =================================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(6px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 0.7s var(--exec),
    transform 0.95s var(--settle),
    filter 0.7s var(--exec);
}

.reveal[data-delay="1"].is-in { transition-delay: 0.07s; }
.reveal[data-delay="2"].is-in { transition-delay: 0.14s; }
.reveal[data-delay="3"].is-in { transition-delay: 0.21s; }
.reveal[data-delay="4"].is-in { transition-delay: 0.28s; }
.reveal[data-delay="5"].is-in { transition-delay: 0.35s; }

/* ===================================================================
   WORDMARK
   The dot between the words is a packet node: it pulses the way a
   status LED does, on the same rhythm as the rail.
   =================================================================== */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.wordmark__zone { color: var(--text); }

.wordmark__unit {
  color: var(--text-mid);
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: 0.13em;
}

.wordmark__node {
  width: 6px;
  height: 6px;
  margin: 0 9px;
  border-radius: 1.5px;
  background: var(--primary);
  transform: rotate(45deg);
  animation: node-pulse 3.2s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183, 243, 74, 0.5); opacity: 1; }
  50%      { box-shadow: 0 0 0 5px rgba(183, 243, 74, 0); opacity: 0.65; }
}

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

/* ===================================================================
   TOP BAR
   =================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 12, 18, 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;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  transition: color 0.35s ease, background 0.35s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: 3px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--exec);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { transform: scaleX(1); }

/* The one lime object in the bar */
.nav__link--cta {
  margin-left: 10px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--background);
  font-weight: 500;
  transition: transform 0.45s var(--settle), box-shadow 0.45s ease;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  color: var(--background);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(183, 243, 74, 0.24);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
}

.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--settle), opacity 0.3s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
    /* Collapsed by default; opened by the burger */
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav__link { padding: 13px 12px; font-size: 14px; }
  .nav__link::after { display: none; }
  .nav__link--cta { margin: 10px 0 0; text-align: center; }
}

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

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

.btn--primary {
  background: var(--primary);
  color: var(--background);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(183, 243, 74, 0.26);
}

/* A packet of light crosses the button, start to end */
.btn__sweep {
  position: absolute;
  top: 0; bottom: 0;
  left: -35%;
  width: 35%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: left 0.85s var(--exec);
}
.btn--primary:hover .btn__sweep { left: 115%; }

.btn--ghost {
  background: transparent;
  border-color: var(--secondary-line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--secondary);
  background: var(--secondary-dim);
  transform: translateY(-2px);
}

.btn__arrow {
  position: relative;
  z-index: 2;
  color: var(--secondary);
  transition: transform 0.5s var(--settle);
}
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }

.btn--wide { width: 100%; padding: 16px 26px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding: 78px 0 92px;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin: 0 0 24px;
}

.hero__eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: node-pulse 3.2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.hero__line { display: block; }

/* Second line runs live: the gradient moves through the letterforms
   the way a signal moves through a wire. */
.hero__line--live {
  background: linear-gradient(100deg,
    var(--text) 0%, var(--secondary) 24%, var(--primary) 46%,
    var(--secondary) 68%, var(--text) 92%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: signal 14s linear infinite;
}

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

.hero__tagline {
  max-width: 500px;
  color: var(--text-mid);
  font-size: 17px;
  margin: 0 0 34px;
}

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

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  margin: 52px 0 0;
  padding: 26px 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(--text-dim);
  margin-bottom: 7px;
}

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

/* ===================================================================
   SYSTEM MAP — the hero's thesis
   =================================================================== */
.sysmap {
  margin: 0;
  padding: 20px 20px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

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

.sysmap__caption-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
}

.sysmap__caption-status .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: node-pulse 3.2s ease-in-out infinite;
}

.sysmap__svg { width: 100%; height: auto; display: block; }

/* --- shared diagram language (system map, integration hub) --------- */
.wire path {
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

/* A short dash marching the length of each wire. pathLength="100" is
   set on every path so one duration reads as the same speed on a
   long run and a short one. */
.pkt use {
  stroke: var(--primary);
  stroke-width: calc(2.2px + var(--flow) * 1.4px);
  stroke-dasharray: 5 100;
  stroke-dashoffset: 0;
  opacity: calc(0.6 + var(--flow) * 0.4);
  animation: packet 5.4s linear infinite;
}

@keyframes packet {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -105; }
}

.node rect {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.node text {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  text-anchor: middle;
}

.node--core rect {
  fill: var(--primary-dim);
  stroke: var(--primary-line);
  stroke-width: 1.2;
}
.node--core text { fill: var(--primary); font-weight: 500; letter-spacing: 0.06em; }

.node--alt rect { stroke: var(--secondary-line); }
.node--alt text { fill: var(--secondary); }

.branch rect {
  fill: none;
  stroke: var(--secondary-line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.branch text {
  fill: var(--secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
}

.leaf rect {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1;
}
.leaf text {
  fill: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  text-anchor: middle;
}

/* ===================================================================
   BUS DIVIDER
   Replaces Real Estate's wave: a data bus with packets running along
   it. Brightness tracks scroll velocity through --flow.
   =================================================================== */
.bus {
  position: relative;
  z-index: 2;
  height: 4px;
  max-width: var(--shell);
  margin: 0 auto;
  overflow: hidden;
}

.bus--hero { margin-top: 34px; }
.bus--footer { margin-top: 20px; }

.bus__line {
  position: absolute;
  left: 0; right: 0;
  top: 1.5px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

.bus__packet {
  position: absolute;
  top: 0;
  left: -60px;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--primary));
  opacity: calc(0.45 + var(--flow) * 0.55);
  filter: blur(0.4px);
  animation: bus-run 7.5s linear infinite;
}

@keyframes bus-run {
  0%   { left: -60px;  opacity: 0; }
  8%   { opacity: 0.85; }
  92%  { opacity: 0.85; }
  100% { left: 100%;   opacity: 0; }
}

/* ===================================================================
   SECTIONS
   One padding rule, one modifier. Keeps the vertical rhythm honest.
   =================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: 96px 0;
}

.section--surface {
  background: linear-gradient(180deg,
    rgba(16, 23, 32, 0) 0%,
    rgba(16, 23, 32, 0.72) 12%,
    rgba(16, 23, 32, 0.72) 88%,
    rgba(16, 23, 32, 0) 100%);
}

.section--contact { padding-bottom: 110px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin: 0 0 16px;
}

.head { max-width: 720px; margin: 0 0 52px; }

.head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.8vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.head__lede {
  color: var(--text-mid);
  font-size: 16.5px;
  margin: 0;
}

.footnote {
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 640px;
}

/* ===================================================================
   FILTER BAR
   =================================================================== */
.filterbar {
  position: sticky;
  top: 67px;
  z-index: 25;
  margin-bottom: 40px;
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.filterbar__buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filterbar__buttons::-webkit-scrollbar { display: none; }

.filter {
  position: relative;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 17px;
  border-radius: 8px;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}

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

/* The active state loads in from the start of the row, like a fill */
.filter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--primary);
  transform: translateX(-101%);
  transition: transform 0.55s var(--exec);
}

.filter:hover { color: var(--text); border-color: var(--line-strong); }

.filter.is-active {
  color: var(--background);
  border-color: transparent;
  font-weight: 500;
}
.filter.is-active::before { transform: translateX(0); }

.filterbar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ===================================================================
   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;
  color: var(--text);
  gap: 14px;
  padding: 26px 24px 24px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.55s var(--settle), border-color 0.45s ease,
              box-shadow 0.5s ease, background 0.45s ease;
}

/* A connector draws across the top edge on hover: the card joining
   the system rather than merely lifting. */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--exec);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-line);
  color: var(--primary);
  transition: background 0.45s ease, transform 0.55s var(--settle);
}

.card:hover .card__icon { transform: translateY(-1px) scale(1.04); }

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

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19.5px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

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

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

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--secondary);
  transition: gap 0.4s var(--settle);
}
.card:hover .card__more { gap: 11px; }

.card__tagcat {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 9.5px;
}

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

/* ===================================================================
   DETAIL PANEL — a module opening, not a modal appearing
   =================================================================== */
.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(4, 7, 11, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  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-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
  animation: mount 0.55s var(--settle) both;
}

@keyframes mount {
  0%   { opacity: 0; transform: translateY(22px) scale(0.97); }
  100% { opacity: 1; transform: none; }
}

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

.detail__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s var(--settle);
}

.detail__close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--background);
  transform: rotate(90deg);
}

.detail__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-line);
  color: var(--primary);
  margin-bottom: 18px;
}
.detail__icon svg { width: 22px; height: 22px; }

.detail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  max-width: 92%;
}

.detail__headline {
  font-size: 16px;
  color: var(--primary);
  margin: 0 0 18px;
}

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

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

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

.detail__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-mid);
}

/* Bullets are connector stubs, not dots */
.detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 11px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.detail__value {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-left: 2px solid var(--primary);
  font-size: 14.5px;
  color: var(--text-mid);
  margin: 0 0 28px;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  background: var(--secondary-dim);
  border: 1px solid var(--secondary-line);
  padding: 5px 11px;
  border-radius: 6px;
}

/* ===================================================================
   LIFECYCLE — vertical rail, stages light as they arrive
   =================================================================== */
.lifecycle {
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
  position: relative;
  counter-reset: stage;
}

/* Each stage carries its own connector to the stage below, so the
   rail stays correct in one column and in two. */
.stage::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 25px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(180deg, var(--primary-line), var(--secondary-line));
  opacity: 0.55;
}

.stage:last-child::before { display: none; }

.stage {
  position: relative;
  counter-increment: stage;
  padding: 0 0 30px;
}

.stage:last-child { padding-bottom: 0; }

.stage__dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--line-strong);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.stage__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.5s ease;
}

.stage.is-in .stage__dot {
  border-color: var(--primary-line);
  box-shadow: 0 0 12px rgba(183, 243, 74, 0.28);
}
.stage.is-in .stage__dot::after { background: var(--primary); }

.stage__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.stage__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 0 0 5px;
}

.stage__note {
  margin: 0;
  color: var(--text-mid);
  font-size: 14.5px;
  max-width: 560px;
}

/* Two columns on wide screens; the rail stays on the left of each */
@media (min-width: 860px) {
  .lifecycle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 56px;
  }
  /* Reading runs down column one then down column two, so the
     connector stops at the foot of each column. */
  .stage:nth-child(4)::before,
  .stage:nth-child(8)::before { display: none; }
}

/* ===================================================================
   SPLIT — text beside a product mockup
   =================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.split__text .head__title { margin-bottom: 18px; }

.statement {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--primary);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
}
.statement em {
  font-style: normal;
  color: var(--primary);
}

.mockup {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* ===================================================================
   TILES — custom system categories
   =================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

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

.tile:hover {
  border-color: var(--secondary-line);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.tile__name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  margin: 0 0 8px;
}

.tile__name::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--secondary);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.tile:hover .tile__name::before { background: var(--primary); }

.tile__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mid);
}

/* ===================================================================
   INTEGRATION HUB
   =================================================================== */
.hub {
  margin: 0 0 44px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.hub__svg { width: 100%; height: auto; display: block; }

/* Below the SVG breakpoint the fan is unreadable, so the same
   information is shown as a connected list instead. */
.hub__list { display: none; }

@media (max-width: 760px) {
  .hub__svg { display: none; }

  .hub__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hub__list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mid);
  }

  .hub__list li::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    flex: 0 0 auto;
  }

  .hub__list li:first-child { grid-column: 1 / -1; }
  .hub__list li:first-child::before { background: var(--primary); }
}

/* ===================================================================
   NOTES — short explanatory pairs / triples
   =================================================================== */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.note {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.note h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin: 0 0 12px;
  font-weight: 500;
}

.note p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-mid);
}

/* ===================================================================
   PIPELINE — code to production, left to right
   =================================================================== */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0 0 44px;
  padding: 34px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.pipeline__stage {
  position: relative;
  padding: 0 12px;
  text-align: center;
}

/* Connector between stages, with a packet running along it */
.pipeline__stage::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}

.pipeline__stage:last-child::before { display: none; }

.pipeline__stage::after {
  content: "";
  position: absolute;
  top: 4.5px;
  left: 50%;
  width: 16px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--primary));
  opacity: 0;
  animation: hop 6s linear infinite;
}

.pipeline__stage:last-child::after { display: none; }

.pipeline__stage:nth-child(1)::after { animation-delay: 0s; }
.pipeline__stage:nth-child(2)::after { animation-delay: 1s; }
.pipeline__stage:nth-child(3)::after { animation-delay: 2s; }
.pipeline__stage:nth-child(4)::after { animation-delay: 3s; }
.pipeline__stage:nth-child(5)::after { animation-delay: 4s; }

@keyframes hop {
  0%   { transform: translateX(0); opacity: 0; }
  3%   { opacity: 0.9; }
  14%  { transform: translateX(100%); opacity: 0.9; }
  17%  { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(100%); opacity: 0; }
}

.pipeline__dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 13px; height: 13px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--primary-line);
}

.pipeline__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.pipeline__name {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

.pipeline__note {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .pipeline__stage:nth-child(3)::before { display: none; }
  .pipeline__stage:nth-child(3)::after { display: none; }
}

@media (max-width: 470px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline__stage:nth-child(2)::before,
  .pipeline__stage:nth-child(4)::before { display: none; }
  .pipeline__stage:nth-child(2)::after,
  .pipeline__stage:nth-child(4)::after { display: none; }
  .pipeline__stage:nth-child(3)::before { display: block; }
}

/* ===================================================================
   AI FLOWS
   =================================================================== */
.flows {
  display: grid;
  gap: 16px;
  margin-bottom: 44px;
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.45s ease, background 0.45s ease;
}

.flow:hover { border-color: var(--line-strong); background: var(--surface-2); }

.flow__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0 0 7px;
}

.flow__note {
  margin: 0;
  font-size: 14px;
  color: var(--text-mid);
}

.flow__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow__step {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--text-mid);
  white-space: nowrap;
}

.flow__step--ai {
  color: var(--primary);
  border-color: var(--primary-line);
  background: var(--primary-dim);
}

.flow__step--end {
  color: var(--secondary);
  border-color: var(--secondary-line);
  background: var(--secondary-dim);
}

.flow__arrow {
  color: var(--text-faint);
  font-size: 13px;
}

@media (max-width: 780px) {
  .flow { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- manual to automated ---- */
.transform {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.transform__step {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mid);
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.transform__step--end {
  color: var(--background);
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
}

.transform__arrow { color: var(--secondary); }

/* ===================================================================
   INDUSTRIES
   =================================================================== */
.industries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

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

.industry:hover {
  background: var(--surface-2);
  border-color: var(--secondary-line);
  transform: translateY(-3px);
}

.industry__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  margin: 0 0 7px;
}

.industry__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mid);
}

/* ===================================================================
   REASONS
   =================================================================== */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.reason {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.reason__mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--primary-dim);
  border: 1px solid var(--primary-line);
}

.reason__mark::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(-45deg) translate(1px, -1px);
}

.reason__title {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  margin: 0 0 5px;
}

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

/* ===================================================================
   STEPS — how working together goes
   =================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
  counter-reset: step;
}

/* Steps are a sequence, so they get the accent edge that the
   non-sequential grids don't. */
.step {
  counter-increment: step;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--secondary-line);
  border-radius: 13px;
  transition: background 0.4s ease, border-left-color 0.4s ease,
              transform 0.5s var(--settle);
}

.step:hover {
  background: var(--surface-2);
  border-left-color: var(--primary);
  transform: translateY(-3px);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 7px;
}

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

/* ===================================================================
   CONTACT + FORM
   =================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: start;
}

.contact__direct {
  list-style: none;
  margin: 36px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
}

.contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.contact__value {
  font-family: var(--font-mono);
  font-size: 15.5px;
  color: var(--primary);
  transition: opacity 0.35s ease;
}

.contact__value:hover { opacity: 0.75; }
.contact__value--plain { color: var(--text-mid); font-size: 13.5px; }

.form {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-mid);
  margin-bottom: 9px;
  padding: 0;
}

.opt { color: var(--text-faint); letter-spacing: 0.06em; }

.input {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.input::placeholder { color: var(--text-faint); }

.input:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--surface-2);
}

.input--area { resize: vertical; min-height: 120px; font-size: 15px; }

.input.has-error { border-color: var(--danger); }

.field-error {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--danger-text);
  min-height: 0;
  display: none;
}

.field-error.is-shown { display: block; }

/* ---- project type chips ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text-mid);
  transition: all 0.35s ease;
}

.chip:hover { border-color: var(--secondary-line); color: var(--text); }

.chip.is-picked {
  background: var(--primary-dim);
  border-color: var(--primary-line);
  color: var(--primary);
}

.form__status {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--primary);
  min-height: 18px;
}

.form__status--error { color: var(--danger-text); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  position: relative;
  z-index: 2;
  padding: 60px 0 34px;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

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

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  align-content: start;
}

.footer__nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  transition: color 0.35s ease;
}
.footer__nav a:hover { color: var(--primary); }

.footer__contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer__phone,
.footer__email {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  transition: color 0.35s ease;
}
.footer__phone:hover, .footer__email:hover { color: var(--primary); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.footer__sister { color: var(--text-faint); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .sysmap { max-width: 480px; }
  .split { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .head { margin-bottom: 40px; }

  .detail { padding: 0; }
  .detail__panel { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
  .detail__scroll { max-height: 100vh; padding: 28px 22px 34px; }
  .detail__title { font-size: 23px; }
}

@media (max-width: 560px) {
  .shell { padding: 0 18px; }
  .hero__inner { padding: 0 18px; }
  .topbar__inner { padding: 12px 18px; }
  .filterbar__inner { padding: 12px 18px; }
  .filterbar { top: 63px; }
  .filterbar__count { display: none; }
  .wordmark__unit { display: none; }
  .wordmark { font-size: 16px; }
  .hero__facts { gap: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

/* ===================================================================
   REDUCED MOTION
   Everything ambient stops. Nothing is left hidden or unreadable.
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js .reveal { opacity: 1; transform: none; filter: none; }
  .trace { display: none; }
  .field__bloom { opacity: 0.6; }
  .card:hover { transform: none; }
  .pkt use { opacity: 0.5; stroke-dasharray: 3 5; }
  .stage__dot { border-color: var(--primary-line); }
  .stage__dot::after { background: var(--primary); }
}
