/* ============================================================
   MDMLA — Master Data Management Leaders Association
   Brand visual system — Archivo + IBM Plex Mono
   Navy ink / paper / brand-blue accents. Flat surfaces.
   Fonts are loaded via <link> in each page <head>.
   ============================================================ */

:root {
  /* ---- Canonical brand design tokens ---- */
  --navy:        #051637;
  --navy-2:      #0A2049;
  --paper:       #F5F7FA;
  --surface:     #FFFFFF;
  --brand-blue:  #38B6FF;
  --signal:      #147BCE;
  --slate:       #5B6B82;
  --hairline:    #D8E0EB;
  --on-navy:     #AEC2DE;
  --text-body:   #2E3A4B;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --radius-btn:  4px;
  --radius-card: 8px;

  /* ---- Semantic aliases (map onto the canonical tokens above) ---- */
  --paper-2:      var(--surface);   /* full-bleed light band (trust bar) */
  --ink:          var(--text-body); /* body text */
  --ink-2:        var(--navy);      /* navy ink — headings, primary buttons */
  --muted:        var(--slate);     /* muted / meta text */
  --faint:        var(--slate);     /* small labels */
  --hair:         var(--hairline);  /* rules and dividers */
  --hair-strong:  var(--hairline);  /* rules and dividers */
  --accent:       var(--brand-blue);/* brand blue — accents ONLY */
  --accent-deep:  var(--signal);    /* signal blue — links, eyebrow labels */
  --accent-soft:  rgba(56, 182, 255, 0.14);

  /* Brand navy full-bleed lockups (header / footer / stakes band) */
  --logo-navy:    var(--navy);
  --cyan:         var(--brand-blue);
  --cyan-bright:  #5EC4FF;

  /* On navy bands: white headings, #AEC2DE body, #38B6FF accents */
  --d-bg:         var(--navy);
  --d-bg-2:       var(--navy-2);
  --d-text:       #FFFFFF;
  --d-muted:      var(--on-navy);
  --d-hair:       rgba(174, 194, 222, 0.22);

  --serif: var(--font-display);
  --sans:  var(--font-display);
  --mono:  var(--font-mono);

  --container: 1180px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--ink-2); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gut);
}
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.rule--strong { background: var(--hair-strong); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; color: var(--ink-2); margin: 0; line-height: 1.06; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.5rem, 5vw, 3.5rem);   /* 40 → 56px */
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 { font-size: clamp(1.6rem, 3.2vw, 1.875rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.h3 { font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 42ch;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.serif-quote { font-family: var(--sans); font-style: italic; }

/* Emphasis words in headings — signal blue + brand-blue underline,
   echoing the logo's white + blue split */
.hero h1 em,
.display em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.accent-text { color: var(--accent-deep); font-style: normal; }

/* eyebrow / mono label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
}
.eyebrow--plain::before { display: none; }
.eyebrow--muted { color: var(--muted); }

.idx {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.82em 1.5em;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--ink-2); color: #FFFFFF; }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: rgba(5, 22, 55, 0.30); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--light { background: var(--accent-soft); color: var(--accent-deep); }
.btn--ondark { background: #FFFFFF; color: var(--ink-2); }
.btn--ondark:hover { background: var(--cyan); color: var(--ink-2); }
.btn--ondark-ghost { background: transparent; color: var(--d-text); border-color: rgba(255, 255, 255, 0.30); }
.btn--ondark-ghost:hover { border-color: var(--d-text); }

/* link with arrow */
.tlink {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hair-strong);
  transition: border-color .2s, color .2s;
}
.tlink .arr { transition: transform .25s ease; }
.tlink:hover { border-color: var(--accent); color: var(--accent-deep); }
.tlink:hover .arr { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--logo-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.brand__logo { display: block; height: 72px; width: auto; }
@media (max-width: 520px) { .brand__logo { height: 60px; } }
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; color: var(--d-text); flex: none; }
.brand__mark .nd { fill: var(--accent); }
/* Data-mind mark */
.dm-sil { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.dm-edges line { stroke: currentColor; stroke-width: 0.7; opacity: 0.4; }
.dm-nodes circle { fill: currentColor; }
.dm-eye { fill: var(--accent); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--sans); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--d-text); }
.brand__sub { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-muted); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__link {
  font-family: var(--mono);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--d-muted);
  position: relative; padding-block: 4px; transition: color .18s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--d-text); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--cyan);
}
/* header CTA on navy — white fill, brand-blue on hover/active */
.site-header .btn--primary, .mobile-menu .btn--primary { background: #FFFFFF; color: var(--ink-2); }
.site-header .btn--primary:hover, .mobile-menu .btn--primary:hover { background: var(--cyan); color: var(--ink-2); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__toggle { display: none; }

.nav__toggle {
  width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent;
  border-radius: 4px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav__toggle span { width: 16px; height: 1.5px; background: var(--d-text); display: block; }
.mobile-menu { display: none; border-top: 1px solid rgba(255, 255, 255, 0.10); background: var(--logo-navy); padding: 8px var(--gut) 22px; }
.mobile-menu a { display: block; padding: 13px 0; font-size: 1.05rem; color: var(--d-text); border-bottom: 1px solid rgba(255, 255, 255, 0.10); font-family: var(--sans); font-weight: 600; }
.mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .brand__sub { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--logo-navy); color: var(--d-text); padding-block: clamp(56px, 7vw, 88px); }
.site-footer .brand__logo { height: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .brand__name { color: var(--d-text); }
.site-footer .brand__mark { color: var(--d-text); }
.footer-blurb { color: var(--d-muted); max-width: 34ch; margin-top: 20px; font-size: 0.95rem; }
.foot-col h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: var(--d-text); font-size: 0.94rem; opacity: 0.86; transition: opacity .18s, color .18s; }
.foot-col a:hover { opacity: 1; color: var(--cyan); }
.footer-base { border-top: 1px solid var(--d-hair); margin-top: 52px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-base p { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--d-muted); margin: 0; }
.foot-contact { display: flex; flex-direction: column; gap: 3px; }
.foot-lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted); opacity: 0.72; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--hair); background: var(--paper-2); }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: 22px; }
.trust-item { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 0.7em; }
.trust-item .dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; flex: none; }

