/* ==========================================================================
   Infinity Nexora LLP — main stylesheet
   Editorial, light, one accent. Lines over boxes.
   ========================================================================== */

:root {
  /* Surfaces & lines (neutrals tinted toward the brand blue, hue ~258) */
  --paper:    oklch(98.6% 0.004 255);
  --paper-2:  oklch(96.6% 0.009 255);
  --paper-3:  oklch(93.6% 0.016 255);
  --line:     oklch(88.5% 0.012 255);
  --line-2:   oklch(79% 0.02 256);

  /* Text */
  --ink:      oklch(20% 0.045 262);
  --ink-2:    oklch(37% 0.035 260);
  --ink-3:    oklch(51% 0.025 258);

  /* Accent (the logo's blue), used rarely */
  --blue:       oklch(54% 0.22 258);
  --blue-hover: oklch(47% 0.21 259);
  --blue-deep:  oklch(35% 0.15 262);
  --blue-tint:  oklch(94.5% 0.03 255);
  --sky:        oklch(84% 0.1 226);

  /* Navy bands */
  --navy:      oklch(21% 0.06 263);
  --navy-2:    oklch(25.5% 0.06 263);
  --navy-line: oklch(33% 0.05 262);
  --on-navy:   oklch(96% 0.008 255);
  --on-navy-2: oklch(73% 0.03 258);
  --on-navy-3: oklch(58% 0.03 258);

  /* Type */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-display: clamp(2.9rem, 1.9rem + 4.6vw, 6rem);
  --t-h1: clamp(2.4rem, 1.7rem + 3vw, 4.4rem);
  --t-h2: clamp(1.85rem, 1.35rem + 2vw, 3.1rem);
  --t-h3: clamp(1.3rem, 1.15rem + .7vw, 1.75rem);
  --t-lead: clamp(1.125rem, 1.05rem + .45vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .72rem;

  /* Space (4pt scale) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --section: clamp(4.5rem, 9vw, 9rem);
  --gutter: clamp(16px, 4.5vw, 56px);
  --wrap: 1320px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 4px;
  --header-h: 76px;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.012em; }
strong { font-weight: 600; }
::selection { background: var(--blue); color: var(--on-navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: var(--space-md); top: -100px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { top: var(--space-md); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--blue); }
.eyebrow--plain::before { display: none; }
.muted { color: var(--ink-3); }
.accent { color: var(--blue); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -0.005em; line-height: 1;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: var(--on-navy); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--navy-2); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-navy { border: 1px solid var(--navy-line); color: var(--on-navy); }
.btn--on-navy:hover { border-color: var(--on-navy); }
.btn--light { background: var(--on-navy); color: var(--navy); }
.btn--light:hover { background: var(--paper-3); }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600;
  color: var(--blue); position: relative;
}
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link:hover svg { transform: translateX(4px); }
.link--ink { color: var(--ink); }
.text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--blue-hover); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-lg); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand__mark { display: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px; font-family: var(--font-display); font-weight: 500; font-size: .98rem; letter-spacing: -0.005em;
  color: var(--ink-2); border-radius: var(--radius); position: relative; transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--blue); }
.nav .has-menu { position: relative; }
.nav .has-menu > a::after { display: none; }
.nav .has-menu > a[aria-current="page"] > span { box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 2px; }
.nav .menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 20px 50px -20px oklch(20% 0.05 262 / .25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .2s;
}
.nav .has-menu:hover .menu, .nav .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.nav .menu a { display: block; padding: 12px 14px; font-weight: 600; color: var(--ink); }
.nav .menu a small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .86rem; color: var(--ink-3); margin-top: 2px; }
.nav .menu a:hover { background: var(--paper-2); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-lg) var(--gutter) var(--space-2xl);
    overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease-out); z-index: 99;
    border-top: 1px solid var(--line);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { transform: translateX(0); }
  .nav > a, .nav .has-menu > a { display: block; padding: 18px 0; font-size: 1.35rem; font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .has-menu > a[aria-current="page"] > span { box-shadow: none; }
  .nav .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; background: transparent; }
  .nav .menu a { padding: 12px 0 12px 16px; font-size: 1.05rem; }
  .nav .nav__cta { margin-top: var(--space-lg); justify-content: center; }
}
@media (min-width: 961px) { .nav__cta { display: none; } }

/* --------------------------------------------------------------------------
   Sections & layout primitives
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-top { padding-top: 0; }
.band { background: var(--navy); color: var(--on-navy); }
.band .eyebrow { color: var(--on-navy-2); }
.band .eyebrow::before { background: var(--sky); }
.band .lead { color: var(--on-navy-2); }
.band .muted { color: var(--on-navy-3); }
.band--soft { background: var(--paper-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.band .rule { border-color: var(--navy-line); }

.grid { display: grid; gap: var(--space-xl) var(--space-2xl); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split .sticky { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .split, .split--rev, .split--even { grid-template-columns: 1fr; } .split .sticky { position: static; } }

.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg) var(--space-2xl); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: var(--space-md); }
.section-head p { color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.section-head--stack { grid-template-columns: 1fr; align-items: start; }
.section-head--stack p { margin-top: var(--space-md); max-width: 60ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 6vw, 5.5rem); overflow: clip; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__bg svg { position: absolute; right: -8%; top: 50%; width: min(1150px, 95vw); transform: translateY(-52%); opacity: .55; }
.hero__bg path { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 3.2s var(--ease-out) .2s forwards; opacity: .55; }
.hero__bg path + path { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 0; stroke-dashoffset: 0; animation: none; opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: var(--t-display); font-weight: 800; line-height: .96; letter-spacing: -0.035em; margin-top: var(--space-lg); max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-top: var(--space-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* Ledger: the two service lines */
.ledger { border: 1px solid var(--line-2); background: color-mix(in oklch, var(--paper) 72%, transparent); backdrop-filter: blur(6px); }
.ledger__row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-md) var(--space-lg); align-items: start; padding: var(--space-lg) var(--space-lg); transition: background .25s; position: relative; }
.ledger__row + .ledger__row { border-top: 1px solid var(--line-2); }
.ledger__row:hover { background: var(--paper-2); }
.ledger__idx { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .1em; color: var(--ink-3); padding-top: 6px; }
.ledger__row h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.ledger__row p { margin-top: 6px; color: var(--ink-2); font-size: var(--t-small); max-width: 36ch; }
.ledger__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); }
.ledger__tags span { font-size: .78rem; color: var(--ink-2); padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.ledger__arrow { align-self: center; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background .25s, border-color .25s, color .25s; }
.ledger__arrow svg { width: 16px; height: 16px; }
.ledger__row:hover .ledger__arrow { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ledger__row > a.stretched { position: absolute; inset: 0; }
.ledger__foot { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: var(--space-md); }

@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } .hero h1 { max-width: 14ch; } .hero__bg svg { right: -30%; width: 150vw; opacity: .35; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); position: relative; overflow: clip; }
.page-hero h1 { margin-top: var(--space-md); max-width: 16ch; }
.page-hero .lead { margin-top: var(--space-lg); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-xl); align-items: end; }
.page-hero__aside { font-size: var(--t-small); color: var(--ink-2); display: grid; gap: var(--space-sm); }
.page-hero__aside dt { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.page-hero__aside dd { margin: 2px 0 0; }
.page-hero__aside dl { display: grid; gap: var(--space-md); border-top: 1px solid var(--line); padding-top: var(--space-md); }
.page-hero--band { background: var(--navy); color: var(--on-navy); border-bottom: 0; }
.page-hero--band .lead { color: var(--on-navy-2); }
.page-hero--band .eyebrow { color: var(--on-navy-2); } .page-hero--band .eyebrow::before { background: var(--sky); }
.page-hero__loop { position: absolute; right: -5%; top: 0; bottom: 0; width: 60%; pointer-events: none; opacity: .5; }
.page-hero__loop svg { height: 100%; width: auto; min-width: 100%; }
.page-hero__loop path { fill: none; stroke: var(--line-2); stroke-width: 1; }
.page-hero--band .page-hero__loop path { stroke: var(--navy-line); }
@media (max-width: 860px) { .page-hero__inner { grid-template-columns: 1fr; } .page-hero__loop { opacity: .3; width: 120%; } }

/* --------------------------------------------------------------------------
   Chapters (service summaries on home)
   -------------------------------------------------------------------------- */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl) clamp(32px, 6vw, 110px); padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter__num { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 8rem); font-weight: 800; line-height: .8; letter-spacing: -0.05em; color: var(--paper-3); margin-bottom: var(--space-md); }
