/* M²S continuous corners. Shape refinement only; no layout or image changes.
   Standard radii remain the complete fallback. Native squircle corners are
   progressively enhanced without masks, polygon approximations or JavaScript. */
.ms-site,
.m2s-site {
  --ms-corner-thumb: 18px;
  --ms-corner-media: 28px;
  --ms-corner-panel: 24px;
  --ms-corner-field: 14px;
  --ms-corner-control: 16px;
}

/* Nested radii follow the existing 3px selection-ring inset. */
.ms-site .ms-hero-gallery .ms-service-choice {
  border-radius: var(--ms-corner-thumb);
}
.ms-site .ms-hero-gallery .ms-service-choice img {
  border-radius: calc(var(--ms-corner-thumb) - 3px);
}

/* A shared silhouette for photography and editorial surfaces. */
.ms-site .ms-chapter-photo,
.ms-site .ms-work-cover,
.ms-site .ms-profile figure,
.ms-site .ms-insight-image,
.ms-site .ms-feature-image > img,
.ms-site .ms-gallery img,
.ms-site .ms-photography-card figure {
  border-radius: var(--ms-corner-media);
}
.ms-site .ms-engagements article,
.ms-site .ms-faq details,
.ms-site .ms-contact-options nav {
  border-radius: var(--ms-corner-panel);
}

/* Practical controls stay compact and retain their existing focus indicators. */
.ms-site .ms-field input:not([type="checkbox"]):not([type="radio"]),
.ms-site .ms-field select,
.ms-site .ms-field textarea,
.ms-site .ms-form-errors {
  border-radius: var(--ms-corner-field);
}
.ms-site .ms-enquiry > .ms-button {
  border-radius: var(--ms-corner-control);
}
.ms-site #m2s-spotlight #m2s-light-menu {
  border-radius: var(--ms-corner-panel);
}
.ms-site #m2s-spotlight #m2s-light-menu [data-trolley-command] {
  border-radius: 12px;
}

/* The Arabic presentation uses its own existing card components. */
.m2s-site .mx-brand-tile {
  border-radius: var(--ms-corner-field);
}
.m2s-site .m2s-team-card,
.m2s-site .mx-benefit-card,
.m2s-site .mx-partner-manifesto,
.m2s-site .m2s-cw-menu,
.m2s-site .m2s-q {
  border-radius: var(--ms-corner-panel);
}
.m2s-site .m2s-q-field input:not([type="checkbox"]):not([type="radio"]),
.m2s-site .m2s-q-field select,
.m2s-site .m2s-q-field textarea {
  border-radius: var(--ms-corner-field);
}

/* Continuous curvature follows backgrounds, borders, shadows and clipping.
   Pill navigation, pill CTAs, circular controls, logos and the full-bleed
   hero are intentionally excluded. Partner frames retain their asymmetric
   corner proportions and only gain the continuous join. */
@supports (corner-shape: squircle) {
  .ms-site .ms-hero-gallery .ms-service-choice,
  .ms-site .ms-hero-gallery .ms-service-choice img,
  .ms-site .ms-chapter-photo,
  .ms-site .ms-work-cover,
  .ms-site .ms-profile figure,
  .ms-site .ms-partner-orbit .ms-person figure,
  .ms-site .ms-insight-image,
  .ms-site .ms-feature-image > img,
  .ms-site .ms-gallery img,
  .ms-site .ms-photography-card figure,
  .ms-site .ms-engagements article,
  .ms-site .ms-faq details,
  .ms-site .ms-contact-options nav,
  .ms-site .ms-field input:not([type="checkbox"]):not([type="radio"]),
  .ms-site .ms-field select,
  .ms-site .ms-field textarea,
  .ms-site .ms-form-errors,
  .ms-site .ms-enquiry > .ms-button,
  .ms-site #m2s-spotlight #m2s-light-menu,
  .ms-site #m2s-spotlight #m2s-light-menu [data-trolley-command],
  .m2s-site .mx-brand-tile,
  .m2s-site .m2s-team-card,
  .m2s-site .mx-benefit-card,
  .m2s-site .mx-partner-manifesto,
  .m2s-site .m2s-cw-menu,
  .m2s-site .m2s-q,
  .m2s-site .m2s-q-field input:not([type="checkbox"]):not([type="radio"]),
  .m2s-site .m2s-q-field select,
  .m2s-site .m2s-q-field textarea {
    corner-shape: squircle;
  }
}

@media (max-width: 720px) {
  .ms-site,
  .m2s-site {
    --ms-corner-thumb: 14px;
    --ms-corner-media: 20px;
    --ms-corner-panel: 20px;
    --ms-corner-field: 12px;
    --ms-corner-control: 14px;
  }
}
