/* Dhruv Markets — site.css v1.0.0 (2026-08-12)
 * Language: near-black page, opaque cool silver ink ramp, ONE blue accent, sharp edges.
 * No glow anywhere: zero box-shadow with blur, zero radial-gradient, zero text-shadow,
 * zero filter. Depth is carried by 1px hairlines, never by a surface step alone.
 * Progressive enhancement: every animation initial state is set in site.js at RUNTIME,
 * never here. A no-JS render must show the finished page with all hairlines drawn.
 */

/* ─────────────────────────────────────────────────────────── TOKENS ───────── */
:root {
  color-scheme: dark;

  /* SURFACES — lum 0.00000 / 0.00241 / 0.00396 / 0.00601 / 0.01020 */
  --black-deep:    #000000;   /* loader stage + final footer band ONLY */
  --black:         #07080A;   /* page, every scroll scene */
  --black-well:    #0B0D10;   /* footer, ticker trough, contact well */
  --black-raise:   #101216;   /* the one raised plane: nav fill, canvas field */
  --black-raise-2: #171A1F;   /* hover of a raised element — replaces every glow */

  /* INK / SILVER — opaque, cool (b−r between +4 and +20). Ratios vs --black. */
  --ink:   #EDEFF3;   /* 17.40:1 AAA — display, h1, h2 */
  --ink-1: #D7DBE2;   /* 14.43:1 AAA — h3, lead, statement */
  --ink-2: #AEB5C0;   /*  9.70:1 AAA — sub-heads, nav links, micro-labels */
  --ink-3: #8B939F;   /*  6.46:1 AA  — BODY COPY. floor for anything under 24px */
  --ink-4: #6A727E;   /*  4.12:1     — LARGE TEXT ONLY (>= 24px regular) */
  --ink-5: #4A515B;   /*  2.50:1     — decorative only, never text */
  --ink-6: #31363E;   /*  1.65:1     — opaque rules only */

  /* HAIRLINES — alpha rebased on silver 215,219,226, never on 255,255,255 */
  --rule-hi:    rgba(215,219,226,0.24);  /* -> #393B3E — section top edges */
  --rule:       rgba(215,219,226,0.13);  /* -> #222326 — rows, cells, nav base */
  --rule-soft:  rgba(215,219,226,0.07);  /* -> #161719 — fixed frame verticals */

  /* THE ONE ACCENT — hsl(209,61%,51%): hue below the 215–222 SaaS band,
     saturation trimmed against their 91–100%. */
  --blue:       #3583CE;   /* 5.05:1 page / 4.72:1 raise — AA small text */
  --blue-hover: #5FA0DE;   /* 7.22:1 AAA */
  --blue-press: #2A6BAB;   /* 3.62:1 — UI / large only */
  --blue-fill:  #1B4A80;   /* the ONE filled block; label in --ink = 7.80:1 */
  --focus:      #5FA0DE;

  /* LIGHT BAND (scoped override on .band-light) */
  --paper:         #E7E9EC;
  --paper-ink:     #0A0C0F;   /* 16.10:1 on paper */
  --paper-ink-2:   #343A42;   /*  9.43:1 */
  --paper-ink-3:   #5B626C;   /*  5.07:1 */
  --paper-rule:    rgba(10,12,15,0.14);
  --paper-rule-hi: rgba(10,12,15,0.22);

  /* TYPE */
  --display: 'DM Display', 'DM Display Fallback', Archivo, Helvetica, Arial, sans-serif;
  --sans:    'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif;
  --mono:    'DM Mono', 'DM Mono Fallback', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* SCALE — 11 -> 14 -> 18 -> 23 -> 34 -> 56 -> 104. Nothing below 11px. */
  --fs-meta:      11px;
  --fs-small:     14px;
  --fs-body:      18px;
  --fs-lead:      clamp(19px, 1.55vw, 23px);
  --fs-h3:        clamp(27px, 2.5vw, 34px);
  --fs-h2:        clamp(34px, 4.4vw, 56px);
  --fs-statement: clamp(30px, 4.6vw, 56px);
  /* 6.2vw, not 7.4 — the display face runs at font-stretch 112%, so the authored
     hero lines need ~12% more measure than a width-100 grotesque would. */
  --fs-h1:        clamp(40px, 6.2vw, 92px);

  /* TRACKING — tightens as size grows. NEVER positive. */
  --ls-h1: -0.05em; --ls-h2: -0.042em; --ls-h3: -0.032em;
  --ls-statement: -0.038em; --ls-lead: -0.024em;
  --ls-body: -0.008em; --ls-small: -0.012em; --ls-meta: -0.01em;

  /* LEADING */
  --lh-h1: 0.92; --lh-h2: 0.98; --lh-h3: 1.08; --lh-statement: 1.12;
  --lh-lead: 1.42; --lh-body: 1.52; --lh-small: 1.38; --lh-meta: 1.14;

  /* WEIGHTS — exactly three on the page, nothing below 400, nothing above 500 */
  --w-body: 400; --w-mid: 500;

  /* SPACING — non-uniform by design */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 16px; --sp-4: 26px; --sp-5: 44px; --sp-6: 72px;
  --sp-7: clamp(84px, 10.4vw, 150px);
  --sp-8: clamp(112px, 12.5vw, 180px);
  --sp-9: clamp(150px, 18.2vw, 262px);

  /* LAYOUT */
  --safe: clamp(20px, 3.4vw, 52px);
  --gutter: 20px;
  --frame-max: 1560px;
  --measure: 38rem;        /* 608px prose hard cap */
  --measure-lead: 30rem;   /* 480px lead */
  --nav-h: 62px;
  --dm-declination: 27deg; /* loader + page share one diagonal */

  /* EASING — four curves, that is the whole budget. Each is defined HERE once and
     referenced by var() from both the stylesheet and the loader's inline styles, so a
     curve can never drift between the CSS layer and the JS layer.
     There is no ease-in on the page. The loader's train decay is the one easing-in
     motion and it is computed per frame (alpha *= 0.84), not tweened. */
  --ease-out:       cubic-bezier(0.25, 1, 0.5, 1);   /* hovers, state changes */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);   /* reveals, the curtain */
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);  /* the wordmark characters */
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);  /* the rule draw */

  /* DURATION — five values */
  --t-press: 120ms; --t-state: 180ms; --t-enter: 320ms;
  --t-reveal: 520ms; --t-curtain: 560ms;
}

