/* elasticd3m.com — ElasticD3M, LLC corporate site.
   Palette: navy / gold / white.

   Owner directives, 2026-09-19:
   - Type scale ratio 1.34, base 20px. The previous base was 16px and read as
     illegible on a large display.
   - Everything is centred.
   - Gold text never sits on a light background. Every gold element is set on a
     navy block, because gold on white makes the eye work for the contrast. */

:root {
  /* Brand */
  /* ONE blue. The site had four -- #0F1629 for sections, #141D36 closing the
     hero gradient, #1A2238 unused, and #23356F behind the gold labels -- plus
     white-tint overlays on two cards making a fifth surface. Each of those
     arrived fixing a different complaint, and together they read as several
     unrelated blues (owner, 2026-09-19).

     This value is the only blue in the stylesheet. It has to do every job at
     once: a full-bleed section, a card, and a small chip behind gold letters
     on a white card.

     Darkness is not what made the old #0F1629 read black at chip size --
     chroma is. #0F1629 put only 26 points between its blue and red channels;
     this puts 58, so it stays visibly blue while sitting 6 points of
     lightness below the #1B2A5C that read as royal rather than navy (owner,
     2026-09-19). HSL 17% lightness, 67% saturation. Contrast: 9.7:1 with
     --gold-bright, 11.5:1 with --on-navy-2, 14.6:1 with --on-navy, and
     7.1:1 under --navy text on a gold-filled button.

     Depth now comes from gold hairlines and white rules, never from a second
     blue. If a surface needs to separate from another, give it a border. */
  --navy:        #0E2148;
  --navy-rgb:    14, 33, 72;   /* the same navy, for translucent uses */
  --gold:        #D7A72B;
  --gold-bright: #F0C453;
  --gold-ink:    #A88838;
  --white:       #FFFFFF;
  --ivory:       #F8F7F2;
  --warm:        #FAF9F4;

  /* Ink */
  --ink:         #12182B;
  --ink-2:       #33384D;   /* darkened: body text on warm needed more weight */
  --ink-3:       #5C6178;
  --on-navy:     #F5F6FA;
  --on-navy-2:   #D7DCEC;
  --on-navy-3:   #A9B2D0;
  --rule:        rgba(var(--navy-rgb), .14);
  --rule-navy:   rgba(215,220,236,.20);

  /* Type scale, ratio 1.34 from a 1.25rem (20px) base */
  --t-xs:  0.95rem;   /* 15.2 */
  --t-sm:  1.10rem;   /* 17.6 */
  --t-b:   1.25rem;   /* 20   */
  --t-md:  1.45rem;   /* 23.2 */
  --t-lg:  1.675rem;  /* 26.8  = 1.25 x 1.34 */
  --t-xl:  2.245rem;  /* 35.9  = x 1.34 */
  --t-2xl: 3.008rem;  /* 48.1  = x 1.34 */
  --t-3xl: 4.031rem;  /* 64.5  = x 1.34 */

  /* Spacing, same 1.34 progression */
  --s1: 6px;  --s2: 10px; --s3: 14px; --s4: 19px;
  --s5: 26px; --s6: 35px; --s7: 60px; --s8: 96px;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', ui-monospace, 'Courier New', monospace;

  --wrap: 1180px;
  --measure: 62ch;          /* centred text needs a held line length */
  --ease: cubic-bezier(.2,.7,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-b);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;                 /* owner directive: centre everything */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 760px) { :root { --t-b: 1.15rem; --t-3xl: 2.6rem; --t-2xl: 2.15rem; --t-xl: 1.8rem; } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; margin: 0; }
h1, h2, h3, h4, .brand b { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1, 'onum' 0; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy); padding: var(--s3) var(--s4);
  font-weight: 700; font-size: var(--t-sm);
}
.skip:focus { left: var(--s4); top: var(--s3); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

/* ── The block behind a gold label. Every gold label in the page uses it.
   The navy fill is what makes gold legible on a white card. On a navy
   section the fill matches the section and disappears, so the gold hairline
   is what keeps it a box -- one treatment, one blue, both surfaces. ───── */
.kicker, .lob .role, .tag, .go, .chain-n, .pillar .n, .foot-nav h3,
.caps li::before, .std li::before {
  background: var(--navy);
  color: var(--gold-bright);
  border: 1px solid rgba(240,196,83,.38);
  border-radius: 3px;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--navy-rgb), .96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-navy);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--on-navy); }
