/* datasapiens — shared component styles.
   One stylesheet for the whole site. Page-level deviations are inline nudges
   (margin / padding only) on the element itself; never new colours or type.

   Contents
   1  Reset & base
   2  Layout: sections, containers
   3  Type: headings, kickers, lede, body
   4  Buttons & links
   5  Cards
   6  Accent bars & rules
   7  Stats
   8  Logo grid
   9  Split / foundations (dark)
   10 Layer stack diagram
   11 Icon rows
   12 Numbered levels & steps
   13 Data table & scope bar
   14 Chips
   15 Diagram scrollers
   16 Forms
   17 Header (.dsnav)
   18 Footer (.dsft)
*/

/* ============================================================ 1 · Reset */

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-body);
  color: var(--ink);
}

h1, h2, h3, h4 { font-weight: 400; }
p { margin: 0; }
img { display: block; }
table { border-collapse: collapse; }

a { color: var(--link); text-decoration: none; }
a:hover { opacity: .8; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 15px;
}
.skip-link:focus { top: 12px; opacity: 1; }

/* ============================================================ 2 · Layout */

.section { padding: var(--section-y) var(--gutter); }
.section--roomy { padding-top: clamp(56px, 6vw, 80px); padding-bottom: clamp(56px, 6vw, 80px); }
.section--tall { padding-top: clamp(64px, 7vw, 100px); padding-bottom: clamp(64px, 7vw, 100px); }

/* Backgrounds — max one dark section between light ones. */
.section--hero   { background: linear-gradient(var(--white), var(--hero-blue)); }
.section--hero-alt { background: linear-gradient(var(--hero-blue-soft), var(--white) 75%); }
.section--band   { background: var(--hero-blue); }
.section--fade   { background: linear-gradient(var(--white), var(--tint)); }
.section--fade-soft { background: linear-gradient(var(--white), var(--fade-blue)); }
.section--tint   { background: var(--tint); }
.section--dark   { background: var(--dark); }
.section--cta    { background: var(--cta-blue); }
/* Hard two-stop gradient: lets the content straddle a section boundary.
   Move the stop with style="--straddle:22%" on the section. */
.section--straddle {
  --straddle: 40%;
  background: linear-gradient(var(--hero-blue) var(--straddle), var(--white) var(--straddle));
}
.section--straddle-dark {
  --straddle: 50%;
  background: linear-gradient(var(--hero-blue) var(--straddle), var(--dark) var(--straddle));
}

.section--ruled     { border-top: 1px solid var(--line); }
.section--ruled-mid { border-top: 1px solid var(--line-mid); }
.section--center    { text-align: center; }

.container { max-width: var(--container); margin: 0 auto; }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; }
.container--prose { max-width: 760px; margin: 0 auto; }

/* Centred intro block above a section's content. */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head--wide { margin-bottom: 44px; }

/* ============================================================ 3 · Type */

/* Serif over-line above the home hero headline. */
.hero-over {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--subtle);
}

.h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
  color: var(--ink);
}
.h1--page { font-size: clamp(32px, 5vw, 54px); line-height: 1.14; text-wrap: balance; }
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.4vw, 36px);
  color: var(--ink);
}
.h2--sm { font-size: clamp(22px, 2.8vw, 28px); }
.h2--lg { font-size: clamp(26px, 3.6vw, 38px); }
.h2--xl { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; }
.h2--cta { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; }
.h2--plain { font-size: 24px; }
.h2--huge { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.1; }
.h2--balance { text-wrap: balance; }
.h2--suite { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }

