:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --ink: #1d2522;
  --muted: #5f6864;
  --line: #d8d3c8;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --rust: #a0472d;
  --max-width: 1120px;
  --content-width: 860px;
  --media-width: 960px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.site-mark {
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--ink);
}

main {
  padding: 58px 0;
}

section + section {
  margin-top: 56px;
}

.page-header {
  max-width: var(--content-width);
}

.hero {
  max-width: var(--content-width);
}

.hero-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  align-items: end;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: var(--content-width);
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.28rem, 2.2vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

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

.intro-grid,
.service-grid,
.bio-grid {
  align-items: start;
}

.figure {
  margin: 0;
}

.figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-figure img {
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

.portrait-figure img {
  aspect-ratio: 1 / 1.15;
  object-position: center top;
}

.image-text-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  max-width: var(--media-width);
}

.image-text-split p {
  color: var(--muted);
}

.artifact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.artifact-card p,
.artifact-card li {
  color: var(--muted);
}

.artifact-card ul {
  margin: 18px 0 0;
  padding-left: 1.1rem;
}

.artifact-card li + li {
  margin-top: 10px;
}

.artifact-card a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.inline-link-list {
  margin: 14px 0 0;
  padding-left: 1.1rem;
}

.inline-link-list li + li {
  margin-top: 8px;
}

.inline-link-list a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.entry-list.compact {
  gap: 18px;
}

.research-gallery {
  max-width: var(--content-width);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.research-gallery img {
  aspect-ratio: 16 / 10;
}

.research-gallery figcaption {
  min-height: 58px;
}

.bio-grid {
  max-width: var(--media-width);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.intro-grid > div,
.service-grid > article,
.project-preview,
.entry-list article,
.client-list article {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-heading p {
  color: var(--muted);
}

.section-heading {
  max-width: var(--content-width);
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.project-list {
  display: grid;
  gap: 28px;
}

.project-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 24px;
}

.project-preview a {
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.project-preview p,
.intro-grid p,
.service-grid p,
.site-footer p {
  color: var(--muted);
}

.method-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.signal-strip {
  max-width: var(--media-width);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.signal-strip div {
  min-height: 150px;
  padding: 24px;
  background: var(--surface);
}

.signal-strip strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.signal-strip span {
  color: var(--muted);
}

.case-study {
  display: block;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.case-study > div:first-child,
.case-study .figure-row {
  max-width: var(--content-width);
}

.figure-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.figure-row.single {
  grid-template-columns: 1fr;
}

.detail-list {
  margin: 18px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 8px;
}

.visual-slot,
.portrait-slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 22px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, var(--accent) 8%);
}

.visual-slot.wide {
  min-height: 220px;
  aspect-ratio: 16 / 7;
}

.work-figure {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.work-figure img {
  max-height: 560px;
  object-fit: contain;
  background: white;
}

.home-figure-grid {
  max-width: var(--media-width);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-figure-grid a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-figure-grid a.featured {
  grid-column: 1 / -1;
}

.home-figure {
  height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.home-figure img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: white;
}

.home-figure-grid a.featured img {
  aspect-ratio: 16 / 6;
}

.portrait-slot {
  min-height: 420px;
}

.visual-slot span,
.portrait-slot span {
  color: var(--accent-dark);
  font-weight: 800;
}

.visual-slot p,
.portrait-slot p {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-stack {
  max-width: var(--content-width);
}

.text-stack p,
.research-section p,
.client-list p {
  color: var(--muted);
}

.entry-list,
.client-list {
  display: grid;
  gap: 28px;
}

.client-list .section-heading {
  margin-bottom: 0;
}

.solution-grid,
.engagement-list {
  display: grid;
  gap: 26px;
  max-width: var(--media-width);
}

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

.engagement-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.solution-grid article,
.engagement-list article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.solution-grid p,
.engagement-list p {
  color: var(--muted);
}

.entry-list article p {
  color: var(--muted);
}

.research-section {
  max-width: var(--content-width);
}

.research-section.image-text-split {
  max-width: var(--media-width);
}

.closing-band {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.home-route-band {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.home-route-band p {
  max-width: 760px;
  color: var(--muted);
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.route-links a {
  color: var(--accent-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.closing-band p {
  max-width: 760px;
  color: var(--muted);
}

.closing-band a {
  color: var(--accent-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding: 50px 0;
  }

  section + section {
    margin-top: 54px;
  }

  .intro-grid,
  .service-grid,
  .bio-grid,
  .hero-with-image,
  .image-text-split,
  .research-gallery,
  .figure-row,
  .home-figure-grid,
  .solution-grid,
  .engagement-list,
  .project-preview,
  .signal-strip {
    grid-template-columns: 1fr;
  }
}