.brand svg { display: block; flex: none; width: 34px; height: 34px; }
.brand b { font-family: var(--serif); font-size: var(--t-xl); font-weight: 700; letter-spacing: .005em; }
.brand b i { font-style: normal; color: var(--gold-bright); }
.navlinks { display: flex; align-items: center; gap: var(--s5); }
.navlinks a {
  color: var(--on-navy); text-decoration: none; font-size: var(--t-sm);
  font-weight: 500; letter-spacing: .01em; transition: color .2s var(--ease);
}
.navlinks a:hover { color: var(--gold-bright); }
.navlinks .cta {
  border: 2px solid var(--gold); color: var(--gold-bright);
  padding: 11px var(--s5); border-radius: 3px; font-weight: 600;
}
.navlinks .cta:hover { background: var(--gold); color: var(--navy); }
@media (max-width: 860px) { .navlinks .hide-sm { display: none; } .nav .wrap { min-height: 72px; } }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--rule-navy);
}
.hero-grid { display: block; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright);
  border: 1px solid rgba(168,136,56,.45); border-radius: 3px;
  padding: var(--s2) var(--s4); margin-bottom: var(--s6);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, var(--t-3xl)); color: var(--white);
  margin: 0 auto var(--s5); max-width: 22ch;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); display: block; margin-top: var(--s3); }
.hero .lede {
  font-size: var(--t-md); color: var(--on-navy-2); line-height: 1.62;
  max-width: var(--measure); margin: 0 auto;
}
.hero .lede + .lede { margin-top: var(--s4); }
.hero .lede strong { color: var(--white); font-weight: 600; }

.btns { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s6); border-radius: 3px; text-decoration: none;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: .02em;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border: 2px solid var(--rule-navy); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* Entity of record */
.creds {
  border: 1px solid var(--rule-navy);
  border-top: 3px solid var(--gold); border-radius: 3px;
  padding: var(--s6) var(--s5); margin: var(--s8) auto 0; max-width: 940px;
}
.creds h2 {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: var(--s6);
}
.creds dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s5); margin: 0; }
@media (max-width: 860px) { .creds dl { grid-template-columns: 1fr; } }
.creds dt { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: var(--s2); }
.creds dd { margin: 0; font-family: var(--mono); font-size: var(--t-md); color: var(--white); font-weight: 500; letter-spacing: .02em; }
.creds dd small { display: block; font-family: var(--sans); font-size: var(--t-xs); color: var(--on-navy-3); letter-spacing: 0; font-weight: 400; margin-top: var(--s2); line-height: 1.5; }