.h3 { margin: 0; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.h3--md { font-size: 19px; }
.h3--lg { font-size: 20px; }
.h3--ui { font-family: var(--font-body); font-size: 16px; font-weight: 500; }
/* Panel heading on navy. */
.h3--panel {
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.2;
  color: var(--teal-light);
}

.on-dark { color: var(--on-dark); }

/* One clause of a headline, colour-flipped. */
.hl { color: var(--blue); }
.hl--italic { color: var(--blue); font-style: italic; }
.hl--dark { color: var(--teal-light); }

/* Uppercase eyebrow above a headline. */
.kicker {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.kicker--dark { color: var(--teal-light); }

/* Smaller, bolder eyebrow used inside cards and columns. */
.eyebrow {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow--teal   { color: var(--teal-dark); }
.eyebrow--purple { color: var(--purple-dark); }
.eyebrow--blue   { color: var(--blue); letter-spacing: .12em; }
.eyebrow--indigo { color: var(--indigo-deep); }
.eyebrow--link   { color: var(--link); }
.eyebrow--sm { font-size: 11.5px; letter-spacing: .08em; margin-bottom: 7px; }
.eyebrow--teal-dark   { color: var(--teal-light); }
.eyebrow--purple-dark { color: var(--purple-mid); }
.eyebrow--indigo-dark { color: var(--indigo-mid); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono--plain { letter-spacing: 0; text-transform: none; color: var(--subtle); }

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.lede--lg { font-size: 17px; line-height: 1.65; }
.lede--sm { font-size: 15.5px; }
.lede--xl { font-size: 18px; line-height: 1.65; }
.lede--dark { color: var(--on-dark-body); }
.lede--tight { line-height: 1.6; }

.body { font-size: 15px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.body--sm { font-size: 14px; line-height: 1.6; }
.body--muted { color: var(--muted); }
.body--dark { color: var(--on-dark-body); }
.body--dark-muted { color: var(--on-dark-muted); }

.measure    { max-width: 60ch; margin-left: auto; margin-right: auto; }
.measure--sm { max-width: 48ch; }
.measure--lg { max-width: 74ch; margin-left: auto; margin-right: auto; }

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

/* Long-form legal / prose page. */
.prose h2 {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

/* Serif statement line, used where a heading would be wrong semantically. */
.statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
}

/* Centred pull line with one serif clause lifted out of it. */
.pull-line {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}
.pull-line em {
  font-family: var(--font-display);
  font-size: 1.16em;
  font-style: normal;
  color: var(--ink);
}

/* ============================================================ 4 · Buttons */

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-row--center { justify-content: center; }

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 30px;
  border: 0;
  border-radius: var(--r-sm);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { opacity: .9; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--secondary {
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 400;
}
/* Hero pair: larger, and the secondary lifts on a soft shadow instead of a border. */
.btn--lg { font-size: 18px; padding: 19px 38px; border-radius: 10px; }
.btn--lift {
  background: var(--white);
  color: var(--ink);
  font-weight: 400;
  box-shadow: var(--shadow-soft);
}
.btn--sm { font-size: 14px; padding: 11px 20px; }

/* Inline "→" link out of a block. */
.link-more { font-size: 14px; font-weight: 500; color: var(--blue); }
.link-more--dark { color: var(--teal-light); font-weight: 400; }

/* ============================================================ 5 · Cards */

.card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
}
/* Large container card — the one that holds a whole demo or diagram. */
.card--lg {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card-lg);
  padding: 36px 40px;
}
.card--panel {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
}
.card--flush { padding: 0; overflow: hidden; }
.card--tint { background: var(--tint); box-shadow: none; }
.card--outline { background: var(--white); border: 1px solid var(--line); box-shadow: none; }
/* On navy. */
.card--glass {
  background: var(--on-dark-glass);
  border: 1px solid var(--on-dark-glass-line);
  border-radius: var(--r-md);
  box-shadow: none;
  padding: 20px 20px 22px;
}
.card--glass-lg { border-radius: var(--r-xl); padding: clamp(26px, 3vw, 34px); }
.card--glass-soft {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--on-dark-glass-line);
  border-radius: var(--r-xl);
  box-shadow: none;
  padding: 32px 36px;
}
.card__note { font-size: 14px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
/* Oversized figure inside a card. */
.metric__value {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Eight feature cards, filled column by column so pairs read across. */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 22px;
}
@media (max-width: 760px) {
  .arch-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--grid-gap);
}
.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card-grid--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.card-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1040px) { .card-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .card-grid--5 { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================ 6 · Accents */

/* 38–42 × 6 gradient bar above a card title. Rotate teal → purple → indigo. */
.accent-bar {
  width: 42px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.accent-bar--teal   { background: linear-gradient(90deg, var(--teal), var(--teal-pale)); }
.accent-bar--purple { background: linear-gradient(90deg, var(--purple), var(--purple-light)); }
.accent-bar--indigo { background: linear-gradient(90deg, var(--indigo), var(--indigo-light)); }
.accent-bar--blue   { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.accent-bar--sm { width: 38px; }
/* Brighter pairings, used on the metric cards. */
.accent-bar--teal-bright   { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.accent-bar--purple-bright { background: linear-gradient(90deg, var(--purple), var(--purple-mid)); }
.accent-bar--indigo-bright { background: linear-gradient(90deg, var(--indigo), var(--indigo-mid)); }
.accent-bar--blue-bright   { background: linear-gradient(90deg, var(--blue), var(--teal-light)); }

/* 3px left rule beside a statement. */
.rule-left { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 22px; }
.rule-left--teal   { border-left-color: var(--teal); }
.rule-left--purple { border-left-color: var(--purple); }
.rule-left--indigo { border-left-color: var(--indigo); }
.rule-left--blue   { border-left-color: var(--blue); }

/* 2px top rule above a small feature block. */
.rule-top { border-top: 2px solid var(--blue); padding-top: 16px; }
.rule-top--teal { border-top-color: var(--teal-light); }

.rule-above { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--on-dark-line); }

/* ============================================================ 7 · Stats */

/* Per-row count always divides 6, so no row ever holds a lone tile.
   The column gap carries the separation and the tick sits IN the gap, so cells
   need no horizontal padding and every row's edge cells stay flush. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  text-align: center;
  margin: 46px 0 52px;
}
.stats > div { position: relative; }
.stats > div::before {
  content: '';
  position: absolute;
  left: -14px; top: 0; bottom: 0;
  width: 1px;
  background: var(--on-dark-line);
}
.stats > div:nth-child(2n+1)::before { display: none; }

@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (min-width: 561px) {
  .stats { row-gap: 28px; }
  .stats > div:nth-child(2n+1)::before { display: block; }
  .stats > div:nth-child(3n+1)::before { display: none; }
}
@media (min-width: 1140px) {
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 0; }
  .stats > div:nth-child(3n+1)::before { display: block; }
  .stats > div:first-child::before { display: none; }
}

.stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.stat__value--key { color: var(--teal-light); }
.stat__label { font-size: 13px; color: var(--on-dark-muted); margin-top: 8px; }

/* ============================================================ 8 · Logos */

/* Open grid, no containers beyond the hairline card. Fixed counts divide 12. */
.logos {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.logos img {
  max-width: min(118px, 100%);
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================ 9 · Split */

/* Equal measures split by one hairline; stacks to a horizontal rule. */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.split > div { padding: 2px clamp(30px, 3.75vw, 50px); }
.split > div + div { border-left: 1px solid var(--on-dark-line); }
@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > div { padding: 0 0 28px; }
  .split > div + div {
    border-left: 0;
    border-top: 1px solid var(--on-dark-line);
    padding: 28px 0 0;
  }
}

/* Five glass tiles on navy. */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1080px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .tile-grid { grid-template-columns: minmax(0, 1fr); } }

.tile__title { font-size: 15px; color: var(--on-dark); font-weight: 500; }
.tile__title--md { font-size: 16px; margin-bottom: 16px; }
.tile__note  { font-size: 13px; color: var(--on-dark-muted); margin-top: 6px; line-height: 1.5; }

/* ============================================================ 10 · Stack */

/* Caisy band on top, foundations beneath — the band straddles the card edge. */
.stack { position: relative; }
.stack__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, clamp(150px, 34%, 286px)) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  padding: 28px clamp(18px, 4vw, 32px) 28px clamp(22px, 7vw, 74px);
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color: var(--on-dark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised);
}
.stack__body {
  position: relative;
  z-index: 1;
  margin: -8px clamp(12px, 5vw, 44px) 0;
  background: var(--white);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-stack);
  padding: 16px clamp(14px, 3vw, 26px) 6px;
}
.layer {
  display: grid;
  grid-template-columns: minmax(0, clamp(150px, 34%, 286px)) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 28px);
  padding: 22px 4px;
  align-items: center;
}
.layer + .layer { border-top: 1px solid var(--line-soft); }
.layer__label { display: flex; align-items: center; gap: 12px; }
.layer__label p { margin: 0; font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.layer__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin: 1px 3px 0;
  flex-shrink: 0;
}
.layer__dot--teal   { background: var(--teal); }
.layer__dot--purple { background: var(--purple); }
.layer__dot--indigo { background: var(--indigo); }
.layer__note { font-size: 14px; line-height: 1.6; color: var(--muted); }

@media (max-width: 640px) {
  .layer,
  .stack__top { grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
}

/* ============================================================ 11 · Icons */

/* Two-column list of icon + label + note, split by a hairline on wide screens. */
.icon-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 48px;
}
.icon-cols__divider { border-bottom: 1px solid var(--line-soft); }
@media (min-width: 800px) {
  .icon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-cols__divider { border-bottom: 0; }
  .icon-cols__second {
    border-left: 1px solid var(--line-soft);
    padding-left: 24px;
    margin-left: -24px;
  }
}

.icon-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 22px 0;
}
.icon-row + .icon-row,
.icon-row--ruled { border-top: 1px solid var(--line-soft); }
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--tint-soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.icon-row__title { font-size: 15px; color: var(--ink); font-weight: 500; }
.icon-row__note { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 4px; }

/* ============================================================ 12 · Levels */

/* Numbered rows: index · title · note, ruled top and bottom. */
.level {
  display: grid;
  grid-template-columns: 44px minmax(0, clamp(150px, 30%, 260px)) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
}
.level:last-child { border-bottom: 1px solid var(--line-strong); }
.level--wide { grid-template-columns: 44px minmax(0, clamp(180px, 40%, 340px)) minmax(0, 1fr); }
.level__num { font-family: var(--font-mono); font-size: 13px; color: var(--blue); }
.level h3 { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.level p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) {
  .level { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 20px; }
  .level > :nth-child(3) { grid-column: 2; }
}

/* Three-up numbered steps in the closing CTA. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 88px;
  max-width: var(--container-narrow);
  margin: 58px auto 54px;
  text-align: left;
}
.step__note { font-size: 15px; line-height: 1.6; color: var(--ink); }

/* Numbered feature blocks under a 2px top rule. --dark on the grid for navy. */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px 24px;
}
.numbered-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) and (min-width: 621px) {
  .numbered-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .numbered-grid--4 { grid-template-columns: minmax(0, 1fr); }
}
.numbered__num { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); margin-bottom: 8px; }
.numbered h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; color: var(--ink); }
.numbered p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.numbered-grid--dark .numbered__num { color: var(--on-dark-mono); }
.numbered-grid--dark h3 { color: var(--on-dark); }
.numbered-grid--dark p { color: var(--on-dark-muted); }
.numbered--serif h3 { font-family: var(--font-display); font-size: 19px; font-weight: 400; }

