/* Layout refinements for the homepage and the UNITRAMP portfolio. */
#site-check .rd-budget-panel {
  align-items: start;
  gap: clamp(22px, 5vw, 72px);
  padding: clamp(20px, 4vw, 56px);
  background: radial-gradient(ellipse at 80% 5%, #e8edff, transparent 60%), #f2f6ff;
  color: #101e35;
  border: 1px solid #d8e4f6;
  box-shadow: 0 12px 36px #132a6110;
}
#site-check .rd-budget-panel::before { content: none; }
#site-check .rd-budget-intro { align-self: center; }
#site-check .rd-budget-panel h2,
#site-check .rd-budget-panel h2 em { color: #101e35; }
#site-check .rd-budget-panel h2 em { color: #2857d8; }
#site-check .rd-budget-intro > p { color: #435774; }
#site-check .rd-budget-intro .rd-budget-links { gap: 10px 22px; }
#site-check .rd-budget-intro .rd-budget-links a {
  color: #174aaf;
  border-color: #9fb8e8;
  text-decoration-color: #9fb8e8;
}
#site-check #request-budget {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid #dbe5f5;
  border-radius: 22px;
  box-shadow: 0 10px 34px #1e3f7420;
}
#site-check #request-budget .ut-request {
  border: 0;
  padding: 0;
  background: transparent;
}
#rd-team-home > .ut-five-heading { margin-bottom: clamp(28px, 4vw, 52px); }
#rd-team-home > .ut-five-heading h2 { line-height: 1.13; }
#rd-team-home > .ut-five-heading p { margin-top: 14px; }
.rd-faq .ut-home-materials { display: inline-block; margin-top: 16px; }

.rd-site main .ut-projects-hero .hero-layout { gap: clamp(24px, 4vw, 56px); }
.ut-projects-hero .hero-copy { min-width: 0; }
.ut-projects-hero .hero-copy h1 { max-width: 11ch; }
.ut-project-photo-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(8px, 1.2vw, 16px);
  align-items: center;
  min-width: 0;
}
.ut-project-photo-grid a {
  display: block;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 25px);
  background: #dce8fb;
  box-shadow: 0 16px 36px #17346d29;
  aspect-ratio: 3 / 4;
}
.ut-project-photo-grid a + a { aspect-ratio: 5 / 7; }
.ut-project-photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ut-project-photo-grid span {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 12px 10px;
  background: linear-gradient(transparent, #101c36eb);
  color: #fff;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.3;
}
#project-routes { padding-block: clamp(28px, 4vw, 58px); scroll-margin-top: 100px; }
.ut-project-routes-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 38px);
  background: #f2f6ff;
  border: 1px solid #d8e4f6;
  border-radius: clamp(16px, 3vw, 28px);
}
.ut-project-routes-panel h2 { margin: 0; line-height: 1.12; text-wrap: balance; }
.ut-project-routes-panel ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ut-project-routes-panel a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
  height: 100%;
  padding: 12px 16px;
  border: 1px solid #d8e4f6;
  border-radius: 14px;
  background: #fff;
  color: #163c89;
  font-weight: 700;
  line-height: 1.35;
}
.ut-project-routes-panel a small { color: #4f627d; font-weight: 500; }
.ut-project-routes-panel a:hover { border-color: #749af1; }
.rd-site main .ut-projects-brief .brief-layout {
  align-items: center;
  overflow: clip;
  border: 1px solid #dbe7f8;
  background: linear-gradient(145deg, #f6f9ff, #e7eeff);
  color: #101e35;
}
.rd-site main .ut-projects-brief .brief-layout::before { content: none; }
.rd-site main .ut-projects-brief .section-head h2 { color: #101e35; }
.rd-site main .ut-projects-brief .section-head > p:not(.eyebrow) { color: #435774; }
.rd-site main .ut-projects-brief .eyebrow,
.rd-site main .ut-projects-brief .brief-contacts a {
  color: #174aaf;
  border-color: #bfd1ef;
  background: #fff;
}
.rd-site main .ut-projects-brief .eyebrow i { background: #2857d8; box-shadow: none; }
.rd-site main .ut-projects-brief :is(.unitramp-phone-form,.ut-request) { min-width: 0; }
.rd-site main .ut-projects-brief .unitramp-phone-form { padding: 0; background: transparent; box-shadow: none; }
.rd-site main .ut-projects-brief .ut-request { box-shadow: 0 10px 34px #1e3f741b; }
.ut-project-photo-grid a:focus-visible,
.ut-project-routes-panel a:focus-visible { outline: 3px solid #235bda; outline-offset: 3px; }

@media (max-width: 820px) {
  .ut-project-photo-grid a { aspect-ratio: 4 / 3; }
  .ut-project-photo-grid a + a { aspect-ratio: 5 / 4; }
  .ut-project-routes-panel ul { grid-template-columns: minmax(0, 1fr); }
  .ut-project-routes-panel a { min-height: 58px; }
}
