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}}
.rag-reader main,.rag-reader main :is(.section-light,.contact-section,.hero){background:#f9fbf8;color:#173b43}
.rag-reader main :is(.focus-list span,.focus-list strong,.contact-list span,.capability-tags span){font-size:1rem;color:#24464d}
.rag-reader main :is(.contact-list a,.portfolio-download,.portfolio-cta){color:#075d57}
.rag-process svg{display:block;width:40px;height:40px;margin:0 auto 9px;color:#196c62}.rag-process span:nth-child(2) svg{color:#ae5835}.rag-process span:nth-child(3) svg{color:#906c1a}

.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); }
}
.brand-systems .ed-hero { align-items: center; }
.brand-systems .ed-hero .practice-photo { padding: clamp(12px, 2vw, 30px); box-sizing: border-box; }
.brand-systems .ed-cards > .ed-card > img { aspect-ratio: 16 / 9; }
.brand-systems .ed-card > .rag-process {
  order: 1;
  min-height: 0;
  aspect-ratio: auto;
  margin: auto 16px 16px;
  padding: 8px;
  gap: 6px;
}
.brand-systems .rag-process span { font-size: 1rem; padding: 4px 8px; border: 0; background: transparent; }
.brand-systems .rag-process svg { display: none; }
.rag-focus .focus-card { margin-block: 1.5rem; }
.rag-focus .focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
@media (max-width: 760px) { .rag-focus .focus-list { grid-template-columns: 1fr; } }

/* 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;
}