/* Two honest columns: what changes, what does not. */
.diff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.diff__second { padding: 24px 0 2px; border-top: 1px solid var(--line-soft); }
@media (min-width: 780px) {
  .diff__second {
    padding-top: 2px;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: clamp(14px, 2vw, 28px);
    margin-left: calc(-1 * clamp(14px, 2vw, 28px));
  }
}

/* Three stats in a row, split by hairlines in the gap (on navy). */
.stats-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 28px;
  text-align: center;
}
.stats-3 > div { position: relative; }
.stats-3 > div::before {
  content: '';
  position: absolute;
  left: -14px; top: 0; bottom: 0;
  width: 1px;
  background: var(--on-dark-line);
}
.stats-3 > div:first-child::before { display: none; }
@media (max-width: 640px) {
  .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-3 > div:nth-child(2n+1)::before { display: none; }
}
.stat__label--lead { line-height: 1.6; }

/* Five stats in a row (on navy). */
.stats-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 28px;
  text-align: center;
}
.stats-5 > div { position: relative; }
.stats-5 > div::before {
  content: '';
  position: absolute;
  left: -14px; top: 0; bottom: 0;
  width: 1px;
  background: var(--on-dark-line);
}
.stats-5 > div:first-child::before { display: none; }
@media (max-width: 860px) {
  .stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-5 > div:nth-child(2n+1)::before { display: none; }
}
/* Wraps earlier, and the odd fifth tile spans the full row. */
@media (max-width: 1040px) {
  .stats-5--wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stats-5--wrap > div:nth-child(2n+1)::before { display: none; }
  .stats-5--wrap > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .stats-5--wrap { column-gap: 20px; row-gap: 28px; }
}