/* ───────────────────────────────────────────────────────────── FONTS ─────── */
@font-face {
  font-family: 'DM Display';
  src: url('/assets/fonts/Archivo-Variable.woff2?v=20260812a') format('woff2');
  font-weight: 400 600; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Display Fallback';
  src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
  ascent-override: 88%; descent-override: 22%; line-gap-override: 0%; size-adjust: 100%;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/assets/fonts/MartianMono-Variable.woff2?v=20260812a') format('woff2');
  font-weight: 300 500; font-stretch: 75% 112%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Mono Fallback';
  src: local('Menlo'), local('DejaVu Sans Mono'), local('Consolas');
  ascent-override: 78%; descent-override: 20%; line-gap-override: 0%; size-adjust: 112%;
}

/* ────────────────────────────────────────────────────────────── BASE ─────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
.panel *, .nav *, .hero *, .footer *, .statement *, .ticker-band *,
.btn, .idx-row, .ladder-row, #loader * { border-radius: 0; }

html { scroll-behavior: auto; scrollbar-color: #31363E #07080A; }
body {
  background: var(--black);
  color: var(--ink-3);
  font: var(--w-body) var(--fs-body)/var(--lh-body) var(--sans);
  letter-spacing: var(--ls-body);
  overflow-x: clip;              /* clip, NOT hidden — hidden breaks position:sticky */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: #EDEFF3; color: #07080A; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: var(--w-body); font-stretch: 112%; color: var(--ink); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1);
     margin-top: -0.10em; margin-bottom: -0.25em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2);
     margin-top: -0.20em; margin-bottom: -0.27em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3);
     color: var(--ink-1); margin-top: -0.18em; margin-bottom: -0.30em; }

p { max-width: var(--measure); }
.lead {
  font-size: var(--fs-lead); line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead); color: var(--ink-2);
}

