main img:not([src*="logo.svg"]):not(.leaflet-tile),main .route-map{border-radius:clamp(14px,1.5vw,24px)}
main .ed-scene{border-radius:22px;overflow:hidden}
.ed-card>img{border-radius:18px;margin:10px 10px 0;width:calc(100% - 20px)}
main figure img{max-width:100%}

.service-mosaic{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:1fr 1fr;gap:8px;padding:8px;min-height:340px;align-self:stretch;margin:0}
.service-mosaic img{width:100%;height:100%;min-height:0;max-height:310px;object-fit:cover;display:block}.service-mosaic img.bench{grid-row:span 2;max-height:100%;object-position:59% center}
.brand-systems .ed-scene img{object-fit:cover}.ed-card>.rag-process{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;aspect-ratio:2.05;margin:10px 10px 0;padding:clamp(12px,3vw,36px);border-radius:18px;background:#e9efe3}
.rag-process span{font:650 clamp(1rem,1.5vw,1.35rem)/1.35 Inter,system-ui,sans-serif;color:#203a38;background:#fff;border-bottom:4px solid #327167;border-radius:8px;padding:.7em}.rag-process span:nth-child(2){border-color:#b76637}.rag-process span:nth-child(3){border-color:#aa8427}
.rag-reader main :is(.focus-card,.card,.contact-card,.deliverable,.scope-note){background:#f3f7f4;color:#15363e}.rag-reader main :is(.hero-promise,.lede,.scope-note,.offer-label,.focus-list,.note,.small,.rag-evidence,.portfolio-subtitle,.focus-card-title,.capability-tags span){color:#26474d;background:transparent;font-size:max(1rem,1em);opacity:1}.rag-reader main p,.rag-reader main li{font-size:max(1rem,1em);line-height:1.6}.rag-reader main :is(h1,h2,h3){color:#123342}.rag-reader main .text-link{color:#095e58}.rag-reader main .button:not(.primary){background:white;color:#174940}
@media(max-width:760px){.service-mosaic{min-height:250px;max-height:330px}.service-mosaic img{max-height:145px}.ed-card>.rag-process{aspect-ratio:auto;min-height:145px}.rag-process span{padding:.55em}}

.practice-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}
main figure.practice-photo {
  align-self: center;
  width: 100%;
  min-width: 0;
  margin: 0;
}
main .practice-photo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .practice-lead { grid-template-columns: minmax(0, 1fr); }
}
.service-mosaic {
  align-self: center;
  min-height: 0;
  max-height: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
}
.service-mosaic img {
  aspect-ratio: 2.8;
  height: auto;
  max-height: none;
  object-fit: cover;
}
.service-mosaic img:first-child { grid-column: 1 / -1; aspect-ratio: 2.2; }
.brand-overview .ed-card > img { aspect-ratio: 16 / 9; }

/* Keep card media proportional even when the HTML carries the source height. */
.ed-card > img { height: auto; }
.editorial .engineering-workstation {
  position: relative;
  margin: 10px 10px 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
}
.ed-card .engineering-workstation img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.ed-card .engineering-workstation .hardware-detail {
  position: absolute;
  right: 3%;
  bottom: 5%;
  width: 30%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 3px solid #fff;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Three software/education pathways retain readable image proportions. */
@media(min-width:1121px){.brand-overview #divisions .ed-cards{grid-template-columns:repeat(3,minmax(0,1fr));}}
.brand-overview #divisions .ed-card>img{width:calc(100% - 20px);aspect-ratio:16/9;object-fit:cover;}

.service-mosaic:has(img:only-of-type){display:block;min-height:0;max-height:none}.service-mosaic:has(img:only-of-type) img{width:100%;height:auto;aspect-ratio:auto;max-height:none}.service-mosaic figcaption,.practice-photo figcaption,.photo-credit{font-size:.85rem;line-height:1.5;margin:10px 0;color:inherit}.oe-hero.photo-free{grid-template-columns:minmax(0,1fr)}
