/* elasticd3m.com — ElasticD3M, LLC corporate site.
   Palette: navy / gold / white (shared brand values, duplicated not imported;
   CLAUDE.md forbids a shared component library across LPs).
   Type + space scales are golden-ratio derived (phi = 1.618) and Fibonacci. */

:root {
  /* Brand */
  --navy:        #0F1629;
  --navy-2:      #141D36;
  --navy-3:      #1A2238;
  --gold:        #A88838;
  --gold-bright: #C7A24E;
  --gold-soft:   rgba(168,136,56,.14);
  --white:       #FFFFFF;
  --ivory:       #F8F7F2;
  --warm:        #FAF9F4;

  /* Ink */
  --ink:         #16162A;
  --ink-2:       #3A3A55;
  --ink-3:       #6B6B85;
  --on-navy:     #F5F6FA;
  --on-navy-2:   #CAD1E6;
  --on-navy-3:   #A9B2D0;
  --rule:        rgba(15,22,41,.10);
  --rule-navy:   rgba(202,209,230,.16);

  /* Type scale, phi-derived: 16 -> 25.9 -> 41.9 -> 67.8 */
  --t-xs:  0.80rem;
  --t-sm:  0.875rem;
  --t-b:   1rem;
  --t-md:  1.175rem;
  --t-lg:  1.382rem;
  --t-xl:  1.618rem;
  --t-2xl: 2.118rem;
  --t-3xl: 2.618rem;
  --t-4xl: 4.236rem;

  /* Fibonacci spacing */
  --s1: 5px;  --s2: 8px;  --s3: 13px; --s4: 21px;
  --s5: 34px; --s6: 55px; --s7: 89px; --s8: 144px;

  --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;
  --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.618;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.16; letter-spacing: -.012em; margin: 0; }

/* Cormorant Garamond ships old-style figures by default, which drops the 3 in
   "ElasticD3M" below the baseline and reads as a subscript. Force lining
   figures anywhere a numeral sits inside serif display type. */
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(--s4); }

.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: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,22,41,.94);
  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: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--on-navy); }
.brand svg { display: block; flex: none; }
.brand b { font-family: var(--serif); font-size: var(--t-lg); 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-2); 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: 1px solid rgba(168,136,56,.55); color: var(--gold-bright);
  padding: 9px var(--s4); border-radius: 2px;
}
.navlinks .cta:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (max-width: 760px) { .navlinks .hide-sm { display: none; } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(168,136,56,.16), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy);
  padding: var(--s8) 0 var(--s7);
  border-bottom: 1px solid var(--rule-navy);
}
.hero-grid { display: grid; grid-template-columns: 61.8fr 38.2fr; gap: var(--s7); align-items: start; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s6); } }

.eyebrow {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright);
  display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4);
}
.eyebrow::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(168,136,56,.5), transparent); }

.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.45rem); color: var(--white); margin-bottom: var(--s4); max-width: 19ch; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero .lede { font-size: var(--t-md); color: var(--on-navy-2); max-width: 60ch; line-height: 1.66; }
.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); }
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s5); border-radius: 2px; 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(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border: 1px solid var(--rule-navy); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* Credential card */
.creds {
  background: rgba(255,255,255,.035); border: 1px solid var(--rule-navy);
  border-radius: 3px; padding: var(--s5); position: relative;
}
.creds::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--gold); }
.creds h2 {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: var(--s4);
}
.creds dl { display: grid; gap: var(--s4); margin: 0; }
.creds dt { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: 3px; }
.creds dd { margin: 0; font-family: var(--mono); font-size: var(--t-b); 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: 3px; }

/* ── 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: 72ch; margin-bottom: var(--s7); }
.sec-head .kicker {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: var(--s3);
}
.sec-navy .sec-head .kicker { color: var(--gold-bright); }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, var(--t-3xl)); margin-bottom: var(--s4); }
.sec-head p { font-size: var(--t-md); color: var(--ink-2); line-height: 1.7; }
.sec-navy .sec-head p { color: var(--on-navy-2); }

/* Problem/agitate list */
.friction { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 880px) { .friction { grid-template-columns: 1fr; } }
.friction li { list-style: none; border-top: 2px solid var(--gold); padding-top: var(--s4); }
.friction ul, .friction { margin: 0; padding: 0; }
.friction h3 { font-size: var(--t-lg); margin-bottom: var(--s2); }
.friction p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.7; }

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

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

.lob {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule); border-radius: 3px;
  padding: 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: 3px; background: var(--gold); opacity: .85; }
.lob:hover { border-color: rgba(168,136,56,.5); box-shadow: 0 13px 34px rgba(15,22,41,.09); transform: translateY(-2px); }
.lob.is-dev::before { background: var(--ink-3); opacity: .35; }
.lob.is-dev:hover { transform: none; box-shadow: none; border-color: var(--rule); }

.lob-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); }
.lob h3 { font-size: var(--t-xl); }
.lob h3 a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s var(--ease), color .2s var(--ease); }
.lob h3 a:hover { color: var(--gold); background-size: 100% 2px; }

.tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  padding: 4px var(--s2); border-radius: 2px;
}
.tag-live { background: var(--gold-soft); color: #7A611F; border: 1px solid rgba(168,136,56,.4); }
.tag-eng  { background: rgba(15,22,41,.05); color: var(--ink-2); border: 1px solid var(--rule); }
.tag-dev  { background: transparent; color: var(--ink-3); border: 1px dashed rgba(107,107,133,.45); }

.lob .role { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.lob.is-dev .role { color: var(--ink-3); }
.lob p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.75; }
.lob .who { margin-top: var(--s3); font-size: var(--t-xs); color: var(--ink-3); }
.lob .who b { color: var(--ink-2); font-weight: 600; }
.lob .go {
  margin-top: auto; padding-top: var(--s4); font-family: var(--mono);
  font-size: var(--t-xs); letter-spacing: .06em; color: var(--gold);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
}
.lob .go:hover { color: var(--navy); }
.lob .go span { transition: transform .2s var(--ease); }
.lob .go:hover span { transform: translateX(3px); }
.lob .nogo { margin-top: auto; padding-top: var(--s4); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; color: var(--ink-3); }

.note {
  margin-top: var(--s6); padding: var(--s4) var(--s5);
  border-left: 2px solid var(--gold); background: var(--ivory);
  font-size: var(--t-sm); color: var(--ink-2); line-height: 1.72;
}

/* ── Standards ───────────────────────────────────────────────── */
.std { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s7); align-items: start; }
@media (max-width: 940px) { .std { grid-template-columns: 1fr; gap: var(--s5); } }
.std ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s4); counter-reset: std; }
.std li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s4); align-items: start; counter-increment: std; }
.std li::before {
  content: counter(std, decimal-leading-zero);
  font-family: var(--mono); font-size: var(--t-xs); color: var(--gold-bright);
  padding-top: 5px; letter-spacing: .08em;
}
.std li h3 { font-size: var(--t-lg); margin-bottom: 3px; }
.std li p { font-size: var(--t-sm); color: var(--on-navy-2); line-height: 1.72; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 61.8fr 38.2fr; gap: var(--s7); align-items: start; }
@media (max-width: 940px) { .contact { grid-template-columns: 1fr; gap: var(--s5); } }
.ccards { display: grid; gap: var(--s3); }
.ccard {
  display: flex; align-items: center; gap: var(--s4); text-decoration: none;
  background: var(--white); border: 1px solid var(--rule); border-radius: 3px;
  padding: var(--s4) var(--s5); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ccard:hover { border-color: rgba(168,136,56,.55); box-shadow: 0 8px 21px rgba(15,22,41,.07); }
.ccard svg { flex: none; color: var(--gold); }
.ccard .lab { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ccard .val { font-family: var(--mono); font-size: var(--t-md); color: var(--ink); font-weight: 500; letter-spacing: .01em; }
.addr { font-style: normal; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.8; }
.addr b { display: block; font-family: var(--serif); font-size: var(--t-lg); font-weight: 600; color: var(--ink); margin-bottom: var(--s2); }

/* ── Footer ──────────────────────────────────────────────────── */
.foot { background: var(--navy); color: var(--on-navy-3); padding: var(--s7) 0 var(--s6); border-top: 1px solid var(--rule-navy); }
.foot-grid { display: grid; grid-template-columns: 38.2fr 61.8fr; gap: var(--s6); align-items: start; margin-bottom: var(--s6); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr; gap: var(--s5); } }
.foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 620px) { .foot-nav { grid-template-columns: 1fr 1fr; } }
.foot-nav h3 { font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: var(--s3); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot-nav a { color: var(--on-navy-3); 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: rgba(169,178,208,.45); }
.legal { border-top: 1px solid var(--rule-navy); padding-top: var(--s4); font-size: var(--t-xs); line-height: 1.9; color: rgba(169,178,208,.72); }
.legal a { color: rgba(169,178,208,.85); }
.legal .idents { font-family: var(--mono); letter-spacing: .02em; }

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

/* Local utilities (kept out of style attributes so the CSP needs no inline styles) */
.sec-head.tight { margin-bottom: var(--s5); }
.sec-head.flush { margin-bottom: 0; }
.foot .brand { margin-bottom: var(--s3); }
.foot-blurb { font-size: var(--t-sm); line-height: 1.8; margin-top: var(--s3); }

/* Measurement architecture list (warm section) */
.caps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s6); counter-reset: cap; }
@media (max-width: 880px) { .caps { grid-template-columns: 1fr; } }
.caps li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s3); align-items: start; counter-increment: cap; border-top: 1px solid var(--rule); padding-top: var(--s4); }
.caps li::before { content: counter(cap, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-xs); color: var(--gold); padding-top: 6px; letter-spacing: .08em; grid-column: 1; grid-row: 1; }
/* h3 and p both live in the text column; only the counter sits in column 1 */
.caps li > * { grid-column: 2; }
.caps h3 { font-size: var(--t-lg); margin-bottom: 4px; }
.caps p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.72; }
/* Flagship card spans the row */
.lob-flag { grid-column: 1 / -1; }
.lob-flag::before { height: 4px; opacity: 1; }
