/* ==========================================================================
   Nevion Labs — home page (index.php)
   Breakpoints: 960px "narrow" (single column), 640px "mobile".
   ========================================================================== */

/* ---------- Page-only keyframes ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes homeFlowX { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  @keyframes homeMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes homeFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
  @keyframes homeGrow { from { width: 0; } to { width: 100%; } }
  @keyframes homeBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes homeRipple { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
  @keyframes homePulse { 0% { box-shadow: 0 0 0 0 rgba(241, 43, 43, .6); } 100% { box-shadow: 0 0 0 16px rgba(241, 43, 43, 0); } }
  @keyframes homeDrift { to { background-position: 36px 36px; } }
}

/* ---------- Shared section pieces ---------- */
.home-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Decorative absolutely positioned layer behind section content */
.home-deco {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.home-inner {
  padding-top: clamp(72px, 9vw, 144px);
  padding-bottom: clamp(72px, 9vw, 144px);
}

.home-h2 {
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}

.home-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 80px);
}
.home-head--wide { margin-bottom: clamp(48px, 6vw, 88px); }
.home-head__title { display: flex; flex-direction: column; gap: 24px; }

.home-lede {
  font-size: 17px;
  line-height: 1.6;
  color: #4A4945;
  max-width: 46ch;
}
.home-lede--dark { color: var(--on-dark-2); }
.home-lede--narrow { max-width: 44ch; }

.home-eyebrow--dark { color: #A9A8A2; }

/* Buttons that were reset with all:unset in the original */
.home-cap-chip:focus-visible,
.home-cap__tab:focus-visible,
.home-cap-mobile__next:focus-visible,
.home-path-tab:focus-visible,
.home-crm__tab:focus-visible,
.home-crm__replay:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.home-hero__lines {
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(11, 11, 11, 0.06) 0 1px, transparent 1px 120px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}
.home-hero__dots {
  right: -6%;
  top: 22%;
  width: 68%;
  height: 90%;
  background-image: radial-gradient(rgba(11, 11, 11, 0.22) 1px, transparent 1.2px);
  background-size: 18px 18px;
  animation: homeDrift 5s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.home-hero__square {
  right: var(--gutter);
  top: clamp(140px, 16vw, 240px);
  width: clamp(120px, 18vw, 260px);
  height: clamp(120px, 18vw, 260px);
  border: 1px solid rgba(11, 11, 11, 0.12);
  animation: nvSpin 80s linear infinite;
}
.home-hero__square-dot {
  right: calc(var(--gutter) - 5px);
  top: calc(clamp(140px, 16vw, 240px) - 5px);
  width: 10px;
  height: 10px;
  background: var(--red);
}

.home-hero__inner {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.home-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-hero__tag { display: flex; align-items: center; gap: 10px; }
.home-hero__tagline { max-width: 340px; text-align: right; }

.home-hero__title {
  animation: nvRise 1s var(--ease-out) both;
  margin: clamp(28px, 4vw, 56px) 0 0;
  font-weight: 500;
  font-size: clamp(40px, 8.6vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 12.5ch;
  text-wrap: balance;
}

.home-hero__grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
}

.home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 8px;
  animation: nvRise 1s var(--ease-out) .15s both;
}
.home-hero__lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--text);
  max-width: 30ch;
  text-wrap: pretty;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

.home-cta {
  background: var(--ink);
  color: var(--white);
  padding: 18px 26px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  transition: background .2s;
}
.home-cta:hover { background: var(--red); color: var(--white); }

.home-hero__link {
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  white-space: nowrap;
  flex: none;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}
.home-hero__link:hover { color: var(--red); border-color: var(--red); }

/* Quick paths (mobile only) */
.home-quick { display: none; flex-direction: column; margin-top: 4px; }
.home-quick__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
}
.home-quick__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 48px;
}
.home-quick__link:hover { color: var(--ink); }
.home-quick__text { display: flex; gap: 12px; align-items: baseline; }
.home-quick__num { font-family: var(--mono); font-size: 11px; color: var(--red); }

/* Lead-system map */
.home-map {
  animation: nvRise 1.1s var(--ease-out) .3s both;
  margin: 0;
  background: var(--charcoal);
  color: #EDEDEA;
  border: 1px solid var(--charcoal);
  font-family: var(--mono);
}
.home-map__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #262624;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.home-map__status { display: flex; gap: 16px; align-items: center; }
.home-map__live { display: flex; align-items: center; gap: 6px; }
.home-map__pulse {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: homePulse 1.6s ease-out infinite;
}

.home-map__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.15fr) 28px minmax(0, 1fr);
  padding: 24px 20px 20px;
  gap: 0;
  align-items: stretch;
}
.home-map__col { display: flex; flex-direction: column; gap: 8px; }
.home-map__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-dark);
  margin-bottom: 4px;
}

.home-map__node {
  border: 1px solid #2C2C2A;
  padding: 10px 12px;
  background: #161615;
  transition: all .45s;
}
.home-map__node.is-active { border-color: var(--red); background: #1F1514; }

.home-map__source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-family: 'Geist', sans-serif;
}
.home-map__kind { font-family: var(--mono); font-size: 10px; color: var(--muted-dark); }

