/*
 * Zorvix Infotech — main.css
 *
 * Currently contains: design tokens (colour, spacing, motion), the
 * Zorvix Connected System Header, and the Homepage Hero ("The Signal
 * Layer"). Future site-wide styles extend this same file rather than
 * starting a new one per component, per the project's "keep it
 * simple, don't over-engineer" rule.
 *
 * Token/spec source: /docs/header-specification.md for the Header,
 * /docs/hero-specification.md for the Hero, and
 * /docs/design-decisions.md for shared brand/interaction rules.
 * Values marked "tunable" below are deliberately NOT frozen — see
 * docs/project-status.md for what's still pending live calibration.
 */

/* ----------------------------------------------------------------
 * Design tokens
 * ---------------------------------------------------------------- */
:root {
  /* Brand palette — measured/derived from the official logo, see
     docs/design-decisions.md. Do not introduce colours outside this
     set for header/navigation work. */
  --z-deep: #030811;
  --z-surface: #050E1E;
  --z-elevated: #0A1C3D;
  --z-navy: #071B3A;
  --z-ice: #ECF0F7;
  --z-steel: #7C8AA6;
  --z-steel-dim: #4B5568;
  --z-orange: #E2650B;

  /* Header structural sizing — FROZEN (see docs/header-specification.md, "Structural sizing (frozen)") */
  --header-h: 80px;
  --header-h-scrolled: 68px;
  --logo-h: 48px;
  --logo-h-scrolled: 46px;
  --content-max: 1560px;
  --node-dormant: 4px;
  --node-hover: 6px;
  --node-terminal: 8px;
  --node-terminal-hover: 10px;

  /* Full-logo optical size when navigation is collapsed (tablet-portrait
     and below). Responsive by design — see docs/header-specification.md,
     "Full logo — responsive sizing" for the reasoning and the widths
     this was checked against (320/360/390/430/480px). Min bound protects
     "INFOTECH" legibility; max bound stops it growing past what a
     collapsed-nav header needs. */
  --logo-h-collapsed: clamp(30px, 6.5vw, 44px);

  /* Live-revised: desktop Services disclosure is a mega menu, not a
     small dropdown — width is deliberately smaller than --content-max
     (a 7-item capability map doesn't need full site-content width) but
     substantial enough to earn the name. Tunable. */
  --mega-menu-max: 920px;

  /* Live-revised: the collapsed-navigation drawer is a right-edge
     panel, not a full-bleed screen — width caps at 380px on wider
     collapsed-tier viewports (tablet) and falls back to 86% of the
     viewport on narrow phones so the backdrop overlay stays visibly
     present either way. Tunable. */
  --mobile-drawer-w: min(380px, 86vw);

  /* Header micro-values — TUNABLE, calibrate after live/Hero review */
  --path-dormant-opacity: 0.20;
  --path-active-opacity: 0.85;
  --header-border: rgba(236, 240, 247, 0.10);
  --header-border-scrolled: rgba(236, 240, 247, 0.16);
  --header-shadow-scrolled: 0 8px 24px rgba(0, 0, 0, 0.25);
  --nav-gap: clamp(28px, 3vw, 56px);
  --header-pad: clamp(20px, 3.2vw, 56px);

  /* Motion — philosophy frozen, exact ms tunable */
  --t-fast: 150ms;
  --t-med: 200ms;
  --ease: ease-out;

  /* Typography — system stack for now, see docs/design-decisions.md
     for why Inter was deferred rather than loaded for this task alone */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Homepage Hero — "The Signal Layer". Spec: /docs/hero-specification.md.
     Architecture/interaction logic is frozen per that document; the
     numeric values below are the ones it explicitly leaves tunable
     (spec §22) without being a "redesign". */
  --hero-grid-opacity: 0.05;
  --hero-min-h: min(88vh, 820px);
  --hero-min-h-tablet: min(90vh, 900px);
  --hero-gap: clamp(24px, 4vw, 64px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 1ms;
    --t-med: 1ms;
  }
}

/* ----------------------------------------------------------------
 * Base reset (minimal — this file does not attempt a full reset,
 * only what the header needs to render predictably)
 * ---------------------------------------------------------------- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--z-deep); }
a { color: inherit; }

/* ----------------------------------------------------------------
 * Site header — Zorvix Connected System Header
 * ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--z-surface);
  border-bottom: 1px solid var(--header-border);
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--header-border-scrolled);
  box-shadow: var(--header-shadow-scrolled);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* space-between is a no-op while nav-system (flex:1) still fills the
     row (desktop/laptop/full-nav tablet) — it only matters once nav,
     divider and CTA are hidden below the collapse breakpoint, leaving
     just brand + mobile-toggle. Then it pins brand left / toggle far
     right without any arbitrary absolute positioning. */
  justify-content: space-between;
  padding: 0 var(--header-pad);
  transition: height var(--t-med) var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: var(--header-h-scrolled);
}

/* Scroll sentinel: zero-height, purely structural, never visible */
#scroll-sentinel {
  height: 1px;
  margin-top: -1px;
}