.chapter h2 { max-width: 14ch; }
.chapter .lead { margin-top: var(--space-md); font-size: 1.1rem; }
.chapter .link { margin-top: var(--space-lg); }
.chapter__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-xl); align-self: end; }
.chapter__list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; }
.chapter__list li::before { content: "—"; color: var(--blue); flex: none; }
.chapter--alt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.chapter--alt > :first-child { order: 2; }
@media (max-width: 860px) { .chapter, .chapter--alt { grid-template-columns: 1fr; } .chapter__list { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Loop diagram (how we work)
   -------------------------------------------------------------------------- */
.loop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) clamp(32px, 6vw, 96px); align-items: center; }
.loop__figure { position: relative; }
.loop__figure svg { width: 100%; overflow: visible; }
.loop__figure .track { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.loop__figure .runner { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 160 3100; animation: run 9s linear infinite; }
@keyframes run { to { stroke-dashoffset: -3260; } }
.loop__figure .node circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.loop__figure .node text { font-family: var(--font-display); font-weight: 700; font-size: 26px; fill: var(--ink); letter-spacing: -0.5px; }
.loop__figure .node tspan.n { font-family: var(--font-mono); font-weight: 400; font-size: 14px; fill: var(--ink-3); letter-spacing: 1.5px; }
.loop__figure .center text { font-family: var(--font-display); font-size: 44px; font-weight: 800; fill: var(--blue); }
.loop__steps { counter-reset: step; }
.loop__steps li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-md); padding: var(--space-lg) 0; border-top: 1px solid var(--line); }
.loop__steps li:last-child { border-bottom: 1px solid var(--line); }
.loop__steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--blue); padding-top: 6px; }
.loop__steps h3 { font-size: 1.25rem; }
.loop__steps p { margin-top: 6px; color: var(--ink-2); font-size: var(--t-small); max-width: 48ch; }
@media (max-width: 860px) { .loop { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .loop__figure .runner, .hero__bg path { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; } }

/* --------------------------------------------------------------------------
   Figures (market context band)
   -------------------------------------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.figures > div { padding: var(--space-xl) var(--space-xl) var(--space-xl) 0; }
.figures > div + div { border-left: 1px solid var(--navy-line); padding-left: var(--space-xl); }
.figures .big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.figures .big small { font-size: .45em; font-weight: 600; letter-spacing: -0.01em; color: var(--on-navy-2); margin-left: 4px; }
.figures p { margin-top: var(--space-sm); color: var(--on-navy-2); font-size: var(--t-small); max-width: 30ch; }
.figures cite { display: block; margin-top: var(--space-md); font-style: normal; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-3); }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr; } .figures > div + div { border-left: 0; border-top: 1px solid var(--navy-line); padding-left: 0; } }

/* --------------------------------------------------------------------------
   Lists: index list (rows with rules), feature list, pill list
   -------------------------------------------------------------------------- */
.index { border-top: 1px solid var(--line); }
.index__row { display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 6fr) auto; gap: var(--space-md) var(--space-xl); align-items: start; padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left .3s var(--ease-out); }
.index__row:hover { padding-left: 6px; }
.index__row .n { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--blue); padding-top: 6px; }
.index__row h3 { font-size: 1.3rem; }
.index__row p { color: var(--ink-2); font-size: var(--t-small); max-width: 52ch; }
.index__row .more { align-self: center; }
.index__row .stretched { position: absolute; inset: 0; }
.index__row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); }
.index__row .tags span { font-size: .78rem; color: var(--ink-2); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.index--3 .index__row { grid-template-columns: 64px minmax(0, 4fr) minmax(0, 6fr); }
@media (max-width: 860px) { .index__row, .index--3 .index__row { grid-template-columns: 48px minmax(0, 1fr); } .index__row > p, .index__row > div, .index__row .more { grid-column: 2; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-xl) var(--space-2xl); }
.features > div { padding-top: var(--space-md); border-top: 1px solid var(--line); }
.features h3 { font-size: 1.2rem; }
.features p { margin-top: var(--space-xs); color: var(--ink-2); font-size: var(--t-small); text-wrap: pretty; }
.features .n { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; color: var(--blue); display: block; margin-bottom: var(--space-sm); }
.band .features > div { border-color: var(--navy-line); }
.band .features p { color: var(--on-navy-2); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--t-small); color: var(--ink-2); background: var(--paper); }
.pills--navy li { border-color: var(--navy-line); color: var(--on-navy-2); background: transparent; }

.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li svg { width: 18px; height: 18px; color: var(--blue); margin-top: 3px; }

/* Stack: roles grid on staffing page */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-xl) var(--space-xl); }
.roles h3 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--ink); }
.roles li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }

/* Industries */
.industries { border-top: 1px solid var(--line); }
.industry { display: grid; grid-template-columns: 56px minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-md) var(--space-xl); padding: var(--space-xl) 0; border-bottom: 1px solid var(--line); }
.industry .n { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--blue); padding-top: 6px; }
.industry h2 { font-size: 1.5rem; }
.industry h2 small { display: block; font-family: var(--font-body); font-size: var(--t-small); font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-top: 6px; }
.industry h3 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-sm); }
.industry p, .industry li { font-size: var(--t-small); color: var(--ink-2); }
.industry li { padding: 5px 0; display: flex; gap: 10px; }
.industry li::before { content: "—"; color: var(--blue); }
@media (max-width: 960px) { .industry { grid-template-columns: 48px 1fr; } .industry > div { grid-column: 2; } }

