/* ==========================================================================
   VELA CLOUD — DESIGN SYSTEM
   "Celestial Instrument"
   ------------------------------------------------------------------------
   Vela is the constellation of the Sails: navigation, forward motion, and a
   fixed point to steer by. The system is built on hairlines, precision
   labels, deep navy fields and a single lime signal colour used sparingly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Brand: navy --- */
  --navy-900: #06101C;
  --navy:     #0A1628;
  --navy-800: #0D1B2E;
  --navy-700: #12243D;
  --navy-600: #1A3050;
  --navy-500: #24405F;

  /* --- Brand: technology blue --- */
  --blue:        #1D5FE0;
  --blue-600:    #1750C4;
  --blue-400:    #4C86EE;
  --blue-bright: #5AA0FF;
  --blue-wash:   #EEF3FD;

  /* --- Brand: signal lime (used sparingly, never on a button) --- */
  --lime:      #A9E016;
  --lime-deep: #7FAA0C;

  /* --- Light surfaces --- */
  --canvas:     #FFFFFF;
  --canvas-alt: #F6F8FC;
  --canvas-sun: #FAFBFE;

  /* --- Ink --- */
  --ink:         #0A1628;
  --ink-soft:    #24354C;
  --muted:       #5B6B82;
  --muted-light: #64758D;  /* 4.7:1 on white — AA for the small mono labels */

  /* --- Rules --- */
  --rule:        #E3E9F2;
  --rule-strong: #CDD8E8;

  /* --- On dark --- */
  --on-navy:        #EEF3FA;
  --on-navy-soft:   #C3D0E2;
  --on-navy-muted:  #8A9DB8;
  --rule-dark:      rgba(255, 255, 255, 0.10);
  --rule-dark-soft: rgba(255, 255, 255, 0.06);

  /* --- Type --- */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --t-display-1: clamp(2.625rem, 1.55rem + 4.3vw, 4.875rem);
  --t-display-2: clamp(1.9375rem, 1.35rem + 2.2vw, 3rem);
  --t-display-3: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --t-h3:        clamp(1.1875rem, 1.09rem + 0.4vw, 1.375rem);
  --t-h4:        1.0625rem;
  --t-lead:      clamp(1.0625rem, 1rem + 0.42vw, 1.3125rem);
  --t-body:      1.0625rem;
  --t-small:     0.9375rem;
  --t-xs:        0.8125rem;
  --t-eyebrow:   0.6875rem;

  /* --- Space --- */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  --section-y:    clamp(4.5rem, 2.5rem + 6.5vw, 8.5rem);
  --section-y-lg: clamp(6rem, 3rem + 8vw, 11rem);

  /* --- Structure --- */
  --container: 1240px;
  --gutter:    clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --measure:   46rem;

  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  --shadow-sm:  0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-md:  0 2px 4px rgba(10, 22, 40, 0.04), 0 12px 28px -14px rgba(10, 22, 40, 0.16);
  --shadow-lg:  0 4px 8px rgba(10, 22, 40, 0.05), 0 28px 56px -24px rgba(10, 22, 40, 0.24);
  --shadow-cta: 0 2px 4px rgba(29, 95, 224, 0.18), 0 14px 30px -12px rgba(29, 95, 224, 0.42);

  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 78px;
}

/* Fine grain, used to keep large navy fields from reading as flat ink. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--blue-600); }

strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--lime); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.on-navy :focus-visible,
.nav :focus-visible { outline-color: var(--lime); }

.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  z-index: 200;
  background: var(--lime);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--navy); }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 900px; }

.section { padding-block: var(--section-y); position: relative; }
.section--lg { padding-block: var(--section-y-lg); }
.section--tight { padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); }

.section--alt { background: var(--canvas-alt); }
.section--navy {
  background: var(--navy);
  color: var(--on-navy-soft);
  position: relative;
  isolation: isolate;
}
.section--navy::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.section--navy h1, .section--navy h2,
.section--navy h3, .section--navy h4 { color: var(--on-navy); }

.section-rule { border-top: 1px solid var(--rule); }
.section--navy .section-rule,
.section-rule--dark { border-top-color: var(--rule-dark); }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY COMPONENTS
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-5);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
  flex: none;
}
.section--navy .eyebrow { color: var(--on-navy-muted); }

.display-1 { font-size: var(--t-display-1); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; }
.display-2 { font-size: var(--t-display-2); font-weight: 400; letter-spacing: -0.028em; line-height: 1.08; }
.display-3 { font-size: var(--t-display-3); font-weight: 400; letter-spacing: -0.024em; line-height: 1.15; }
h3, .h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.016em; line-height: 1.3; }
h4, .h4 { font-size: var(--t-h4); font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: var(--measure);
  font-weight: 400;
}
.section--navy .lead { color: var(--on-navy-soft); }

.body-text { color: var(--muted); max-width: 40rem; }
.section--navy .body-text { color: var(--on-navy-soft); }

.small { font-size: var(--t-small); }
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.section-head { max-width: 56rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head .lead { margin-top: var(--s-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* Split head: title left, supporting copy right */
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 1rem + 3.4vw, 4.5rem);
  align-items: end;
}
.section-head--split .lead {
  margin-top: 0;
  padding-bottom: 0.35rem;
  font-size: clamp(1rem, 0.94rem + 0.34vw, 1.1875rem);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.65rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
              transform 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: var(--shadow-cta); }