/* Brand zone — protected, fixed, never shrunk to make room for nav */
.brand {
  flex: 0 0 auto;
  min-width: 260px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo--full {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  transition: height var(--t-med) var(--ease);
}

.site-header.is-scrolled .brand-logo--full {
  height: var(--logo-h-scrolled);
}

/* ----------------------------------------------------------------
 * Navigation system (full desktop nav — see the collapse breakpoint
 * in "Responsive breakpoints" below for the current threshold and
 * the reasoning behind it)
 * ---------------------------------------------------------------- */
.nav-system {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Dormant connector line — deliberately quiet, see docs/design-decisions.md */
.nav-list::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: calc(50% + 14px);
  height: 1px;
  background: var(--z-steel);
  opacity: var(--path-dormant-opacity);
  pointer-events: none;
}

.site-header.is-scrolled .nav-list::before {
  opacity: calc(var(--path-dormant-opacity) + 0.06);
}

.nav-item {
  position: relative;
}

.nav-item.has-branch {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--z-ice);
  opacity: 0.8;
  font: 500 12.5px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-radius: 2px;
}

.nav-item .node {
  width: var(--node-dormant);
  height: var(--node-dormant);
  border-radius: 50%;
  background: var(--z-steel);
  opacity: 0.55;
  transition: width var(--t-fast) var(--ease), height var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-item a:hover,
.nav-item a:focus-visible,
.nav-item.is-current a,
.nav-item.is-branch-open a {
  opacity: 1;
}

.nav-item a:hover .node,
.nav-item a:focus-visible .node,
.nav-item.is-current .node,
.nav-item.is-branch-open .node {
  width: var(--node-hover);
  height: var(--node-hover);
  background: var(--z-orange);
  opacity: 1;
}

.nav-item.is-current a {
  font-weight: 600;
}

.nav-item a:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 6px;
}

/* Local path segment — only the area near an engaged item brightens */
.nav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + 14px);
  transform: translate(-50%, -50%);
  width: 52px;
  height: 1px;
  background: var(--z-orange);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
  pointer-events: none;
}

.nav-item:hover::after,
.nav-item:focus-within::after,
.nav-item.is-current::after,
.nav-item.is-branch-open::after {
  opacity: var(--path-active-opacity);
}

/* Branch stem — the Connected Path visibly forking downward into the
   Services mega menu. Restrained on purpose: a single 1px line, only
   visible while the menu is open, no glow, no animated network graph. */
.branch-stem {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 1px;
  height: 0;
  background: var(--z-orange);
  opacity: 0;
  transition: height var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  pointer-events: none;
}

.nav-item.is-branch-open .branch-stem {
  height: 16px;
  opacity: var(--path-active-opacity);
}

/* Services disclosure toggle */
.branch-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px;
  margin-top: 3px;
  cursor: pointer;
  color: var(--z-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.branch-toggle:hover,
.branch-toggle:focus-visible,
.branch-toggle[aria-expanded="true"] {
  color: var(--z-orange);
}

.branch-toggle:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 2px;
}

.branch-toggle .chev {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
}

.branch-toggle[aria-expanded="true"] .chev {
  transform: rotate(225deg);
}

/* ----------------------------------------------------------------
 * Services Mega Menu — a deeper layer of the same Connected System,
 * not a conventional dropdown. Structure over decoration: three
 * functional zones, fine borders, typography — no gradients, no
 * glow, shadow used only for the practical minimum of separating a
 * fixed-position panel from the page behind it.
 *
 * position:fixed (not absolute against the li) for the same reason
 * .mobile-nav uses it: the panel is meant to center under the whole
 * header, not under one nav item, so it deliberately does not anchor
 * to `.nav-item`'s containing block.
 * ---------------------------------------------------------------- */
.services-panel {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  width: min(var(--mega-menu-max), calc(100vw - 48px));
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  background: var(--z-surface);
  border: 1px solid var(--z-elevated);
  border-top: 1px solid var(--z-orange);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), top var(--t-med) var(--ease);
}

.services-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.services-panel[hidden] { display: none; }

.site-header.is-scrolled .services-panel {
  top: var(--header-h-scrolled);
}

.services-panel-inner {
  display: flex;
  align-items: stretch;
}

.sp-zone {
  padding: 26px 28px;
}

.sp-zone--orient {
  flex: 0 0 210px;
  width: 210px;
}

.sp-zone--system {
  flex: 1 1 auto;
  min-width: 0;
  border-left: 1px solid var(--z-elevated);
  border-right: 1px solid var(--z-elevated);
}

.sp-zone--guidance {
  flex: 0 0 210px;
  width: 210px;
}

.sp-eyebrow {
  margin: 0 0 10px;
  font: 700 11px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--z-orange);
}

.sp-orient-text,
.sp-guidance-text {
  margin: 0 0 20px;
  font: 400 13.5px/1.5 var(--font-ui);
  color: var(--z-steel);
}

.sp-viewall,
.sp-guidance-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--z-ice);
  text-decoration: none;
  opacity: 0.88;
}

.sp-guidance-link {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(226, 101, 11, 0.4);
}