/* Industry strip on home */
.strip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.strip a { flex: 1 1 200px; padding: var(--space-lg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); transition: background .25s; }
.strip a:hover { background: var(--paper-2); }
.strip a span:last-child { font-family: var(--font-mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; color: var(--ink-3); }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-2xl) var(--space-2xl); }
.values h3 { font-size: 1.35rem; margin-top: var(--space-sm); }
.values p { margin-top: var(--space-sm); color: var(--ink-2); font-size: var(--t-small); }
.values .glyph { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.04em; }

/* Timeline (90 days) */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-xl); }
.timeline > div { position: relative; padding-top: var(--space-lg); }
.timeline > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.timeline > div::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.timeline .when { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.timeline h3 { font-size: 1.15rem; margin-top: var(--space-xs); }
.timeline p { margin-top: var(--space-xs); font-size: var(--t-small); color: var(--ink-2); }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.models > div { padding: var(--space-xl) var(--space-lg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-sm); }
.models h3 { font-size: 1.2rem; }
.models .fit { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.models p { font-size: var(--t-small); color: var(--ink-2); flex: 1; }
.models ul { margin-top: var(--space-xs); }
.models li { font-size: .88rem; color: var(--ink-2); padding: 5px 0; border-top: 1px solid var(--line); }

/* Stack list */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-xl) var(--space-2xl); }
.stack h3 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--ink); }
.stack li { font-size: var(--t-small); padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: var(--space-lg); align-items: center; padding: var(--space-lg) 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; transition: transform .35s var(--ease-out), background .25s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease-out); }
.faq details[open] summary .plus { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--paper); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .faq__body { padding: 0 0 var(--space-lg); color: var(--ink-2); max-width: 66ch; font-size: var(--t-small); }
.faq .faq__body p + p { margin-top: .8em; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: clip; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: end; position: relative; z-index: 1; }
.cta h2 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.cta p { margin-top: var(--space-lg); color: var(--on-navy-2); max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.cta__contacts { display: grid; gap: var(--space-md); border-top: 1px solid var(--navy-line); padding-top: var(--space-lg); }
.cta__contacts a { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; display: block; }
.cta__contacts a:hover { color: var(--sky); }
.cta__contacts span { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: 4px; }
.cta__loop { position: absolute; left: -10%; bottom: -40%; width: 70%; opacity: .5; pointer-events: none; }
.cta__loop path { fill: none; stroke: var(--navy-line); stroke-width: 1; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } .cta__loop { width: 140%; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.field label small { font-weight: 400; color: var(--ink-3); font-family: var(--font-body); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.field input[type="file"] { padding: 10px; font-size: .92rem; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; padding: 6px 12px; margin-right: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper-2); cursor: pointer; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.form__foot p { font-size: .84rem; color: var(--ink-3); max-width: 44ch; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-panel { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line-2); }

/* Contact details */
.contact-list { display: grid; gap: var(--space-lg); }
.contact-list > div { padding-top: var(--space-md); border-top: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 6px; }
.contact-list a, .contact-list .v { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; display: block; }
.contact-list a:hover { color: var(--blue); }
.contact-list p { font-size: var(--t-small); color: var(--ink-2); margin-top: 4px; }
.map { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.7) contrast(1.02); }

/* --------------------------------------------------------------------------
   Legal / simple article pages
   -------------------------------------------------------------------------- */
.article { max-width: 72ch; }
.article h2 { font-size: 1.5rem; margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.article h3 { font-size: 1.15rem; margin-top: var(--space-xl); margin-bottom: var(--space-xs); }
.article p, .article li { color: var(--ink-2); font-size: var(--t-body); }
.article p + p { margin-top: 1em; }
.article ul { list-style: disc; padding-left: 1.3em; margin-top: .6em; }
.article li + li { margin-top: .35em; }
.article .updated { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-xl); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding-block: clamp(3rem, 6vw, 5rem) var(--space-xl); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--space-2xl) var(--space-xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--navy-line); }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer__brand p { margin-top: var(--space-lg); max-width: 36ch; font-size: var(--t-small); }
.site-footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: var(--space-md); }
.site-footer li + li { margin-top: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--on-navy); }
.site-footer address { font-style: normal; font-size: var(--t-small); line-height: 1.6; }
.site-footer address a { display: block; color: var(--on-navy); font-weight: 500; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-lg); font-size: .84rem; color: var(--on-navy-3); }
.site-footer__bottom ul { display: flex; gap: var(--space-lg); }
.site-footer__bottom li + li { margin: 0; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__top { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .big { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 16rem); font-weight: 800; line-height: .85; letter-spacing: -0.06em; color: var(--paper-3); }

/* Labels on navy bands need the lighter accent */
.band .features .n, .band .index__row .n, .band .loop__steps li::before { color: var(--sky); }

/* Mobile: no backdrop-filter on the header (it would become the containing block for the fixed nav panel) */
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav { visibility: hidden; transition: transform .4s var(--ease-out), visibility 0s linear .4s; }
  body.nav-open .nav { visibility: visible; transition-delay: 0s; }
}

/* --------------------------------------------------------------------------
   Logo strips
   -------------------------------------------------------------------------- */
.logos { padding-block: var(--space-2xl); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-sm) var(--space-xl); margin-bottom: var(--space-lg); }
.logos__head p { font-size: var(--t-small); color: var(--ink-3); max-width: 60ch; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(40px, 6vw, 88px); align-items: center; animation: marquee 48s linear infinite; padding-block: var(--space-sm); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; display: flex; align-items: center; }
.marquee__track img, .logos__grid img { width: auto; opacity: .62; transition: opacity .25s; }
.marquee__track li:hover img, .logos__grid li:hover img { opacity: 1; }
.marquee__track img.tall { height: 36px; }
.marquee__track img.short { height: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos__grid { display: flex; flex-wrap: wrap; gap: var(--space-lg) clamp(28px, 4vw, 56px); align-items: center; }
.logos__grid img { height: 26px; }
.logos--navy { border-color: var(--navy-line); }
.logos--navy .logos__head p { color: var(--on-navy-3); }
.logos--navy img { filter: invert(1) brightness(1.6); }
@media (prefers-reduced-motion: reduce) { .marquee { mask-image: none; -webkit-mask-image: none; } .marquee__track { animation: none; flex-wrap: wrap; width: auto; } .marquee__track li.dup { display: none; } }
.logos__note { margin-top: var(--space-md); font-size: .78rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Insights (articles)
   -------------------------------------------------------------------------- */
.posts { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 140px minmax(0, 5fr) minmax(0, 5fr) auto; gap: var(--space-md) var(--space-xl); align-items: start; padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left .3s var(--ease-out); }
.post-row:hover { padding-left: 6px; }
.post-row .meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); line-height: 1.7; padding-top: 6px; }
.post-row .meta b { display: block; color: var(--blue); font-weight: 500; }
.post-row h3 { font-size: 1.3rem; }
.post-row h2 { font-size: 1.3rem; letter-spacing: -0.012em; }
.post-row p { color: var(--ink-2); font-size: var(--t-small); max-width: 50ch; }
.post-row .more { align-self: center; }
.post-row .stretched { position: absolute; inset: 0; }
@media (max-width: 860px) { .post-row { grid-template-columns: 1fr; } .post-row .meta { padding-top: 0; } }

