/* ─── tokens ─────────────────────────────────────────────────────────
       Bound to the SEC brand: wordmark blue + leaf green live in the logo.
       All other colors derive from these six variables. */
    :root {
      --bg:      oklch(0.984 0.005 240);
      --surface: #ffffff;
      --fg:      oklch(0.27 0.045 255);
      --muted:   oklch(0.50 0.030 250);
      --border:  oklch(0.905 0.014 240);
      --accent:  #0071C1;

      /* derived do not change */
      --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
      --fg-soft:     color-mix(in oklch, var(--fg) 6%, transparent);

      /* type display = serif, body = sans, mono for numerics */
      --font-display: 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
      --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

      /* scale */
      --fs-h1: clamp(30px, 3vw, 38px);
      --fs-h2: clamp(26px, 3vw, 36px);
      --fs-h3: 19px;
      --fs-lead: 16px;
      --fs-body: 15px;
      --fs-meta: 12px;

      /* spacing 8-point grid */
      --gap-xs: 8px;
      --gap-sm: 12px;
      --gap-md: 16px;
      --gap-lg: 24px;
      --gap-xl: 36px;
      --gap-2xl: 64px;
      --container: 1120px;
      --gutter: clamp(20px, 3vw, 32px);

      --radius: 10px;
      --radius-lg: 16px;
    }

    /* ─── reset & base ──────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-body);
      font-size: var(--fs-body);
      line-height: 1.55;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }
    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; }
    p { text-wrap: pretty; }
    h1, h2, h3, h4 { text-wrap: balance; }
    a:focus-visible, .btn:focus-visible, .input:focus-visible, .textarea:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    section[id] { scroll-margin-top: 84px; }

    /* ─── layout primitives ─────────────────────────────────────────── */
    .container {
      max-width: var(--container);
      margin-inline: auto;
      padding-inline: var(--gutter);
    }
    .section {
      padding-block: clamp(36px, 5vw, var(--gap-2xl));
    }
    .section + .section { border-top: 1px solid var(--border); }
    .stack { display: flex; flex-direction: column; }
    .stack > * + * { margin-top: var(--gap-md); }
    .row { display: flex; align-items: center; gap: var(--gap-md); }
    .row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
    .grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
    .grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
    @media (max-width: 920px) {
      .grid-2, .grid-3, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    }

    /* ─── type ──────────────────────────────────────────────────────── */
    .h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
    .h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
    .h3, h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
    .lead   { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
    .eyebrow {
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      margin: 0 0 var(--gap-md);
    }
    .meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
    .num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

    /* ─── chrome: nav + footer ──────────────────────────────────────── */
    .topnav {
      position: sticky; top: 0; z-index: 10;
      background: color-mix(in oklch, var(--bg) 92%, transparent);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; gap: var(--gap-md); }
    .topnav .logo { display: inline-flex; align-items: center; }
    .topnav .logo img { height: 32px; width: auto; mix-blend-mode: multiply; }
    .topnav nav { display: flex; gap: var(--gap-lg); }
    .topnav nav a { font-size: 14px; color: var(--muted); }
    .topnav nav a:hover { color: var(--fg); }
    .pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
    .pagefoot .row-between { flex-wrap: wrap; gap: var(--gap-md); }
    .pagefoot .logo img { height: 30px; width: auto; mix-blend-mode: multiply; }
    @media (max-width: 920px) {
      .topnav nav { display: none; }
    }

    /* ─── buttons ───────────────────────────────────────────────────── */
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 9px 16px;
      min-height: 44px;
      border-radius: var(--radius);
      border: 1px solid transparent;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: -0.005em;
      transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
    }
    .btn:active { transform: translateY(1px); }
    .btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
    .btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, black); border-color: color-mix(in oklch, var(--accent) 88%, black); }
    .btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
    .btn-secondary:hover { border-color: var(--fg); }
    .btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
    .btn-ghost:hover { color: var(--accent); }
    .btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
    .btn-arrow:hover::after { transform: translateX(2px); }

    /* ─── card / surface ────────────────────────────────────────────── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 22px;
    }
    .card-flat { background: transparent; border: 0; padding: 0; }

    /* ─── feature cell (icon + h3 + p) ──────────────────────────────── */
    .feature .feature-mark {
      width: 36px; height: 36px;
      display: grid; place-items: center;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--accent);
      margin-bottom: var(--gap-md);
    }
    .feature .feature-mark svg { width: 18px; height: 18px; }
    .feature h3 { margin-bottom: 6px; }
    .feature p  { margin: 0; color: var(--muted); font-size: 14px; }

    /* ─── service cards (image banner + icon + copy) ────────────────── */
    .svc-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .svc-card:hover {
      border-color: color-mix(in oklch, var(--border) 55%, var(--fg));
      transform: translateY(-2px);
      box-shadow: 0 10px 28px color-mix(in oklch, var(--fg) 10%, transparent);
    }
    .svc-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
    .svc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
    .svc-body .feature-mark {
      width: 36px; height: 36px;
      display: grid; place-items: center;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--accent);
      margin-bottom: var(--gap-md);
    }
    .svc-body .feature-mark svg { width: 18px; height: 18px; }
    .svc-body h3 { font-size: 17px; margin-bottom: 8px; }
    .svc-body p  { margin: 0; color: var(--muted); font-size: 14px; }

    /* ─── stat (big number + label) ─────────────────────────────────── */
    .stat .stat-num {
      font-family: var(--font-display);
      font-size: clamp(44px, 5vw, 64px);
      line-height: 0.95;
      letter-spacing: -0.04em;
      color: var(--accent);
      font-weight: 600;
    }
    .stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 24ch; }
    .stat .stat-unit  { font-size: 0.5em; opacity: 0.7; margin-left: 2px; }
    /* stats section: center content when the grid stacks to one column */
    @media (max-width: 920px) {
      #by-numbers .eyebrow, #by-numbers .stat { text-align: center; }
      #by-numbers .stat-label { margin-inline: auto; }
    }

    /* ─── pill / badge / tag ────────────────────────────────────────── */
    .pill {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 10px;
      background: var(--accent-soft);
      color: var(--accent);
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .tag {
      display: inline-flex; align-items: center;
      padding: 4px 10px;
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 12px;
    }

    /* ─── table (data-style, no chrome) ─────────────────────────────── */
    .ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .ds-table th, .ds-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
    .ds-table th { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
    .ds-table tbody tr:hover { background: var(--fg-soft); }
    .ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
    .ds-table .scope { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; max-width: 46ch; }
    @media (max-width: 920px) {
      .ds-table .hide-mobile { display: none; }
    }

    /* ─── images ────────────────────────────────────────────────────── */
    .content-img {
      display: block;
      max-width: 100%;
      max-height: min(70vh, 720px);
      width: auto;
      height: auto;
      object-fit: contain;
      justify-self: center;
      border-radius: var(--radius-lg);
    }
    .hero-media img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
    .hero-media figcaption { margin-top: 10px; }

    /* leadership portraits full frame, bounded on height */
    .person { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
    .person .person-media {
      display: flex; justify-content: center;
      border-bottom: 1px solid var(--border);
      padding-bottom: var(--gap-md);
      margin-bottom: var(--gap-md);
    }
    .person .person-media img { max-height: 280px; width: auto; max-width: 100%; border-radius: var(--radius); }
    .person .role { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
    .person .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
    .person p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
    .person ul { margin: 0; padding: 0; list-style: none; color: var(--fg); font-size: 14px; }
    .person ul li { padding: 9px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
    .person ul li .li-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
    .person ul li span { color: var(--muted); }
    .person ul li strong { color: var(--fg); font-weight: 600; }

    /* flagship project masonry every photo keeps its intrinsic ratio */
    .proj-grid { columns: 2; column-gap: var(--gap-lg); }
    .proj-card {
      break-inside: avoid;
      margin: 0 0 var(--gap-lg);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 12px;
    }
    .proj-card img { width: 100%; height: auto; border-radius: calc(var(--radius-lg) - 6px); }
    .proj-card .proj-body { padding: 12px 6px 4px; }
    .proj-card h3 { font-size: 16px; }
    .proj-card .proj-body p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
    .proj-card .proj-cred { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
    @media (max-width: 920px) {
      .proj-grid { columns: 1; }
    }

    /* facts card */
    .facts { margin: 0; }
    .facts .fact { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); }
    .facts .fact:first-child { border-top: 0; padding-top: 0; }
    .facts dt { color: var(--muted); font-size: 13px; }
    .facts dd { margin: 0; text-align: right; font-size: 14px; font-weight: 500; max-width: 30ch; }

    /* hero */
    .hero          { padding-block: clamp(28px, 4vw, 48px); }
    .hero h1       { margin-bottom: var(--gap-md); }
    .hero .lead    { margin-bottom: var(--gap-lg); }
    .hero-cta      { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
    .hero-split    { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-2xl); align-items: center; }
    .hero-split h1 { font-size: var(--fs-h1); }
    .hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
    @media (min-width: 921px) {
      .hero {
        min-height: min(640px, calc(100svh - 70px));
        display: flex;
        align-items: center;
        padding-block: clamp(24px, 4vh, 48px);
      }
      .hero-split {
        width: 100%;
        max-width: 1280px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(32px, 3vw, 48px);
        align-items: start;
      }
      .hero-split h1 {
        font-size: clamp(30px, 2.6vw, 36px);
        line-height: 1.08;
        margin-bottom: 18px;
      }
      .hero .eyebrow { margin-bottom: 16px; }
      .hero .lead {
        max-width: none;
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 24px;
      }
      .hero-tags { margin-top: 18px; }
      .hero-media { padding-top: 34px; }
    }
    @media (min-width: 921px) and (max-height: 700px) {
      .hero { padding-block: 20px; }
      .hero-split h1 { font-size: clamp(28px, 2.5vw, 34px); }
      .hero .lead { font-size: 15px; margin-bottom: 18px; }
      .hero-tags { margin-top: 14px; }
    }
    @media (max-width: 920px) {
      .hero-split { grid-template-columns: 1fr; gap: 32px; }
    }

    /* ─── divider ───────────────────────────────────────────────────── */
    .rule  { border: 0; border-top: 1px solid var(--border); margin: 0; }
    .rule-strong { border: 0; border-top: 1px solid var(--fg); margin: 0; }