.sp-viewall:hover,
.sp-viewall:focus-visible,
.sp-guidance-link:hover,
.sp-guidance-link:focus-visible {
  opacity: 1;
}

.sp-guidance-link:hover,
.sp-guidance-link:focus-visible {
  border-bottom-color: var(--z-orange);
}

.sp-viewall:focus-visible,
.sp-guidance-link:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 3px;
}

.sp-viewall span,
.sp-guidance-link span {
  transition: transform var(--t-fast) var(--ease);
}

.sp-viewall:hover span,
.sp-viewall:focus-visible span,
.sp-guidance-link:hover span,
.sp-guidance-link:focus-visible span {
  transform: translateX(3px);
}

.sp-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-service-row + .sp-service-row {
  border-top: 1px solid var(--z-elevated);
}

.sp-service-row a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 4px;
  text-decoration: none;
}

.sp-index {
  flex: 0 0 auto;
  width: 20px;
  font: 600 11px/1 var(--font-ui);
  letter-spacing: 0.03em;
  color: var(--z-steel);
  transition: color var(--t-fast) var(--ease);
}

.sp-service-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sp-service-name {
  font: 600 13.5px/1.25 var(--font-ui);
  letter-spacing: 0.01em;
  color: var(--z-ice);
  opacity: 0.92;
  transition: opacity var(--t-fast) var(--ease);
}

.sp-service-desc {
  font: 400 11.5px/1.35 var(--font-ui);
  color: var(--z-steel);
}

.sp-service-row a:hover .sp-index,
.sp-service-row a:focus-visible .sp-index {
  color: var(--z-orange);
}

.sp-service-row a:hover .sp-service-name,
.sp-service-row a:focus-visible .sp-service-name {
  opacity: 1;
}

.sp-service-row a:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: -2px;
}

/* Narrower desktop/wide-tablet widths: tighten the mega menu before
   it ever risks overflow — see the responsive breakpoints section. */
@media (max-width: 1279px) {
  .sp-zone { padding: 20px 20px; }
  .sp-zone--orient,
  .sp-zone--guidance {
    flex-basis: 176px;
    width: 176px;
  }
}

/* Divider between exploratory nav and the terminal destination */
.header-divider {
  width: 1px;
  height: 26px;
  background: var(--z-elevated);
  margin: 0 clamp(28px, 3vw, 48px);
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------
 * Terminal destination — Start a Project
 * No solid-fill chip, ever. State is communicated by node growth,
 * underline extension and a small directional shift — never a
 * background fill or glow.
 * ---------------------------------------------------------------- */
.cta-terminal {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  text-decoration: none;
  color: var(--z-ice);
  font: 600 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 4px;
}

.cta-terminal::after {
  content: "";
  position: absolute;
  left: 0;
  right: 28%;
  bottom: -2px;
  height: 1px;
  background: var(--z-orange);
  transition: right var(--t-med) var(--ease);
}

.cta-terminal:hover::after,
.cta-terminal:focus-visible::after {
  right: 0;
}

.cta-node {
  width: var(--node-terminal);
  height: var(--node-terminal);
  border-radius: 50%;
  background: var(--z-orange);
  flex: 0 0 auto;
  transition: width var(--t-fast) var(--ease), height var(--t-fast) var(--ease);
}

.cta-terminal:hover .cta-node,
.cta-terminal:focus-visible .cta-node {
  width: var(--node-terminal-hover);
  height: var(--node-terminal-hover);
}

.cta-arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}

.cta-terminal:hover .cta-arrow,
.cta-terminal:focus-visible .cta-arrow {
  transform: translateX(4px);
}

.cta-terminal:hover .cta-label,
.cta-terminal:focus-visible .cta-label {
  letter-spacing: 0.10em;
}

.cta-terminal:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ----------------------------------------------------------------
 * Mobile / tablet toggle control
 * ---------------------------------------------------------------- */
.mobile-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  appearance: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--z-ice);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 2px;
}

/* No hamburger->X morph on open, deliberately. The drawer's own close
   control (below) is the single visible close affordance — a second
   control here would duplicate it. The toggle stays a plain three-line
   mark at every state; it also sits behind the overlay once open, so
   it reads as inactive rather than as a second control. */

/* ----------------------------------------------------------------
 * Mobile / collapsed navigation drawer — one unified right-edge panel
 * used across the whole collapsed range (mobile through the narrow-
 * tablet tier), opening from the same side as the control that
 * triggers it (.mobile-toggle sits at the far right of the header via
 * .header-inner's space-between). A single close control lives inside
 * the drawer; a separate backdrop overlay sits behind it.
 * ---------------------------------------------------------------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 8, 17, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay[hidden] { display: none; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: var(--mobile-drawer-w);
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: var(--z-surface);
  border-left: 1px solid var(--z-elevated);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--z-elevated);
}

.mobile-nav-brand {
  font: 700 11px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--z-steel);
}

/* Single close control — the only visible close affordance for the
   drawer. Built from two crossing lines (same geometric-line language
   as the hamburger and the chevrons) rather than a text glyph. */