/* micro-label — legitimate only when it carries data, never inside a pill */
.label {
  display: inline-block;
  font: var(--w-body) var(--fs-meta)/var(--lh-meta) var(--mono);
  font-stretch: 100%;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--ink-2);
  font-feature-settings: 'case';
  font-variant-numeric: tabular-nums;
}
.accent { color: var(--blue); font-weight: inherit; font-style: normal; }
.arr { display: inline-block; transition: transform 350ms var(--ease-out); }
a:hover .arr { transform: translateX(5px); }

/* ─────────────────────────────────────── FIXED DECORATIVE LAYERS ─────────── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0.035;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame-lines { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.frame-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule-soft); }
.frame-lines span:nth-child(1) { left: 25%; }
.frame-lines span:nth-child(2) { left: 50%; }
.frame-lines span:nth-child(3) { left: 75%; }

.progress-rule {
  position: fixed; top: 0; left: 0; right: 0; height: 1px;
  pointer-events: none; z-index: 45;
}
.progress-rule i {
  display: block; height: 1px; width: 100%;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
}

/* ─────────────────────────────────────────────────────────────── NAV ─────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; }
.nav-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  column-gap: var(--gutter);
  height: var(--nav-h);
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 var(--safe);
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-bottom-color var(--t-state) var(--ease-out),
              background var(--t-state) var(--ease-out);
}
.nav.is-scrolled .nav-bar { border-bottom-color: var(--rule); }
.nav-mark { grid-column: 1 / span 4; }
.nav-mark-name {
  font: var(--w-mid) 12px/1 var(--mono);
  letter-spacing: -0.01em; color: var(--ink);
  font-feature-settings: 'case';
}
.nav-mark-name span { color: var(--ink-3); font-weight: var(--w-body); }
.nav-links { grid-column: 5 / span 8; display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.6vw, 40px); }
.nav-link {
  position: relative;
  font: var(--w-body) var(--fs-meta)/1 var(--mono);
  letter-spacing: var(--ls-meta); text-transform: uppercase;
  color: var(--ink-2); padding: 6px 0;
  transition: color var(--t-state) var(--ease-out);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-state) var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font: var(--w-body) var(--fs-meta)/1 var(--mono);
  letter-spacing: var(--ls-meta); text-transform: uppercase;
  color: var(--ink); padding: 10px 0 10px 0;
  border-bottom: 1px solid var(--rule-hi);
  transition: border-bottom-color var(--t-state) var(--ease-out);
}
.nav-cta:hover { border-bottom-color: var(--blue); }
.nav-burger { display: none; grid-column: 12; justify-self: end; flex-direction: column; gap: 5px; padding: 10px 0; }
.nav-burger span { display: block; width: 20px; height: 1px; background: var(--ink); }

/* nav over the one light band */
.nav.on-light .nav-bar { background: rgba(231, 233, 236, 0.82); }
.nav.on-light.is-scrolled .nav-bar { border-bottom-color: var(--paper-rule); }
.nav.on-light .nav-mark-name { color: var(--paper-ink); }
.nav.on-light .nav-mark-name span { color: var(--paper-ink-3); }
.nav.on-light .nav-link { color: var(--paper-ink-2); }
.nav.on-light .nav-link:hover { color: var(--paper-ink); }
.nav.on-light .nav-link::after { background: #17497F; }
.nav.on-light .nav-cta { color: var(--paper-ink); border-bottom-color: var(--paper-rule-hi); }
.nav.on-light .nav-cta:hover { border-bottom-color: #17497F; }
.nav.on-light .nav-burger span { background: var(--paper-ink); }

/* ───────────────────────────────────────────────────────────── BUTTONS ───── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--rule-hi);
  font: var(--w-body) var(--fs-meta)/1 var(--mono);
  letter-spacing: var(--ls-meta); text-transform: uppercase;
  color: var(--ink-2);
  transition: border-color var(--t-state) var(--ease-out),
              color var(--t-state) var(--ease-out),
              background var(--t-state) var(--ease-out),
              transform var(--t-press) var(--ease-out);
}
.btn:hover { border-color: var(--ink-4); color: var(--ink); background: var(--black-raise-2); }
.btn:active { transform: scale(0.97); }
/* the ONE filled block on the page */
.btn--fill {
  background: var(--blue-fill); border-color: var(--blue-fill);
  color: var(--ink); font-weight: var(--w-mid);
}
.btn--fill:hover { background: var(--blue-press); border-color: var(--blue-press); color: var(--ink); }

/* ────────────────────────────────────────────────────────────── HERO ─────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--black-raise);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(7,8,10,0.55) 0%, rgba(7,8,10,0.05) 30%,
    rgba(7,8,10,0.10) 62%, rgba(7,8,10,0.82) 100%);
}
.hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: end;
  width: 100%; max-width: var(--frame-max); margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) var(--safe) clamp(64px, 9svh, 110px);
}
.hero-lead { grid-column: 1 / span 8; }
.hero-side { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: var(--sp-4); padding-bottom: 6px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(22px, 3.4svh, 40px); }
.hero-eyebrow .rule { display: block; width: 44px; height: 1px; background: var(--ink-4); transform-origin: left; }
.hero-headline { font-size: var(--fs-h1); }
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(38px, 5.4svh, 62px); }
.hero-sub { font-size: var(--fs-body); color: var(--ink-2); max-width: var(--measure-lead); }
.hero-coords {
  font: var(--w-body) var(--fs-meta)/1.9 var(--mono);
  letter-spacing: var(--ls-meta); text-transform: uppercase; color: var(--ink-3);
  font-feature-settings: 'case';
}
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between;
  max-width: var(--frame-max); margin: 0 auto;
  padding: 0 var(--safe) 20px;
  pointer-events: none;
}
/* --ink-4 is 4.12:1 and is legal only at >=24px. At 11px this must be --ink-3. */
.hero-foot .label { color: var(--ink-3); }

/* ──────────────────────────────────────────────────────────── TICKER ────── */
/* grid break #1 — full-bleed past --safe to the viewport edge */
.ticker-band {
  position: relative; z-index: 3;
  overflow: hidden; padding: var(--sp-3) 0;
  background: var(--black-well);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ticker { display: flex; width: max-content; animation: tickerMove 78s linear infinite; }
.ticker-band:hover .ticker, .ticker-band:focus-within .ticker { animation-play-state: paused; }
.ticker-seq { display: flex; }
.ticker-seq span {
  position: relative;
  padding: 0 var(--sp-5);
  font: var(--w-body) var(--fs-small)/1.4 var(--mono);
  font-stretch: 90%;
  letter-spacing: var(--ls-small);
  text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
  font-feature-settings: 'case';
}
/* Separators are silver, not accent. Twenty-three repeated blue ticks is decorative
   repetition — the exact thing the accent budget exists to prevent — and a separator
   carries no meaning, so it has no claim on the one accent. */
.ticker-seq span::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 1px; height: 11px; margin-top: -5px;
  background: var(--ink-6);
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───────────────────────────────────────────────────────── STATEMENTS ───── */
.statement { position: relative; background: var(--black); min-height: 100svh; }
.statement.on { min-height: 170svh; }   /* runway opened by JS only */
.statement-pin {
  position: sticky; top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: center;
  max-width: var(--frame-max); margin: 0 auto;
  padding: 0 var(--safe);
}
.statement-text {
  grid-column: 2 / span 9;
  font-family: var(--display); font-stretch: 112%; font-weight: var(--w-body);
  font-size: var(--fs-statement); line-height: var(--lh-statement);
  letter-spacing: var(--ls-statement); color: var(--ink-1);
  max-width: none;
}
.statement--b .statement-text { grid-column: 1 / span 9; }
.st-w { display: inline-block; }
/* accent is always ALSO a shape — a 1px rule under the operative noun */
.statement-text .accent {
  position: relative;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 0.04em;
}

/* ─────────────────────────────────────────────────── PANELS + NODES ────── */
.panel { position: relative; background: var(--black); border-top: 1px solid var(--rule-hi); }
.panel-inner {
  max-width: var(--frame-max); margin: 0 auto;
  padding: var(--sp-8) var(--safe);
}
.node { position: absolute; z-index: 4; width: 9px; height: 9px; pointer-events: none; }
.node::before, .node::after { content: ''; position: absolute; background: var(--ink-5); }
.node::before { left: 4px; top: 0; width: 1px; height: 9px; }
.node::after { left: 0; top: 4px; width: 9px; height: 1px; }
.node--tl { top: -5px; left: calc(25% - 4px); }
.node--tc { top: -5px; left: calc(50% - 4px); }
.node--tr { top: -5px; left: calc(75% - 4px); }

.sect-head {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 90px); align-items: end;
  margin-bottom: var(--sp-7);
}
.sect-title { font-size: var(--fs-h2); }
.sect-side { font-size: var(--fs-body); color: var(--ink-3); max-width: 420px; justify-self: end; }

/* ──────────────────────────────────────────────────────── SERVICES ─────── */
/* 7fr 5fr with a 160px offset on cell 2 — deliberately not 1fr 1fr, never 3 cards */
.services-split {
  display: grid; grid-template-columns: 7fr 5fr;
  column-gap: 0;
  border-top: 1px solid var(--rule);
}
.svc-cell { padding: var(--sp-6) var(--sp-5) var(--sp-6) 0; }
.svc-cell:first-child { border-right: 1px solid var(--rule); padding-right: var(--sp-6); }
.svc-cell--offset { margin-top: 160px; padding-left: var(--sp-6); padding-right: 0; }
.svc-idx { display: block; margin-bottom: var(--sp-4); }
.svc-name { margin-bottom: var(--sp-4); }
.svc-body { font-size: var(--fs-body); color: var(--ink-3); margin-bottom: var(--sp-4); }
.svc-list { margin-top: var(--sp-5); border-top: 1px solid var(--rule); }
.svc-list li {
  padding: 13px 0 13px 0;
  border-top: 1px solid var(--rule);
  font: var(--w-body) var(--fs-small)/var(--lh-small) var(--mono);
  font-stretch: 90%;
  letter-spacing: var(--ls-small);
  color: var(--ink-3);
  transition: color var(--t-state) var(--ease-out);
}
.svc-list li:first-child { border-top: 0; }
.svc-list li:hover { color: var(--ink-1); }

/* ─────────────────────────────────────────────────────────── INDEX ─────── */
.index-head { margin-bottom: var(--sp-7); max-width: var(--measure); }
.index-head .label { margin-bottom: var(--sp-4); }
.index-head .sect-title { margin-bottom: var(--sp-4); }
.index .panel-inner { padding-left: calc(var(--safe) + 3.2rem); }

.idx { border-top: 1px solid var(--rule-hi); }
.idx-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.7fr 3.1fr 4.6fr 1.5fr;
  column-gap: clamp(16px, 2.2vw, 40px);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--rule);
  transition: background var(--t-state) var(--ease-out);
}
.idx-row:first-child { border-top: 0; }
.idx-row:hover { background: var(--black-raise-2); }
.idx-row--head { padding: var(--sp-2) 0 var(--sp-3); border-top: 0; }
.idx-row--head:hover { background: none; }
/* grid break #2 — the row numerals hang into the left gutter */
.idx-n {
  position: absolute; left: -3.2rem; top: var(--sp-4);
  font: var(--w-body) var(--fs-small)/1 var(--mono);
  letter-spacing: var(--ls-meta);
  /* the row number is information, not decoration, so it cannot sit on --ink-5 (2.50:1) */
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.idx-t { font-size: var(--fs-body); color: var(--ink-1); }
.idx-f, .idx-b {
  font: var(--w-body) var(--fs-small)/var(--lh-small) var(--mono);
  font-stretch: 88%;
  letter-spacing: var(--ls-small);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.idx-a { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); max-width: none; }
/* 10.5px mono sits above the 18px term's baseline without the nudge */
/* 11px is the floor for the whole page — nothing renders below it */
.idx-b { color: var(--ink-3); text-transform: uppercase; padding-top: 4px; }
.idx-row--head .idx-b, .idx-row--head span { color: var(--ink-3); }

/* ────────────────────────────────────────────────── METHOD LADDER ─────── */
.method .panel-inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
}
.method-head { grid-column: 3 / span 8; margin-bottom: var(--sp-7); }
.method-head .label { display: block; margin-bottom: var(--sp-4); }
.method-head .sect-title { margin-bottom: var(--sp-4); }
.ladder { grid-column: 3 / span 10; }
.ladder-row {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 3fr 6fr;
  column-gap: clamp(18px, 2.6vw, 44px);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--rule);
}
.ladder-row:first-child { border-top: 1px solid var(--rule-hi); }
.ladder-idx {
  font: var(--w-body) var(--fs-meta)/1.4 var(--mono);
  letter-spacing: var(--ls-meta); text-transform: uppercase; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding-top: 0.5em;
}
.ladder-name { align-self: start; }
.ladder-body { font-size: var(--fs-body); color: var(--ink-3); }

