.topia-work {
  --topia-ink: #132238;
  --topia-muted: #526075;
  --topia-line: #d7dee8;
  --topia-panel: #f4f7f9;
  --topia-accent: #b43a45;
  --topia-teal: #24655d;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 54px;
  color: var(--topia-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.topia-work * {
  box-sizing: border-box;
}

.topia-work p {
  margin: 0 0 14px;
}

.topia-work__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 42px;
  align-items: start;
  padding: 26px 0 48px;
  border-bottom: 1px solid var(--topia-line);
}

.topia-work__eyebrow,
.topia-work-card__eyebrow {
  margin-bottom: 8px;
  color: var(--topia-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topia-work__lead {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.topia-work__intro > div > p:last-child {
  max-width: 680px;
  color: var(--topia-muted);
  font-size: 15px;
  line-height: 1.7;
}

.topia-work__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--topia-line);
  border-radius: 8px;
  background: var(--topia-line);
}

.topia-work__metrics div {
  min-height: 108px;
  padding: 18px;
  background: white;
}

.topia-work__metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.topia-work__metrics span {
  display: block;
  color: var(--topia-muted);
  font-size: 12px;
  line-height: 1.45;
}

.topia-work__programs {
  padding: 46px 0 0;
}

.topia-work__section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 22px;
}

.topia-work__section-head h2,
.topia-work__process h2,
.topia-work__cta h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.topia-work__section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--topia-muted);
  text-align: right;
}

.topia-work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topia-work-card {
  overflow: hidden;
  border: 1px solid var(--topia-line);
  border-radius: 8px;
  background: white;
}

.topia-work-card figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #eef2f5;
}

.topia-work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topia-work-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(19, 34, 56, 0.86);
  color: white;
  font-size: 11px;
  line-height: 1.35;
}

.topia-work-card__body {
  padding: 20px;
}

.topia-work-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.topia-work-card__body > p:not(.topia-work-card__eyebrow) {
  min-height: 50px;
  color: var(--topia-muted);
  line-height: 1.6;
}

.topia-work-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--topia-line);
}

.topia-work-card__facts div {
  min-width: 0;
}

.topia-work-card__facts dt {
  margin-bottom: 3px;
  color: var(--topia-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.topia-work-card__facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.topia-work__process {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  gap: 36px;
  margin-top: 46px;
  padding: 30px;
  border-radius: 8px;
  background: var(--topia-ink);
  color: white;
}

.topia-work__process .topia-work__eyebrow {
  color: #f1aeb4;
}

.topia-work__process ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topia-work__process li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-weight: 700;
}

.topia-work__process li span {
  display: block;
  margin-bottom: 8px;
  color: #91c6be;
  font-size: 11px;
}

.topia-work__cta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 46px;
  padding: 30px;
  border-top: 3px solid var(--topia-accent);
  border-bottom: 1px solid var(--topia-line);
  background: var(--topia-panel);
}

.topia-work__cta p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--topia-muted);
}

.topia-work__button {
  flex: 0 0 auto;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 5px;
  background: var(--topia-accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topia-work__button:hover,
.topia-work__button:focus {
  background: #8f2933;
  color: white;
}

.topia-work__note {
  margin: 20px 0 0;
  color: var(--topia-muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .topia-work__intro,
  .topia-work__process {
    grid-template-columns: 1fr;
  }

  .topia-work__section-head {
    display: block;
  }

  .topia-work__section-head p {
    margin-top: 8px;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .topia-work {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topia-work__lead {
    font-size: 23px;
  }

  .topia-work__grid {
    grid-template-columns: 1fr;
  }

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

  .topia-work__cta {
    display: block;
  }

  .topia-work__button {
    margin-top: 18px;
  }
}