/* Three small stats in one white strip, label above value. */
.stat-strip {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  max-width: 820px;
  margin: 28px auto 0;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: left;
  align-items: end;
}
.stat-strip > div {
  padding: 12px 22px;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto;
}
.stat-strip > div:last-child { border-right: 0; }
.stat-strip__label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.stat-strip__value {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-strip__value--key { color: var(--blue); }
@media (max-width: 780px) {
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
  .stat-strip > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat-strip > div:last-child { border-bottom: 0; }
  .stat-strip__label { white-space: normal; }
}

/* ============================================================ 13 · Table */

.scope-bar {
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--tint-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.data-table {
  min-width: 640px;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.data-table th {
  color: var(--subtle);
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 0 12px 20px;
  border-bottom: 2px solid var(--line);
}
.data-table th:first-child { text-align: left; padding-left: 14px; }
.data-table th:last-child { padding-right: 14px; }
.data-table td {
  text-align: right;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.data-table td:first-child { text-align: left; padding-left: 14px; }
.data-table td:last-child { padding-right: 14px; }
.data-table .num-pos { color: var(--positive); font-weight: 500; }
.data-table .num-neg { color: var(--negative); font-weight: 500; }
.data-table tr.is-total { background: var(--tint-soft); }
.data-table tr.is-total td { padding: 10px 0 10px 20px; font-weight: 500; border-bottom: 0; }
.data-table tr.is-total td:first-child { padding-left: 14px; }
.data-table tr.is-total .num-pos { font-weight: 600; }
.data-table--roomy td { padding: 10px 0 10px 20px; }
.data-table--roomy tr.is-total td { padding: 11px 0 11px 20px; }

.answer-head { padding: 26px 32px; border-bottom: 1px solid var(--line); }
.answer-head__q { font-size: 20px; line-height: 1.5; color: var(--ink); }
.answer-head__translation { font-size: 14px; color: var(--muted); margin-top: 8px; }
.answer-head__translation[hidden] { display: none; }
.answer-body { padding: 8px 32px 18px; }
.answer-note {
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}
.answer-followups { padding: 16px 32px 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================ 14 · Chips */

.chip {
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--tint-soft);
}
.chip--dashed { border-style: dashed; color: var(--subtle); }
.chip--link { color: var(--link); }
.chip--lg {
  font-size: 14px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 22px;
  background: var(--white);
  cursor: pointer;
}
.chip--lg[aria-pressed="true"] { background: var(--blue); border-color: transparent; color: var(--white); }

.chip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chip-row__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin-right: 4px; }

/* ============================================================ 15 · Diagram */

/* --- Answer-drift demo ---------------------------------------------------
   Two panels side by side: generative AI drifting, Caisy holding still.
   Rows are added and removed by assets/js/home.js; the initial two rows are in
   the markup, so the panel reads correctly with JS absent. */

.demo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.demo-head p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px 12px;
}
.panel--caisy {
  background: linear-gradient(var(--teal-wash), var(--white));
  border-color: var(--teal-wash-line);
}
.panel__head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.panel--caisy .panel__head { color: var(--teal-dark); }

.run-row-wrap { display: grid; grid-template-rows: 1fr; overflow: hidden; }
.run-row-wrap > div { min-height: 0; }
.run-row-wrap.is-entering { animation: ds-row-in .34s ease both; }
.run-row-wrap.is-leaving { animation: ds-row-out .34s ease both; }

.run-row {
  display: grid;
  grid-template-columns: 56px 92px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.panel--caisy .run-row { border-bottom-color: var(--teal-wash-rule); }
.run-row-wrap:last-child .run-row { border-bottom: 0; }
.run-row__n { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.run-row__v {
  font-family: var(--font-display);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.run-row__s { font-size: 13px; color: var(--muted); }
.panel--caisy .run-row__s { line-height: 1.5; }

/* The closing "which one goes to the board?" row. */
.run-row--question { padding: 14px 0 12px; border-bottom: 0; }
.run-row--question .run-row__v {
  color: var(--blue);
  display: block;
  width: 66px;
  text-align: center;
}
.run-row--question .run-row__s { color: var(--ink); font-weight: 500; }

@keyframes ds-row-in {
  from { grid-template-rows: 0fr; opacity: 0; }
  to   { grid-template-rows: 1fr; opacity: 1; }
}
@keyframes ds-row-out {
  from { grid-template-rows: 1fr; opacity: 1; }
  to   { grid-template-rows: 0fr; opacity: 0; }
}

/* --- Dotted feature columns (on navy) -----------------------------------
   Three columns on wide screens, two then one as it narrows; each column a
   dotted list under an eyebrow. */
.dot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.dot-cols > div { padding: 26px 0; max-width: 340px; margin: 0 auto; width: 100%; }
.dot-cols > div + div { border-top: 1px solid var(--on-dark-line); }
.dot-cols--light > div + div { border-top-color: var(--line-strong); }
@media (min-width: 620px) {
  .dot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 3.4vw, 52px); }
  .dot-cols > div { max-width: none; margin: 0; padding: 0; }
  .dot-cols > div + div { border-top: 0; }
  .dot-cols > div:nth-child(3) { grid-column: 1; padding: 30px 0 0; }
}
@media (min-width: 900px) {
  .dot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dot-cols > div:nth-child(3) { grid-column: auto; padding: 0; }
}

.dot-list {
  display: grid;
  gap: 11px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--on-dark-body);
  text-wrap: pretty;
}
.dot-item { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; }
.dot-list--sm { font-size: 14px; line-height: 1.65; }
.dot-list--airy { gap: 32px; }
.dot-list--light { color: var(--ink); gap: 13px; align-content: start; }
.dot-list--light .dot-item > span:first-child { margin-top: 7px; }
.dot-item > span:first-child {
  width: 6px; height: 6px;
  border-radius: 50%;
  justify-self: center;
  margin-top: 8px;
}
.dot-list--teal   .dot-item > span:first-child { background: var(--teal); }
.dot-list--purple .dot-item > span:first-child { background: var(--purple); }
.dot-list--indigo .dot-item > span:first-child { background: var(--indigo); }

/* --- Insight suite rows -------------------------------------------------
   Heading + figure on the left, two capability columns on the right; the tint
   variant bleeds its band to the full viewport width. */
.suite {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(48px, 6vw, 80px) 0;
}
.suite--tint {
  background: var(--tint-cool);
  box-shadow: 0 0 0 100vmax var(--tint-cool);
  clip-path: inset(0 -100vmax);
}
@media (min-width: 760px) {
  .suite { grid-template-columns: minmax(0, 48%) minmax(0, 1fr); column-gap: clamp(32px, 3.8vw, 54px); }
  .suite > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .suite > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .suite > :nth-child(3) { grid-column: 2; grid-row: 2; }
}
@media (min-width: 1040px) {
  .suite { grid-template-columns: minmax(0, 48%) minmax(0, 26%) minmax(0, 26%); }
  .suite > :nth-child(1) { grid-row: 1; }
  .suite > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .suite > :nth-child(3) { grid-column: 3; grid-row: 1; }
}

/* A capability: uppercase label with a trailing hairline, then one line of note. */
.cap-list { display: grid; align-content: start; gap: 32px; }
.cap__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.cap__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(57, 63, 86, .16);
}
.cap__label--blue   { color: var(--link); }
.cap__label--teal   { color: var(--teal-dark); }
.cap__label--purple { color: var(--purple-alt); }
.cap__note { font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* Caption under a small inline figure. */
.fig-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.fig-note--dark { color: var(--on-dark-note); }

/* Statement + button, side by side on wide screens. */
.closer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 32px);
  justify-items: start;
}
@media (min-width: 720px) {
  .closer { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 4vw, 56px); align-items: center; }
}