.mobile-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  background: none;
  border: 1px solid var(--z-elevated);
  border-radius: 2px;
  color: var(--z-ice);
  cursor: pointer;
}

.mobile-close:hover,
.mobile-close:focus-visible {
  color: var(--z-orange);
  border-color: var(--z-orange);
}

.mobile-close:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 2px;
}

.mobile-close-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.mobile-close-icon::before,
.mobile-close-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.mobile-close-icon::before { transform: rotate(45deg); }
.mobile-close-icon::after { transform: rotate(-45deg); }

.mobile-nav-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 20px 32px;
}

.vjourney {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vrow {
  position: relative;
  min-height: 56px;
}

/* Row layout: a plain row is just .vrow-link; a branch row (Services)
   pairs .vrow-link (real navigation) with a separate .vrow-toggle
   (disclosure only) inside .vrow-main, stretched to equal height so
   the pair still reads as one coherent primary navigation item. */
.vrow-main {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.vrow-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
  color: var(--z-ice);
  opacity: 0.9;
  padding: 15px 4px;
}

.vrow-link:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: -2px;
}

/* Services disclosure control — expands/collapses the seven service
   links only, never navigates. Kept visually attached to .vrow-link
   via .vrow-main; sized well above the 44px minimum touch target. */
.vrow-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 56px;
  background: none;
  border: 0;
  appearance: none;
  cursor: pointer;
  color: var(--z-steel);
}

.vrow-toggle:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: -2px;
}

.vrow-toggle[aria-expanded="true"] {
  color: var(--z-orange);
}

.vrow .stem {
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--z-steel);
  opacity: 0.28;
}

.vjourney > .vrow:first-child .stem { top: 50%; }
.vjourney > .vrow:last-child .stem { bottom: 50%; }

.vdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--z-steel);
  opacity: 0.6;
  position: relative;
  z-index: 1;
  margin-left: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px var(--z-deep);
}

.vlabel {
  font: 500 14px/1 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
}

.vrow.is-current .vlabel { font-weight: 600; }
.vrow.is-current .vdot { background: var(--z-orange); opacity: 1; }

.vchev {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  flex: 0 0 auto;
}

.vrow-toggle[aria-expanded="true"] .vchev {
  transform: rotate(225deg);
}

/* Same "numbered node + fine branch line" language as the desktop
   mega menu, adapted to a compact, touch-friendly inline accordion —
   not a squeezed copy of the desktop panel, just a related visual
   dialect of the same Connected System. */
.vsub {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 46px;
  gap: 0;
  margin: 2px 0 8px;
}

.vsub::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 10px;
  width: 1px;
  background: var(--z-steel-dim);
  opacity: 0.5;
}

.vsub[hidden] { display: none; }

.vsub a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 6px;
  text-decoration: none;
  color: var(--z-ice);
  opacity: 0.72;
}

.vsub-index {
  flex: 0 0 auto;
  width: 16px;
  font: 600 10px/1 var(--font-ui);
  letter-spacing: 0.03em;
  color: var(--z-steel);
  transition: color var(--t-fast) var(--ease);
}

.vsub-label {
  font: 500 12.5px/1.3 var(--font-ui);
}

.vsub a:hover,
.vsub a:focus-visible {
  opacity: 1;
}

.vsub a:hover .vsub-index,
.vsub a:focus-visible .vsub-index {
  color: var(--z-orange);
}

.vsub a:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: -2px;
}

.mobile-terminal {
  margin-top: 14px;
  background: var(--z-elevated);
  border-radius: 3px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--z-ice);
}

.mobile-terminal .vdot {
  width: 8px;
  height: 8px;
  background: var(--z-orange);
  opacity: 1;
  box-shadow: 0 0 0 4px var(--z-elevated);
  margin-left: 6px;
}

.mobile-terminal .vlabel {
  font-weight: 600;
  font-size: 14.5px;
}

.mobile-terminal:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
 * Responsive breakpoints
 *
 * Collapse threshold recalculated for this refinement (was a flat
 * 1023px). Estimated minimum content width for the full desktop row
 * — full logo (~270px) + nav-list (4 items + Services chevron, ~430px
 * with tightened gaps) + divider (~35px) + CTA (~175px) + header
 * padding (~35px both sides) — comes to roughly 945px using the
 * tightened spacing below. 1000px was chosen as that figure plus a
 * safety margin for font-metric variance across browsers, since this
 * can't be pixel-verified without live rendering. See
 * docs/header-specification.md, "Responsive breakpoint (recalculated)"
 * for the full reasoning and what's still open for live calibration.
 * ---------------------------------------------------------------- */

/* Laptop: first tightening step. */
@media (max-width: 1279px) {
  :root {
    --nav-gap: clamp(20px, 2.4vw, 40px);
    --header-pad: clamp(18px, 2.6vw, 40px);
  }
  .header-divider {
    margin: 0 clamp(18px, 2vw, 32px);
  }
}

/* Small laptop / wide tablet: second tightening step, immediately
   above the collapse point, so the full nav survives down to 1000px
   without visibly crowding. */
