/* NUVIA Solutions — editorial mobile flow (Air reference, NUVIA assets).
   Scoped to the four /services/ detail pages that include this file.
   Desktop's pinned gallery, reveal choreography, navigation and footer stay intact. */
.nv-mobile-step-media { display:none; }

@media (max-width:820px) {
  /* One illustrated chapter per step: image -> heading -> text -> features. */
  .approach .story-shell {
    display:block !important;
    grid-template-columns:none !important;
    width:calc(100% - 36px) !important;
    max-width:660px !important;
    margin-inline:auto !important;
    padding:0 0 clamp(52px,10vw,76px) !important;
  }
  .approach .story-shell > .pinned {
    display:none !important;
  }
  .approach .story-shell > .steps {
    display:flex !important;
    flex-direction:column !important;
    gap:clamp(54px,10vw,82px) !important;
    width:100%;
    min-width:0;
    padding:0 !important;
    margin:0 !important;
  }
  .approach .story-shell .steps > article.step,
  .approach .story-shell .steps > article.step:first-child,
  .approach .story-shell .steps > article.step:last-child {
    display:block !important;
    position:relative;
    width:100%;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    opacity:1 !important;
    transform:none !important;
    translate:none !important;
    color:#16191c !important;
    justify-content:initial !important;
  }
  .approach .story-shell .steps > .step::before,
  .approach .story-shell .steps > .step::after {
    content:none !important;
    display:none !important;
  }

  .approach .steps .nv-mobile-step-media {
    display:block !important;
    width:100%;
    height:auto;
    aspect-ratio:1 / 1;
    padding:0;
    margin:0 0 clamp(23px,5vw,30px);
    border-radius:16px;
    overflow:hidden;
    background:#f4f5f6;
    isolation:isolate;
    box-shadow:0 1px 1px rgba(18,24,32,.035);
  }
  .approach .steps .nv-mobile-step-media > img {
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:contain !important; /* never crop the original NUVIA artwork */
    object-position:center center !important;
    border:0;
    transform:none !important;
  }

  /* Reference rhythm: an image card, a compact headline, then a readable caption. */
  .approach .story-shell .steps > .step .num {
    display:block !important;
    margin:0 0 10px !important;
    color:#6d7886 !important;
    font-size:10px !important;
    font-weight:650 !important;
    letter-spacing:.10em !important;
    opacity:1 !important;
    transform:none !important;
  }
  .approach .story-shell .steps > .step h3 {
    margin:0 0 13px !important;
    max-width:100% !important;
    font-size:clamp(25px,6.05vw,32px) !important;
    line-height:1.17 !important;
    font-weight:560 !important;
    letter-spacing:-.045em !important;
    color:#14181b !important;
    overflow-wrap:normal;
  }
  .approach .story-shell .steps > .step h3 em {
    font-size:1.035em !important;
    line-height:inherit !important;
    color:inherit !important;
  }
  .approach .story-shell .steps > .step p {
    width:100%;
    max-width:100% !important;
    margin:0 !important;
    color:#424b53 !important;
    font-size:clamp(14px,3.45vw,16px) !important;
    line-height:1.61 !important;
    letter-spacing:-.012em;
  }

  /* The old scroll-activated reveal was calibrated for 100vh steps.
     Make the now-natural document flow consistently readable on iOS/Android. */
  .approach .story-shell .steps .step-reveal,
  .approach .story-shell .steps .step-reveal > span {
    overflow:visible !important;
    opacity:1 !important;
    filter:none !important;
    transform:none !important;
    translate:none !important;
    transition:none !important;
    transition-delay:0ms !important;
  }
  .approach .story-shell .steps .step ul {
    display:block !important;
    width:100%;
    max-width:100% !important;
    position:static !important;
    top:auto !important;
    margin:20px 0 0 !important;
    padding:10px 0 0 !important;
    border-top:1px solid #edf0f2 !important;
    color:#46505a !important;
  }
  .approach .story-shell .steps .step ul > span {
    display:block !important;
  }
  .approach .story-shell .steps .step li {
    display:flex !important;
    align-items:center;
    gap:0;
    padding:9px 0 !important;
    font-size:12px !important;
    line-height:1.4 !important;
    color:#47515b !important;
    opacity:1 !important;
    filter:none !important;
    transform:none !important;
    transition:none !important;
  }
  .approach .story-shell .steps .step li:first-child { border-top:0 !important; }
  .approach .story-shell .steps .step li:last-child { border-bottom:0 !important; }
  .approach .story-shell .steps .step .feature-icon {
    flex:0 0 27px !important;
    width:27px !important;
    height:27px !important;
    margin-right:10px !important;
  }
  .approach .story-shell .steps .step .feature-icon svg {
    width:15px;
    height:15px;
  }
}
@media (max-width:360px) {
  .approach .story-shell {
    width:calc(100% - 30px) !important;
  }
  .approach .story-shell .steps > .step h3 { font-size:25px !important; }
  .approach .steps .nv-mobile-step-media { border-radius:13px; }
}

/* NUVIA — 2026-11-02: larger square story artwork on desktop/tablet.
   Leave the phone's editorial layout and all scrolling/slide logic intact. */
@media (min-width:821px) {
  .approach .story-shell {
    grid-template-columns:minmax(0,1.10fr) minmax(0,.90fr) !important;
    column-gap:clamp(34px,4.1vw,58px) !important;
  }
  .approach .story-shell > .pinned {
    width:min(100%,530px,calc(100svh - 160px)) !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    min-height:0 !important;
    max-height:none !important;
    justify-self:center !important;
    top:clamp(85px,calc((100svh - 480px)/2),190px) !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }
  /* Round the actual image: rounding the parent alone left square photo
     corners visually exposed inside the gallery's white background. */
  .approach .story-shell > .pinned .slide {
    border-radius:inherit !important;
    overflow:hidden !important;
  }
  .approach .story-shell > .pinned .slide img.nv-step-image {
    border-radius:inherit !important;
    overflow:hidden !important;
    object-fit:contain !important;
    object-position:center !important;
  }
}
/* Mobile imagery already uses a rounded frame; match its inner pixels too. */
@media (max-width:820px) {
  .approach .story-shell .nv-mobile-step-media > img {
    border-radius:inherit !important;
  }
}