/* ---------- Generic helpers ---------- */
.stack-sm > * + * { margin-top: 14px; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent-deep); }
.center { text-align: center; }
.maxc { max-width: 740px; margin-inline: auto; }

/* card */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 36px); }
.card--bare { background: transparent; border: 0; padding: 0; }

/* Pillar list */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.pillar { padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--hair); position: relative; }
.pillar:nth-child(odd) { border-right: 1px solid var(--hair); }
.pillar__num { font-family: var(--mono); font-size: 13px; color: var(--accent-deep); letter-spacing: 0.06em; }
.pillar h3 { margin-top: 18px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(odd) { border-right: 0; }
}

/* Definition rows (vision/mission) */
.defrow { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); padding-block: clamp(34px, 4vw, 54px); border-top: 1px solid var(--hair); }
.defrow:last-child { border-bottom: 1px solid var(--hair); }
.defrow__label { display: flex; flex-direction: column; gap: 10px; }
.defrow__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.defrow__title { font-family: var(--sans); font-size: 1.4rem; color: var(--ink-2); font-weight: 700; letter-spacing: -0.015em; }
.defrow__body { font-size: 1.12rem; line-height: 1.62; color: var(--muted); max-width: 56ch; }
.defrow__body strong { color: var(--ink-2); font-weight: 600; }
@media (max-width: 720px) { .defrow { grid-template-columns: 1fr; gap: 14px; } }

/* Dark / navy full-bleed band */
.dark { background: var(--d-bg); color: var(--d-text); }
.dark h1, .dark h2, .dark h3 { color: var(--d-text); }
.dark .eyebrow { color: var(--accent); }
.dark .eyebrow::before { background: var(--accent); }
.dark .lede, .dark p { color: var(--d-muted); }
.dark .accent-text { color: var(--accent); }

/* Page hero (interior pages) */
.page-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); }
.breadcrumb { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px; display: flex; gap: 0.6em; }
.breadcrumb a:hover { color: var(--accent-deep); }

/* number stat */
.stat__n { font-family: var(--sans); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ink-2); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stat__l { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
}
