@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #131a26;
  --ink-soft: #515c70;
  --ink-faint: #8b93a3;
  --line: #e6e9ef;
  --line-2: #f0f2f6;
  --bg: #fbfcfd;
  --bg-card: #ffffff;
  --bg-soft: #f3f5f9;
  --navy: #0d2440;
  --navy-2: #173f6e;
  --navy-3: #1f4f88;
  --accent: #2f6fed;
  --accent-dark: #1f54bd;
  --gold: #e7a128;
  --gold-soft: #f6c46a;
  --max: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20,27,39,.04), 0 1px 3px rgba(20,27,39,.06);
  --shadow-md: 0 10px 30px rgba(20,27,39,.08);
  --shadow-lg: 0 24px 60px rgba(20,27,39,.13);
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* display = same Geist family, used bold + tight for headlines */
  --serif: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  /* Unified dark surface — every navy band shares one voice */
  --surface-dark: linear-gradient(155deg, #0a1d34 0%, #143a66 100%);
  --glow-dark:
    radial-gradient(circle at 82% 14%, rgba(246,196,106,.12), transparent 46%),
    radial-gradient(circle at 14% 90%, rgba(47,111,237,.22), transparent 54%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 100% -10%, #ffffff 0%, transparent 62%),
    radial-gradient(1000px 760px at -12% 4%, #eef2f8 0%, transparent 58%),
    var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

/* Film grain — subtle editorial texture over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.12; color: var(--ink); font-weight: 700; letter-spacing: -.03em; }
h1 { font-family: var(--serif); font-size: 2.9rem; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.042em; }
h2 { font-family: var(--serif); font-size: 2.05rem; margin: 1.6em 0 .5em; font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .35em; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1.15em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: .6; }

/* Section labels (editorial numbering) */
.sectionhead { max-width: 60ch; margin-bottom: 8px; }
.sectionhead .num {
  font-family: var(--sans); font-weight: 700; font-style: normal; color: var(--gold);
  font-size: .95rem; margin-right: 12px; letter-spacing: .02em;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,.8);
  backdrop-filter: saturate(180%) blur(14px);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M11 18.5 L16.2 9.2 L21.6 18.5 Z'/%3E%3Cpath fill='%23f6c46a' d='M2.6 18.5 L9.2 5.4 L15.8 18.5 Z'/%3E%3C/svg%3E") center 55%/22px no-repeat,
    linear-gradient(140deg, var(--navy-2), var(--accent));
  color: transparent; font-size: 0;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(31,84,189,.3);
}
.nav {
  display: flex; gap: 2px; flex-wrap: nowrap; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 5px; border-radius: 999px;
}
.nav a {
  color: var(--ink-soft); font-size: .9rem; font-weight: 500; white-space: nowrap;
  padding: 8px 15px; border-radius: 999px; transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav a:hover { color: var(--navy); background: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }

@media (max-width: 600px) {
  .nav { flex-wrap: wrap; border-radius: var(--radius); justify-content: center; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 680px; height: 680px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(47,111,237,.06), transparent 66%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 900px; }
.hero h1 {
  font-size: 3.5rem; line-height: 1.04; max-width: 19ch;
  margin: 0 0 .42em; font-weight: 700; letter-spacing: -.045em; color: var(--ink);
}
.hero .lede {
  font-size: 1.24rem; color: var(--ink-soft); max-width: 60ch;
  font-weight: 400; line-height: 1.55; margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Single-column editorial hero */
.hero-copy { max-width: 900px; }
.hero-copy .lede { margin-bottom: 32px; }

/* Hero proof — the companies (substance up front) */
.hero-proof { margin-top: 58px; }
.hero-proof-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 16px;
}
.hero-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 20px; color: var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.hp-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--gold-soft); text-decoration: none; color: var(--ink);
}
.hp-role {
  font-size: .66rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold);
}
.hp-name { font-size: 1.14rem; font-weight: 700; letter-spacing: -.02em; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 52px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stats .stat .num { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.hero-stats .stat .lbl { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff;
  padding: 14px 26px; border-radius: 12px; font-weight: 500; font-size: .98rem; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(20,27,39,.10);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn::after { content: "→"; font-weight: 500; transition: transform .18s var(--ease); }
.btn:hover { transform: translateY(-1px); text-decoration: none; color: #fff; background: #000; box-shadow: 0 6px 18px rgba(20,27,39,.16); }
.btn:hover::after { transform: translateX(3px); }
.btn.gold { background: var(--gold); color: #3a2600; }
.btn.gold:hover { background: #f0ab30; color: #3a2600; }
.btn.ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1px solid var(--line); font-weight: 500;
}
.btn.ghost:hover { background: var(--bg-soft); color: var(--navy); transform: translateY(-1px); box-shadow: none; }

/* Sections */
section.block { padding: 84px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.block > .wrap > h2 { margin-top: 0; }
section.block > .wrap > p { color: var(--ink-soft); max-width: 64ch; font-size: 1.08rem; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; margin-top: 38px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; background: var(--bg-card); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ddd6c8; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-top: 0; font-size: 1.2rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }

/* The connected pipeline (signature homepage component) */
.pipeline {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; align-items: stretch;
}
.pipe-step {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pipe-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.pipe-step:not(:last-child)::after {
  content: "→"; position: absolute; z-index: 2; top: 38px; right: -30px;
  width: 30px; text-align: center; transform: translateX(50%);
  color: var(--gold); font-weight: 700; font-size: 1.2rem;
}
.pipe-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pipe-num {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(140deg, var(--navy-2), var(--accent));
}
.pipe-phase { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); line-height: 1.2; }
.pipe-step h3 { margin: 0 0 8px; font-size: 1.22rem; }
.pipe-step h3 a { color: var(--ink); }
.pipe-step p { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }

/* Pull quote / philosophy band */
.quote-band {
  position: relative; overflow: hidden; color: #dde7f4;
  background: var(--glow-dark), var(--surface-dark);
}
.quote-band .wrap { position: relative; z-index: 1; padding: 92px 32px; max-width: 980px; }
.quote-band blockquote {
  margin: 0; font-family: var(--serif); font-weight: 600; font-style: normal;
  font-size: 2.15rem; line-height: 1.32; color: #fff; letter-spacing: -.03em;
}
.quote-band blockquote em { color: var(--gold-soft); font-style: normal; font-weight: 700; }
.quote-band .attr { margin-top: 22px; font-size: .95rem; color: #93a9c8; font-style: normal; letter-spacing: .02em; }

/* Feature row (image/text or highlighted callout) */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px; box-shadow: var(--shadow-sm); margin-top: 38px;
}
.feature h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.03em; }
.feature p { color: var(--ink-soft); margin-bottom: 1em; }
.feature .feature-tag { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--glow-dark), var(--surface-dark);
  color: #eaf1fb; border-radius: var(--radius-lg); padding: 60px; text-align: center;
  margin: 0 auto; max-width: var(--max); box-shadow: var(--shadow-md);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: #bcd0ec; max-width: 52ch; margin: 0 auto 1.4em; font-size: 1.08rem; }

/* Article body */
.article { max-width: 760px; margin: 0 auto; padding: 72px 32px 24px; }
.article h1 { font-size: 3rem; }
.article .meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.8em; font-weight: 500; }
.article p, .article li { font-size: 1.1rem; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .55em; }
.article h2 { padding-top: .2em; }
.article a { font-weight: 500; }

/* Headshot with monogram fallback */
.headshot {
  position: relative; width: 240px; height: 240px; margin: 6px 0 28px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(140deg, var(--navy-2), var(--accent));
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.headshot::after {
  content: "JD"; font-family: var(--serif); font-weight: 500;
  font-size: 4.8rem; color: rgba(255,255,255,.92); letter-spacing: .02em;
}
.headshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* TODO callout */
.todo {
  background: #fdf4e3; border: 1px solid #f0cd7a; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 12px 16px; color: #7a5800; font-size: .9rem; margin: 0 0 1.2em;
}
.todo strong { color: #5c4200; }
.todo code { background: #f8e6c4; padding: 1px 6px; border-radius: 5px; font-size: .85em; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding: 24px 0 0; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--glow-dark), var(--surface-dark);
  color: #aebfd6; padding: 72px 0 40px; margin-top: 0; font-size: .92rem;
}
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer .foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.site-footer .foot-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; font-weight: 700; margin: 0 0 10px; letter-spacing: -.03em; }
.site-footer a { color: #c5d4ea; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .copyright { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #7f95b5; font-size: .85rem; }

/* Scroll reveal — choreographed rise + soft focus-in.
   Gated behind html.js so the site is fully visible without JavaScript.
   Targets are hidden by CSS selector (applied before paint, no flash);
   site.js observes the same set and adds .in to play them. */
html.js :is(
  .reveal,
  .page-head .eyebrow, .page-head h1, .page-head .lede,
  .facts, .stack-rail, .pull, .related-head,
  .grid > .card, .cta-band, .contact-card,
  .prose > h2, .article > h2, .hero-stats .stat
) {
  opacity: 0; transform: translateY(30px); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  will-change: opacity, transform;
}
html.js :is(
  .reveal,
  .page-head .eyebrow, .page-head h1, .page-head .lede,
  .facts, .stack-rail, .pull, .related-head,
  .grid > .card, .cta-band, .contact-card,
  .prose > h2, .article > h2, .hero-stats .stat
).in { opacity: 1; transform: none; filter: none; }

/* Staggered cascade for grouped items */
html.js .grid > .card:nth-child(2), html.js .pipeline > .reveal:nth-child(2) { transition-delay: .07s; }
html.js .grid > .card:nth-child(3), html.js .pipeline > .reveal:nth-child(3) { transition-delay: .14s; }
html.js .grid > .card:nth-child(4), html.js .pipeline > .reveal:nth-child(4) { transition-delay: .21s; }
html.js .grid > .card:nth-child(5), html.js .pipeline > .reveal:nth-child(5) { transition-delay: .28s; }
html.js .hero-stats .stat:nth-child(2) { transition-delay: .08s; }
html.js .hero-stats .stat:nth-child(3) { transition-delay: .16s; }
html.js .hero-stats .stat:nth-child(4) { transition-delay: .24s; }

/* Page-head entrance choreography (every page opens cinematically) */
html.js .page-head h1 { transition-delay: .08s; }
html.js .page-head .lede { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html.js :is(
    .reveal,
    .page-head .eyebrow, .page-head h1, .page-head .lede,
    .facts, .stack-rail, .pull, .related-head,
    .grid > .card, .cta-band, .contact-card,
    .prose > h2, .article > h2, .hero-stats .stat
  ) { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Cross-page transitions — pages morph into one another
   (View Transitions API; progressive enhancement, no-op if
   unsupported). The header stays put while content cross-fades.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .brand { view-transition-name: site-brand; }

  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .42s; }
  ::view-transition-old(root) { animation-timing-function: var(--ease); }
  ::view-transition-new(root) { animation-timing-function: var(--ease); }
}

/* Active-location nav — you always know where you are */
.nav a.is-active {
  color: var(--navy); background: #fff;
  box-shadow: var(--shadow-sm); font-weight: 600;
}
.nav a.is-active:hover { color: var(--navy); }

/* ============================================================
   Stack rail — the connected pipeline, shown on company pages
   ============================================================ */
.stack-band { padding: 0 0 8px; }
.stack-rail-head {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px;
}
.stack-rail ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  counter-reset: sr;
}
.sr-step { position: relative; }
.sr-step + .sr-step::before {
  content: ""; position: absolute; z-index: 0;
  top: 33px; left: -50%; width: 100%; height: 2px;
  background: var(--line);
}
.sr-step a {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 10px 8px 4px; text-align: center; color: var(--ink-soft);
}
.sr-step a:hover { text-decoration: none; color: var(--ink); }
.sr-dot {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 2px solid var(--line);
  font-weight: 800; font-size: 1rem; color: var(--ink-faint);
  counter-increment: sr; transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.sr-dot::before { content: counter(sr); }
.sr-step a:hover .sr-dot { transform: translateY(-3px); border-color: var(--gold-soft); color: var(--ink); }
.sr-stage {
  font-size: .64rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.sr-name { font-size: .92rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.sr-step.is-current a { color: var(--ink); }
.sr-step.is-current .sr-dot {
  background: linear-gradient(140deg, var(--navy-2), var(--accent));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(31,84,189,.32);
}
.sr-step.is-current .sr-name { font-weight: 700; }

/* ============================================================
   Inner-page system (company / expertise / insight / standard)
   ============================================================ */

/* Header band — gives every inner page a real headline, not a tiny meta line */
.page-head {
  position: relative; overflow: hidden;
  padding: 40px 0 44px; border-bottom: 1px solid var(--line); margin-bottom: 56px;
}
.page-head::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; right: -180px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(47,111,237,.05), transparent 66%);
}
.page-head .wrap { position: relative; z-index: 1; max-width: 900px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 {
  font-size: 3rem; line-height: 1.05; letter-spacing: -.045em;
  margin: 0 0 .3em; max-width: 20ch; font-weight: 700;
}
.page-head .lede {
  font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch;
  margin: 0; line-height: 1.55; font-weight: 400;
}

/* Centered prose column for body content */
.prose { max-width: 760px; margin: 0 auto; }
.prose > p, .prose > ul li { font-size: 1.1rem; }
.prose > ul { padding-left: 1.2em; }
.prose > ul li { margin-bottom: .55em; }
.prose h2 { padding-top: .2em; }
.prose a { font-weight: 500; }

/* At-a-glance fact strip (company / expertise pages) */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 0 0 42px;
}
.facts.two { grid-template-columns: repeat(2, 1fr); }
.fact {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.fact .k {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.fact .v { font-size: 1rem; color: var(--ink); font-weight: 500; line-height: 1.45; }
.fact .v a { font-weight: 600; }

/* Inline pull-quote inside prose (insight / expertise articles) */
.pull {
  margin: 34px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-style: normal; font-weight: 600;
  font-size: 1.5rem; line-height: 1.4; letter-spacing: -.02em; color: var(--ink);
}

/* Related grid heading helper */
.related-head { margin: 0 0 4px; }
.related-head .eyebrow { margin-bottom: 8px; }

/* Role label inside a portfolio card */
.card .hp-role { display: block; margin-bottom: 9px; }

/* Block that follows a page-head needs no extra top padding */
.block.tight-top { padding-top: 0; }

/* Contact method cards */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 8px; }
.contact-card {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); text-decoration: none; }
.contact-card .k {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.contact-card .v { font-size: 1.18rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.contact-card .sub { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }

@media (max-width: 760px) {
  .facts, .facts.two { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-head { padding: 28px 0 32px; margin-bottom: 40px; }
  .page-head h1 { font-size: 2.1rem; }
  .page-head .lede { font-size: 1.08rem; }
  .pull { font-size: 1.25rem; }
}

@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .site-footer .foot-top, .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { max-width: none; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 18px; }
  .pipe-step:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-portfolio { grid-template-columns: 1fr 1fr; }
  .stack-rail { margin: 0 -22px; padding: 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stack-rail ol { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38%; min-width: 540px; }
}
/* Headline gradient highlight — clean single-hue blue (no muddy midpoint) */
.hero h1 .hl {
  background: linear-gradient(96deg, var(--accent-dark) 0%, var(--accent) 52%, #5b94ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 1100px) { .hero h1 { font-size: 3.95rem; } }

/* ============================================================
   Shared dark-surface voice — one constellation texture so the
   hero card, quote band, CTA band and footer read as one family
   ============================================================ */
.quote-band::before, .cta-band::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(149,182,228,.13) 1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}

/* Animated underline for body links */
.prose a, .article a, .feature a:not(.btn) {
  background-image: linear-gradient(var(--accent-dark), var(--accent-dark));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .25s var(--ease), color .15s ease;
}
.prose a:hover, .article a:hover, .feature a:not(.btn):hover {
  background-size: 100% 1.5px; text-decoration: none; color: var(--accent-dark);
}

/* Tilt/magnetic targets get GPU hinting */
.btn, .card, .pipe-step, .hp-card { will-change: transform; }

/* Flowing pulse along the stack-rail connectors */
@media (prefers-reduced-motion: no-preference) {
  .sr-step + .sr-step::before {
    background: linear-gradient(90deg, var(--line) 0 42%, var(--gold-soft) 50%, var(--line) 58% 100%);
    background-size: 300% 100%; background-position: 100% 0;
    animation: railFlow 3.2s linear infinite;
  }
}
@keyframes railFlow { to { background-position: -120% 0; } }

/* Cinematic pipeline — connector line assembles as steps reveal */
.pipeline { position: relative; }
@media (min-width: 921px) {
  .pipeline::before {
    content: ""; position: absolute; z-index: 0; top: 53px; left: 9%; right: 9%; height: 2px;
    background: linear-gradient(90deg, var(--gold-soft), var(--accent));
    opacity: .55; transform: scaleX(0); transform-origin: left;
    transition: transform 1.1s var(--ease);
  }
  html.js .pipeline.in::before { transform: scaleX(1); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 2.4rem; }
  .hero .lede { font-size: 1.08rem; }
  .hero-portfolio { grid-template-columns: 1fr; }
  h1, .article h1 { font-size: 2.1rem; }
  h2, section.block > .wrap > h2 { font-size: 1.6rem; }
  .quote-band blockquote { font-size: 1.5rem; }
  .quote-band .wrap { padding: 60px 22px; }
  .cta-band { padding: 40px 26px; }
  .pipeline { grid-template-columns: 1fr; gap: 30px; }
  .pipe-step:not(:last-child)::after { content: "↓"; top: auto; bottom: -30px; right: auto; left: 50%; transform: translateX(-50%); }
  .pipe-step:nth-child(2)::after { display: block; }
  .site-footer .foot-top, .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  section.block { padding: 60px 0; }
}