/* ── Sections ────────────────────────────────────────────────────────── */
.sec { padding: var(--s8) 0; }
.sec-warm { background: var(--warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-navy { background: var(--navy); color: var(--on-navy); }
.sec-navy h2, .sec-navy h3 { color: var(--white); }

.sec-head { max-width: 76ch; margin: 0 auto var(--s8); }
.sec-head .kicker {
  display: inline-block;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: var(--s2) var(--s4); margin-bottom: var(--s5);
}
.sec-head h2 { font-size: clamp(2rem, 4.2vw, var(--t-2xl)); margin-bottom: var(--s5); }
.sec-head p { font-size: var(--t-md); color: var(--ink-2); line-height: 1.62; max-width: var(--measure); margin: 0 auto; }
.sec-navy .sec-head p { color: var(--on-navy-2); }
.sec-head.tight { margin-bottom: var(--s6); }
.sec-head.flush { margin-bottom: var(--s7); }
.sec-head p + p { margin-top: var(--s4); }
/* The company thesis. It states what ElasticD3M is building and which markets
   it is for, and every paragraph under it elaborates on that, so it is set a
   step above the surrounding lead copy and ruled off in gold. Not a pull quote:
   it is the first thing the section asserts. */
.sec-head .thesis {
  font-family: var(--serif); font-size: var(--t-lg); line-height: 1.42;
  color: var(--ink); max-width: 54ch;
  margin: 0 auto var(--s5); padding-top: var(--s5);
  border-top: 2px solid var(--gold);
}
.sec-navy .sec-head .thesis { color: var(--on-navy); }
@media (max-width: 760px) { .sec-head .thesis { font-size: var(--t-md); max-width: 100%; } }
.sec-head.after { margin: var(--s8) auto 0; }

/* Problem cards */
.friction { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); margin: 0; padding: 0; }
@media (max-width: 900px) { .friction { grid-template-columns: 1fr; } }
/* Four-up variant. .friction is shared with the three problem cards, so the
   column count is a modifier rather than a change to the base rule. Four
   across on a wide screen is the point: the thesis above names four
   capabilities and the reader should map them in one glance. Two-up before
   the columns get too narrow to read, then one. */
.friction.four { grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
@media (max-width: 1100px) { .friction.four { grid-template-columns: repeat(2, 1fr); gap: var(--s6); } }
@media (max-width: 640px)  { .friction.four { grid-template-columns: 1fr; } }
.friction li { list-style: none; border-top: 3px solid var(--gold); padding-top: var(--s5); }
.friction h3 { font-size: var(--t-lg); margin-bottom: var(--s3); }
.friction p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.66; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border: 1px solid var(--rule-navy); border-radius: 3px; padding: var(--s6) var(--s5); }
.pillar .n {
  display: inline-block; font-family: var(--mono); font-size: var(--t-xs);
  color: var(--gold-bright);
  letter-spacing: .14em; padding: var(--s1) var(--s3); border-radius: 3px;
}
.pillar h3 { font-size: var(--t-lg); margin: var(--s4) 0 var(--s3); }
.pillar p { font-size: var(--t-sm); color: var(--on-navy-2); line-height: 1.68; }

/* ── The measurement chain: markdown -> MCP -> hash log ──────────────── */
.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--s4); align-items: stretch; margin-bottom: var(--s8); }
@media (max-width: 980px) { .chain { grid-template-columns: 1fr; } }
.chain-step {
  background: var(--navy); color: var(--on-navy-2); border-radius: 4px;
  border-top: 3px solid var(--gold); padding: var(--s6) var(--s5);
  display: flex; flex-direction: column; align-items: center;
}
.chain-n {
  display: inline-block; font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: .16em; padding: var(--s1) var(--s3);
  margin-bottom: var(--s4);
}
.chain-step h3 { font-size: var(--t-xl); color: var(--white); margin-bottom: var(--s4); }
.chain-step p { font-size: var(--t-sm); line-height: 1.66; }
.chain-step code { font-family: var(--mono); font-size: .92em; color: var(--gold-bright); }
/* The connector was the last gold glyph sitting on a light background.
   It gets the same navy block every other gold element has. */
.chain-arrow { display: flex; align-items: center; justify-content: center; }
.chain-arrow::before {
  content: '\2192'; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright);
  border: 1px solid rgba(240,196,83,.38);
  font-size: var(--t-md); line-height: 1;
}
@media (max-width: 980px) { .chain-arrow::before { transform: rotate(90deg); } }
@media (max-width: 980px) { .chain-arrow { transform: rotate(90deg); padding: var(--s2) 0; } }

/* Capability list */
.caps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s7) var(--s6); counter-reset: cap; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } }
.caps li { counter-increment: cap; }
.caps li::before {
  content: counter(cap, decimal-leading-zero); display: inline-block;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em;
  padding: var(--s1) var(--s3); margin-bottom: var(--s4);
}
.caps h3 { font-size: var(--t-lg); margin-bottom: var(--s3); }
.caps p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.68; max-width: 54ch; margin: 0 auto; }

/* ── Lines of business ───────────────────────────────────────────────── */
.lobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
@media (max-width: 900px) { .lobs { grid-template-columns: 1fr; } }

.lob {
  display: flex; flex-direction: column; align-items: center;
  background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: var(--s6) var(--s5); position: relative; overflow: hidden;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.lob::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold); }
.lob:hover { border-color: rgba(168,136,56,.5); box-shadow: 0 14px 38px rgba(var(--navy-rgb), .12); transform: translateY(-2px); }
.lob.is-dev::before { background: var(--navy); }
.lob.is-dev:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.lob-flag { grid-column: 1 / -1; }
.lob-flag::before { height: 5px; }

.lob-top { display: flex; flex-direction: column; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.lob h3 { font-size: var(--t-xl); }
.lob h3 a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); transition: color .2s var(--ease); }
.lob h3 a:hover { color: var(--gold-ink); }

.tag {
  display: inline-block; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  padding: var(--s1) var(--s3);
}
.tag-live { background: var(--gold); color: var(--navy); }
.tag-eng, .tag-dev { color: var(--on-navy-2); }