.home-map__dest { display: flex; flex-direction: column; gap: 3px; }
.home-map__dest-name { font-family: 'Geist', sans-serif; font-size: 12px; color: var(--white); }
.home-map__dest-action { font-size: 10px; color: var(--muted-dark); }

.home-map__wire {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 22px;
}
.home-map__wire-line {
  height: 1px;
  background: linear-gradient(90deg, #3A3A37, var(--red));
  position: relative;
}
.home-map__wire--out .home-map__wire-line { background: linear-gradient(90deg, var(--red), #3A3A37); }
.home-map__packet {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--red);
  animation: homeFlowX 1.6s linear infinite;
}
.home-map__wire--out .home-map__packet { animation-delay: .8s; }

.home-map__router {
  flex: 1;
  border: 1px solid var(--red);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #151313;
}
.home-map__router-title {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.home-map__rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--on-dark-2);
}
.home-map__indent { padding-left: 12px; }
.home-map__value { color: var(--white); }
.home-map__tags { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.home-map__tag {
  font-size: 10px;
  border: 1px solid var(--line-dark-2);
  padding: 4px 7px;
  color: var(--muted-2);
}

.home-map__measure {
  margin: 0 20px 20px;
  border: 1px solid #2C2C2A;
  border-top: 2px solid var(--red);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}
.home-map__measure-label { font-size: 10px; letter-spacing: 0.1em; color: var(--muted-dark); }
.home-map__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.home-map__chip {
  font-size: 10px;
  padding: 4px 8px;
  background: #1E1E1C;
  color: #D8D7D1;
  transition: all .4s;
}
.home-map__chip.is-active { background: var(--red); color: var(--white); }

.home-map__log {
  border-top: 1px solid #262624;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #8A8984;
  min-height: 68px;
}
.home-map__log-line {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-map__log-time { color: #5F5E5A; }
.home-map__log-msg { color: #8A8984; }
.home-map__log-line.is-new .home-map__log-msg { color: #D8D7D1; }
.home-map__log-line.is-new.is-hot .home-map__log-msg { color: var(--red); }

/* ==========================================================================
   Positioning strip
   ========================================================================== */
.home-strip { background: var(--ink); color: var(--white); }
.home-strip__marquee {
  left: 0;
  bottom: -0.28em;
  white-space: nowrap;
  animation: homeMarquee 45s linear infinite;
  font-size: clamp(120px, 15vw, 240px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-dark);
}
.home-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.home-pillar {
  padding: clamp(36px, 4vw, 56px) clamp(0px, 2vw, 32px) clamp(36px, 4vw, 56px) 0;
  border-bottom: 1px solid #242422;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-pillar__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--red); }
.home-pillar__title {
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 500;
}
.home-pillar__copy { font-size: 15px; line-height: 1.55; color: #A9A8A2; max-width: 34ch; }

/* ==========================================================================
   Problem
   ========================================================================== */
.home-problem { background: var(--paper-2); }
.home-problem__dash {
  left: 0;
  right: 0;
  top: clamp(36px, 4vw, 64px);
  height: 1px;
  background-image: repeating-linear-gradient(90deg, #D6D5CF 0 6px, transparent 6px 12px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 22%, transparent 22% 26%, #000 26% 51%, transparent 51% 55%, #000 55% 78%, transparent 78% 82%, #000 82%);
  mask-image: linear-gradient(90deg, #000 0 22%, transparent 22% 26%, #000 26% 51%, transparent 51% 55%, #000 55% 78%, transparent 78% 82%, #000 82%);
}
.home-problem__node {
  top: calc(clamp(36px, 4vw, 64px) - 4px);
  width: 8px;
  height: 8px;
  background: var(--red);
}
.home-problem__node--1 { left: 24%; }
.home-problem__node--2 { left: 53%; }
.home-problem__node--3 { left: 80%; }
.home-problem__dots {
  left: -10%;
  bottom: -10%;
  width: 55%;
  height: 60%;
  background-image: radial-gradient(rgba(11, 11, 11, 0.16) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}

.home-problem__inner {
  padding-top: clamp(72px, 9vw, 144px);
  padding-bottom: clamp(72px, 9vw, 144px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.home-problem__intro {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.home-problem__muted { color: #8E8D88; }
.home-problem__lede { font-size: 17px; line-height: 1.6; color: #4A4945; max-width: 42ch; }

.home-stack {
  background: var(--paper);
  padding: 28px clamp(18px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.home-stack__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.home-stack__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.home-stack__item { display: flex; align-items: center; gap: 10px; }
.home-stack__tool {
  border: 1px solid #CFCEC8;
  background: var(--white);
  padding: 10px 14px;
  font-size: 13px;
  animation: homeFloat 3.4s ease-in-out infinite;
}
.home-stack__item:nth-child(1) .home-stack__tool { transform: rotate(-1.5deg); animation-delay: 0s; }
.home-stack__item:nth-child(2) .home-stack__tool { transform: rotate(1deg); animation-delay: .45s; }
.home-stack__item:nth-child(3) .home-stack__tool { transform: rotate(-0.5deg); animation-delay: .9s; }
.home-stack__item:nth-child(4) .home-stack__tool { transform: rotate(1.5deg); animation-delay: 1.35s; }
.home-stack__item:nth-child(5) .home-stack__tool { transform: rotate(-1deg); animation-delay: 1.8s; }
.home-stack__x { font-family: var(--mono); font-size: 12px; color: var(--red); }
.home-stack__item:last-child .home-stack__x { opacity: 0; }

.home-problem-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px 24px;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid #D6D5CD;
  align-items: baseline;
}
.home-problem-item__num { font-family: var(--mono); font-size: 13px; color: var(--red); }
.home-problem-item__body { display: flex; flex-direction: column; gap: 10px; }
.home-problem-item__title {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.1;
}
.home-problem-item__copy { font-size: 16px; line-height: 1.6; color: #4A4945; max-width: 48ch; }
.home-problem-item__tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #5A5955;
  border: 1px solid var(--rule-strong);
  padding: 6px 10px;
  white-space: nowrap;
  justify-self: start;
}

/* ==========================================================================
   Capabilities
   ========================================================================== */
.home-caps { background: var(--paper); scroll-margin-top: 76px; }
.home-caps__grid-bg {
  inset: 0;
  background-image: linear-gradient(rgba(11, 11, 11, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 11, 11, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent);
}
.home-caps__num {
  right: var(--gutter);
  top: clamp(40px, 5vw, 72px);
  font-size: clamp(120px, 16vw, 260px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px #D6D5CF;
}

/* Mobile chip tabs */
.home-cap-chips {
  display: none;
  gap: 6px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)) 16px;
  padding: 0 var(--gutter);
  scrollbar-width: none;
}
.home-cap-chip {
  all: unset;
  cursor: pointer;
  flex: none;
  padding: 12px 16px;
  border: 1px solid #CFCEC8;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  gap: 8px;
  align-items: center;
}
.home-cap-chip__num { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.home-cap-chip[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.home-cap-chip[aria-selected="true"] .home-cap-chip__num { color: var(--red); }

.home-caps__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

/* Desktop layer list */
.home-cap-list { display: flex; flex-direction: column; position: relative; }
.home-cap {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  position: relative;
}
.home-cap__rail { display: flex; flex-direction: column; align-items: center; }
.home-cap__rail-top { width: 1px; height: 30px; background: #CFCEC8; }
.home-cap__rail-bottom { width: 1px; flex: 1; background: #CFCEC8; }
.home-cap:first-child .home-cap__rail-top,
.home-cap:last-child .home-cap__rail-bottom { background: transparent; }
.home-cap__mark {
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 1px solid var(--muted-2);
  flex: none;
}
.home-cap.is-active .home-cap__mark { background: var(--red); border-color: var(--red); }

.home-cap__body {
  padding: 22px 0 28px;
  border-bottom: 1px solid #E2E1DC;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-cap__tab {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-cap__layer {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-cap__title {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 500;
  color: var(--muted);
}
.home-cap.is-active .home-cap__layer { color: var(--red); }
.home-cap.is-active .home-cap__title { color: var(--ink); }

.home-cap__detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: nvFade .5s var(--ease-out) both;
}
.home-cap__outcome {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 36ch;
}
.home-cap__copy { font-size: 15px; line-height: 1.6; color: #4A4945; max-width: 44ch; }
.home-cap__link {
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.home-cap__link:hover { color: var(--red); border-color: var(--red); }
.home-cap__progress {
  height: 2px;
  background: #E2E1DC;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}
.home-cap__progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--red);
  animation: homeGrow 7s linear both;
}
.home-cap-list.is-manual .home-cap__progress { display: none; }

/* Illustrative panel */
.home-cap-panel {
  background: var(--charcoal);
  color: #EDEDEA;
  min-height: 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
}
.home-cap-panel__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid #262624;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.home-cap-panel__body {
  flex: 1;
  padding: clamp(18px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
}
.home-cap-view { flex: 1; animation: nvFade .5s var(--ease-out) both; }

/* 01 pipeline */
.home-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.home-pipeline__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #161615;
  padding: 10px;
  border: 1px solid #232321;
}
.home-pipeline__head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  padding: 2px 2px 6px;
  border-bottom: 1px solid #2A2A28;
}
.home-pipeline__card {
  background: #1E1E1C;
  border: 1px solid #2C2C2A;
  border-left: 2px solid #3A3A37;
  padding: 10px;
  animation: nvFade .5s var(--ease-out) both;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-pipeline__card--hot { border-left-color: var(--red); }
/* stagger: column * .1s + card * .15s */
.home-pipeline__col:nth-child(1) .home-pipeline__card:nth-child(3) { animation-delay: .15s; }
.home-pipeline__col:nth-child(2) .home-pipeline__card:nth-child(2) { animation-delay: .1s; }
.home-pipeline__col:nth-child(2) .home-pipeline__card:nth-child(3) { animation-delay: .25s; }
.home-pipeline__col:nth-child(3) .home-pipeline__card:nth-child(2) { animation-delay: .2s; }
.home-pipeline__col:nth-child(4) .home-pipeline__card:nth-child(2) { animation-delay: .3s; }
.home-pipeline__col:nth-child(4) .home-pipeline__card:nth-child(3) { animation-delay: .45s; }
.home-pipeline__name { font-family: 'Geist', sans-serif; font-size: 13px; color: var(--white); }
.home-pipeline__src { font-size: 10px; color: #8A8984; }
.home-pipeline__next { font-size: 10px; color: var(--on-dark-2); }

/* 02 workflow run */
.home-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}
.home-chain__step {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 16px;
  align-items: stretch;
}
.home-chain__rail { display: flex; flex-direction: column; align-items: center; }
.home-chain__dot {
  width: 10px;
  height: 10px;
  margin-top: 20px;
  background: #3A3A37;
  flex: none;
  transition: background .3s;
}
.home-chain__line { width: 1px; flex: 1; background: var(--line-dark-2); }
.home-chain__step:last-child .home-chain__line { opacity: 0; }
.home-chain__body {
  padding: 14px 0;
  border-bottom: 1px solid #232321;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-chain__kind { font-size: 10px; letter-spacing: 0.08em; color: var(--muted-dark); }
.home-chain__label { font-family: 'Geist', sans-serif; font-size: 15px; color: var(--white); }
.home-chain__status {
  padding: 14px 0;
  border-bottom: 1px solid #232321;
  font-size: 10px;
  color: #5F5E5A;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.home-chain__step.is-ok .home-chain__dot { background: var(--on-dark-2); }
.home-chain__step.is-ok .home-chain__status { color: var(--on-dark-2); }
.home-chain__step.is-run .home-chain__dot { background: var(--red); }
.home-chain__step.is-run .home-chain__status { color: var(--red); }

/* 03 tracking plan + 04 data mapping */
.home-track,
.home-ops { display: flex; flex-direction: column; gap: 28px; }
.home-table { display: flex; flex-direction: column; }
.home-table__head {
  display: grid;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid #2A2A28;
}
.home-table__row {
  display: grid;
  gap: 12px;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1F1F1D;
}
.home-table--track .home-table__head,
.home-table--track .home-table__row { grid-template-columns: 1.4fr 1fr auto; }
.home-table--track .home-table__row { align-items: center; }
.home-table--map .home-table__head,
.home-table--map .home-table__row { grid-template-columns: 1fr 1fr 1.3fr; }
.home-table__strong { color: var(--white); }
.home-table__muted { color: var(--muted-2); }
.home-table__soft { color: var(--on-dark-2); }
.home-table__ok { color: #D8D7D1; }

.home-bars { display: flex; flex-direction: column; gap: 12px; }
.home-bars__label { font-size: 10px; letter-spacing: 0.08em; color: var(--muted-dark); }
.home-bar {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.home-bar__name { color: var(--on-dark-2); }
.home-bar__track { height: 14px; background: #1A1A18; }
.home-bar__fill {
  height: 14px;
  background: var(--muted-2);
  transform-origin: left;
  animation: homeBar 1.1s var(--ease-out) both;
}
.home-bar__fill--1 { width: 78%; background: #EDEDEA; }
.home-bar__fill--2 { width: 62%; }
.home-bar__fill--3 { width: 44%; }
.home-bar__fill--4 { width: 30%; }

.home-ops__docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.home-ops__doc {
  border: 1px solid #2C2C2A;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-ops__key { font-size: 10px; color: var(--red); letter-spacing: 0.08em; }
.home-ops__val { font-family: 'Geist', sans-serif; font-size: 13px; color: #EDEDEA; line-height: 1.4; }

/* Mobile summary of the active layer */
.home-cap-mobile {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: nvFade .5s ease both;
}
.home-cap-mobile__layer {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.home-cap-mobile__title { font-size: 26px; letter-spacing: -0.03em; line-height: 1.08; font-weight: 500; }
.home-cap-mobile__outcome { font-size: 17px; line-height: 1.45; color: var(--text); }
.home-cap-mobile__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.home-cap-mobile__more {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.home-cap-mobile__more:hover { color: var(--ink); }
.home-cap-mobile__next {
  all: unset;
  cursor: pointer;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   Websites & AEO/GEO ("front door")
   ========================================================================== */
.home-front { background: var(--charcoal); color: var(--white); scroll-margin-top: 76px; }
.home-front__lines {
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
}
.home-front__axis {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--red) 40%, transparent);
}
.home-front__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.home-layer { border: 1px solid #2A2A28; display: flex; flex-direction: column; }
.home-layer__body {
  padding: clamp(20px, 2.6vw, 36px);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.home-layer__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--red); }
.home-layer__title {
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1.02;
}
.home-layer__copy { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); max-width: 44ch; }
.home-layer__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--white);
  padding-bottom: 3px;
  color: var(--white);
}
.home-layer__link:hover { color: var(--red); border-color: var(--red); }

.home-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.home-points li {
  padding: 12px 0;
  border-top: 1px solid #262624;
  font-size: 15px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}

/* Browser mock */
.home-browser {
  background: var(--paper);
  color: var(--ink);
  margin: clamp(16px, 2vw, 24px);
  border: 1px solid #E2E1DC;
  display: flex;
  flex-direction: column;
}
.home-browser__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #E2E1DC;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.home-browser__dots { display: flex; gap: 5px; }
.home-browser__dots span { width: 7px; height: 7px; background: #CFCEC8; }
.home-browser__url {
  flex: 1;
  border: 1px solid #E2E1DC;
  background: var(--white);
  padding: 4px 8px;
}
.home-browser__page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}
.home-browser__copy { display: flex; flex-direction: column; gap: 8px; }
.home-sk { background: #CFCEC8; height: 6px; }
.home-sk--1 { height: 10px; width: 40%; background: var(--red); }
.home-sk--2 { height: 14px; width: 92%; background: var(--ink); }
.home-sk--3 { height: 14px; width: 70%; background: var(--ink); }
.home-sk--4 { width: 85%; margin-top: 6px; }
.home-sk--5 { width: 75%; }
.home-sk--6 { width: 60%; }
.home-browser__form {
  border: 1px solid #CFCEC8;
  background: var(--white);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}
.home-browser__form-label { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.06em; }
.home-browser__field { height: 18px; border: 1px solid #E2E1DC; }
.home-browser__submit {
  height: 20px;
  background: var(--ink);
  transition: background .4s;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-browser__submit.is-sent { background: var(--red); }
.home-browser__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 16px; }
.home-browser__tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid #CFCEC8;
  color: var(--muted);
  background: transparent;
  transition: all .4s;
}
.home-browser__tag.is-on { border-color: var(--red); color: var(--white); background: var(--red); }

/* AI answer mock */
.home-ai {
  background: var(--ink);
  margin: clamp(16px, 2vw, 24px);
  border: 1px solid #2A2A28;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
}
.home-ai__bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
}
.home-ai__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.home-ai__q {
  align-self: flex-end;
  max-width: 85%;
  background: #1E1E1C;
  border: 1px solid #2C2C2A;
  padding: 10px 12px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: #EDEDEA;
}
.home-ai__lines { display: flex; flex-direction: column; gap: 8px; }
.home-ai__line { height: 8px; background: #3A3A37; opacity: 0.15; transition: opacity .5s; }
.home-ai__line.is-on { opacity: 1; }
.home-ai__line--1 { width: 96%; }
.home-ai__line--2 { width: 88%; }
.home-ai__line--3 { width: 92%; }
.home-ai__line--4 { width: 64%; }
.home-ai__sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 10px; }
.home-ai__sources-label { color: var(--muted-dark); }
.home-ai__cite { padding: 4px 8px; border: 1px solid #2C2C2A; color: var(--muted-dark); }
.home-ai__cite--brand { transition: all .5s; }
.home-ai.is-cited .home-ai__cite--brand { border-color: var(--red); color: var(--white); }
.home-ai__signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.home-ai__signal {
  padding: 10px 12px;
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-ai__signal-k { font-size: 9px; letter-spacing: 0.08em; color: var(--muted-dark); }
.home-ai__signal-v { font-size: 11px; color: var(--muted-dark); transition: color .4s; }
.home-ai.is-cited .home-ai__signal-v { color: #EDEDEA; }

/* ==========================================================================
   Solutions
   ========================================================================== */
.home-solutions { background: #E6E5DE; scroll-margin-top: 76px; }
.home-solutions__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 900px;
}
.home-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 0;
}
.home-path-tabs {
  display: none;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  margin-bottom: 16px;
}
.home-path-tab {
  all: unset;
  cursor: pointer;
  text-align: center;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
}
.home-path-tab[aria-selected="true"] { background: var(--ink); color: var(--white); }

.home-path {
  --path-muted: var(--muted);
  --path-sub: #4A4945;
  --path-line: var(--rule);
  --path-ghost: #EAE9E3;
  background: #F7F7F4;
  color: var(--ink);
  border: 1px solid #F7F7F4;
  padding: clamp(28px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.home-path--dark {
  --path-muted: var(--muted-2);
  --path-sub: var(--on-dark-2);
  --path-line: #2A2A28;
  --path-ghost: #1A1A19;
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.home-path__ghost {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  right: 0.04em;
  bottom: -0.24em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(260px, 28vw, 460px);
  line-height: 1;
  color: var(--path-ghost);
}
.home-path__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--path-muted);
}
.home-path__head { display: flex; flex-direction: column; gap: 14px; }
.home-path__title {
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
}
.home-path__outcome {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--path-sub);
  max-width: 30ch;
}
.home-path__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.home-path__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--path-line);
}
.home-path__num { font-family: var(--mono); font-size: 11px; color: var(--path-muted); padding-top: 4px; }
.home-path__text { display: flex; flex-direction: column; gap: 4px; }
.home-path__item-title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.home-path__item-desc { font-size: 15px; line-height: 1.5; color: var(--path-sub); }
.home-path__cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: inherit;
}
.home-path__cta:hover { color: var(--red); }

/* ==========================================================================
   Concept project
   ========================================================================== */
.home-concept { background: var(--ink); color: var(--white); }
.home-concept__grid-bg {
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.3));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.3));
}
.home-concept__glow {
  right: -15%;
  top: -25%;
  width: 60%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(241, 43, 43, 0.14), transparent);
}
.home-concept__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 32px 64px;
  align-items: end;
}
.home-concept__intro { display: flex; flex-direction: column; gap: 28px; }
.home-concept__badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--red);
  padding: 8px 12px;
}
.home-concept__title {
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.home-concept__lede { font-size: 16px; line-height: 1.6; color: #A9A8A2; max-width: 46ch; }

/* Flow steps */
.home-flow {
  list-style: none;
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0;
  position: relative;
}
.home-flow__scan {
  position: absolute;
  top: -1px;
  height: 1px;
  background: var(--red);
  animation: nvScan 6s ease-in-out infinite;
  z-index: 1;
}
.home-flow__step {
  border-top: 1px solid var(--line-dark-2);
  padding: 22px 20px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.home-flow__mark {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--red);
  transition: all .4s;
}
.home-flow__step.is-active .home-flow__mark { top: -7px; width: 13px; height: 13px; }
.home-flow__n { font-family: var(--mono); font-size: 11px; color: var(--muted-dark); letter-spacing: 0.06em; }
.home-flow__title {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #8A8984;
  transition: color .4s;
}
.home-flow__step.is-active .home-flow__title { color: var(--white); }
.home-flow__desc { font-size: 14px; line-height: 1.5; color: #A9A8A2; }

.home-concept__demo {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

/* CRM lead simulation */
.home-crm {
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-crm__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 22px;
  border-bottom: 1px solid #E2E1DC;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex-wrap: wrap;
}
.home-crm__bar-title { padding: 16px 0; }
.home-crm__tabs { display: flex; gap: 4px; overflow-x: auto; }
.home-crm__tab {
  all: unset;
  cursor: pointer;
  padding: 16px 12px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s, border-color .3s;
}
.home-crm__tab:hover { color: var(--ink); }
.home-crm__tab[aria-selected="true"] { border-bottom-color: var(--red); color: var(--ink); }
.home-crm__replay {
  all: unset;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #CFCEC8;
  color: var(--ink);
}
.home-crm__replay:hover { border-color: var(--red); color: var(--red); }

.home-crm__body {
  flex: 1;
  padding: clamp(20px, 2.4vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 32px;
}

.home-lead { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.home-lead__head { display: flex; gap: 14px; align-items: flex-start; }
.home-lead__initial {
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
}
.home-lead__id { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.home-lead__title { font-size: 22px; letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
.home-lead__sub { font-size: 13px; color: var(--muted); }
.home-lead__score-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.home-lead__score {
  font-size: 26px;
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
  color: var(--muted-2);
  transition: color .4s;
}
.home-lead__score.is-on { color: var(--ink); }
.home-lead__score.is-on.is-hot { color: var(--red); }
.home-lead__score-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--muted); }

.home-lifecycle { display: flex; flex-direction: column; gap: 8px; }
.home-lifecycle__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.home-lifecycle__current { color: var(--ink); }
.home-lifecycle__stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.home-lifecycle__stage { display: flex; flex-direction: column; gap: 6px; }
.home-lifecycle__bar { height: 4px; background: var(--rule); transition: background .5s; }
.home-lifecycle__name { font-family: var(--mono); font-size: 10px; color: #8A8984; transition: color .5s; }
.home-lifecycle__stage.is-past .home-lifecycle__bar { background: var(--ink); }
.home-lifecycle__stage.is-current .home-lifecycle__bar { background: var(--red); }
.home-lifecycle__stage.is-past .home-lifecycle__name,
.home-lifecycle__stage.is-current .home-lifecycle__name { color: var(--ink); }

.home-fields { margin: 0; display: flex; flex-direction: column; }
.home-fields__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #E2E1DC;
  font-size: 13px;
}
.home-fields__row dt { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 2px; }
.home-fields__row dd { margin: 0; color: #8A8984; transition: color .4s; }
.home-fields__row.is-set dd { color: var(--ink); }

.home-run { display: flex; flex-direction: column; min-width: 0; }
.home-run__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.home-run__status { display: flex; align-items: center; gap: 6px; color: var(--red); }
.home-run__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: homePulse 1.6s ease-out infinite;
}
.home-run__status.is-done { color: var(--ink); }
.home-run__status.is-done .home-run__status-dot { animation: none; }

.home-run__step {
  display: grid;
  grid-template-columns: 44px 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}
.home-run__time { font-family: var(--mono); font-size: 10px; color: var(--muted); padding: 12px 0; }
.home-run__rail { display: flex; flex-direction: column; align-items: center; }
.home-run__mark {
  width: 16px;
  height: 16px;
  margin-top: 10px;
  flex: none;
  background: transparent;
  border: 1px solid var(--on-dark-2);
  color: var(--white);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s;
}
.home-run__line { width: 1px; flex: 1; background: #D6D5CF; }
.home-run__step:last-child .home-run__line { background: transparent; }
.home-run__event {
  font-size: 14px;
  line-height: 1.4;
  padding: 9px 0;
  color: #8A8984;
  transition: color .4s;
}
.home-run__sys {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  align-self: center;
  padding: 3px 6px;
  border: 1px solid var(--rule);
  color: #8A8984;
}
.home-run__step.is-done .home-run__mark { background: var(--ink); border-color: var(--ink); }
.home-run__step.is-done:not(:last-child) .home-run__line { background: var(--ink); }
.home-run__step.is-run .home-run__mark {
  background: var(--red);
  border-color: var(--red);
  animation: homePulse 1.4s ease-out infinite;
}
.home-run__step.is-done .home-run__event,
.home-run__step.is-run .home-run__event { color: var(--ink); }
.home-run__step.is-done .home-run__sys,
.home-run__step.is-run .home-run__sys { border-color: var(--on-dark-2); color: var(--text); }

.home-payload {
  background: #141413;
  color: #D8D7D1;
  font-family: var(--mono);
  font-size: 12px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: start;
}
.home-payload__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-payload__label { font-size: 10px; letter-spacing: 0.08em; color: var(--muted-dark); }
.home-payload__kvs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.home-payload__k { color: var(--muted-dark); }
.home-payload__v { color: #EDEDEA; }
.home-payload__v--key { color: var(--red); }
.home-payload__v--wait { color: var(--muted-2); }
.home-payload__count { font-size: 10px; letter-spacing: 0.08em; color: var(--muted-dark); padding-top: 2px; }

/* Design goals */
.home-goals {
  border: 1px solid var(--line-dark-2);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home-goals__head { display: flex; flex-direction: column; gap: 8px; }
.home-goals__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--red); }
.home-goals__note { font-size: 14px; color: #A9A8A2; }
.home-goals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.home-goals__list li {
  padding: 16px 0;
  border-top: 1px solid #262624;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
}
.home-goals__cta {
  margin-top: auto;
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  gap: 12px;
  transition: background .2s;
}
.home-goals__cta:hover { background: var(--red); color: var(--white); }

/* ==========================================================================
   Approach
   ========================================================================== */
.home-approach { background: var(--paper); }
.home-approach__ruler {
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background-image: repeating-linear-gradient(90deg, #CFCEC8 0 1px, transparent 1px 120px), repeating-linear-gradient(90deg, #DEDDD8 0 1px, transparent 1px 24px);
  background-size: 100% 28px, 100% 12px;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
}
.home-approach__vertical {
  right: var(--gutter);
  top: clamp(48px, 6vw, 96px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  writing-mode: vertical-rl;
}
.home-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 0;
}
.home-stage {
  border-top: 2px solid var(--ink);
  padding: 28px clamp(0px, 2vw, 28px) 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .25s;
  cursor: default;
}
.home-stage__n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.home-stage__title {
  font-size: clamp(34px, 3.4vw, 54px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-weight: 500;
  color: #3A3A37;
  transition: color .25s;
}
.home-stage__desc { font-size: 15px; line-height: 1.6; color: #4A4945; max-width: 30ch; }
.home-stage__outs { display: flex; flex-wrap: wrap; gap: 6px; }
.home-stage__out {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 8px;
  border: 1px solid #D6D5CF;
  color: var(--text);
}
.home-stage.is-active { border-top-color: var(--red); }
.home-stage.is-active .home-stage__n { color: var(--red); }
.home-stage.is-active .home-stage__title { color: var(--ink); }

/* ==========================================================================
   Why Nevion Labs
   ========================================================================== */
.home-why { background: var(--paper-2); }
.home-why__letter {
  right: -0.06em;
  top: -0.18em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(320px, 40vw, 640px);
  line-height: 1;
  color: #E2E1D9;
}
.home-why__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.home-why__title { max-width: 16ch; }
.home-principles { display: flex; flex-direction: column; }
.home-principle {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px clamp(20px, 3vw, 48px);
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-top: 1px solid #D6D5CD;
  align-items: baseline;
}
.home-principle:hover { background: #E4E3DC; }
.home-principle__n { font-family: var(--mono); font-size: 13px; color: var(--red); }
.home-principle__title {
  font-size: clamp(24px, 2.8vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 500;
  text-wrap: balance;
}
.home-principle__desc { display: block; font-size: 16px; line-height: 1.6; color: #4A4945; max-width: 42ch; }

/* ==========================================================================
   Explore links
   ========================================================================== */
.home-explore { background: var(--paper); }
.home-explore__inner {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3.5vw, 56px);
}
.home-explore__col { display: flex; flex-direction: column; }
.home-explore__label { margin-bottom: 10px; }
.home-explore__link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(16px, 1.3vw, 19px);
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.3;
}
.home-explore__arrow { flex: none; }

/* ==========================================================================
   Explainer & FAQ
   ========================================================================== */
.home-faq-section { background: var(--paper-2); }
.home-faq-section__inner {
  padding-top: clamp(64px, 8vw, 128px);
  padding-bottom: clamp(64px, 8vw, 128px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.home-explainer { display: flex; flex-direction: column; gap: 20px; }
.home-explainer__title {
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.home-explainer p { font-size: 17px; line-height: 1.7; color: var(--text); max-width: 58ch; }

.home-faq { display: flex; flex-direction: column; }
.home-faq__label { margin-bottom: 12px; }
.home-faq__item,
.home-faq__end { border-top: 1px solid var(--rule-strong); }
.home-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
}
.home-faq__icon { font-family: var(--mono); font-size: 16px; color: var(--red); flex: none; }
.home-faq__a { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: #4A4945; max-width: 60ch; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.home-closing { background: var(--ink); color: var(--white); }
.home-ring {
  left: 84%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #1C1C1A;
  animation: homeRipple 4.2s ease-in-out infinite;
}
.home-ring--6 { width: 1400px; height: 1400px; animation-delay: 1.75s; }
.home-ring--5 { width: 1120px; height: 1120px; animation-delay: 1.4s; }
.home-ring--4 { width: 860px; height: 860px; animation-delay: 1.05s; }
.home-ring--3 { width: 620px; height: 620px; animation-delay: .7s; }
.home-ring--2 { width: 400px; height: 400px; animation-delay: .35s; border-color: #2A2A28; }
.home-ring--1 { width: 210px; height: 210px; animation-delay: 0s; border-color: #2A2A28; }
.home-ring--core {
  width: 14px;
  height: 14px;
  border: 0;
  background: var(--red);
  animation: homePulse 1.8s ease-out infinite;
}
.home-closing__beam {
  left: 0;
  right: 16%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2A2A28 40%, var(--red));
}
.home-closing__inner {
  padding-top: clamp(88px, 11vw, 176px);
  padding-bottom: clamp(88px, 11vw, 176px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}
.home-closing__label { display: flex; align-items: center; gap: 10px; color: #A9A8A2; }
.home-closing__title {
  font-size: clamp(36px, 7.4vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 500;
  max-width: 13ch;
  text-wrap: balance;
}
.home-closing__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px 64px;
  align-items: end;
  border-top: 1px solid #262624;
  padding-top: clamp(28px, 3vw, 40px);
}
.home-closing__copy { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--on-dark); max-width: 44ch; }
.home-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: flex-start;
}
.home-closing__cta {
  background: var(--white);
  color: var(--ink);
  padding: 20px 30px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  transition: background .2s;
}
.home-closing__cta:hover { background: var(--red); color: var(--white); }
.home-closing__mail {
  font-size: 15px;
  color: var(--white);
  border-bottom: 1px solid #555550;
  padding-bottom: 3px;
}
.home-closing__mail:hover { color: var(--red); border-color: var(--red); }

/* Quick-contact bar: the home page's secondary link is a little wider */
.home-quick-bar .quick-bar__secondary { padding: 15px 16px; }

/* ==========================================================================
   Narrow (< 960px)
   ========================================================================== */
@media (max-width: 959.98px) {
  .home-hero__grid,
  .home-problem__inner,
  .home-caps__layout,
  .home-concept__demo { grid-template-columns: minmax(0, 1fr); }
  .home-problem__intro { position: static; }
}

/* ==========================================================================
   Mobile (< 640px)
   ========================================================================== */
@media (max-width: 639.98px) {
  .home-hero__square,
  .home-hero__square-dot,
  .home-caps__num,
  .home-approach__vertical,
  .home-closing__beam { display: none; }

  .home-hero__tagline { text-align: left; }
  .home-cta,
  .home-closing__cta { flex: 1 1 100%; }
  .home-quick { display: flex; }

  .home-map__grid { grid-template-columns: minmax(0, 1fr); }
  .home-map__wire,
  .home-map__node:nth-of-type(n+4),
  .home-map__log { display: none; }

  .home-stack { display: none; }
  .home-problem-item { grid-template-columns: 40px minmax(0, 1fr); }
  .home-problem-item__tag { display: none; grid-column: 2; }

  .home-cap-chips { display: flex; }
  .home-cap-list { display: none; }
  .home-cap-panel { min-height: 0; }
  .home-cap-mobile { display: flex; }

  .home-points { display: none; }

  .home-path-tabs { display: grid; }
  .home-path.is-unselected { display: none; }

  .home-flow { display: none; }
  .home-fields { display: none; }
  .home-run__step { gap: 8px; }

  .home-stage__outs { display: none; }

  .home-principle { grid-template-columns: 40px minmax(0, 1fr); }
  .home-principle__desc { display: none; grid-column: 2; }

  .home-ring { left: 80%; top: 18%; }
}
