/* =====================================================================
   DV Soft - space utilisation for /about and /team only.
   Loaded via $extraHead after site.css + pages.css; every rule is scoped
   to the page wrappers .sp-about / .sp-team so shared pages are untouched.
   Scale (8px based): band 72 desktop / ~56 tablet / 44 mobile,
   heading block -> content 32-40, grid gap 24 (16 mobile).
   ===================================================================== */

/* ---- Rhythm ---------------------------------------------------------- */
:is(.sp-about, .sp-team) .band { padding: clamp(44px, 2.6vw + 33px, 72px) 0; }
:is(.sp-about, .sp-team) > .section-sm { padding: clamp(32px, 1.5vw + 24px, 48px) 0 clamp(44px, 2vw + 32px, 64px); }
:is(.sp-about, .sp-team) .section-head { margin-bottom: clamp(28px, 1vw + 22px, 40px); }
:is(.sp-about, .sp-team) .section-head h2 { margin-bottom: 12px; }
:is(.sp-about, .sp-team) .mgrid { gap: 24px; }
:is(.sp-about, .sp-team) .feature-split { gap: clamp(28px, 3vw + 8px, 56px); }
:is(.sp-about, .sp-team) .feature-copy h2 { margin-bottom: 14px; }
:is(.sp-about, .sp-team) .feature-copy .lead { margin-bottom: 14px; }

/* Heroes: less air above the breadcrumb and below the actions */
:is(.sp-about, .sp-team) .page-hero { padding-top: clamp(24px, 1.5vw + 16px, 44px); padding-bottom: clamp(36px, 2vw + 24px, 56px); }
:is(.sp-about, .sp-team) .breadcrumbs { margin-bottom: 18px; }
:is(.sp-about, .sp-team) .page-hero h1 { margin-bottom: 12px; }
:is(.sp-about, .sp-team) .page-hero .hero-actions { margin-top: 24px; }

/* Steps: number beside the heading instead of on its own row */
:is(.sp-about, .sp-team) .steps { gap: 16px; }
:is(.sp-about, .sp-team) .steps .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-content: start; padding: 22px 24px; }
:is(.sp-about, .sp-team) .steps .step .step-num { grid-row: 1; margin: 0; align-self: center; }
:is(.sp-about, .sp-team) .steps .step h3 { grid-column: 2; margin: 0; align-self: center; }
:is(.sp-about, .sp-team) .steps .step p { grid-column: 1 / -1; margin-top: 10px; }

/* Dark 24/7 band: tighter tiles */
:is(.sp-about, .sp-team) .support-clock { gap: 12px; }
:is(.sp-about, .sp-team) .support-clock div { padding: 20px 22px; }
:is(.sp-about, .sp-team) .support-band .hero-actions { margin-top: 22px; }

/* ======================================================================
   ABOUT
   ====================================================================== */

/* Hero photo: wide, short banner */
.sp-about .hero-figure { margin-top: clamp(24px, 1.5vw + 16px, 40px); }
.sp-about .hero-figure img { aspect-ratio: 7 / 2; object-position: center 30%; }
@media (max-width: 900px) { .sp-about .hero-figure img { aspect-ratio: 5 / 2; } }
@media (max-width: 520px) { .sp-about .hero-figure img { aspect-ratio: 16 / 9; } }

