:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #171918;
  --muted: #6f746f;
  --line: #dfe2dd;
  --accent: #1f6f62;
  --max: 1180px;
  --reading: 820px;
  --sidebar: 176px;
  --layout-gap: 38px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav a:hover,
.nav a:focus-visible,
.sidebar a:hover,
.sidebar a:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a[aria-current="page"] { font-weight: 700; }

.page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 74px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 650;
}

.hero-lede {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: #343834;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 0;
  margin-top: 30px;
}

/* Editorial metadata, not interactive pills. */
.tag {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #525b59;
}
.tag:not(:last-child)::after {
  content: "/";
  display: inline-block;
  margin: 0 15px;
  color: #9ca7a3;
  font-weight: 400;
}

.layout {
  width: min(100%, calc(var(--reading) + var(--sidebar) + var(--layout-gap)));
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) var(--sidebar);
  gap: var(--layout-gap);
  align-items: start;
  padding: 74px 0 110px;
}

.content section { scroll-margin-top: 110px; }
.content section + section { margin-top: 76px; }

h2 {
  margin: 0 0 22px;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 650;
}

h3 {
  margin: 34px 0 12px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.01em;
}

p, li {
  font-size: 18px;
  line-height: 1.68;
}

p { margin: 0 0 18px; }
ul { padding-left: 1.2em; margin: 18px 0 0; }
li + li { margin-top: 9px; }

.lead-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}
.lead-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.lead-list strong { font-size: 15px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}
.metric {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
.metric span { color: var(--muted); font-size: 14px; line-height: 1.45; }

.project-list { border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 22px;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.project-row h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; letter-spacing: -.005em; }
.project-row p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.project-impact { font-size: 17px; line-height: 1.35; font-weight: 650; }
.arrow { font-size: 20px; transition: transform .2s ease; }
.project-row:hover .arrow { transform: translateX(4px); }

.sidebar {
  position: relative;
  align-self: stretch;
}
.sidebar-inner {
  position: sticky;
  top: 112px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.sidebar-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar a {
  display: block;
  padding: 8px 0 8px 12px;
  font-size: 14px;
  line-height: 1.4;
}
/* Subtle dark-blue, dotted-underlined labels make the on-page links discoverable. */
.sidebar a:not(.cta) {
  color: #27465d;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #8a9dac;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.sidebar a:not(.cta):hover,
.sidebar a:not(.cta):focus-visible {
  color: #183c59;
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}
.sidebar .cta {
  margin-top: 24px;
  display: inline-flex;
  border: 1px solid var(--text);
  border-radius: 5px;
  padding: 11px 14px;
  font-weight: 650;
}
.sidebar .cta:hover,
.sidebar .cta:focus-visible {
  background: transparent;
  color: inherit;
  text-decoration: underline;
}

.case-intro {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  border-top: 1px solid var(--line);
}
.case-intro-item {
  padding: 15px 0 17px;
  border-bottom: 1px solid var(--line);
}
.case-intro-item span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 5px;
}
.case-intro-item strong { font-size: 15px; line-height: 1.45; }

.note {
  border-left: 2px solid var(--text);
  margin: 30px 0;
  padding: 2px 0 2px 20px;
  font-size: 17px;
  line-height: 1.65;
}
/* Shorter, stronger accent: limited to the About contact block. */
.contact-note {
  position: relative;
  border-left: 0;
  margin: 24px 0 0;
  padding: 0 0 0 23px;
}
.contact-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 2px;
  background: var(--text);
}
.contact-note p {
  margin: 0 0 6px;
  line-height: 1.48;
}
.contact-note p strong { font-size: 19px; }
.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 13px;
}
.contact-link {
  color: #27465d;
  font-size: 17px;
  font-weight: 580;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: #17374e;
  text-decoration-thickness: 2px;
}
.contact-link:focus-visible,
.sidebar a:focus-visible,
.nav a:focus-visible {
  outline: 2px solid #27465d;
  outline-offset: 4px;
}
.contact-link span {
  display: inline-block;
  margin-left: 3px;
  font-size: 15px;
  text-decoration: none;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 52px; }
  .sidebar { display: none; }
  .project-row { grid-template-columns: minmax(0, 1fr) 22px; }
  .project-impact { grid-column: 1 / 2; }
}

@media (max-width: 620px) {
  .nav, .page, .footer-inner { width: min(100% - 32px, var(--max)); }
  .nav { min-height: 64px; }
  .nav-links { gap: 16px; }
  .hero { padding: 58px 0 48px; }
  .layout { padding: 52px 0 80px; }
  .content section + section { margin-top: 58px; }
  .metrics, .case-intro { grid-template-columns: 1fr; }
  .lead-list li { grid-template-columns: 1fr; gap: 4px; }
  p, li { font-size: 18px; line-height: 1.66; }
  .project-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 14px; }
  .project-impact { grid-column: 1 / 3; }
  .project-row p { font-size: 17px; line-height: 1.58; }
  /* No hanging separators when editorial metadata wraps on narrow screens. */
  .meta-row { gap: 8px 20px; }
  .tag:not(:last-child)::after { display: none; }
}