.article-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 22ch; margin-top: var(--space-md); font-size: var(--t-h2); }
.article-hero .lead { margin-top: var(--space-lg); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.article-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl) clamp(32px, 6vw, 96px); align-items: start; }
.article-layout .article h2 { margin-top: var(--space-2xl); }
.article-layout .article h2:first-child { margin-top: 0; }
.article .pull { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); margin: var(--space-xl) 0; padding: var(--space-lg) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article .chart { margin: var(--space-xl) 0; }
.article table { width: 100%; border-collapse: collapse; margin: var(--space-lg) 0; font-size: var(--t-small); }
.article th, .article td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.article th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.article ol { list-style: decimal; padding-left: 1.3em; margin-top: .6em; }
.aside-box { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--space-xl); }
.aside-box > div { border-top: 1px solid var(--line); padding-top: var(--space-md); }
.aside-box h4 { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--space-sm); }
.aside-box li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.aside-box li a { font-family: var(--font-display); font-weight: 600; }
.aside-box li a:hover { color: var(--blue); }
.aside-box p { font-size: var(--t-small); color: var(--ink-2); }
.aside-box .btn { margin-top: var(--space-md); }
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } .aside-box { position: static; } }

/* --------------------------------------------------------------------------
   Hire developers
   -------------------------------------------------------------------------- */
.hire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hire-grid > div { padding: var(--space-lg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: var(--space-xs); align-content: start; transition: background .25s; }
.hire-grid > div:hover { background: var(--paper-2); }
.hire-grid h3 { font-size: 1.15rem; }
.hire-grid .lv { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hire-grid p { font-size: .9rem; color: var(--ink-2); }
.hire-grid ul { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--space-xs); }
.hire-grid li { font-size: .76rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.compare th, .compare td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.compare th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.compare td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.compare td.hi { color: var(--ink); background: var(--blue-tint); padding-left: 16px; }
.compare th.hi { color: var(--blue); background: var(--blue-tint); padding-left: 16px; }
@media (max-width: 760px) { .compare-wrap { overflow-x: auto; } .compare { min-width: 640px; } }

/* Numbers row */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-xl); padding-block: var(--space-2xl); border-bottom: 1px solid var(--line); }
.numbers > div { display: grid; gap: 4px; }
.numbers .big { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.numbers .big small { font-size: .5em; color: var(--blue); margin-left: 2px; }
.numbers p { font-size: var(--t-small); color: var(--ink-2); max-width: 24ch; }

/* Steps (horizontal) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-xl); counter-reset: s; }
.steps > div { padding-top: var(--space-md); border-top: 1px solid var(--ink); position: relative; }
.steps > div::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; color: var(--blue); display: block; margin-bottom: var(--space-sm); }
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: var(--space-xs); font-size: var(--t-small); color: var(--ink-2); }

/* ==========================================================================
   Data components
   ========================================================================== */

/* Ticker */
.ticker { background: var(--navy); color: var(--on-navy-2); overflow: hidden; border-bottom: 1px solid var(--navy-line); }
.ticker__track { display: flex; width: max-content; gap: 0; animation: marquee 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track li { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 9px 28px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; border-right: 1px solid var(--navy-line); }
.ticker__track li b { color: var(--on-navy); font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; text-transform: none; }
.ticker__track li i { font-style: normal; color: var(--sky); }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; flex-wrap: wrap; width: auto; } .ticker__track li.dup { display: none; } }

/* Stat tiles with counters */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats > div { padding: var(--space-xl) var(--space-lg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.stats .big { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats .big small { font-size: .5em; color: var(--blue); margin-left: 2px; font-weight: 700; }
.stats p { font-size: var(--t-small); color: var(--ink-2); }
.stats cite { font-style: normal; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.band .stats, .band .stats > div { border-color: var(--navy-line); }
.band .stats p { color: var(--on-navy-2); } .band .stats cite { color: var(--on-navy-3); } .band .stats .big small { color: var(--sky); }

/* Horizontal bars */
.bars { display: grid; gap: var(--space-sm); }
.bars > div { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 7fr) auto; gap: var(--space-md); align-items: center; font-size: var(--t-small); }
.bars .lbl { color: var(--ink-2); font-weight: 500; }
.bars .bar { height: 14px; background: var(--paper-3); position: relative; overflow: hidden; }
.bars .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue); transition: width 1.2s var(--ease-out); }
.bars .bar i.alt { background: var(--ink); }
.bars .bar i.soft { background: var(--line-2); }
.is-in .bars .bar i, .bars.is-in .bar i { width: var(--w); }
.bars .val { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: var(--ink-2); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.band .bars .bar { background: var(--navy-2); } .band .bars .bar i { background: var(--sky); } .band .bars .lbl, .band .bars .val { color: var(--on-navy-2); }
.bars__note { margin-top: var(--space-md); font-size: .78rem; color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: .78rem; color: var(--ink-3); margin-top: var(--space-md); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; background: var(--blue); display: inline-block; }
.legend i.alt { background: var(--ink); } .legend i.soft { background: var(--line-2); }

/* Time zone chart */
.tz { display: grid; gap: 10px; }
.tz__row { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-md); align-items: center; font-size: var(--t-small); }
.tz__row .city { font-weight: 600; } .tz__row .city small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .66rem; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.tz__track { position: relative; height: 26px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24)); border-left: 1px solid var(--line); }
.tz__track i { position: absolute; top: 5px; bottom: 5px; background: var(--ink); border-radius: 2px; }
.tz__track i.core { background: var(--blue); }
.tz__track i.ext { background: var(--blue-tint); border: 1px dashed var(--blue); }
.tz__axis { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-md); }
.tz__axis div { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; color: var(--ink-3); }
.tz__overlap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--space-md); margin-top: var(--space-xl); }
.tz__overlap div { border-top: 1px solid var(--line); padding-top: var(--space-sm); font-size: var(--t-small); color: var(--ink-2); }
.tz__overlap b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 640px) { .tz__row, .tz__axis { grid-template-columns: 96px 1fr; } }