.btn--primary:hover { --btn-bg: var(--blue-600); box-shadow: 0 4px 8px rgba(29,95,224,.2), 0 18px 38px -14px rgba(29,95,224,.5); }

.btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-strong); }
.btn--secondary:hover { --btn-bd: var(--navy-500); --btn-bg: var(--canvas-alt); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-navy); --btn-bd: rgba(255,255,255,.22); }
.btn--ghost-light:hover { --btn-bd: rgba(255,255,255,.5); --btn-bg: rgba(255,255,255,.06); }

.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: var(--t-xs); }
.btn--block { width: 100%; }

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--blue);
  line-height: 1.3;
}
.arrow-link svg { flex: none; transition: transform 0.28s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }
.section--navy .arrow-link { color: var(--blue-bright); }
.section--navy .arrow-link:hover { color: #8CBEFF; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-7);
}

/* --------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease), height 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgba(10, 22, 40, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--rule-dark);
}
/* Pages that begin on a light canvas get a solid navy bar from the start. */
.nav--solid {
  background: var(--navy);
  border-bottom-color: var(--rule-dark);
}

.nav__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

/* Logo lockup */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--on-navy); }
.logo:hover { color: var(--on-navy); }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__mark .sail-main { fill: currentColor; }
.logo__mark .sail-jib  { fill: var(--lime); }
.logo__text { display: flex; flex-direction: column; gap: 3px; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1;
  color: currentColor;
}
.logo__word span { font-weight: 300; color: var(--on-navy-muted); }
.logo__endorse {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 0.4rem + 1.8vw, 2.5rem);
  margin-left: auto;
  margin-right: clamp(1.25rem, 0.4rem + 1.8vw, 2.5rem);
}
.nav__link {
  position: relative;
  font-size: var(--t-small);
  font-weight: 400;
  color: var(--on-navy-soft);
  padding-block: 0.5rem;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-sm);
  color: var(--on-navy);
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after  { top: 5.5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile panel */
.nav__panel {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--navy);
  padding: var(--s-6) var(--gutter) var(--s-8);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  overflow-y: auto;
}
.nav__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel-link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--on-navy);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule-dark-soft);
}
.nav__panel-link:hover { color: var(--lime); }
.nav__panel-link span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--on-navy-muted);
}
.nav__panel-foot { margin-top: auto; padding-top: var(--s-7); }
.nav__panel-foot .btn { width: 100%; }
.nav__panel-note {
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-navy-soft);
  padding-top: calc(var(--nav-h) + clamp(2.75rem, 1.5rem + 4vw, 5rem));
  padding-bottom: clamp(3.5rem, 2rem + 4.5vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  width: min(130%, 1500px);
  aspect-ratio: 1;
  transform: translateX(-42%);
  background: radial-gradient(circle at 50% 50%,
              rgba(29, 95, 224, 0.30) 0%,
              rgba(29, 95, 224, 0.10) 34%,
              rgba(10, 22, 40, 0) 62%);
  pointer-events: none;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

/* Vertical sightlines — the "instrument" grid */
.hero__rules {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}
.hero__rules span { border-left: 1px solid rgba(255,255,255,0.045); }
.hero__rules span:last-child { border-right: 1px solid rgba(255,255,255,0.045); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
}
.hero .lead { color: var(--on-navy-soft); max-width: 34rem; }

.hero__meta {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.hero__meta li { display: flex; align-items: center; gap: 0.55rem; }
.hero__meta li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--lime);
  flex: none;
  transform: rotate(45deg);
}

