/* Identity belongs to the person, regardless of portrait size or ordering. */
body :is([data-nx-portrait="kevin"],.nr-local-face--kevin,.nx-person-frame--kevin) {
  --person-surface:#bab0d7;
}
body :is([data-nx-portrait="bora"],.nr-local-face--bora,.nx-person-frame--bora) {
  --person-surface:#d0d953;
}
body :is([data-nx-portrait],.nr-local-face--kevin,.nr-local-face--bora,.nx-person-frame--kevin,.nx-person-frame--bora) {
  background:var(--person-surface,transparent) !important;
}
body :is([data-nx-portrait],.nr-local-face--kevin,.nr-local-face--bora,.nx-person-frame--kevin,.nx-person-frame--bora) >img {
  background:transparent !important;
}

.s53-team .s53-team-picture {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:none}
.s53-team .s53-team-picture .svc55-person {position:relative;overflow:hidden;min-width:0}
.s53-team .s53-team-picture .svc55-person img {left:50%;bottom:-4%;height:104%;width:auto;max-width:none;transform:translateX(-50%)}

/* Keep each skyline and landmark in the proportions of its source photograph. */
.svc53 .svc52-place .s51-place-image {margin:0}
.svc53 .svc52-place .s51-place-image :is(.nr-hero-photo,picture) {position:static;display:block;width:100%;height:auto;min-height:0;max-height:none}
.svc53 .svc52-place .s51-place-image img {display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.svc53 .svc52-place .s51-place-image figcaption {margin:.55rem 0 0;padding:0;text-align:start;line-height:1.4}
@media(min-width:860px) {
  .svc53 .svc55-landmark .s51-hero-grid {display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);align-items:center;gap:clamp(30px,4vw,64px)}
  .svc53 .svc55-landmark .s51-lead {display:flex;flex-direction:column;gap:1.25rem}
  .svc53 .svc55-landmark .s51-lead h1 {max-width:21ch}
  .svc53 .svc55-landmark .s51-place-image {align-self:center}
}
@media(max-width:859px) {
  .svc53 .svc55-landmark .s51-lead {display:flex;flex-direction:column;gap:1rem}
}

/* A short case study uses the full allotted row, just like a two-part case. */
.svc53 .s51-case .s51-frame > .s51-case-copy:only-child {grid-column:1/-1}
.svc53 .s51-case .s51-case-copy.nr-project-story-card {
  display:grid;grid-template-columns:minmax(11rem,.68fr) minmax(0,1.32fr);align-items:center;
  gap:clamp(20px,4vw,58px);padding:clamp(20px,3vw,42px);
}
.svc53 .s51-case .nr-project-story-card .nr-project-brand {
  display:grid;justify-items:center;align-content:center;gap:1rem;width:100%;height:auto;min-height:13rem;
  margin:0;padding:1.3rem;border:0;text-align:center;background:#f4f2f8;
}
.svc53 .s51-case .nr-project-brand .nr-proof-logo {width:100%;height:104px;margin:0;background:transparent}
.svc53 .s51-case .nr-project-brand img[data-canonical-logo] {display:block;width:auto;height:auto;object-fit:contain;max-width:90%;max-height:100%;border-radius:0}
.svc53 .s51-case .nr-project-brand .nr-proof-name {margin:0;max-width:24ch}
.svc53 .s51-case .nx-gena-story-body {min-width:0}
.svc53 .s51-case .nx-gena-story-body > * + * {margin-top:.85rem}
.svc53 .s51-case .nx-gena-story-body .nr-project-actions {margin-top:1.3rem}
.svc53 .s51-proof .hu-proof {align-items:stretch}
.svc53 .s51-proof .hu-proof .hu-case-card {display:flex;flex-direction:column;align-items:stretch;gap:.55rem}
.svc53 .s51-proof .hu-case-card > :is(h3,span,p) {margin:0}
.svc53 .s51-proof .hu-case-card .hu-case-logo {
  display:flex;align-items:center;justify-content:center;margin:0 0 .6rem;padding:12px;
  height:clamp(100px,9vw,134px);width:100%;
}
.svc53 .s51-proof .hu-case-card .hu-case-logo img {width:auto;height:auto;max-width:88%;max-height:100%;object-fit:contain}
.svc53 .s51-proof .hu-case-card .hu-text-link {display:inline-flex;align-self:flex-start;align-items:center;gap:.5rem;margin-top:auto;padding-top:.7rem;font-weight:700;text-decoration:underline;text-underline-offset:.18em}
.svc53 .s51-proof .hu-proof-benefits ul {list-style:none;padding:0;margin:.85rem 0 0}
.svc53 .s51-proof .hu-proof-benefits li {padding-block:.7rem;margin:0}
.svc53 .s51-proof .hu-proof-benefits li+li {border-top:1px solid var(--line,#dedbe5)}
.svc53 .s51-proof .hu-proof-benefits li p {margin:.22rem 0 0}
@media(max-width:680px) {
  .svc53 .s51-case .s51-case-copy.nr-project-story-card {grid-template-columns:1fr}
  .svc53 .s51-case .nr-project-story-card .nr-project-brand {grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:start;text-align:start;min-height:0;padding:12px 16px}
  .svc53 .s51-case .nr-project-brand .nr-proof-logo {width:67px;height:58px}
}

/* Body buttons need an explicit foreground, including their visited state. */
.svc53 .s51-section:not(.s51-close) a.btn.btn-primary,
.svc53 .s51-section:not(.s51-close) a.btn.btn-primary:visited {
  display:inline-flex;align-items:center;justify-content:center;gap:.6em;width:fit-content;
  min-height:46px;max-width:100%;padding:.65em 1.1em;background:#17151b;color:#fff;
  border:1px solid #17151b;border-radius:8px;line-height:1.4;text-align:center;
  text-decoration:none;font-weight:700;
}
.svc53 .s51-section:not(.s51-close) a.btn.btn-primary:hover {background:#403649;border-color:#403649;color:white}
.svc53 .svc52-place .s51-lead h1 {hyphens:manual;text-wrap:balance;overflow-wrap:break-word}