/* Funnel */
.funnel { display: grid; gap: 8px; }
.funnel > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); }
.funnel .f { height: 44px; background: var(--blue-tint); border: 1px solid color-mix(in oklch, var(--blue) 25%, transparent); display: flex; align-items: center; padding-inline: 14px; font-size: var(--t-small); font-weight: 500; color: var(--ink); width: var(--w); min-width: 150px; transition: width 1s var(--ease-out); }
.funnel > div:last-child .f { background: var(--blue); color: var(--on-navy); border-color: var(--blue); }
.funnel .n { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.funnel .n small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* Matrix */
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 720px; }
.matrix th, .matrix td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.matrix .d { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
.matrix .d.half { background: transparent; border: 2px solid var(--blue); }
.matrix .d.none { background: var(--paper-3); }
.matrix-key { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-md); font-size: .78rem; color: var(--ink-3); }
.matrix-key span { display: inline-flex; align-items: center; gap: 8px; }

/* Sticky sub-navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in oklch, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink-2); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-color: var(--line-2); background: var(--paper); }

/* Report mock */
.report { border: 1px solid var(--line-2); background: var(--paper); font-size: var(--t-small); }
.report__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.report__head b { color: var(--ink); font-weight: 500; }
.report__kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.report__kpis div { padding: var(--space-md) var(--space-lg); border-right: 1px solid var(--line); }
.report__kpis div:last-child { border-right: 0; }
.report__kpis b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.report__kpis span { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.report__body { padding: var(--space-md) var(--space-lg); display: grid; gap: var(--space-md); }
.report__body h4 { font-family: var(--font-mono); font-weight: 500; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.report__body li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; color: var(--ink-2); }
.report__body li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 7px; }
.report__body li.slip::before { background: var(--ink); }
.report__body li.ask::before { background: transparent; border: 2px solid var(--blue); }
.sparkbars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.sparkbars i { flex: 1; background: var(--paper-3); position: relative; }
.sparkbars i::after { content: ""; position: absolute; inset: auto 0 0 0; height: var(--h); background: var(--blue); }
.sparkbars i.cur::after { background: var(--ink); }
@media (max-width: 640px) { .report__kpis { grid-template-columns: 1fr 1fr; } .report__kpis div:nth-child(2) { border-right: 0; } }

/* Architecture diagram */
.arch svg { width: 100%; height: auto; }
.arch .box { fill: var(--paper); stroke: var(--line-2); stroke-width: 1; }
.arch .box.hi { fill: var(--blue-tint); stroke: var(--blue); }
.arch .box.ink { fill: var(--navy); stroke: var(--navy); }
.arch text { font-family: var(--font-display); font-weight: 600; font-size: 13px; fill: var(--ink); }
.arch text.sm { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; fill: var(--ink-3); letter-spacing: .5px; }
.arch text.lt { fill: var(--on-navy); }
.arch text.lt-sm { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; fill: var(--on-navy-2); }
.arch .ln { stroke: var(--line-2); stroke-width: 1.2; fill: none; }
.arch .ln.hi { stroke: var(--blue); }
.arch .lane { fill: none; stroke: var(--line); stroke-dasharray: 3 4; }

/* Cost table */
.cost { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.cost th, .cost td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.cost td { color: var(--ink-2); }
.cost td.num, .cost th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.cost tr.total td { font-family: var(--font-display); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.cost td:first-child { color: var(--ink); font-weight: 500; }
.cost .sub { color: var(--ink-3); font-size: .8rem; display: block; font-weight: 400; }

/* Callout (full border + tint, no side stripe) */
.callout { border: 1px solid color-mix(in oklch, var(--blue) 30%, transparent); background: var(--blue-tint); padding: var(--space-lg); font-size: var(--t-small); color: var(--ink-2); }
.callout b { color: var(--ink); font-family: var(--font-display); display: block; margin-bottom: 4px; }

/* Document checklist */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-xl); }
.docs h3 { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--ink); }
.docs li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.docs li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--line-2); border-radius: 2px; margin-top: 5px; }

/* Calendar table */
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { padding: var(--space-md); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .day { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.cal .day small { font-family: var(--font-mono); font-size: .62rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: 6px; }
.cal h3 { font-size: 1rem; margin-top: 8px; }
.cal p { font-size: .84rem; color: var(--ink-2); margin-top: 4px; }

/* Two-column key facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 var(--space-2xl); }
.facts div { display: grid; grid-template-columns: 1fr auto; gap: var(--space-md); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.facts div b { font-family: var(--font-display); color: var(--ink); font-weight: 700; text-align: right; white-space: nowrap; }
.band .facts div { border-color: var(--navy-line); color: var(--on-navy-2); } .band .facts div b { color: var(--on-navy); }

/* Anchor offsets below sticky header + sub-nav; tighter arch text */
[id] { scroll-margin-top: calc(var(--header-h) + 64px); }
.arch text.lt { font-size: 11.5px; }
.arch text.sm { font-size: 9px; }
.band .section-head p { color: var(--on-navy-2); }
.funnel .f { min-width: min(100%, 300px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Premium layer: textures, intro, progress, breadcrumbs, menus, widgets
   ========================================================================== */

/* Paper grain over everything, very faint */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2000; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Hatch texture on navy bands and a corner mark on page heroes */
.band { background-image: repeating-linear-gradient(135deg, transparent 0 14px, oklch(100% 0 0 / .022) 14px 15px); }
.page-hero::before { content: "∞"; position: absolute; right: var(--gutter); top: 18px; font-family: var(--font-display); font-weight: 800; font-size: 11rem; line-height: 1; color: var(--paper-3); opacity: .7; pointer-events: none; letter-spacing: -0.05em; }
.page-hero--band::before { color: var(--navy-2); }
@media (max-width: 860px) { .page-hero::before { font-size: 7rem; top: 6px; } }

/* Intro loader (once per session) */
.intro { position: fixed; inset: 0; z-index: 3000; background: var(--navy); display: grid; place-items: center; animation: intro-out .5s var(--ease-out) 1.25s forwards; }
.intro svg { width: min(360px, 60vw); overflow: visible; }
.intro path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 3300; stroke-dashoffset: 3300; animation: draw 1.1s var(--ease-out) .05s forwards; }
.intro span { position: absolute; bottom: 12%; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-navy-3); animation: fade-in .6s .5s both; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
html.intro-seen .intro, .intro.is-done { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* Scroll progress line */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1500; transform-origin: 0 50%; transform: scaleX(0); background: var(--blue); pointer-events: none; }

/* Breadcrumbs */
.crumbs { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs li:last-child { color: var(--blue); }

/* Nav link underline, button sheen */
.nav > a::before, .nav .has-menu > a > span::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out); }
.nav > a:hover::before { transform: scaleX(1); }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, oklch(100% 0 0 / .18) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease-out); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost::after, .btn--on-navy::after { display: none; }

/* Mega menu */
.nav .menu.menu--mega { min-width: 640px; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr; }
.menu--mega .menu__col { padding: 10px; }
.menu--mega .menu__feature { background: var(--navy); color: var(--on-navy); padding: 22px; display: grid; align-content: space-between; gap: var(--space-md); border-radius: 0 6px 6px 0; }
.menu--mega .menu__feature .eyebrow { color: var(--on-navy-2); }
.menu--mega .menu__feature .eyebrow::before { background: var(--sky); }
.menu--mega .menu__feature h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; line-height: 1.25; }
.menu--mega .menu__feature a { padding: 0; color: var(--sky); font-weight: 600; font-size: .9rem; }
.menu--mega .menu__feature a:hover { background: none; color: var(--on-navy); }
.menu--mega .menu__feature p { font-size: .84rem; color: var(--on-navy-2); font-family: var(--font-body); font-weight: 400; }
.menu--mega .menu__col a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.menu--mega .menu__col a i { font-family: var(--font-mono); font-style: normal; font-size: .66rem; letter-spacing: .1em; color: var(--blue); padding-top: 4px; }
@media (max-width: 960px) { .nav .menu.menu--mega { min-width: 0; grid-template-columns: 1fr; } .menu--mega .menu__feature { display: none; } .menu--mega .menu__col a { padding-left: 16px; } }