@media (max-width: 1099px) {
  :root {
    --nav-gap: clamp(14px, 1.8vw, 28px);
    --header-pad: clamp(14px, 1.8vw, 28px);
  }
  .header-divider {
    margin: 0 clamp(12px, 1.4vw, 20px);
  }
}

/* Below 1000px: horizontal nav retires to the menu model. Full logo
   remains — see --logo-h-collapsed above — and the header row uses
   space-between (see .header-inner) so brand stays left and the menu
   control sits at the far right with no arbitrary positioning. */
@media (max-width: 999px) {
  .nav-system,
  .header-divider,
  .cta-terminal {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .brand {
    min-width: 0;
  }
  .brand-logo--full {
    height: var(--logo-h-collapsed);
  }
  .site-header.is-scrolled .brand-logo--full {
    height: var(--logo-h-collapsed);
  }
}

/* Narrow phones: header height itself steps down so a compact-but-full
   logo doesn't look under-sized inside an oversized bar. Documented
   change from the single flat 80/68px used at every other width — see
   docs/header-specification.md, "Responsive header height (phones)". */
@media (max-width: 480px) {
  :root {
    --header-h: 64px;
    --header-h-scrolled: 60px;
  }
}

/* ==================================================================
 * Homepage Hero — "The Signal Layer"
 * Spec: /docs/hero-specification.md. Architecture/interaction logic
 * below is frozen per that document (§22); values commented "tunable"
 * are the ones the spec explicitly leaves open.
 *
 * A header-to-Hero hairline cue (spec §15/§19) was considered and
 * deliberately OMITTED: the Origin Hub sits vertically centered in a
 * fairly tall two-column composition, not near the header's bottom
 * edge, so a genuinely "short" 40–60px hairline could not honestly
 * reach it — it would read as a dangling wire, which the spec
 * explicitly says to omit the cue for rather than force it.
 * ================================================================== */

/* Live visual correction: the Hero's height is now fully derived from
   its own content (padding + the taller of the two columns) instead
   of a viewport-driven min-height. The earlier min(88vh,820px) target
   was a starting point, not a sacred value — on the live site it
   forced a large blank lower-left region below the natural content
   stack. Removed here; see .hero-right below for the (now genuinely
   controlling) right-column height budget. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vh, 96px) 0 clamp(40px, 6vh, 72px);
}

.hero-inner {
  position: relative; /* containing block for .hero-handoff, the YOUR NEED -> Hub trunk overlay */
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--header-pad);
  display: flex;
  align-items: center;
  gap: var(--hero-gap);
}

/* ---------------- Left zone: identity + Origin ---------------- */
/* Live visual correction: reverted to a plain, natural content stack.
   The previous align-self:stretch + absolutely-positioned .origin
   (pinned to the Origin Hub's exact height) produced a geometrically
   tidy alignment but a visually broken composition — YOUR NEED ended
   up floating far from the copy with a large dead gap beneath the
   supporting line. .hero-left is back to its own natural content
   height, centred with .hero-right as a whole (both flex items,
   default align-items:center on .hero-inner) — eyebrow, H1, supporting
   copy and YOUR NEED now read as one ordinary top-to-bottom block,
   sharing the same left edge throughout. */
.hero-left {
  flex: 0 1 45%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0;
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--z-steel);
}

.hero-h1 {
  margin: 0;
  font: 600 clamp(30px, 3.4vw, 50px)/1.15 var(--font-ui);
  color: var(--z-ice);
}

.hero-sub {
  margin: 0;
  font: 400 16px/1.5 var(--font-ui);
  color: var(--z-steel);
  max-width: 42ch;
}

/* Origin control ("YOUR NEED") — closed by default. Opens to exactly
   two routes (spec §21): Route A is a real button; Route B is
   deliberately non-interactive markup (a <p>, no button/link/tabindex)
   until /start-a-project.php exists — never a clickable no-op.

   Live visual correction: back to plain in-flow content, same left
   edge as the eyebrow/H1/supporting copy above it. margin-top (16px)
   plus .hero-left's existing 16px flex `gap` gives ~32px of
   deliberate separation from the copy — enough to read as "next,
   separate action," not mid-paragraph spacing — without floating YOUR
   NEED away from the block it belongs to. The Origin Hub no longer
   dictates this control's position (relaxed per live review); see
   .origin-toggle's ::after below for the (now short, static) visual
   lead toward the right-side system. */
.origin {
  margin-top: 16px;
}

.origin-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px; /* ~44px touch target, pre-deployment correction §2 */
  background: none;
  border: 1px solid var(--z-elevated);
  border-radius: 2px;
  padding: 10px 16px;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: 0.05em;
  color: var(--z-ice);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}

/* The short static ::after "lead" (live visual correction) was removed
   here (narrow live-review correction): it was explicitly gestural and
   never actually reached the Hub, so it did not satisfy "YOUR NEED ->
   Hub -> capabilities must read as one continuous system." It has been
   replaced by a real connector — see .hero-handoff / .hero-handoff-path
   below and the narrow runtime-geometry exception documented in
   /docs/hero-specification.md. */