/* --- Self-funding value chain -------------------------------------------
   Three white cells butted together, then a gradient ROI card overlapping the
   last seam. Chevrons are grid items pinned to the seams so nothing clips them.
   Reflows 4 → 2 → 1 column. */
.vchain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
}
.vchain__step {
  background: var(--white);
  padding: 23px 24px;
  align-self: stretch;
  box-shadow: var(--shadow-stack);
  clip-path: inset(-40px 0 -40px 0);
}
.vchain__step--1 {
  grid-column: 1; grid-row: 1;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  clip-path: inset(-40px 0 -40px -40px);
}
/* 1px overlap so sub-pixel rounding can't open a seam between the white cells */
.vchain__step--2 { grid-column: 2; grid-row: 1; margin-left: -1px; }
.vchain__step--3 { grid-column: 3; grid-row: 1; margin-left: -1px; }
/* negative block margins keep the taller card from setting the row height */
.vchain__roi {
  grid-column: 4; grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: center;
  margin: -12px 0 -12px -10px;
  filter: drop-shadow(0 14px 26px rgba(57, 63, 86, .22));
}
.vchain__roi > div {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 34px 26px 34px 34px;
}
.vchain__seam {
  line-height: 0;
  z-index: 3;
  pointer-events: none;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  margin-left: -6px;
}
.vchain__seam svg { display: block; }
.vchain__seam--1 { grid-column: 2; }
.vchain__seam--2 { grid-column: 3; }

