.detail-card a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.service-end { padding-top: clamp(28px, 4vw, 55px); }
.service-end .contact-details { font-size: 16px; }
.long-heading .detail-intro h1 { font-size: clamp(45px, 5.1vw, 82px); text-wrap: pretty; }

.contact-page-hero { min-height: min(680px, calc(100svh - 76px)); }
.contact-page-hero .detail-intro h1 span { display: inline; }
.contact-channels {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #30435e;
  border-radius: 9px;
  background: #30435e;
  font-style: normal;
}
.contact-channels a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 12px;
  padding: clamp(20px, 3vw, 39px);
  background: #111b2a;
}
.contact-channels a:hover { background: #182740; }
.contact-channels a:focus-visible { outline-offset: -4px; }
.contact-channels a > span:first-child { grid-column: 1; color: var(--muted); font-size: 14px; }
.contact-channels strong { grid-column: 1; color: var(--text); font-size: clamp(20px, 2.2vw, 32px); font-weight: 630; letter-spacing: -.045em; }
.contact-channels .project-arrow { grid-area: 1 / 2 / span 2; color: var(--accent); }

.references-title { padding-block: clamp(42px, 6vw, 87px) 24px; }
.references-title h1 { font-size: clamp(49px, 6vw, 91px); font-weight: 740; line-height: .98; letter-spacing: -.074em; }
.references-title h1 span { color: var(--accent); }
.references-title p { margin-top: 15px; color: #c1ccde; font-size: clamp(16px, 1.45vw, 20px); }
.references-list { padding-bottom: clamp(42px, 7.5vw, 96px); }
.references-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 15px 24px; }
.references-toolbar .filters { gap: 5px; border-radius: 10px; }
.references-search { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.references-search input {
  width: min(100%, 245px);
  min-height: 39px;
  padding: 8px 11px;
  border: 1px solid #34435c;
  border-radius: 6px;
  color: var(--text);
  background: #0e1621;
  font: inherit;
}
.references-count { margin-block: 15px; color: var(--muted); font-size: 13px; }
.references-empty { padding: 29px 0; color: var(--muted); }
.references-page .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3.1vw, 42px) 17px; }
.references-page .project-info { padding-top: 12px; }
.references-page .project-info h2 { font-size: clamp(18px, 2vw, 26px); }
.references-page .project-type { font-size: 11px; }

@media (max-width: 800px) {
  .references-page .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .contact-page-hero { min-height: auto; }
  .long-heading .detail-intro h1 { font-size: clamp(38px, 9.3vw, 62px); }
}
@media (max-width: 510px) {
  .references-page .project-grid { column-gap: 12px; }
  .references-page .project-info h2 { font-size: 16px; }
  .references-page .project-type { font-size: 9px; }
  .references-search { width: 100%; }
  .references-search input { width: 100%; }
}

.project-funding {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.project-funding p {
  margin: 0;
}

.project-funding-marks {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 3vw, 1.5rem);
  width: fit-content;
  max-width: 100%;
  padding: .65rem clamp(.65rem, 2vw, 1rem);
  border-radius: .5rem;
  background: #fff;
}

.project-funding-marks img:first-child {
  width: min(14rem, 70%);
  height: auto;
}

.project-funding-marks img:last-child {
  width: min(3.9rem, 20%);
  height: auto;
}

.detail-prose .project-funding > a {
  width: fit-content;
  color: inherit;
  font-weight: 600;
  text-underline-offset: .2em;
  text-decoration: underline;
}