.origin-toggle:hover,
.origin-toggle:focus-visible,
.origin-toggle[aria-expanded="true"] {
  border-color: var(--z-orange);
}

.origin-toggle:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 2px;
}

.origin-plus {
  color: var(--z-steel);
  font-weight: 700;
  transition: color var(--t-fast) var(--ease);
}

.origin-toggle:hover .origin-plus,
.origin-toggle:focus-visible .origin-plus,
.origin-toggle[aria-expanded="true"] .origin-plus {
  color: var(--z-orange);
}

/* Live visual correction: back to plain in-flow content beneath the
   toggle. The out-of-flow (position:absolute) version existed only to
   protect .origin's own height so translateY(-50%) stayed stable —
   now that .origin is normal-flow content with no such transform, that
   protection is no longer needed. Opening it naturally increases
   .hero-left's own height (acceptable and expected — it never moves
   the H1/supporting copy above it, since those stay earlier in the
   same flex column). */
.origin-routes {
  margin-top: 10px;
  max-width: 360px;
  border: 1px solid var(--z-elevated);
  background: var(--z-surface);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.origin-routes.is-open {
  opacity: 1;
  transform: translateY(0);
}

.origin-routes[hidden] { display: none; }

.origin-route {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px; /* ~44px touch target, pre-deployment correction §2 */
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 16px;
  font: 500 13px/1.4 var(--font-ui);
  color: var(--z-ice);
  text-align: left;
  background: none;
  border: 0;
}

.origin-route + .origin-route {
  border-top: 1px solid var(--z-elevated);
}

button.origin-route {
  cursor: pointer;
}

button.origin-route:hover,
button.origin-route:focus-visible {
  color: var(--z-orange);
}

button.origin-route:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: -2px;
}

/* Route B, development state — visible for the two-path architecture
   to stay understandable, but genuinely non-interactive: no button,
   no link, no tabindex, no hover treatment implying interactivity. */
.origin-route--unavailable {
  color: var(--z-steel);
  cursor: default;
}

.route-status {
  display: block;
  margin-top: 4px;
  font: 600 10.5px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--z-steel-dim);
}

/* ---------------- Right zone: Capability Architecture ---------------- */
/* Live visual correction: height is now a controlled, clamped budget
   instead of purely width-driven via aspect-ratio. On a wide desktop,
   55% flex-basis plus a 560:460 aspect-ratio produced a very tall
   constellation (~650-700px+), which is what made the right column
   read as "stretched" and, by contrast, made the (much shorter) left
   column's blank space look worse. Width still follows the 45/55
   split (flex-basis, unchanged) — only height is now independent of
   it. Reasoned against typical laptop viewport heights (~768-900px):
   46vh lands at ~350-415px there, so the 400px floor is what actually
   governs on most common screens, with the 520px ceiling only
   reachable on tall displays — a meaningfully shorter, more
   "composed object" feel than the previous width-driven height,
   without cramping the seven nodes. */
.hero-right {
  position: relative;
  flex: 1 1 55%;
  min-width: 0;
  height: clamp(400px, 46vh, 520px);
  z-index: 0;
}

/* Structural grid — confined to this zone only, fading before it
   reaches the text column (spec §14). Desktop only; removed entirely
   at tablet/mobile below. */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 138, 166, var(--hero-grid-opacity)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 138, 166, var(--hero-grid-opacity)) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%);
  mask-image: linear-gradient(to right, transparent 0%, black 22%);
  pointer-events: none;
}

/* Origin Hub — structural only. Not a control, no visitor-facing
   label, not clickable (spec §7). top:50% (narrow live-review
   correction — reverted from the previous 60%, which existed only to
   aim the old disconnected ::after stub). Now that the real YOUR NEED
   -> Hub trunk (.hero-handoff) connects to wherever the toggle
   actually sits, the Hub no longer needs to chase the toggle
   vertically at all — its position is chosen purely for the seven
   branches' own visual balance. 50% is the vertical centre of the
   560x460 coordinate space and sits close to the centre of the seven
   nodes' own spread (top:9%–87%), giving the most even fan-out in both
   directions. The seven capability node END positions are untouched. */
.origin-hub {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border: 1px solid var(--z-steel);
  background: var(--z-deep);
  pointer-events: none;
}

/* Static connectors — hand-authored coordinates matching the fixed
   desktop constellation positions below, not measured via JS/resize
   (spec §12/§19). These are the seven Hub -> capability branches only;
   the single YOUR NEED -> Hub trunk is a separate, JS-positioned
   overlay (.hero-handoff below) per the narrow runtime-geometry
   exception in /docs/hero-specification.md. */
.hero-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hc-path {
  fill: none;
  stroke: var(--z-steel);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: var(--path-dormant-opacity);
  transition: opacity var(--t-fast) var(--ease), stroke var(--t-fast) var(--ease);
}

.hc-path.is-active {
  stroke: var(--z-orange);
  opacity: var(--path-active-opacity);
}