@media (max-width: 1040px) and (min-width: 621px) {
  .vchain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; }
  .vchain__step--2 {
    grid-column: 2; grid-row: 1;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    clip-path: inset(-40px -40px -40px 0);
  }
  .vchain__step--3 {
    grid-column: 1; grid-row: 2;
    margin-left: 0;
    border-radius: var(--r-lg) 0 0 var(--r-lg);
    clip-path: inset(-40px 0 -40px -40px);
  }
  .vchain__roi { grid-column: 2; grid-row: 2; }
  .vchain__seam--2 { display: none; }
}
@media (max-width: 620px) {
  .vchain { grid-template-columns: minmax(0, 1fr); max-width: 400px; margin-left: auto; margin-right: auto; }
  .vchain__step { margin: -1px 20px 0; padding: 28px 22px 22px; clip-path: inset(0 -40px 0 -40px); }
  .vchain__step--1 {
    grid-column: 1; grid-row: 1;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    margin-top: 0;
    padding-top: 22px;
    clip-path: inset(-40px -40px 0 -40px);
  }
  .vchain__step--2 { grid-column: 1; grid-row: 2; border-radius: 0; }
  .vchain__step--3 {
    grid-column: 1; grid-row: 3;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    clip-path: inset(0 -40px -40px -40px);
  }
  .vchain__seam {
    grid-column: 1;
    justify-self: center;
    align-self: start;
    margin: -10px 0 0;
    transform: rotate(90deg);
  }
  .vchain__seam--1 { grid-row: 2; display: block; }
  .vchain__seam--2 { grid-row: 3; display: block; }
  .vchain__roi { grid-column: 1; grid-row: 4; align-self: stretch; margin: -8px 0 0; }
  .vchain__roi > div { border-radius: var(--r-lg); padding: 26px 22px; }
}