/* Jump links: a slim strip, not a full band */
.sp-about .sp-jump { padding: clamp(24px, 1vw + 18px, 36px) 0; border-bottom: 1px solid #ebe6f0; }
.sp-about .sp-jump .link-row { gap: 16px 32px; }
.sp-about .sp-jump .link-row a { margin-bottom: 4px; font-size: 1.15rem; }
.sp-about .sp-jump .link-row p { font-size: .95rem; line-height: 1.5; }
@media (max-width: 640px) {
  .sp-about .sp-jump { padding: 16px 0; }
  .sp-about .sp-jump .link-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .sp-about .sp-jump .link-row li { display: flex; }
  .sp-about .sp-jump .link-row a { display: flex; align-items: center; min-height: 44px; margin: 0; font-size: 1.02rem; }
  .sp-about .sp-jump .link-row p { display: none; }
}

/* Story: milestones card matches the copy column (no hole under it) */
.sp-about #story .feature-split { align-items: stretch; }
.sp-about #story .milestones { align-content: space-between; }
.sp-about .milestones li { padding: 14px 0; }

/* Mission + vision stacked beside the belief/principles card */
.sp-about .sp-mvb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.sp-about .sp-mvb-stack { display: grid; gap: 24px; }
.sp-about .statement { padding: clamp(24px, 1.5vw + 16px, 36px); }
.sp-about .statement .eyebrow { margin-bottom: 10px; }
.sp-about .statement p.statement-text { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.sp-about .statement p.statement-sub { margin-top: 12px; }
.sp-about .sp-belief { display: flex; flex-direction: column; }
.sp-about .sp-belief h3 { margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid #e4d8ec; font-size: 1.2rem; }
.sp-about .sp-belief .check-list { margin: 0; }
@media (max-width: 900px) { .sp-about .sp-mvb { grid-template-columns: minmax(0, 1fr); gap: 16px; } .sp-about .sp-mvb-stack { gap: 16px; } }

/* Two engines: shorter media, equal cards */
.sp-about #what-we-do .mcard-media { aspect-ratio: 21 / 9; }
.sp-about #what-we-do .mcard-body { padding: 20px 20px 14px; }
.sp-about #what-we-do .check-list { gap: 8px; margin-bottom: 20px; }

/* Execution proof: keep 2 columns on phones */
.sp-about .proof-grid { gap: 12px; }
.sp-about .proof { padding: clamp(18px, 1vw + 14px, 26px); }
@media (max-width: 400px) {
  .sp-about .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-about .proof b { font-size: 1.7rem; }
  .sp-about .proof > span { font-size: .9rem; }
}

/* Values + presence tiles */
.sp-about .tile { padding: clamp(20px, 1vw + 16px, 28px); }
.sp-about .tile .icon-badge { margin-bottom: 16px; }
.sp-about .presence { gap: 24px; }

/* Products: the filler tile closes the last-row hole */
.sp-about .sp-products { gap: 24px; }
.sp-products-more {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 1.5vw + 16px, 36px);
  border-radius: var(--radius-card, 24px); background: var(--tint-lavender, #f6f1f9); border: 1px solid #e4d8ec;
}
.sp-products-more .eyebrow { margin-bottom: 10px; }
.sp-products-more h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin: 0 0 16px; }
.sp-products-more .check-list { margin: 0 0 24px; }
.sp-products-more .mcard-actions { margin-top: 0; }

/* Testimonials: 3 cards in a 2-col grid -> last one spans the row */
@media (min-width: 681px) and (max-width: 1000px) {
  .sp-about .testimonial-grid > :nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sp-about .sp-products .product-summary { display: none; }
}

/* ======================================================================
   TEAM
   ====================================================================== */

/* Hero: mosaic a little shorter */
.sp-team .hero-mosaic-wrap .hero-mosaic img { aspect-ratio: 4 / 5; }
.sp-team .hero-panel.hero-mosaic-wrap { padding-bottom: 24px; }
@media (max-width: 960px) {
  .sp-team .ms-hero-split .hero-panel { margin-top: 28px; }
  .sp-team .hero-mosaic { margin-top: 0; gap: 12px; }
  .sp-team .hero-panel.hero-mosaic-wrap { padding-bottom: 0; }
  .sp-team .hero-mosaic-wrap .hero-mosaic img { aspect-ratio: 1 / 1; }
}

/* Capabilities: 4 x 3 on desktop, 2:1 media, compact bodies */
.sp-team .sp-caps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-team .sp-caps .mcard-media { aspect-ratio: 2 / 1; }
.sp-team .sp-caps .mcard-body { padding: 16px 14px 12px; }
.sp-team .sp-caps .mcard-title { font-size: clamp(1.08rem, 1rem + .25vw, 1.2rem); margin-bottom: 8px; }
.sp-team .sp-caps .mcard-text { font-size: .95rem; line-height: 1.5; margin-bottom: 4px; }
@media (max-width: 1180px) { .sp-team .sp-caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .sp-team .sp-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 540px)  { .sp-team .sp-caps { grid-template-columns: minmax(0, 1fr); } }

/* Inline data visuals (QA, migration, go-live) fill the same 2:1 box */
.sp-visual { background: var(--tint-lavender-2, #f1eaf6); }
.sp-visual svg { display: block; width: 100%; height: 100%; }

/* Dedicated-team roles: icon beside text, shorter tiles */
.sp-team .sp-roles .tile { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-content: start; padding: 22px 24px; }
.sp-team .sp-roles .tile .icon-badge { grid-row: 1 / span 2; margin: 0; }
.sp-team .sp-roles .tile h3 { margin: 2px 0 6px; font-size: 1.12rem; }
.sp-team .sp-roles .tile p { font-size: .97rem; }
@media (max-width: 900px) { .sp-team .sp-roles { gap: 16px; } }

/* No-handoff band: compact */
.sp-team .no-handoff-list { gap: 24px; }
.sp-team .no-handoff-list li { padding-top: 14px; }
@media (max-width: 900px) { .sp-team .no-handoff { gap: 20px; } .sp-team .no-handoff-list { gap: 16px; } }

/* Approach: 4 across, or 2 x 2 (never 3 + 1) */
.sp-team .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sp-team .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .sp-team .steps { grid-template-columns: minmax(0, 1fr); } }

/* Execution split: photo stretches to the copy height (no hole beside it) */
.sp-team .sp-exec { align-items: stretch; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.sp-team .sp-exec .feature-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.sp-team .sp-exec .rhythm { gap: 14px; margin-top: 20px; }
@media (max-width: 900px) {
  .sp-team .sp-exec { grid-template-columns: minmax(0, 1fr); }
  .sp-team .sp-exec .feature-media img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}

/* ======================================================================
   Phones: horizontal tiles (icon left) and tighter cards
   ====================================================================== */
@media (max-width: 640px) {
  :is(.sp-about, .sp-team) .mgrid, .sp-about .presence, .sp-about .sp-products { gap: 16px; }
  :is(.sp-about, .sp-team) .steps .step { padding: 18px 20px; }
  .sp-about .tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 20px; }
  .sp-about .tile > * { grid-column: 2; }
  .sp-about .tile > .icon-badge { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }
  .sp-about .tile h3 { margin-bottom: 6px; }
  .sp-about .presence-tag { margin-bottom: 4px; }
  .sp-team .sp-roles .tile { grid-template-columns: 44px minmax(0, 1fr); padding: 20px; }
  .sp-team .sp-roles .tile .icon-badge { width: 44px; height: 44px; }
  .sp-team .sp-exec .feature-media img { aspect-ratio: 2 / 1; }
}
