:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #eef2f7;
  --ink: #111827;
  --muted: #5b6473;
  --line: #dce2ea;
  --navy: #0b1220;
  --navy-2: #111c31;
  --accent: #1d5fd1;
  --accent-dark: #174ca7;
  --accent-soft: #eaf1ff;
  --green: #0b7a64;
  --green-soft: #e7f6f2;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(11, 18, 32, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 900px); }
.section { padding: 6rem 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy); color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 226, 234, .9);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; line-height: 1.2; }
.brand small { color: var(--muted); font-size: .76rem; margin-top: .15rem; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav > a:not(.button) { text-decoration: none; color: #364152; font-size: .92rem; font-weight: 650; }
.site-nav > a:not(.button):hover, .site-nav > a:not(.button):focus { color: var(--accent); }
.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover, .button:focus { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-secondary:hover, .button-secondary:focus { background: var(--accent-soft); color: var(--accent-dark); border-color: #b9cdf6; }
.button-outline { min-height: 40px; padding: .6rem .95rem; background: transparent; color: var(--accent); }
.button-small { font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.text-link { color: var(--accent); font-weight: 800; text-decoration: none; }
.text-link:hover, .text-link:focus { text-decoration: underline; text-underline-offset: 4px; }

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-light { color: #94b9ff; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { margin-bottom: 1.35rem; font-size: clamp(2.7rem, 6vw, 5.35rem); max-width: 920px; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { margin-bottom: .7rem; font-size: 1.25rem; }
p { margin-top: 0; }

.hero { padding-top: 7.5rem; background: radial-gradient(circle at 85% 10%, #e9f0ff 0, transparent 35%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .7fr); gap: 3rem; align-items: center; }
.hero-lead { max-width: 760px; font-size: clamp(1.12rem, 1.95vw, 1.34rem); color: #344054; line-height: 1.52; }
.hero-sublead { max-width: 760px; margin-top: .65rem; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.hero-context { max-width: 760px; color: var(--muted); }
.hero-panel {
  padding: 1.6rem;
  border: 1px solid #d6e0f2;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.hero-panel h2 { font-size: 1.45rem; }
.panel-label, .proof-type, .case-label {
  margin-bottom: .65rem;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.check-list, .detail-list { margin: 1.15rem 0 0; padding: 0; list-style: none; }
.check-list li, .detail-list li { position: relative; padding-left: 1.55rem; margin-bottom: .75rem; color: #465164; }
.check-list li::before, .detail-list li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.trust-row { display: none; }
.trust-row span, .tag-cloud span, .role-list span { padding: .42rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: #495468; font-size: .82rem; font-weight: 700; }

.metrics-band { padding: 2.1rem 0 1.55rem; background: var(--navy); color: #fff; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric { min-width: 0; }
.metric strong { display: block; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1; letter-spacing: -.04em; }
.metric span { display: block; margin-top: .45rem; color: #b7c2d5; font-size: .79rem; line-height: 1.35; }
.data-note { margin: 1.3rem 0 0; color: #91a0b6; font-size: .75rem; text-align: right; }
.left-note { text-align: left; color: var(--muted); }

.section-heading { max-width: 850px; margin-bottom: 2.6rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.15fr .75fr; gap: 4rem; align-items: end; }
.split-heading > p { color: var(--muted); margin-bottom: .4rem; }
.card-grid { display: grid; gap: 1.1rem; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.four-up { grid-template-columns: repeat(4, 1fr); }
.card, .case-card, .proof-card {
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(11, 18, 32, .04);
}
.card-number { display: block; margin-bottom: 2rem; color: var(--accent); font-weight: 850; }
.card p, .case-card p, .proof-card p { color: var(--muted); }

.lifecycle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; list-style: none; }
.lifecycle-grid li { padding: 1.75rem; background: var(--surface); }
.lifecycle-grid li > span, .evaluation-grid article > span { display: inline-block; margin-bottom: 1.8rem; color: var(--accent); font-weight: 850; }
.lifecycle-grid p { margin-bottom: 0; color: var(--muted); }

.case-grid { display: grid; grid-template-columns: 1.12fr .88fr .88fr; gap: 1.1rem; }
.case-featured { background: linear-gradient(145deg, #ffffff, #eff4ff); border-color: #c9d8f6; }
.case-card { display: flex; flex-direction: column; }
.case-card .text-link { margin-top: auto; padding-top: 1rem; }
.result-list { margin: 1rem 0 1.2rem; padding-left: 1.15rem; color: #344054; }
.result-list li { margin-bottom: .45rem; }
.result-list.compact { font-size: .92rem; }
.case-proof { padding-top: 1rem; border-top: 1px solid var(--line); }

.value-grid, .capability-grid, .role-panel, .contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.value-copy { color: #c1ccdc; font-size: 1.08rem; }
.value-copy p:last-child { margin-bottom: 0; }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.proof-card { display: flex; flex-direction: column; min-height: 280px; }
.proof-card .button { margin-top: auto; align-self: flex-start; }
.tag-cloud, .role-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.role-panel { padding: 2.2rem; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #cad9f7; }
.role-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; align-items: start; }
.role-group-label { margin: 0 0 .8rem; color: var(--accent-dark); font-size: .85rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.role-panel h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.role-list span { background: #fff; border-color: #cbd8ef; }
.contact-section { padding-top: 2rem; }
.contact-panel { padding: 3rem; border-radius: var(--radius); background: var(--navy); color: #fff; }
.contact-panel p { color: #c1ccdc; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .8rem; }
.contact-location { width: 100%; text-align: right; color: #9fb9e7; font-size: .85rem; }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--accent); text-decoration: none; }

/* Portfolio */
.portfolio-hero { padding-top: 7.5rem; background: radial-gradient(circle at 20% 0%, #eaf1ff, transparent 44%); }
.portfolio-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); }
.case-nav { position: sticky; top: 76px; z-index: 90; border-block: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.case-nav-inner { display: flex; gap: 1.5rem; overflow-x: auto; padding-block: .9rem; scrollbar-width: none; }
.case-nav a { white-space: nowrap; color: #475467; text-decoration: none; font-size: .88rem; font-weight: 750; }
.case-nav a:hover, .case-nav a:focus { color: var(--accent); }
.case-detail-section { scroll-margin-top: 145px; }
.case-detail-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.case-outcome { padding: 1.35rem; border-radius: 14px; background: var(--green-soft); border: 1px solid #bee2d8; }
.case-outcome strong, .case-outcome span { display: block; }
.case-outcome strong { margin-bottom: .4rem; color: var(--green); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.case-outcome span { color: #28564c; font-weight: 680; }
.case-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
.case-detail-grid article { padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--surface); }
.case-detail-grid p { color: var(--muted); margin-bottom: 0; }
.case-body-grid { display: grid; grid-template-columns: 1.5fr .6fr; gap: 3rem; align-items: start; }
.number-list { list-style: none; counter-reset: item; padding: 0; margin: 1.5rem 0 0; }
.number-list li { position: relative; padding-left: 3rem; margin-bottom: 1.35rem; color: #465164; }
.number-list li::before { counter-increment: item; content: counter(item, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font-weight: 850; }
.number-list strong { color: var(--ink); }
.results-panel { position: sticky; top: 155px; padding: 1.7rem; border-radius: var(--radius); background: var(--navy); color: #fff; }
.result-stat { padding: .95rem 0; border-top: 1px solid #2a3549; }
.result-stat:first-of-type { border-top: 0; }
.result-stat strong, .result-stat span { display: block; }
.result-stat strong { font-size: 1.5rem; letter-spacing: -.03em; }
.result-stat span { color: #aebbd0; font-size: .84rem; }
.demonstrates-box { margin-top: 3rem; padding: 1.5rem 1.7rem; border: 1px solid #c9d8f6; border-radius: 14px; background: var(--accent-soft); }
.demonstrates-box strong { color: var(--accent-dark); }
.demonstrates-box p { margin: .35rem 0 0; color: #40516d; }
.evaluation-grid, .operating-model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.evaluation-grid article, .operating-model-grid article { padding: 1.5rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.evaluation-grid p { margin-bottom: 0; color: var(--muted); }
.operating-model-grid article { background: var(--navy-2); border-color: #2a3549; }
.operating-model-grid p { margin-bottom: 0; color: #b6c1d4; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-panel { max-width: 760px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
  .four-up { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-featured { grid-column: 1 / -1; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-card:last-child { grid-column: 1 / -1; }
  .evaluation-grid, .operating-model-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .section { padding: 4.25rem 0; }
  .hero, .portfolio-hero { padding-top: 5rem; }
  .nav-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: .5rem .75rem; background: var(--surface); color: var(--ink); font-weight: 750; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 67px; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); align-items: stretch; flex-direction: column; gap: .25rem; }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.button) { padding: .7rem .4rem; }
  .site-nav .button { margin-top: .4rem; }
  .brand small { display: none; }
  .split-heading, .value-grid, .capability-grid, .role-panel, .contact-panel, .case-detail-heading, .case-body-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .lifecycle-grid { grid-template-columns: 1fr 1fr; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .contact-actions { justify-content: flex-start; }
  .contact-location { text-align: left; }
  .contact-panel { padding: 2rem; }
  .case-nav { top: 76px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  h1 { font-size: 2.65rem; }
  .metrics-grid, .four-up, .lifecycle-grid, .case-grid, .proof-grid, .evaluation-grid, .operating-model-grid { grid-template-columns: 1fr; }
  .case-featured, .proof-card:last-child { grid-column: auto; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .data-note { text-align: left; }
  .button-row, .button-row .button { width: 100%; }
  .footer-inner { flex-direction: column; }
  .contact-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