/* Leadership card name. */
.person__name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}

/* Vision card: label beside a pulled quote. */
.vision {
  display: grid;
  grid-template-columns: minmax(0, clamp(120px, 17%, 164px)) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
@media (max-width: 700px) { .vision { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.vision blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

/* --- Testimonials (on navy) ---------------------------------------------
   Four columns split by hairlines, each with an oversized quote mark. */
.quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quotes > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 28px 0;
}
.quotes > div + div { border-left: 1px solid var(--on-dark-line); }
@media (max-width: 1000px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 52px; }
  .quotes > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quotes > div { padding: 34px 0 0; }
  .quotes > div + div { border-left: 0; border-top: 1px solid var(--on-dark-line); }
}
.quote__mark {
  position: absolute;
  top: -2px;
  left: 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 72px;
  line-height: .78;
  color: var(--on-dark);
  opacity: .07;
  pointer-events: none;
}
.quote__text {
  position: relative;
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-dark);
  text-wrap: pretty;
}
.quote__attr { margin-top: auto; }
.quote__name { margin: 0; font-family: var(--font-display); font-size: 17px; color: var(--teal-light); }
.quote__name--purple { color: var(--purple-light); }
.quote__name--indigo { color: var(--indigo-light); }
.quote__role { font-size: 13px; color: var(--on-dark-muted); margin-top: 2px; }

/* --- "What you get" middot run ------------------------------------------ */
.get-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 40px;
  row-gap: 8px;
}
.get-row__list { font-size: 15px; color: var(--ink); text-wrap: pretty; }
.sep { padding: 0 16px; }

/* --- Wide diagram / table scroller -------------------------------------- */

/* Horizontal scroller for wide inline SVG diagrams and tables. */
.scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.scroller > svg {
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

/* ============================================================ 16 · Forms */

.field { display: block; margin-bottom: 18px; }
.field__label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field__input,
.field__textarea,
.field__select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  min-height: 46px;
}
.field__textarea { min-height: 110px; resize: none; }
.field__input:focus,
.field__textarea:focus,
.field__select:focus { border-color: var(--blue); }
.field__error { font-size: 13px; color: var(--negative); margin-top: 6px; }
.field__input[aria-invalid="true"],
.field__textarea[aria-invalid="true"] { border-color: var(--negative); }

/* Off-screen honeypot — never shown, never announced. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1.6;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: #EAF9F9; border: 1px solid #C9EDED; color: var(--ink); }
.form-status--error { background: #FBEDEC; border: 1px solid #F0CFCC; color: var(--negative); }

/* Contact page: form beside the company card. */
.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.card--dark {
  background: var(--dark);
  border-radius: var(--r-xl);
  box-shadow: 0 12px 32px rgba(57, 63, 86, .2);
  padding: 30px 32px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-dark-body);
}
.card--dark h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 22px; color: var(--on-dark); }
.card--dark a { color: var(--teal-light); }
.card--dark hr,
.contact-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
}
.contact-block--legal { font-size: 13px; line-height: 1.7; color: var(--on-dark-faint); }
.contact-block--legal .pair { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; }
.contact-block--legal .pair span:nth-child(odd) { color: rgba(255, 255, 255, .4); }

/* ============================================================ 17 · Header */