.lob .role {
  display: inline-block; font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: .1em; text-transform: uppercase;
  padding: var(--s2) var(--s4); margin-bottom: var(--s5); line-height: 1.5;
}
.lob p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.68; max-width: 62ch; }
.lob .who { margin-top: var(--s4); font-size: var(--t-xs); color: var(--ink-3); line-height: 1.6; }
.lob .who b { color: var(--ink-2); font-weight: 600; }
.lob .go {
  margin-top: auto; padding: var(--s3) var(--s5); font-family: var(--mono);
  font-size: var(--t-xs); letter-spacing: .08em; text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--s2);
}
.lob .go:hover { background: var(--gold); color: var(--navy); }
.lob .nogo { margin-top: auto; padding-top: var(--s5); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; color: var(--ink-3); }
.lob > *:not(.go):not(.nogo) { width: 100%; }

.note {
  margin: var(--s8) auto 0; max-width: 76ch;
  padding: var(--s5) var(--s6);
  background: var(--navy); color: var(--on-navy-2); border-radius: 4px;
  border-top: 3px solid var(--gold);
  font-size: var(--t-sm); line-height: 1.68;
}
.note b { color: var(--gold-bright); }

/* ── Standards ───────────────────────────────────────────────────────── */
.std { display: block; }
.std ol { margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s7) var(--s6); counter-reset: std; }
@media (max-width: 900px) { .std ol { grid-template-columns: 1fr; } }
.std li { counter-increment: std; }
.std li::before {
  content: counter(std, decimal-leading-zero); display: inline-block;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em;
  padding: var(--s1) var(--s3); margin-bottom: var(--s4);
}
.std li h3 { font-size: var(--t-lg); margin-bottom: var(--s3); }
.std li p { font-size: var(--t-sm); color: var(--on-navy-2); line-height: 1.68; max-width: 54ch; margin: 0 auto; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact { display: block; }
.ccards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .ccards { grid-template-columns: 1fr; } }
.ccard {
  display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-decoration: none;
  background: var(--navy); border-radius: 4px; border-top: 3px solid var(--gold);
  padding: var(--s6) var(--s5); transition: transform .2s var(--ease);
}
.ccard:hover { transform: translateY(-2px); }
.ccard svg { flex: none; color: var(--gold-bright); width: 28px; height: 28px; }
.ccard .lab { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-3); }
.ccard .val { font-family: var(--mono); font-size: var(--t-lg); color: var(--white); font-weight: 500; letter-spacing: .01em; }
.addr { font-style: normal; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.8; margin-top: var(--s7); }
.addr b { display: block; font-family: var(--serif); font-size: var(--t-xl); font-weight: 600; color: var(--ink); margin-bottom: var(--s3); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { background: var(--navy); color: var(--on-navy-2); padding: var(--s8) 0 var(--s7); border-top: 1px solid var(--rule-navy); }
.foot-grid { display: block; margin-bottom: var(--s7); }
.foot .brand { justify-content: center; margin-bottom: var(--s4); }
.foot-blurb { font-size: var(--t-sm); line-height: 1.7; max-width: 56ch; margin: 0 auto var(--s8); }
.foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
@media (max-width: 760px) { .foot-nav { grid-template-columns: 1fr; } }
.foot-nav h3 {
  display: inline-block; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright);
  padding: var(--s1) var(--s3);
  margin-bottom: var(--s4);
}
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.foot-nav a { color: var(--on-navy-2); text-decoration: none; font-size: var(--t-sm); }
.foot-nav a:hover { color: var(--gold-bright); }
.foot-nav li span { font-size: var(--t-sm); color: var(--on-navy-3); }
.legal { border-top: 1px solid var(--rule-navy); padding-top: var(--s5); font-size: var(--t-xs); line-height: 1.9; color: var(--on-navy-3); }
.legal a { color: var(--on-navy-2); }
.legal .idents { font-family: var(--mono); letter-spacing: .02em; color: var(--gold-bright); }