.hero__figure { position: relative; }

/* --------------------------------------------------------------------------
   8. DIAGRAM PRIMITIVES (shared SVG styling)
   -------------------------------------------------------------------------- */
.figure { position: relative; }
.figure figcaption {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.section--navy .figure figcaption { color: var(--on-navy-muted); }

.dgm { width: 100%; height: auto; overflow: visible; }
.dgm-rule       { stroke: var(--rule); stroke-width: 1; fill: none; }
.dgm-rule-dark  { stroke: var(--rule-dark); stroke-width: 1; fill: none; }
.dgm-flow       { stroke: var(--blue); stroke-width: 1.25; fill: none; }
.dgm-flow-light { stroke: var(--blue-bright); stroke-width: 1.25; fill: none; }
.dgm-plane      { fill: var(--canvas); stroke: var(--rule-strong); stroke-width: 1; }
.dgm-plane-dark { fill: var(--navy-700); stroke: var(--rule-dark); stroke-width: 1; }
.dgm-accent     { fill: var(--lime); }
.dgm-node       { fill: var(--blue); }
.dgm-node-light { fill: var(--blue-bright); }
.dgm-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  fill: var(--muted-light);
}
.dgm-label-dark { fill: var(--on-navy-muted); }
.dgm-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  fill: var(--ink);
}
.dgm-title-light { fill: var(--on-navy); }
.dgm-body {
  font-family: var(--font-body);
  font-size: 11.5px;
  fill: var(--muted);
}
.dgm-body-light { fill: var(--on-navy-muted); }
.dgm-dash { stroke-dasharray: 3 5; }

/* Travelling signal along a flow path.
   Paths carry pathLength="100" so one timing works at any path length. */
.dgm-pulse {
  stroke: var(--lime);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 12 100;
  stroke-dashoffset: 112;
  animation: dgm-travel 4.6s var(--ease) infinite;
}
@keyframes dgm-travel {
  0%   { stroke-dashoffset: 112; opacity: 0; }
  6%   { opacity: 1; }
  48%  { stroke-dashoffset: 0; opacity: 1; }
  58%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.dgm-twinkle { animation: dgm-twinkle 5s ease-in-out infinite; }
@keyframes dgm-twinkle {
  0%, 100% { opacity: 0.22; }
  50%      { opacity: 0.75; }
}

/* --------------------------------------------------------------------------
   9. CARDS & GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-lg { gap: clamp(1.5rem, 1rem + 2vw, 3rem); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card p { color: var(--muted); font-size: var(--t-small); }
.card__index {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  margin-bottom: var(--s-2);
}
.card__icon { color: var(--blue); margin-bottom: var(--s-3); }
.card__icon svg { width: 26px; height: 26px; }

/* Card sitting on a navy field */
.card--dark {
  background: var(--navy-800);
  border-color: var(--rule-dark);
}
.card--dark:hover { border-color: rgba(255,255,255,.2); box-shadow: none; }
.card--dark p { color: var(--on-navy-muted); }
.card--dark .card__icon { color: var(--blue-bright); }
.card--dark .card__index { color: var(--on-navy-muted); }

/* A card whose top edge carries the lime signal on hover */
.card--signal::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 34px; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.card--signal:hover::before { transform: scaleX(1); }

/* Benefit blocks — hairline separated, no boxes */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.benefit {
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem) clamp(1.25rem, 0.8rem + 1.6vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background-color 0.3s var(--ease);
}
.benefit:nth-child(3n) { border-right: none; }
.benefit:hover { background: var(--canvas-alt); }
.benefit__num {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
  display: block;
  margin-bottom: var(--s-4);
}
.benefit h3 { margin-bottom: var(--s-3); }
.benefit p { color: var(--muted); font-size: var(--t-small); }

/* --------------------------------------------------------------------------
   10. FIT QUALIFIER (who it's for / not for)
   -------------------------------------------------------------------------- */
.fit {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 0.8rem + 2.6vw, 3.5rem);
  align-items: start;
}
.fit__panel {
  padding: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  border-radius: var(--r-md);
}
.fit__panel--yes {
  background: var(--canvas);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
}
.fit__panel--no {
  background: var(--canvas-alt);
  border: 1px solid var(--rule);
}
.fit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.fit__head h3 { font-size: var(--t-h3); flex: 1 1 auto; }
.fit__head .mono-label { flex: 0 0 auto; white-space: nowrap; }
.fit__list { display: grid; gap: var(--s-4); }
.fit__list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  font-size: var(--t-small);
  line-height: 1.55;
}
.fit__list--yes li { color: var(--ink-soft); }
.fit__list--no li { color: var(--muted); }
.fit__list svg { margin-top: 3px; flex: none; }
.fit__list--yes svg { color: var(--lime-deep); }
.fit__list--no svg { color: var(--muted-light); }
.fit__note {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--t-xs);
  color: var(--muted-light);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. CAPABILITY LIST (more than hosting)
   -------------------------------------------------------------------------- */
.caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-dark);
  border-left: 1px solid var(--rule-dark);
}
.caps li {
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  border-bottom: 1px solid var(--rule-dark);
  border-right: 1px solid var(--rule-dark);
  transition: background-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.caps li:hover { background: rgba(255,255,255,0.035); }
.caps__num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--on-navy-muted);
  display: block;
  margin-bottom: var(--s-3);
}
.caps__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--on-navy);
  margin-bottom: 0.3rem;
}
.caps__desc {
  font-size: var(--t-xs);
  color: var(--on-navy-muted);
  line-height: 1.55;
  margin-top: auto;
  padding-top: var(--s-3);
}

/* --------------------------------------------------------------------------
   12. CALLOUT / STAT ROW / CREDIBILITY
   -------------------------------------------------------------------------- */
.callout {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem) clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  background: var(--blue-wash);
  border-left: 2px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout p { color: var(--ink-soft); }
.callout--navy { background: var(--navy-700); border-left-color: var(--lime); }
.callout--navy p { color: var(--on-navy-soft); }

.cred {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.cred__points {
  display: grid;
  gap: var(--s-5);
  border-left: 1px solid var(--rule-dark);
  padding-left: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.cred__point h3 { font-size: 1.0625rem; font-weight: 500; margin-bottom: 0.35rem; }
.cred__point p { font-size: var(--t-small); color: var(--on-navy-muted); }

/* --------------------------------------------------------------------------
   13. PROCESS / STEPS
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1rem, 0.5rem + 2vw, 3rem);
  padding-block: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background-color 0.3s var(--ease);
}
.step:hover { background: var(--canvas-alt); }
.step__num {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  padding-top: 0.4rem;
}
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--muted); font-size: var(--t-small); }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  padding-block: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
  min-height: 56px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue); }
.faq__icon {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  margin-top: 0.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.25s;
}
.faq__icon::before { width: 9px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 9px; }
.faq__q:hover .faq__icon { border-color: var(--blue); }
.faq__item[open] .faq__icon { background: var(--lime); border-color: var(--lime); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__item[open] .faq__icon::before { background: var(--navy); }
.faq__a {
  padding-bottom: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  padding-right: clamp(0rem, -2rem + 6vw, 3.5rem);
  max-width: 52rem;
}
.faq__a p { color: var(--muted); font-size: var(--t-small); }
.faq__a p + p { margin-top: var(--s-4); }
.faq__item[open] .faq__a { animation: faq-in 0.32s var(--ease-out); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   15. FINAL CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -55%; left: 50%;
  width: min(120%, 1200px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
              rgba(29,95,224,0.28) 0%,
              rgba(29,95,224,0.08) 38%,
              rgba(10,22,40,0) 65%);
  z-index: -2;
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.18;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}
.cta-band__inner { text-align: center; max-width: 54rem; margin-inline: auto; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-5); }
.cta-band .lead { margin-inline: auto; color: var(--on-navy-soft); }
.cta-band .btn-row { justify-content: center; }
.cta-band__note {
  margin-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

/* --------------------------------------------------------------------------
   16. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .opt { color: var(--muted-light); letter-spacing: 0.08em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235B6B82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 95, 224, 0.13);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-light); }
.form__note { font-size: var(--t-xs); color: var(--muted-light); line-height: 1.6; }

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: var(--on-navy-muted);
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  padding-bottom: var(--s-6);
  border-top: 1px solid var(--rule-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--rule-dark);
}
.footer__brand .logo { margin-bottom: var(--s-5); }
.footer__brand p { font-size: var(--t-small); color: var(--on-navy-muted); max-width: 26rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  margin-bottom: var(--s-5);
}
.footer__col ul { display: grid; gap: 0.85rem; }
.footer__col a { font-size: var(--t-small); color: var(--on-navy-soft); }
.footer__col a:hover { color: var(--lime); }
.footer__bottom {
  padding-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--on-navy-muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer__legal a { color: var(--on-navy-muted); }
.footer__legal a:hover { color: var(--lime); }

/* --------------------------------------------------------------------------
   18. PAGE HEADER (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  background: var(--navy);
  color: var(--on-navy-soft);
  padding-top: calc(var(--nav-h) + clamp(3rem, 2rem + 3.5vw, 5.5rem));
  padding-bottom: clamp(3rem, 2rem + 3.5vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: min(90%, 900px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(29,95,224,0.26) 0%, rgba(10,22,40,0) 62%);
  z-index: -2; pointer-events: none;
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.18; mix-blend-mode: overlay;
  z-index: -1; pointer-events: none;
}
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lead { margin-top: var(--s-5); color: var(--on-navy-soft); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  margin-bottom: var(--s-5);
}
.breadcrumb a { color: var(--on-navy-muted); }
.breadcrumb a:hover { color: var(--lime); }

/* Long-form prose (legal / reference pages) */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--t-display-3); margin-top: var(--s-8); margin-bottom: var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose p { color: var(--muted); margin-bottom: var(--s-4); }
.prose ul { margin-bottom: var(--s-4); display: grid; gap: 0.6rem; }
.prose ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: var(--t-small);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  background: var(--lime);
  transform: rotate(45deg);
}
.prose dl { display: grid; gap: var(--s-5); margin: 0 0 var(--s-6); }
.prose dt {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.prose dd { margin: 0; color: var(--ink-soft); font-size: var(--t-small); }

.notice {
  padding: var(--s-5);
  background: var(--canvas-alt);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: var(--t-small);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   19. MOTION — reveal on scroll & hero load
   -------------------------------------------------------------------------- */
/* Content is only ever hidden when scripting is confirmed available, so a
   failed observer, a blocked script or a hidden tab can never leave the page
   permanently blank. See the html.js-reveal flag set inline in <head>. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js-reveal .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js-reveal .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js-reveal .reveal[data-delay="4"] { transition-delay: 0.32s; }

.hero-in { opacity: 0; transform: translateY(16px); animation: hero-in 0.9s var(--ease-out) forwards; }
.hero-in:nth-child(1) { animation-delay: 0.05s; }
.hero-in:nth-child(2) { animation-delay: 0.13s; }
.hero-in:nth-child(3) { animation-delay: 0.21s; }
.hero-in:nth-child(4) { animation-delay: 0.29s; }
.hero-in:nth-child(5) { animation-delay: 0.37s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

.hero__figure { opacity: 0; animation: fig-in 1.2s var(--ease-out) 0.3s forwards; }
@keyframes fig-in { to { opacity: 1; } }

/* --------------------------------------------------------------------------
   20. UTILITIES
   -------------------------------------------------------------------------- */
.u-center { text-align: center; }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-7 { margin-top: var(--s-7); }
.u-mt-8 { margin-top: var(--s-8); }
.u-mb-5 { margin-bottom: var(--s-5); }
.u-measure { max-width: var(--measure); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE — four intentional layouts
   -------------------------------------------------------------------------- */

/* --- Large desktop: more air, larger display type --- */
@media (min-width: 1440px) {
  :root { --container: 1300px; --gutter: 3.5rem; }
  .hero { padding-top: calc(var(--nav-h) + 5.5rem); }
}

/* --- Standard desktop / small laptop --- */
@media (max-width: 1180px) {
  .hero__grid { gap: 2.5rem; }
  .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); }
}

/* --- Tablet --- */
@media (max-width: 1023px) {
  :root { --nav-h: 70px; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { justify-content: space-between; }

  /* Hero stacks: copy first, figure below, CTAs stay above the fold */
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .hero__figure { order: 2; max-width: 640px; }
  .hero__rules { grid-template-columns: repeat(2, 1fr); }

  .section-head--split { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:nth-child(3n) { border-right: 1px solid var(--rule); }
  .benefit:nth-child(2n) { border-right: none; }

  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fit { grid-template-columns: minmax(0, 1fr); }

  .cred { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .cred__points { border-left: none; padding-left: 0; border-top: 1px solid var(--rule-dark); padding-top: 2rem; }

  .step { grid-template-columns: 60px minmax(0, 1fr); }
  .step p { grid-column: 2; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  :root { --measure: 100%; }

  .display-1 { line-height: 1.08; letter-spacing: -0.025em; }

  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero__rules { display: none; }
  .hero__meta { gap: 0.5rem 1.1rem; font-size: 0.625rem; }

  .btn-row { gap: 0.85rem; }
  .btn-row .btn { width: 100%; }
  .btn-row .arrow-link { width: 100%; justify-content: center; padding-block: 0.5rem; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit { border-right: none !important; padding-inline: 0; }

  .caps { grid-template-columns: minmax(0, 1fr); border-left: none; }
  .caps li { border-right: none; padding-inline: 0; }

  .fit__panel { padding: 1.5rem 1.25rem; }

  .step { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .step p { grid-column: 1; }
  .step__num { padding-top: 0; }

  .faq__q { font-size: 1.0625rem; gap: 1rem; padding-block: 1.15rem; min-height: 60px; }
  .faq__a { padding-right: 0; }

  .form__row { grid-template-columns: minmax(0, 1fr); }

  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .callout { border-left-width: 2px; padding-inline: 1.25rem; }
}

/* --------------------------------------------------------------------------
   22. PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .hero-in, .hero__figure { opacity: 1; transform: none; }
  .dgm-pulse { display: none; }
}

@media print {
  .nav, .nav__panel, .cta-band, .skip-link { display: none !important; }
  body { color: #000; }
  .section--navy, .hero, .page-head { background: #fff !important; color: #000 !important; }
}

/* --------------------------------------------------------------------------
   23. FLOW COMPONENT (three-part model diagram, reflows without an SVG)
   -------------------------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: stretch;
}
.flow__node {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  background: var(--canvas);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.flow__node:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-md); }
.flow__node--vela {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
}
.flow__node--vela h3 { color: #fff; }
.flow__node--vela .flow__role { color: var(--lime); }
.flow__node--vela .flow__desc { color: var(--on-navy-soft); }
.flow__node--vela .flow__list li { color: var(--on-navy-muted); border-color: var(--rule-dark); }
.flow__node--vela .flow__list li::before { background: var(--lime); }

.flow__role {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: var(--s-4);
}
.flow__node h3 { margin-bottom: var(--s-3); }
.flow__desc { font-size: var(--t-small); color: var(--muted); }
.flow__list {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.6rem;
}
.flow__node--vela .flow__list { border-top-color: var(--rule-dark); }
.flow__list li {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.flow__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 4px; height: 4px;
  background: var(--blue);
  transform: rotate(45deg);
}
.flow__link {
  display: grid;
  place-items: center;
  color: var(--rule-strong);
}
.flow__link svg { width: 100%; height: 22px; }

@media (max-width: 1023px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__link { height: 60px; }
  /* Lay the arrow out at its natural 72:22 ratio, then rotate it upright.
     Rotating a box already squeezed to 22px wide would shrink it to a hairline. */
  .flow__link svg { width: 60px; height: 19px; transform: rotate(90deg); }
}

/* --------------------------------------------------------------------------
   24. PRESSURE ROW (business problem forces)
   -------------------------------------------------------------------------- */
.forces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.forces li {
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  border-right: 1px solid var(--rule);
}
.forces li:last-child { border-right: none; }
.forces li:not(:first-child) { padding-left: var(--s-5); }
.forces h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.forces p { font-size: var(--t-xs); color: var(--muted); line-height: 1.6; }

@media (max-width: 1023px) {
  .forces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forces li:nth-child(2n) { border-right: none; }
  .forces li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 639px) {
  .forces { grid-template-columns: minmax(0, 1fr); }
  .forces li { border-right: none !important; border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .forces li:last-child { border-bottom: none; }
}

/* --------------------------------------------------------------------------
   25. WIDE TECHNICAL FIGURE — scrolls rather than shrinking to illegibility
   -------------------------------------------------------------------------- */
.figure--wide { margin: 0; }
.figure--wide .figure__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure--wide svg { width: 100%; min-width: 0; }
@media (max-width: 860px) {
  .figure--wide svg { min-width: 720px; }
  .figure--wide .figure__scroll { padding-bottom: var(--s-3); }
  .figure--wide .figure__hint { display: block; }
}
.figure__hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: var(--s-2);
}