.dsnav {
  position: relative;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.dsnav__in {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 16px clamp(16px, 3vw, 24px);
}
/* Optical nudge, 1px down: the lockup's box is tight to the 'p' descender,
   so centring it geometrically makes the wordmark read high. The row
   centres the margin box, so the 2px margin lands as a 1px shift. */
.dsnav__brand { display: flex; flex-shrink: 0; margin-top: 2px; }
.dsnav__brand img { height: 26px; width: auto; }
.dsnav__brand:hover { opacity: 1; }
.dsnav__links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  font-size: 15px;
}
.dsnav__panel { display: contents; }
.dsnav__item { position: relative; }
.dsnav__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.dsnav__trigger:hover,
.dsnav__link:hover { color: var(--blue); }
.dsnav__caret { font-size: 10px; color: var(--muted); }
.dsnav__link { color: var(--ink); padding: 6px 0; }
.dsnav__link[aria-current="page"] { color: var(--blue); }
.dsnav__menu {
  position: absolute;
  top: 38px;
  left: -16px;
  margin: 0;
  padding: 10px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-menu);
  min-width: 236px;
}
.dsnav__menulist { margin: 0; padding: 0; list-style: none; }
.dsnav__menu a {
  display: block;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.dsnav__menu a:hover,
.dsnav__menu a:focus-visible { background: var(--tint); opacity: 1; }
.dsnav__menu a[aria-current="page"] { color: var(--blue); background: var(--tint-soft); }
.dsnav__trigger[data-current="true"],
.dsnav__trigger[data-current="true"] .dsnav__caret { color: var(--blue); }
.dsnav__cta {
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.dsnav__cta:hover { opacity: .9; }
.dsnav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin: -2px 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
}
.dsnav__burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}
.dsnav :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* No-JS: dropdown panels stay in the flow as plain link lists. */
.dsnav__menu[hidden] { display: none; }

@media (max-width: 900px) {
  .dsnav__burger { display: flex; }
  .dsnav__panel {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-panel);
    clip-path: inset(0 0 -48px 0);
    transition: grid-template-rows .34s ease, visibility .34s;
  }
  .dsnav[data-open="true"] .dsnav__panel { grid-template-rows: 1fr; visibility: visible; }
  .dsnav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0 clamp(16px, 4vw, 24px);
  }
  .dsnav__item,
  .dsnav__link { border-top: 1px solid var(--line-soft); }
  .dsnav__links > :first-child { border-top: 0; }
  .dsnav__trigger,
  .dsnav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 12px 10px;
  }
  .dsnav__caret { transition: transform .2s ease; }
  .dsnav__trigger[aria-expanded="true"] .dsnav__caret { transform: rotate(180deg); }
  .dsnav__menu {
    position: static;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows .34s ease, opacity .28s ease;
  }
  .dsnav__menu[hidden] { display: grid; }
  .dsnav__trigger[aria-expanded="true"] + .dsnav__menu { grid-template-rows: 1fr; opacity: 1; }
  .dsnav__menulist { min-height: 0; overflow: hidden; padding: 0 0 0 12px; }
  .dsnav__menulist li:first-child a { margin-top: 2px; }
  .dsnav__menulist li:last-child a { margin-bottom: 10px; }
  .dsnav__menu a { padding: 12px 10px; min-height: 48px; display: flex; align-items: center; }
  .dsnav__cta { margin: 16px 0 20px; text-align: center; padding: 15px 20px; font-size: 15px; }
}

/* ============================================================ 18 · Footer */

.dsft { background: var(--dark); padding: clamp(48px, 6vw, 64px) var(--gutter) 28px; }
.dsft__in { max-width: var(--container); margin: 0 auto; }
.dsft__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 24px;
}
.dsft__brand { height: 23px; width: auto; }
.dsft__tag { font-size: 13px; line-height: 1.7; color: var(--on-dark-muted); margin-top: 14px; }
.dsft h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.dsft nav { display: flex; flex-direction: column; font-size: 14px; }
.dsft nav a { color: var(--on-dark-body); padding: 8px 0; min-height: 20px; }
.dsft nav a:hover { color: var(--on-dark); opacity: 1; }
.dsft nav a[aria-current="page"] { color: var(--teal-light); }
.dsft__legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--on-dark-muted);
}
.dsft :focus-visible { outline: 2px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 600px) { .dsft nav a { padding: 11px 0; } }

/* ============================================================ Motion */

@media (prefers-reduced-motion: reduce) {
  .dsnav__menu,
  .dsnav__caret,
  .dsnav__panel { transition: none; }
}