/* ────────────────────────────────────────────── ABOUT — LIGHT BAND ────── */
.band-light {
  background: var(--paper);
  color: var(--paper-ink-2);
  border-top: 0;
  --ink: var(--paper-ink); --ink-1: var(--paper-ink); --ink-2: var(--paper-ink-2);
  --ink-3: var(--paper-ink-2); --ink-4: var(--paper-ink-3); --ink-5: var(--paper-ink-3);
  --rule-hi: var(--paper-rule-hi); --rule: var(--paper-rule);
  --rule-soft: rgba(10, 12, 15, 0.07);
  --blue: #17497F;          /* #3583CE is 3.26:1 on paper and FAILS AA */
  --blue-hover: #102B4A;
}
.band-light ::selection { background: #0A0C0F; color: #E7E9EC; }
.light-lines { position: absolute; inset: 0; pointer-events: none; }
.light-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(10, 12, 15, 0.07); }
.light-lines span:nth-child(1) { left: 25%; }
.light-lines span:nth-child(2) { left: 50%; }
.light-lines span:nth-child(3) { left: 75%; }
.about-inner {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
}
.about-meta { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: var(--sp-2); }
.about-body { grid-column: 6 / span 7; }
.about-body .label { display: block; margin-bottom: var(--sp-4); }
.band-title { font-family: var(--display); font-stretch: 112%; font-weight: var(--w-body);
  font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2);
  color: var(--paper-ink); margin-bottom: var(--sp-5); }