/* Open-now indicator */
.now { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.now i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.now.is-open i { background: oklch(70% 0.17 150); box-shadow: 0 0 0 3px oklch(70% 0.17 150 / .25); }
.now b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.site-footer .now { color: var(--on-navy-3); } .site-footer .now b { color: var(--on-navy); }
.header-now { margin-right: 4px; } @media (max-width: 1180px) { .header-now { display: none; } }

/* Statement band */
.statement { padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.statement__track { display: flex; width: max-content; gap: clamp(32px, 5vw, 80px); animation: marquee 36s linear infinite; }
.statement:hover .statement__track { animation-play-state: paused; }
.statement__track li { flex: none; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 9vw, 9rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.statement__track li.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.statement__track li.blue { color: var(--blue); }
.statement__track li.sym { color: var(--line-2); }
@media (prefers-reduced-motion: reduce) { .statement__track { animation: none; flex-wrap: wrap; width: auto; } }

/* Floating contact pill */
.pill { position: fixed; right: 18px; bottom: 18px; z-index: 1200; display: flex; gap: 6px; padding: 6px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 18px 40px -16px oklch(20% 0.05 262 / .35); transform: translateY(120%); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s; }
.pill.is-show { transform: none; opacity: 1; }
.pill a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); transition: background .2s, color .2s; }
.pill a:hover { background: var(--paper-2); }
.pill a.wa { background: oklch(55% 0.17 150); color: #fff; }
.pill a.wa:hover { background: oklch(48% 0.17 150); }
.pill svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .pill a span { display: none; } .pill a { padding: 12px; } }

/* Widgets: calculator and team builder */
.widget { border: 1px solid var(--line-2); background: var(--paper); }
.widget__head { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.widget__head h3 { font-size: 1.1rem; }
.widget__head span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.widget__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.widget__body > div { padding: var(--space-lg); }
.widget__body > div + div { border-left: 1px solid var(--line); background: var(--paper-2); }
.widget .field + .field { margin-top: var(--space-md); }
.widget input[type="range"] { width: 100%; accent-color: var(--blue); }
.widget .check { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--ink-2); margin-top: var(--space-md); }
.widget .check input { accent-color: var(--blue); width: 16px; height: 16px; }
.widget .out { display: grid; gap: 6px; }
.widget .out div { display: grid; grid-template-columns: 1fr auto; gap: var(--space-md); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.widget .out div b { font-family: var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.widget .out div.total { border-bottom: 2px solid var(--ink); padding-block: 12px; }
.widget .out div.total b { font-size: 1.3rem; letter-spacing: -0.02em; }
.widget .out div.sub { font-size: .8rem; color: var(--ink-3); border-bottom-style: dashed; }
.widget .note { margin-top: var(--space-md); font-size: .76rem; color: var(--ink-3); }
.widget .big-out { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.widget .big-out small { font-size: .4em; color: var(--blue); margin-left: 4px; }
@media (max-width: 860px) { .widget__body { grid-template-columns: 1fr; } .widget__body > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.roles-pick { display: grid; gap: 8px; }
.roles-pick > div { display: grid; grid-template-columns: 1fr 110px 96px; gap: 10px; align-items: center; font-size: var(--t-small); }
.roles-pick select { font: inherit; font-size: .86rem; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.stepper { display: inline-grid; grid-template-columns: 28px 36px 28px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.stepper button { height: 32px; font-size: 1rem; background: var(--paper); }
.stepper button:hover { background: var(--paper-2); }
.stepper output { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; border-inline: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.squad { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); min-height: 28px; }
.squad span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.squad span.lead { background: var(--blue); }
.squad span.mid { background: var(--paper-3); color: var(--ink); }
.widget .hint-box { margin-top: var(--space-md); padding: 12px 14px; border: 1px dashed var(--line-2); font-size: .82rem; color: var(--ink-2); }

/* Article extras */
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-sm); }
.share a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .82rem; font-weight: 600; font-family: var(--font-display); }
.share a:hover { border-color: var(--ink); }
.article > p:first-of-type::first-letter { font-family: var(--font-display); font-weight: 800; font-size: 3.6em; float: left; line-height: .85; padding: 6px 10px 0 0; color: var(--blue); }

/* Footer extras */
.site-footer__cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: end; padding-bottom: var(--space-2xl); margin-bottom: var(--space-2xl); border-bottom: 1px solid var(--navy-line); }
.site-footer__cta h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; color: var(--on-navy); max-width: 14ch; }
.site-footer__cta h2 a { color: var(--sky); } .site-footer__cta h2 a:hover { color: var(--on-navy); }
.newsletter label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: 8px; }
.newsletter .row { display: flex; gap: 0; border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; }
.newsletter input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; background: transparent; border: 0; color: var(--on-navy); }
.newsletter input::placeholder { color: var(--on-navy-3); }
.newsletter input:focus { outline: none; }
.newsletter button { padding: 12px 18px; background: var(--on-navy); color: var(--navy); font-family: var(--font-display); font-weight: 700; }
.newsletter button:hover { background: var(--sky); }
.newsletter p { margin-top: 8px; font-size: .76rem; color: var(--on-navy-3); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--on-navy-3); }
.to-top svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .site-footer__cta { grid-template-columns: 1fr; } }

/* ==========================================================================
   Charts (assets/js/charts.js)
   ========================================================================== */
