:root {
  --ink: #102131;
  --text: #21313f;
  --muted: #5b6875;
  --line: #d9e0e7;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --field: #2f6f5e;
  --signal: #a83f3f;
  --blue: #245c82;
  --gold: #a07422;
  --shadow: 0 18px 50px rgba(16, 33, 49, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(47, 111, 94, 0.45);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--field);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.button,
.project-card > a,
.contact-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(86vh - 72px);
  padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 72px) 36px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--field);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: 56px;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.system-visual {
  margin: 0;
}

.system-visual img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.system-visual figcaption {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 80px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section.compact {
  padding-top: 56px;
  padding-bottom: 64px;
  background: var(--surface);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
}

.focus-grid {
  counter-reset: focus;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.focus-grid article,
.project-card,
.writing-groups article,
.timeline article {
  border: 1px solid var(--line);
  background: var(--paper);
}

.focus-card {
  position: relative;
  min-height: 188px;
  padding: 22px 20px 20px;
  overflow: hidden;
}

.focus-card::before {
  counter-increment: focus;
  content: "0" counter(focus);
  display: block;
  margin-bottom: 28px;
  color: var(--field);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.focus-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--field);
}

.focus-card:nth-child(2)::before {
  color: var(--blue);
}

.focus-card:nth-child(2)::after {
  background: var(--blue);
}

.focus-card:nth-child(3)::before {
  color: var(--signal);
}

.focus-card:nth-child(3)::after {
  background: var(--signal);
}

.focus-card:nth-child(4)::before {
  color: var(--gold);
}

.focus-card:nth-child(4)::after {
  background: var(--gold);
}

.focus-card h3 {
  margin-bottom: 12px;
}

.focus-grid p,
.project-card p,
.timeline p,
.contact-band p {
  margin: 0;
  color: var(--muted);
}

.project-list,
.project-secondary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-list {
  align-items: stretch;
}

.project-secondary-list {
  align-items: start;
}

.project-secondary-list {
  margin-top: 16px;
}

.project-stack {
  display: grid;
  align-self: stretch;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
  min-height: 492px;
}

.project-stack .project-card {
  align-self: stretch;
  height: auto;
  min-height: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 238px;
  padding: 24px;
}

.project-card.featured {
  align-self: stretch;
  min-height: 492px;
  background: var(--ink);
  color: white;
  padding: 0;
  overflow: hidden;
}

.project-card.featured h3,
.project-card.featured p,
.project-card.featured .project-type {
  color: white;
}

.article-feature img {
  display: block;
  width: 100%;
  height: 292px;
  object-fit: cover;
}

.article-feature-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.article-feature-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.project-type {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card > a,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  font-weight: 750;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 104px;
}

.writing-groups {
  display: grid;
  gap: 16px;
}

.writing-groups article {
  padding: 24px;
}

.writing-groups ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  min-height: 230px;
  padding: 20px;
}

.timeline span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 64px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: white;
}

.contact-band h2,
.contact-band .eyebrow,
.contact-band p {
  color: white;
}

.contact-band p {
  max-width: 760px;
  margin-top: 16px;
}

.contact-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-row: auto;
    min-height: 300px;
  }

  .sticky-heading {
    position: static;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 27px;
  }

  .lead {
    font-size: 17px;
  }

  .focus-grid,
  .project-list,
  .project-secondary-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .system-visual img {
    min-height: 260px;
  }

  .focus-grid {
    gap: 12px;
  }

  .focus-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    min-height: 0;
    padding: 18px;
  }

  .focus-card::before {
    grid-row: 1 / span 2;
    margin: 2px 0 0;
  }

  .focus-card::after {
    width: 5px;
    height: auto;
    right: auto;
    bottom: 0;
  }

  .focus-card h3 {
    margin-bottom: 6px;
  }

  .article-feature img {
    min-height: 0;
    height: 240px;
  }

  .project-stack {
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }
}