.about-body p { margin-bottom: var(--sp-4); color: var(--paper-ink-2); }
.about-body .lead { color: var(--paper-ink); }

/* ─────────────────────────────────────────────────────────── TERMS ─────── */
.terms-inner {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter); row-gap: var(--sp-7);
}
.terms-group--a { grid-column: 1 / span 6; }
.terms-group--b { grid-column: 7 / span 6; align-self: start; }
.terms-group .label { display: block; margin-bottom: var(--sp-4); }
.terms-title { margin-bottom: var(--sp-5); }
.terms-list { border-top: 1px solid var(--rule-hi); }
.terms-list li {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small); line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--ink-3);
  /* no max-width: the 6-column grid already sets the measure, and a cap here would
     make each row's hairline stop short of its own column edge */
}
.terms-list li:first-child { border-top: 0; }

/* ───────────────────────────────────────────────────────── CONTACT ─────── */
.contact { background: var(--black-well); }
.contact-inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
}
.contact-inner > * { grid-column: 3 / span 7; }
.contact-inner .label { margin-bottom: var(--sp-4); }
.contact-inner .sect-title { margin-bottom: var(--sp-5); }
.contact-inner .lead { margin-bottom: var(--sp-6); }
.contact-inner .btn { justify-self: start; grid-column: 3 / span 4; }