@media print { .nav, .btns { display: none; } body { color: #000; background: #fff; } }

/* Grid children default to min-width:auto, so the mono phone number in a
   contact card could not shrink and pushed 11px of horizontal scroll at 360px.
   Let them shrink, and step the value down on small screens. */
.ccards > *, .lobs > *, .caps > *, .std ol > *, .friction > *, .pillars > *, .chain > * { min-width: 0; }
.ccard .val, .creds dd { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .ccard .val { font-size: var(--t-md); }
  .creds dd { font-size: var(--t-sm); }
  .wrap { padding: 0 var(--s4); }
}

/* The role label is a pill, not a banner: .lob > * sets width:100% for the
   centred text columns, which stretched it across the full flagship card. */
.lob .role, .lob .tag { width: auto; max-width: 100%; }

/* ── Remediation section: sub-heading, case citation ─────────────────── */
/* A second heading inside a section. Ink, not gold: the gold-on-navy rule
   means a gold heading here would need a navy block behind it, and a block
   that wide reads as a new section rather than a heading within one. */
.sub {
  margin: var(--s8) auto var(--s5);
  font-size: var(--t-xl); line-height: 1.22; letter-spacing: -0.015em;
  color: var(--ink); max-width: 30ch;
}
/* The settlement is the proof in this section, so it gets a card of its own
   rather than sitting in the prose. Same navy + gold rule as .note, wider
   measure, because it is read rather than skimmed. */
.case {
  margin: 0 auto; max-width: 82ch;
  padding: var(--s6);
  background: var(--navy); color: var(--on-navy-2);
  border-radius: 4px; border-top: 3px solid var(--gold);
  text-align: center;
}
.case p { font-size: var(--t-sm); line-height: 1.7; margin: 0 auto var(--s4); max-width: 68ch; }
.case p:last-child { margin-bottom: 0; }
.case b { color: var(--gold-bright); }
.case-src { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .02em; }
.case-src a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.case-src a:hover { color: #fff; }
#remediation .measure { margin: var(--s5) auto 0; }
#remediation .case + .measure { margin-top: var(--s6); }
@media (max-width: 760px) { .case { padding: var(--s5) var(--s4); } }

/* ── Portfolio structure: the stack, and the six families ───────────── */
/* The stack is the one-glance answer to "what is this company": a shared
   supervisory layer over six markets. Navy fill for the layer, gold rules for
   the markets it governs -- no third colour, and no second blue. */
.stack { margin: var(--s8) auto 0; max-width: 1000px; }
.stack-top {
  background: var(--navy); color: var(--on-navy-2);
  border-top: 3px solid var(--gold); border-radius: 4px;
  padding: var(--s5) var(--s6); font-size: var(--t-sm); line-height: 1.6;
  max-width: 68ch; margin: 0 auto;
}
.stack-top b { color: var(--gold-bright); }
.stack-arrow { display: grid; place-items: center; margin: var(--s4) 0; }
.stack-arrow::before {
  content: '\2193'; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright);
  border: 1px solid rgba(240,196,83,.38);
  font-size: var(--t-md); line-height: 1;
}
.stack-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3);
}
.stack-row li {
  border-top: 3px solid var(--gold); padding-top: var(--s3);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .02em;
  color: var(--ink-2); line-height: 1.45;
}
@media (max-width: 980px) { .stack-row { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
@media (max-width: 560px) { .stack-row { grid-template-columns: repeat(2, 1fr); } }

/* Six families. Two columns so an investor can take the whole portfolio in
   without scrolling it like a list of nineteen. */
.fams {
  list-style: none; margin: var(--s8) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s7) var(--s6);
  counter-reset: fam;
}
@media (max-width: 900px) { .fams { grid-template-columns: 1fr; } }
.fams > li { counter-increment: fam; border-top: 3px solid var(--gold); padding-top: var(--s5); }
.fams > li > h3 { font-size: var(--t-lg); line-height: 1.25; margin-bottom: var(--s4); }
.fams > li > h3::before {
  content: counter(fam, decimal-leading-zero);
  display: inline-block; margin-right: var(--s3);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em;
  background: var(--navy); color: var(--gold-bright);
  border: 1px solid rgba(240,196,83,.38); border-radius: 3px;
  padding: var(--s1) var(--s3); vertical-align: middle;
}
.fams ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.fams ul li { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; }
.fams ul li b { display: block; color: var(--ink); font-size: var(--t-b); }
.fams ul li span {
  display: block; font-family: var(--mono); font-size: var(--t-xs);
  color: var(--ink-3); letter-spacing: .04em; margin: var(--s1) 0 var(--s2);
}
.fam-chain { margin-top: var(--s5); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; }
.fam-chain b { color: var(--ink); }