:root { --c1: #1f5fe0; --c2: #e07a2f; --c3: #1ba784; --c4: #8aa0c2; --o1: #8fb0ec; --o2: #4f84e3; --o3: #1f5fe0; --o4: #153f9a; --surface: var(--paper); }
.band { --surface: var(--navy); --c1: #5b8ff2; --c2: #f0975a; --c3: #3fc49e; --c4: #9fb3cf; }
.chart { position: relative; margin: 0; border: 1px solid var(--line); background: var(--paper); padding: var(--space-lg); }
.band .chart { background: var(--navy-2); border-color: var(--navy-line); }
.chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-md); }
.chart__title { font-size: 1.05rem; letter-spacing: -0.01em; }
.chart__sub { margin-top: 4px; font-size: .84rem; color: var(--ink-3); max-width: 60ch; }
.band .chart__sub { color: var(--on-navy-2); }
.chart__tbtn { flex: none; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.chart__tbtn:hover { border-color: var(--ink); color: var(--ink); }
.band .chart__tbtn { border-color: var(--navy-line); color: var(--on-navy-2); }
.chart__plot { position: relative; width: 100%; }
.chart__plot svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-mono); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.band .chart .grid { stroke: var(--navy-line); }
.chart .tick { font-size: 10.5px; fill: var(--ink-3); letter-spacing: .04em; }
.chart .tick.proj { fill: var(--blue); }
.chart .cat { font-size: 12px; fill: var(--ink-2); font-family: var(--font-body); }
.chart .val { font-size: 11.5px; fill: var(--ink); font-family: var(--font-display); font-weight: 600; }
.band .chart .tick, .band .chart .cat { fill: var(--on-navy-2); } .band .chart .val { fill: var(--on-navy); }
.chart .inlbl { font-size: 11px; font-family: var(--font-display); font-weight: 600; pointer-events: none; }
.chart .mark { cursor: pointer; transition: opacity .2s, filter .2s; outline: none; }
.chart .mark:hover, .chart .mark:focus-visible { filter: brightness(1.12); }
.chart .mark.proj { opacity: .55; }
.chart .mark.dim { opacity: .35; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; pointer-events: none; }
.chart .dot { pointer-events: none; }
.chart__tip { display: none; position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--paper); padding: 8px 10px; border-radius: 4px; font-size: .8rem; min-width: 120px; box-shadow: 0 10px 30px -12px oklch(20% 0.05 262 / .5); }
.chart__tip-t { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-2); margin-bottom: 4px; }
.chart__tip-r { display: grid; grid-template-columns: 12px auto 1fr; gap: 8px; align-items: center; }
.chart__tip-r i { width: 12px; height: 3px; border-radius: 2px; }
.chart__tip-r b { font-family: var(--font-display); font-weight: 700; }
.chart__tip-r span { color: var(--on-navy-2); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: var(--space-sm); font-size: .8rem; color: var(--ink-2); }
.band .chart__legend { color: var(--on-navy-2); }
.chart__legend li { display: inline-flex; align-items: center; gap: 8px; }
.chart__legend i.rect { width: 12px; height: 12px; border-radius: 2px; }
.chart__legend i.line { width: 16px; height: 2px; border-radius: 1px; }
.chart__source { margin-top: var(--space-sm); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.band .chart__source { color: var(--on-navy-3); }
.chart__table { margin-top: var(--space-md); overflow-x: auto; }
.chart__table table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.chart__table th, .chart__table td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart__table th { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.band .chart__table th, .band .chart__table td { border-color: var(--navy-line); color: var(--on-navy-2); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-lg); }
.chart--hero { padding: var(--space-xl); }

/* Static diagrams */
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram .box { fill: var(--paper); stroke: var(--line-2); }
.diagram .box.hi { fill: var(--blue-tint); stroke: var(--blue); }
.diagram .box.ink { fill: var(--navy); stroke: var(--navy); }
.diagram .box.soft { fill: var(--paper-2); stroke: var(--line); }
.diagram text { font-family: var(--font-display); font-weight: 600; font-size: 13px; fill: var(--ink); }
.diagram text.sm { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; fill: var(--ink-3); letter-spacing: .5px; }
.diagram text.lt { fill: var(--on-navy); } .diagram text.lt-sm { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; fill: var(--on-navy-2); letter-spacing: .5px; }
.diagram .ln { stroke: var(--line-2); stroke-width: 1.4; fill: none; }
.diagram .ln.hi { stroke: var(--blue); }
.diagram .ln.ink { stroke: var(--ink); }
.diagram .arrow { fill: var(--line-2); } .diagram .arrow.hi { fill: var(--blue); } .diagram .arrow.ink { fill: var(--ink); }
.diagram .pillar { fill: var(--blue); }
.diagram .badge { fill: var(--blue); } .diagram text.badge-t { fill: var(--paper); font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.diagram .gate { fill: var(--paper); stroke: var(--blue); stroke-width: 1.5; }
.diagram .flow { stroke: var(--blue); stroke-width: 2; fill: none; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .diagram .flow { animation: none; stroke-dasharray: none; } }
.sparkbars i { height: 100%; }
.diagram--pipe text.sm { font-size: 8.8px; }
.diagram { overflow-x: auto; }
.diagram svg { min-width: 640px; }

/* --------------------------------------------------------------------------
   Phone-width overflow guards
   -------------------------------------------------------------------------- */
.facts div b { white-space: normal; }
@media (max-width: 640px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .facts div b { text-align: left; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article { min-width: 0; }
  .article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .article th, .article td { min-width: 140px; }
  .widget__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .roles-pick > div { grid-template-columns: 1fr 96px; gap: 6px 10px; }
  .roles-pick > div > span:first-child { grid-column: 1 / -1; font-weight: 600; }
}
.newsletter .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.newsletter .row input { min-width: 0; width: 100%; }
@media (max-width: 860px) { .site-footer__cta { grid-template-columns: minmax(0, 1fr); } }
/* Charts inside articles: keep chart typography, which .article p/li would otherwise override */
.article .chart__sub { font-size: var(--t-small); color: var(--ink-3); }
.article .chart__source { font-size: .68rem; color: var(--ink-3); }
.article .chart__legend li { font-size: var(--t-small); color: var(--ink-2); }
.article .chart__table td, .article .chart__table th { min-width: 0; }

/* --------------------------------------------------------------------------
   Motion graphics layer (arrival-only, reduced-motion safe)
   -------------------------------------------------------------------------- */
/* Travelling line on the infinity motif: inner-page heroes, CTA bands, home hero, 404 */
.page-hero__loop path:first-child { stroke-dasharray: 3300; stroke-dashoffset: 3300; animation: draw 2.4s var(--ease-out) .1s forwards; }
.page-hero__loop .runner, .cta__loop .runner { stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 220 3100; stroke-dashoffset: 0; animation: run 12s linear 1.2s infinite; }
.page-hero--band .page-hero__loop .runner, .cta__loop .runner { stroke: var(--sky); }
.hero__bg path.runner { stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 200 3100; stroke-dashoffset: 0; animation: run 14s linear 2.8s infinite; opacity: 1; }
.notfound { position: relative; overflow: clip; }
.notfound .wrap { position: relative; z-index: 1; }

/* Headline words rise one by one */
.h-words .w { display: inline-block; opacity: 0; transform: translateY(.35em); animation: word-in .85s var(--ease-out) forwards; animation-delay: calc(var(--base, 150ms) + var(--d, 0) * 55ms); }
@keyframes word-in { to { opacity: 1; transform: none; } }

/* Eyebrow rule draws in with its section */
.eyebrow.reveal::before { width: 0; transition: width .7s var(--ease-out) .15s; }
.eyebrow.reveal.is-in::before { width: 22px; }

/* Grids settle in one cell at a time */
.stagger.reveal { opacity: 1; transform: none; transition: none; }
.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(min(var(--k, 0), 9) * 70ms); }
.stagger.is-in > * { opacity: 1; transform: none; }

/* Diagrams: connectors draw, boxes and labels settle */
.diagram .ln, .arch .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out) .35s; }
.diagram.is-in .ln, .arch.is-in .ln { stroke-dashoffset: 0; }
.diagram .box, .arch .box, .diagram .gate, .diagram .pillar, .diagram .badge, .diagram text, .arch text, .diagram .arrow, .arch .arrow { opacity: 0; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(min(var(--k, 0), 14) * 55ms); }
.diagram .box, .arch .box { transform: translateY(6px); }
.diagram .arrow, .arch .arrow { transition-delay: 1.1s; }
.diagram.is-in .box, .arch.is-in .box, .diagram.is-in .gate, .diagram.is-in .pillar, .diagram.is-in .badge, .diagram.is-in text, .arch.is-in text, .diagram.is-in .arrow, .arch.is-in .arrow { opacity: 1; transform: none; }
.arch .lane, .diagram .lane { opacity: 0; transition: opacity .5s; }
.arch.is-in .lane, .diagram.is-in .lane { opacity: 1; }