/* ────────────────────────────────────────────────────────── FOOTER ─────── */
.footer { background: var(--black-well); border-top: 1px solid var(--rule); }
.footer-inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  max-width: var(--frame-max); margin: 0 auto;
  padding: var(--sp-6) var(--safe);
}
.footer-inner > * { grid-column: span 3; color: var(--ink-3); }
.footer-inner a { transition: color var(--t-state) var(--ease-out); }
.footer-inner a:hover { color: var(--ink); }
.footer-base { height: 120px; background: var(--black-deep); }

/* ────────────────────────────────────────────────────────── LOADER ─────── */
/* FAILSAFE 1 — the overlay is display:none by DEFAULT. Only the inline
   head script's .is-loading opts in. No JS => no overlay, ever. */
#loader { display: none; }
.is-loading #loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 90;
  background: var(--black-deep);
  clip-path: inset(0);
}
.is-loading, .is-loading body { overflow: hidden; height: 100%; }
.loader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-stage {
  position: absolute; left: 30%; top: 58%;
  transform: translate(-50%, -50%);
  width: min(600px, 74vw);
}
.loader-mark { position: relative; }
.loader-word {
  display: block;
  font-family: var(--display); font-stretch: 112%; font-weight: var(--w-body);
  font-size: clamp(22px, 3.4vw, 44px);
  line-height: 1; letter-spacing: -0.045em; color: var(--ink);
  margin-bottom: 14px; white-space: nowrap;
}
.loader-word i { display: inline-block; font-style: normal; }
.loader-rule { width: 100%; height: 2px; overflow: visible; }
.loader-rule line { stroke: #6E7683; stroke-width: 1; vector-effect: non-scaling-stroke; }
.loader-fallback { display: none; }

/* ────────────────────────────────────────────────────── RESPONSIVE ─────── */
@media (max-width: 1060px) {
  .idx-row { grid-template-columns: 1.6fr 2fr 3.4fr; }
  .idx-b { grid-column: 1 / -1; margin-top: var(--sp-2); }
  .method-head, .ladder { grid-column: 1 / span 12; }
  .ladder-row { grid-template-columns: 1.2fr 2.4fr 5fr; }
}
@media (max-width: 860px) {
  .nav-bar { grid-template-columns: 1fr auto; }
  .nav-mark { grid-column: 1; }
  .nav-burger { display: flex; grid-column: 2; }
  .nav-links {
    grid-column: 1 / -1;
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    background: rgba(7, 8, 10, 0.96);
    border-bottom: 1px solid var(--rule);
    padding: var(--sp-2) var(--safe) var(--sp-4);
  }
  .nav.on-light .nav-links { background: rgba(231, 233, 236, 0.96); }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 14px 0; font-size: 13px; }
  .nav-links .nav-cta { margin-top: 14px; border-bottom: 0; }

  /* On a phone the copy fills 40–95% of the viewport instead of the bottom third, so
     the signal trails run straight through the headline. Same scrim, re-weighted: the
     field still reads in the empty top 40%, the copy gets a floor under it. */
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(7,8,10,0.60) 0%, rgba(7,8,10,0.18) 22%,
      rgba(7,8,10,0.62) 46%, rgba(7,8,10,0.90) 100%);
  }
  .hero-inner { grid-template-columns: 1fr; align-items: start; row-gap: var(--sp-6); }
  .hero-lead, .hero-side { grid-column: 1; }
  .hero-side { padding-bottom: 0; }
  .hero-foot { display: none; }

  .statement-pin { grid-template-columns: 1fr; }
  .statement-text, .statement--b .statement-text { grid-column: 1; }

  .sect-head { grid-template-columns: 1fr; align-items: start; }
  .sect-side { justify-self: start; }

  .services-split { grid-template-columns: 1fr; }
  .svc-cell { padding: var(--sp-6) 0; }
  .svc-cell:first-child { border-right: 0; padding-right: 0; }
  .svc-cell--offset { margin-top: 0; padding-left: 0; border-top: 1px solid var(--rule); }

  .index .panel-inner { padding-left: var(--safe); }
  .idx-row { grid-template-columns: 1fr; row-gap: var(--sp-2); padding-left: 2.6rem; }
  .idx-n { left: 0; top: var(--sp-4); }
  .idx-row--head { display: none; }
  .idx-b { margin-top: 0; }

  .ladder-row { grid-template-columns: 1fr; row-gap: var(--sp-3); }

  .about-inner { grid-template-columns: 1fr; row-gap: var(--sp-6); }
  .about-meta, .about-body { grid-column: 1; }
  .about-meta { flex-direction: row; flex-wrap: wrap; gap: var(--sp-3); }

  .terms-inner { grid-template-columns: 1fr; }
  .terms-group--a, .terms-group--b { grid-column: 1; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-inner > *, .contact-inner .btn { grid-column: 1; }

  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: var(--sp-3); }
  .footer-inner > * { grid-column: span 1; }

  .loader-stage { left: 50%; top: 56%; width: 80vw; }
}
@media (min-width: 1800px) {
  :root { --safe: 72px; --fs-h1: clamp(92px, 6.2vw, 118px); }
}

/* ───────────────────────────────────────────────── REDUCED MOTION ─────── */
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .arr { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
