:root {
  --ink: #18222c;
  --muted: #61707b;
  --paper: #f7f5f0;
  --paper-deep: #efede6;
  --white: #ffffff;
  --line: #d7d3ca;
  --line-dark: rgba(255,255,255,.18);
  --accent: #244f69;
  --accent-soft: #dce7ed;
  --navy: #172a36;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; background: var(--paper); color: var(--ink); }
a { color: var(--accent); }
.shell { width: min(var(--max), calc(100% - 3rem)); margin: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 20; }

header {
  background: rgba(247,245,240,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.nav { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1rem 0; }
.brand { text-decoration: none; color: var(--ink); font-weight: 850; letter-spacing: -.01em; }
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-weight: 520; }
nav a:hover, nav a:focus { color: var(--accent); }

.hero { padding: 5.5rem 0 4rem; }
.hero-home { padding-bottom: 0; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .65fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.hero-copy { max-width: 760px; }
.identity-kicker {
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.01em;
  margin-bottom: .45rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 850;
  color: var(--accent);
}
h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -.045em;
  max-width: 900px;
  margin: .7rem 0 1.35rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: .45rem 0 1rem;
}
h3 { line-height: 1.16; letter-spacing: -.02em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 720px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border-radius: .3rem;
  text-decoration: none;
  font-weight: 760;
  border: 1px solid var(--ink);
}
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover, .button-primary:focus { background: var(--accent); border-color: var(--accent); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button-secondary:hover, .button-secondary:focus { border-color: var(--ink); }

.evidence-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: .75rem;
  padding: 1.45rem;
  box-shadow: 0 20px 55px rgba(24,34,44,.12);
}
.evidence-panel .eyebrow { color: #b8d3e2; }
.evidence-panel__head { display: flex; align-items: center; gap: .8rem; }
.evidence-panel__rule { height: 1px; background: var(--line-dark); flex: 1; }
.evidence-list { margin-top: .8rem; }
.evidence-stat {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: .4rem;
  padding: 1.05rem 0;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.evidence-stat strong { min-width: 0; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; }
.evidence-stat__label { font-weight: 760; line-height: 1.22; min-width: 0; }
.evidence-stat small { color: #bdc9d0; line-height: 1.35; min-width: 0; }
.evidence-stat:hover strong, .evidence-stat:focus strong { color: #b8d3e2; }
.evidence-panel__note { margin: 1rem 0 0; color: #bdc9d0; font-size: .82rem; line-height: 1.45; }

.credibility-strip {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.credibility-item { padding: 1.25rem 1.1rem; border-right: 1px solid var(--line); }
.credibility-item:last-child { border-right: 0; }
.credibility-item strong { display: block; font-size: 1rem; line-height: 1.2; }
.credibility-item span { display: block; color: var(--muted); font-size: .86rem; margin-top: .25rem; }

section { padding: 4rem 0; }
.work-feature { padding-top: 5rem; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-heading > p { color: var(--muted); margin: 0 0 .5rem; max-width: 500px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); padding: 1.4rem; border-radius: .5rem; }
.card a { text-decoration: none; }

.work-grid { gap: 1.2rem; }
.work-card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(24,34,44,.07); border-color: #b8b3aa; }
.work-card__topline {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 760;
}
.work-card__topline span:first-child { color: var(--accent); }
.work-card h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 1.1rem 0 .8rem; }
.work-card h3 a { color: var(--ink); }
.work-card__summary { color: var(--muted); font-size: .95rem; }
.work-card__result {
  margin-top: auto;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.work-card__result span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  font-weight: 850;
  margin-bottom: .35rem;
}
.work-card__result strong { display: block; font-size: .98rem; line-height: 1.38; font-weight: 720; }
.work-card__footer { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-top: 1rem; font-size: .82rem; }
.work-card__footer > span { color: var(--muted); max-width: 58%; }
.work-card__footer a { white-space: nowrap; font-weight: 760; }
.section-link { margin-top: 1.5rem; }
.section-link a { font-weight: 760; text-decoration: none; }

.ecosystem-section { background: var(--paper-deep); border-top: 1px solid var(--line); }
.ecosystem-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ecosystem-copy p { color: var(--muted); max-width: 600px; }
.ecosystem-routes { display: grid; gap: .75rem; }
.route-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.route-card:first-child { border-top: 1px solid var(--line); }
.route-card strong { color: var(--accent); }
.route-card span { color: var(--muted); }
.route-card:hover span, .route-card:focus span { color: var(--ink); }

.proof { display: flex; gap: 1rem; flex-wrap: wrap; }
.proof span { background: #fff; border: 1px solid var(--line); padding: .6rem .85rem; }
.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; }
.tag { display: inline-block; border: 1px solid var(--line); padding: .25rem .55rem; margin: .2rem .25rem .2rem 0; font-size: .85rem; }
.footer { padding: 2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); }
.notice { background: #fff8db; border: 1px solid #e4d48c; padding: 1rem; border-radius: .4rem; }
.pagehead { padding: 4rem 0 2rem; }
.pagehead h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }

@media (max-width: 1120px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 850px; }
  .evidence-panel { max-width: 720px; }
  .credibility-strip { grid-template-columns: repeat(2, 1fr); }
  .credibility-item:nth-child(2) { border-right: 0; }
  .credibility-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .ecosystem-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { padding: 1.65rem; }
  .work-card h3 { font-size: clamp(1.35rem, 3vw, 1.65rem); }
  .work-card__summary { max-width: 760px; }
  .work-card__footer > span { max-width: 70%; }
}

@media (max-width: 700px) {
  .shell { width: min(var(--max), calc(100% - 2rem)); }
  .nav { align-items: flex-start; flex-direction: column; gap: .75rem; }
  nav { gap: .8rem 1rem; }
  header { position: static; }
  .hero { padding-top: 3.5rem; }
  .hero-layout { gap: 2.25rem; }
  h1 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .evidence-stat strong { font-size: clamp(1.5rem, 7vw, 1.85rem); }
  .credibility-strip { margin-top: 3rem; }
  .grid, .two { grid-template-columns: 1fr; }
  .work-card__footer { align-items: flex-start; flex-direction: column; }
  .work-card__footer > span { max-width: none; }
  .work-card__footer a { white-space: normal; }
  .route-card { grid-template-columns: 1fr; gap: .25rem; }
}