/* Time-zone bars and report sparkbars grow */
.tz__track i { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.tz.is-in .tz__track i { transform: none; }
.tz__row:nth-child(2) i { transition-delay: .08s; } .tz__row:nth-child(3) i { transition-delay: .16s; } .tz__row:nth-child(4) i { transition-delay: .24s; } .tz__row:nth-child(5) i { transition-delay: .32s; } .tz__row:nth-child(6) i { transition-delay: .4s; }
.sparkbars i::after { height: 0; transition: height .9s var(--ease-out); }
.report.is-in .sparkbars i::after { height: var(--h); }
.sparkbars i:nth-child(2)::after { transition-delay: .07s; } .sparkbars i:nth-child(3)::after { transition-delay: .14s; } .sparkbars i:nth-child(4)::after { transition-delay: .21s; } .sparkbars i:nth-child(5)::after { transition-delay: .28s; } .sparkbars i:nth-child(6)::after { transition-delay: .35s; }

/* Timeline rule extends and the marker lands */
.timeline > div::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.timeline > div::after { transform: scale(0); transition: transform .5s var(--ease-out) .5s; }
.timeline.is-in > div::before, .timeline.is-in > div::after { transform: none; }

/* FAQ answers ease open */
.faq details[open] .faq__body { animation: faq-in .4s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* Mega menu items and mobile drawer links arrive in sequence */
@media (min-width: 961px) {
  .menu--mega .menu__col a, .menu--mega .menu__feature { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
  .nav .has-menu:hover .menu__col a, .nav .has-menu:focus-within .menu__col a, .nav .has-menu:hover .menu__feature, .nav .has-menu:focus-within .menu__feature { opacity: 1; transform: none; }
  .nav .has-menu:hover .menu__col a:nth-child(2), .nav .has-menu:focus-within .menu__col a:nth-child(2) { transition-delay: .05s; }
  .nav .has-menu:hover .menu__col a:nth-child(3), .nav .has-menu:focus-within .menu__col a:nth-child(3) { transition-delay: .1s; }
  .nav .has-menu:hover .menu__col a:nth-child(4), .nav .has-menu:focus-within .menu__col a:nth-child(4) { transition-delay: .15s; }
  .nav .has-menu:hover .menu__feature, .nav .has-menu:focus-within .menu__feature { transition-delay: .2s; }
}
@media (max-width: 960px) {
  .nav > a, .nav > .has-menu { opacity: 0; transform: translateX(14px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
  body.nav-open .nav > a, body.nav-open .nav > .has-menu { opacity: 1; transform: none; }
  body.nav-open .nav > :nth-child(1) { transition-delay: .12s; } body.nav-open .nav > :nth-child(2) { transition-delay: .17s; } body.nav-open .nav > :nth-child(3) { transition-delay: .22s; } body.nav-open .nav > :nth-child(4) { transition-delay: .27s; } body.nav-open .nav > :nth-child(5) { transition-delay: .32s; } body.nav-open .nav > :nth-child(6) { transition-delay: .37s; } body.nav-open .nav > :nth-child(7) { transition-delay: .42s; }
}

/* Widgets: team chips pop in, calculator values flash when they change */
.squad span { animation: pop .35s var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.widget [data-out].is-upd { animation: upd .6s var(--ease-out); }
@keyframes upd { from { color: var(--blue); } }

/* Thank-you: drawn check mark */
.done-mark { width: 64px; height: 64px; margin-bottom: var(--space-lg); }
.done-mark svg { width: 100%; height: 100%; overflow: visible; }
.done-mark circle, .done-mark path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-1 .9s var(--ease-out) .2s forwards; }
.done-mark path { animation-delay: .9s; animation-duration: .5s; }
@keyframes draw-1 { to { stroke-dashoffset: 0; } }

/* Footer CTA link underline sweeps on hover */
.site-footer__cta h2 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 3px; background-repeat: no-repeat; background-position: 0 94%; transition: background-size .5s var(--ease-out), color .25s; }
.site-footer__cta h2 a:hover { background-size: 100% 3px; }

/* Gentle scroll-linked drift where the browser supports it */
@supports (animation-timeline: view()) {
  .chapter__num { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { transform: translateY(36px); } to { transform: translateY(-36px); } }
  .hero__bg svg { animation: hero-drift linear both; animation-timeline: scroll(); animation-range: 0 700px; }
  @keyframes hero-drift { from { transform: translateY(-52%); } to { transform: translateY(calc(-52% + 90px)); } }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__loop path:first-child, .page-hero__loop .runner, .cta__loop .runner, .hero__bg path.runner { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .hero__bg path.runner, .page-hero__loop .runner, .cta__loop .runner { display: none; }
  .h-words .w { animation: none; opacity: 1; transform: none; }
  .eyebrow.reveal::before { width: 22px; transition: none; }
  .stagger > *, .diagram .box, .arch .box, .diagram .gate, .diagram .pillar, .diagram .badge, .diagram text, .arch text, .diagram .arrow, .arch .arrow, .arch .lane, .diagram .lane { opacity: 1; transform: none; transition: none; }
  .diagram .ln, .arch .ln { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .tz__track i, .timeline > div::before, .timeline > div::after { transform: none; transition: none; }
  .sparkbars i::after { height: var(--h); transition: none; }
  .faq details[open] .faq__body, .squad span, .widget [data-out].is-upd { animation: none; }
  .menu--mega .menu__col a, .menu--mega .menu__feature, .nav > a, .nav > .has-menu { opacity: 1; transform: none; transition: none; }
  .done-mark circle, .done-mark path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .chapter__num, .hero__bg svg { animation: none; }
}