/* ---------------- YOUR NEED -> Origin Hub trunk (live-review exception) ----------------
   The one real structural connector from the YOUR NEED toggle to the
   Hub. Unlike the seven static branches above, this single path's
   start/end coordinates ARE computed at runtime (see hero.js,
   updateHandoffTrunk()) because the toggle's position is genuinely
   variable (natural content flow, not pinned), and a fixed CSS guess
   already proved dishonest on live review. This is a narrow, explicit
   exception — the seven Hub -> capability branches remain fully
   static. The overlay spans .hero-inner (both columns), since the
   trunk must travel from the left column to the right column; it
   carries no viewBox, so 1 SVG unit = 1px and hero.js can write the
   pixel coordinates it measures directly into the path's `d`. */
.hero-handoff {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.hero-handoff-path {
  fill: none;
  stroke: var(--z-steel);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: var(--path-dormant-opacity);
  transition: opacity var(--t-fast) var(--ease), stroke var(--t-fast) var(--ease);
}

.hero-handoff-path.is-active {
  stroke: var(--z-orange);
  opacity: var(--path-active-opacity);
}

.capability-list {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Anchor model (pre-deployment correction, round 2): the SVG path
   endpoint must land on the visible DOT, not the geometric centre of
   the whole dot+label button. .cap-node's own padding (10px) plus
   half the dot's dormant width is a fixed, non-responsive constant —
   the same at every desktop width — so it can be hand-authored as a
   static transform offset rather than measured at runtime. Default:
   dot on the left edge of the button, label extends right, so the LI
   is shifted left by that constant (its `left:X%` position minus the
   offset = the dot's true rendered position = X%, unchanged from the
   original SVG endpoints). Vertical centring (-50%) is unaffected —
   the dot is already vertically centred within the button by
   align-items:center, which already coincides with the LI's own
   centre. */
.capability-item {
  position: absolute;
  transform: translate(calc(-10px - (var(--node-dormant) / 2)), -50%);
}

/* Right-edge nodes (Web Apps, AI): growing the label rightward from
   the dot would overflow .hero-right, so these anchor from the RIGHT
   instead — dot on the right edge, label extends left (row-reverse).
   Positioned via `right` (not `left`) so the fixed dot-to-edge offset
   stays correct regardless of the label's own text-length-dependent
   width — this still requires no measurement, since `right:Y%` fixes
   the button's right edge directly rather than depending on its
   (variable) rendered width. */
.capability-item--anchor-right {
  transform: translate(calc(10px + (var(--node-dormant) / 2)), -50%);
}

.capability-item--anchor-right .cap-node {
  flex-direction: row-reverse;
}

/* Desktop constellation — fixed positions, order frozen by the spec
   (Mobile Apps, Custom Software, Web Apps, CRM, Websites, SaaS, AI).
   Values correspond to the .hc-path coordinates above. Nodes 3 and 7
   are expressed via `right` (100% minus their original `left` value)
   rather than `left` — same static position, required by the
   right-anchored dot technique above. */
.capability-list > li:nth-child(1) { left: 21%; top: 20%; }
.capability-list > li:nth-child(2) { left: 54%; top: 9%; }
.capability-list > li:nth-child(3) { right: 18%; top: 35%; } /* was left:82% */
.capability-list > li:nth-child(4) { left: 14%; top: 57%; }
.capability-list > li:nth-child(5) { left: 46%; top: 74%; }
.capability-list > li:nth-child(6) { left: 75%; top: 65%; }
.capability-list > li:nth-child(7) { right: 11%; top: 87%; } /* was left:89% */

/* Padding (not size/margin) carries the ~44px touch target here
   (pre-deployment correction) — because it's applied symmetrically on
   every side, the padding-to-dot distance used by the anchor
   transforms above stays a single, predictable constant, and the
   invisible tappable area simply grows around the (correctly
   anchored) visible dot+label. */
.cap-node {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 16px 10px;
  cursor: pointer;
  white-space: nowrap;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: 0.02em;
  color: var(--z-ice);
  opacity: 0.82;
}

.cap-node::before {
  content: "";
  width: var(--node-dormant);
  height: var(--node-dormant);
  border-radius: 50%;
  background: var(--z-steel);
  opacity: 0.6;
  flex: 0 0 auto;
  transition: width var(--t-fast) var(--ease), height var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

/* Orange marks the node dot on engagement only — label text stays Ice,
   same "orange never in small body/label text" rule as the header
   (see docs/design-decisions.md). */
.cap-node:hover,
.cap-node:focus-visible,
.cap-node.is-active {
  opacity: 1;
}

.cap-node:hover::before,
.cap-node:focus-visible::before,
.cap-node.is-active::before {
  width: var(--node-hover);
  height: var(--node-hover);
  background: var(--z-orange);
  opacity: 1;
}

.cap-node:focus-visible {
  outline: 2px solid var(--z-orange);
  outline-offset: 4px;
}

.capability-item--secondary .cap-node {
  font-size: 12px;
  color: var(--z-steel);
  opacity: 0.75;
}

.capability-item--secondary .cap-node:hover,
.capability-item--secondary .cap-node:focus-visible,
.capability-item--secondary .cap-node.is-active {
  color: var(--z-ice);
  opacity: 1;
}

/* Desktop-only capability typography — equal visual importance
   correction. All seven services are equally important business
   capabilities for Zorvix; the primary/secondary classes exist only
   so tablet can structure its 3-visible + 4-disclosed layout (see the
   tablet media query below) — they must not read as a visual
   hierarchy on desktop. Both selectors are set to identical values in
   one rule (rather than two separately-maintained rules) so they
   cannot drift out of sync by accident. Scoped to >=1000px (the same
   boundary the tablet media query uses) so tablet/mobile keep their
   existing sizing/tiering untouched — this correction is desktop-only
   by design (§6/§7 of the equal-importance correction). */
@media (min-width: 1000px) {
  .cap-node,
  .capability-item--secondary .cap-node {
    font-size: 15px;
    font-weight: 600;
    color: var(--z-ice);
    opacity: 0.92;
  }
}

/* Tablet-only "See all 7 capabilities" disclosure — hidden elsewhere */
.cap-disclosure {
  display: none;
}

/* ----------------------------------------------------------------
 * Hero — tablet transformation (spec §11/§15)
 * Text stack full-width on top; Capability Architecture below as its
 * own band. No cramped seven-node constellation at this width — the
 * Hub, connectors and grid are desktop-only.
 * ---------------------------------------------------------------- */
@media (max-width: 999px) {
  .hero {
    min-height: var(--hero-min-h-tablet); /* tunable, see spec §16 — total Hero height, padding included */
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .hero-left {
    flex: none;
  }

  /* Tablet keeps its own, smaller, always-in-flow spacing above YOUR
     NEED (unchanged from before any of the desktop seam corrections —
     .origin/.origin-toggle/.origin-routes are plain in-flow content at
     both desktop and tablet/mobile now, so no other override is
     needed here). */
  .origin {
    margin-top: 4px;
  }

  /* The desktop height clamp above is a desktop-constellation-only
     concern — tablet's own capability layout (flex-wrap list, no
     grid/Hub/connectors) is naturally content-driven, same as before. */
  .hero-right {
    height: auto;
  }

  /* Tablet has no separate Hub/system entry point (§10/§11) — the
     Hub, the seven static branches, and the real YOUR NEED -> Hub
     trunk (.hero-handoff, narrow live-review exception) are all
     desktop-constellation-only and hidden completely here. hero.js's
     desktop matchMedia guard also skips recomputing the trunk's
     geometry at this width, so this is a true removal, not just a
     visual hide. */
  .hero-grid,
  .origin-hub,
  .hero-connectors,
  .hero-handoff {
    display: none;
  }

  .capability-list {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
  }

  .capability-item {
    position: static;
    transform: none;
  }

  /* The right-anchored dot technique (row-reverse) is desktop-only —
     tablet's wrapped flex-row list and the mobile rail both use the
     same dot-left/label-right pattern for every node, so this must
     not leak through from the base rule (pre-deployment correction,
     round 2). */
  .capability-item--anchor-right .cap-node {
    flex-direction: row;
  }

  .capability-item--secondary {
    display: none;
  }

  .capability-list.is-expanded .capability-item--secondary {
    display: block;
  }

  .cap-disclosure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px; /* ~44px touch target, pre-deployment correction §2 — tablet is a touch environment too */
    background: none;
    border: 0;
    padding: 6px 2px;
    cursor: pointer;
    font: 600 12px/1 var(--font-ui);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--z-steel);
  }

  .cap-disclosure:hover,
  .cap-disclosure:focus-visible {
    color: var(--z-orange);
  }

  .cap-disclosure:focus-visible {
    outline: 2px solid var(--z-orange);
    outline-offset: 2px;
  }

  .cap-disclosure[hidden] { display: none; }
}

/* ----------------------------------------------------------------
 * Hero — mobile Capability Rail (spec §10/§16)
 * Single column: YOUR NEED -> spine -> seven rows, all visible
 * directly (no disclosure at this width). No cards, pills, icons,
 * shadows, or a shrunk copy of the desktop constellation.
 * ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero {
    min-height: 0; /* content-driven height, no forced viewport minimum */
  }

  .hero-sub {
    max-width: none;
  }

  .capability-list {
    display: block;
    position: relative;
    padding-left: 18px;
  }

  .capability-list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: linear-gradient(var(--z-steel), rgba(124, 138, 166, 0.15));
    opacity: 0.4;
  }

  .capability-item {
    display: block;
  }

  .capability-item--secondary {
    display: block;
  }

  .capability-item + .capability-item {
    border-top: 1px solid var(--z-elevated);
  }

  .cap-node {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 12px 4px;
    align-items: center;
  }

  /* Tick, not a dot — the honest mobile expression of the spine
     relationship, not a shrunk desktop node (spec §10). */
  .cap-node::before {
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 1px;
    border-radius: 0;
  }

  .cap-node:hover::before,
  .cap-node:focus-visible::before,
  .cap-node.is-active::before {
    width: 10px;
    height: 1px;
    background: var(--z-orange);
  }

  .cap-disclosure {
    display: none;
  }
}
