/* WebXtent v0.8.53 — Responsive Phase 3.
 * Scope: Capabilities + About + Insights (+ insight reader).
 * Goal: deliberate tablet/mobile composition, touch-safe controls, readable type,
 *       reduced vertical bulk and no desktop-only assumptions.
 * Loaded after v0.8.52 and intentionally scoped to these scenes.
 */

/* -------------------------------------------------------------------------
 * TABLET / COMPACT LAPTOP — shared scene safeguards
 * ---------------------------------------------------------------------- */
@media (max-width:1024px){
  :where(.wxt-capabilities-reference,.wxt-about-main--reference,.wxt-insights-main,.wxt-insight-reader){
    overflow-x:hidden;
  }
  :where(.wxt-capabilities-reference,.wxt-about-main--reference,.wxt-insights-main,.wxt-insight-reader)
  :where(a,button,[role="button"]){
    -webkit-tap-highlight-color:transparent;
  }

  /* ---------------- Capabilities ---------------- */
  .wxt-capabilities-reference .wxt-capabilities-ref{
    padding-top:118px!important;
    padding-bottom:84px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__shell{
    width:min(880px,calc(100% - 44px))!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__intro{
    margin-bottom:42px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__intro h1{
    font-size:clamp(48px,8vw,72px)!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__intro-copy{
    margin-top:14px!important;
    font-size:16px!important;
    line-height:1.62!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__mosaic{
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
  }
  .wxt-capabilities-reference .wxt-service-card--hero,
  .wxt-capabilities-reference .wxt-service-card--copy{
    grid-column:1/-1!important;
  }
  .wxt-capabilities-reference .wxt-service-card--hero{
    min-height:420px!important;
  }
  .wxt-capabilities-reference .wxt-service-card--copy{
    min-height:0!important;
    border-radius:18px!important;
    border:1px solid rgba(22,28,32,.065)!important;
    background:#f7f6f3!important;
  }
  .wxt-capabilities-reference .wxt-service-card--split-a,
  .wxt-capabilities-reference .wxt-service-card--split-b{
    grid-column:auto!important;
    min-height:360px!important;
  }
  .wxt-capabilities-reference .wxt-service-card--split-a{
    display:flex!important;
    flex-direction:column!important;
  }
  .wxt-capabilities-reference .wxt-service-card--split-a .wxt-service-card__body{order:0!important}
  .wxt-capabilities-reference .wxt-service-card--split-a .wxt-service-card__media--lower{
    order:1!important;
    min-height:210px!important;
    height:210px!important;
  }
  .wxt-capabilities-reference .wxt-service-card__button{
    min-height:44px!important;
    padding:0 16px!important;
  }
  .wxt-capabilities-reference .wxt-service-card__plus{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing{
    min-height:440px!important;
    border-radius:24px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing-copy{
    width:min(480px,70%)!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing-action{
    min-height:44px!important;
    padding:0 16px!important;
  }

  /* ---------------- About ---------------- */
  .wxt-about-ref__shell{width:min(900px,calc(100% - 44px))!important}
  .wxt-about-ref--vision{padding-top:112px!important}
  .wxt-about-ref__vision-grid{gap:30px!important}
  .wxt-about-ref__intro{max-width:680px!important}
  .wxt-about-ref__intro h1{font-size:clamp(46px,7vw,64px)!important}
  .wxt-about-ref__media-deck{gap:14px!important}
  .wxt-about-ref__media-card--primary,
  .wxt-about-ref__media-card--secondary{height:clamp(340px,46vw,470px)!important}
  .wxt-about-ref--story>.wxt-about-ref__shell{padding:34px!important}
  .wxt-about-ref__profile-grid{grid-template-columns:minmax(0,1.7fr) minmax(250px,.9fr)!important}
  .wxt-about-ref__story-media,.wxt-about-ref__director{min-height:300px!important}
  .wxt-about-ref__metrics{gap:10px!important}
  .wxt-about-ref__metric{min-height:74px!important;padding:14px 18px!important}
  .wxt-about-ref__specialisation-grid{grid-template-columns:1fr 1fr!important}
  .wxt-about-ref__action,.wxt-about-ref__director-action{min-height:44px!important}

  /* ---------------- Insights ---------------- */
  .wxt-insights-shell{width:min(900px,calc(100% - 44px))!important}
  .wxt-insights-hero__inner{
    padding:126px 0 76px!important;
    gap:30px!important;
  }
  .wxt-insights-hero h1{font-size:clamp(58px,9vw,82px)!important}
  .wxt-insights-hero__aside>p{font-size:17px!important;line-height:1.65!important}
  .wxt-insights-categories{margin-top:24px!important}
  .wxt-insights-categories span{min-height:36px!important;padding:8px 14px!important}
  .wxt-insights-library{padding:82px 0!important}
  .wxt-insights-library__heading{margin-bottom:42px!important}
  .wxt-insights-feature{border-radius:20px!important}
  .wxt-insights-feature__media{min-height:390px!important}
  .wxt-insights-feature__copy{padding:42px!important}
  .wxt-insights-feature__copy h3{font-size:clamp(46px,7vw,64px)!important}
  .wxt-insights-grid{gap:16px!important}
  .wxt-insight-card{min-height:420px!important}
  .wxt-insight-card__body{padding:26px!important}
  .wxt-insights-next__inner{padding:86px 0!important}
  .wxt-insights-next h2{font-size:clamp(54px,8vw,76px)!important}

  .wxt-insight-reader__hero{padding:126px 0 72px!important}
  .wxt-insight-reader__hero h1{font-size:clamp(54px,8.5vw,80px)!important}
  .wxt-insight-reader__media{width:calc(100% - 44px)!important;aspect-ratio:16/9!important}
  .wxt-insight-reader__body{width:min(calc(100% - 52px),720px)!important}
  .wxt-insight-reader__next-inner{gap:26px!important}
}

/* -------------------------------------------------------------------------
 * PHONE — scene-specific compositions
 * ---------------------------------------------------------------------- */
@media (max-width:767px){
  /* ---------------- Capabilities ---------------- */
  .wxt-capabilities-reference .wxt-capabilities-ref{
    padding:94px 0 60px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__shell{
    width:calc(100% - 28px)!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__intro{
    margin-bottom:30px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__eyebrow{
    margin-bottom:10px!important;
    font-size:9px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__intro h1{
    font-size:clamp(42px,13vw,56px)!important;
    line-height:.95!important;
    max-width:10ch!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__intro-copy{
    max-width:34ch!important;
    margin-top:14px!important;
    font-size:15px!important;
    line-height:1.55!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__mosaic{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    margin-bottom:44px!important;
  }
  .wxt-capabilities-reference .wxt-service-card{
    min-height:0!important;
    border-radius:18px!important;
  }
  .wxt-capabilities-reference .wxt-service-card--hero{
    min-height:0!important;
  }
  .wxt-capabilities-reference .wxt-service-card__body,
  .wxt-capabilities-reference .wxt-service-card__body--feature,
  .wxt-capabilities-reference .wxt-service-card__body--copy{
    padding:22px!important;
  }
  .wxt-capabilities-reference .wxt-service-card h2{
    font-size:clamp(26px,7.5vw,34px)!important;
  }
  .wxt-capabilities-reference .wxt-service-card p:not(.wxt-service-card__index){
    display:block!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
    font-size:13px!important;
    line-height:1.55!important;
  }
  .wxt-capabilities-reference .wxt-service-card__media--feature{
    min-height:240px!important;
    aspect-ratio:16/10!important;
  }
  .wxt-capabilities-reference .wxt-service-card--split-a .wxt-service-card__media--lower,
  .wxt-capabilities-reference .wxt-service-card--split-b .wxt-service-card__media--lower,
  .wxt-capabilities-reference .wxt-service-card__media--lower{
    height:220px!important;
    min-height:220px!important;
  }
  .wxt-capabilities-reference .wxt-service-card__plus{
    right:14px!important;top:14px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing{
    min-height:430px!important;
    border-radius:20px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing-copy{
    left:22px!important;right:22px!important;bottom:24px!important;top:auto!important;
    width:auto!important;transform:none!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing h2{
    font-size:clamp(38px,11vw,52px)!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing-copy>p:not(.wxt-capabilities-ref__closing-eyebrow){
    font-size:14px!important;line-height:1.55!important;
  }

  /* ---------------- About ---------------- */
  .wxt-about-ref__shell{width:calc(100% - 28px)!important}
  .wxt-about-ref--vision{padding:92px 0 40px!important}
  .wxt-about-ref__intro:before{
    overflow:hidden!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }
  .wxt-about-ref__intro .wxt-about-ref__lede{font-size:13px!important;line-height:1.5!important}
  .wxt-about-ref__intro h1{font-size:clamp(40px,12vw,54px)!important}
  .wxt-about-ref__intro .wxt-about-ref__action{margin-top:16px!important}

  /* Two opening media cards become a swipeable editorial rail instead of a very tall stack. */
  .wxt-about-ref__media-deck{
    display:flex!important;
    gap:10px!important;
    margin-right:-14px!important;
    padding-right:14px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:none!important;
  }
  .wxt-about-ref__media-deck::-webkit-scrollbar{display:none!important}
  .wxt-about-ref__media-card--primary,
  .wxt-about-ref__media-card--secondary{
    flex:0 0 min(82vw,360px)!important;
    width:min(82vw,360px)!important;
    height:min(112vw,440px)!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
  }
  .wxt-about-ref--story{padding:20px 0 26px!important}
  .wxt-about-ref--story>.wxt-about-ref__shell{padding:24px 14px!important;border-radius:20px!important}
  .wxt-about-ref__statement{text-align:left!important;margin-bottom:22px!important}
  .wxt-about-ref__statement h2{font-size:clamp(30px,9vw,42px)!important}
  .wxt-about-ref__profile-grid{grid-template-columns:1fr!important;gap:12px!important}
  .wxt-about-ref__story-media{min-height:260px!important}
  .wxt-about-ref__director{padding:14px!important}
  .wxt-about-ref__director-photo{aspect-ratio:16/9!important}
  .wxt-about-ref__director h3{font-size:24px!important}
  .wxt-about-ref__director-bio{font-size:12px!important;line-height:1.5!important;-webkit-line-clamp:4!important}
  .wxt-about-ref__metrics{gap:8px!important}
  .wxt-about-ref__metric{
    grid-template-columns:minmax(0,1fr) auto!important;
    min-height:70px!important;
    padding:12px 14px!important;
  }
  .wxt-about-ref__metric strong{font-size:10px!important}
  .wxt-about-ref__metric span{font-size:9px!important;line-height:1.35!important}
  .wxt-about-ref__metric b{font-size:30px!important}
  .wxt-about-ref__specialisation-grid{grid-template-columns:1fr!important;border-radius:18px!important}
  .wxt-about-ref__specialisation-copy{padding:28px 20px 30px!important}
  .wxt-about-ref__specialisation-copy:before{margin-bottom:22px!important}
  .wxt-about-ref__specialisation-copy h2{font-size:clamp(34px,10vw,46px)!important}
  .wxt-about-ref__specialisation-copy>p:not(.wxt-about-ref__eyebrow){font-size:13px!important;line-height:1.5!important}
  .wxt-about-ref__specialisation-media{min-height:300px!important}

  /* ---------------- Insights ---------------- */
  .wxt-insights-shell{width:calc(100% - 28px)!important}
  .wxt-insights-hero__inner{padding:96px 0 58px!important;gap:22px!important}
  .wxt-insights-hero h1{font-size:clamp(46px,14vw,62px)!important;line-height:.94!important}
  .wxt-insights-hero__aside>p{font-size:15px!important;line-height:1.55!important}
  .wxt-insights-categories{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    gap:8px!important;
    margin:20px -14px 0 0!important;
    padding-right:14px!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
  }
  .wxt-insights-categories::-webkit-scrollbar{display:none!important}
  .wxt-insights-categories span{
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:8px 13px!important;
    scroll-snap-align:start!important;
  }
  .wxt-insights-library{padding:64px 0!important}
  .wxt-insights-library__heading{margin-bottom:28px!important}
  .wxt-insights-library__heading h2{font-size:clamp(42px,12vw,56px)!important}
  .wxt-insights-feature{border-radius:18px!important}
  .wxt-insights-feature__media{min-height:0!important;aspect-ratio:16/10!important}
  .wxt-insights-feature__copy{padding:26px 22px 30px!important}
  .wxt-insights-feature__copy h3{font-size:clamp(38px,11vw,50px)!important}
  .wxt-insights-feature__copy>p{margin-top:18px!important;font-size:14px!important;line-height:1.58!important}
  .wxt-insights-feature__copy .wxt-home-link{margin-top:24px!important;min-height:44px!important}

  /* Insight cards become a touch carousel so the library stays compact. */
  .wxt-insights-grid{
    display:flex!important;
    gap:12px!important;
    margin:24px -14px 0 0!important;
    padding:0 14px 8px 0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:none!important;
  }
  .wxt-insights-grid::-webkit-scrollbar{display:none!important}
  .wxt-insight-card{
    flex:0 0 min(86vw,350px)!important;
    width:min(86vw,350px)!important;
    min-height:420px!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
    border-radius:18px!important;
  }
  .wxt-insight-card__body{padding:22px!important}
  .wxt-insight-card h3{font-size:clamp(30px,8.5vw,38px)!important}
  .wxt-insight-card p{font-size:13px!important;line-height:1.58!important}
  .wxt-insights-empty{padding:30px 22px!important;border-radius:18px!important}
  .wxt-insights-empty h3{font-size:clamp(36px,10vw,48px)!important}
  .wxt-insights-next__inner{padding:72px 0!important}
  .wxt-insights-next h2{font-size:clamp(46px,13vw,60px)!important}
  .wxt-insights-next__inner>p{margin:22px 0 28px!important;font-size:15px!important;line-height:1.6!important}

  /* Reader: comfortable line length, compact media, stacked next action. */
  .wxt-insight-reader__hero{padding:98px 0 54px!important}
  .wxt-insight-reader__back{margin-bottom:28px!important;min-height:44px!important}
  .wxt-insight-reader__hero h1{font-size:clamp(44px,13vw,60px)!important;line-height:.95!important}
  .wxt-insight-reader__lede{margin-top:22px!important;font-size:16px!important;line-height:1.6!important}
  .wxt-insight-reader__media{width:calc(100% - 20px)!important;border-radius:14px!important;aspect-ratio:4/3!important}
  .wxt-insight-reader__body{width:calc(100% - 30px)!important;padding:54px 0!important;font-size:16px!important;line-height:1.75!important}
  .wxt-insight-reader__body h2{font-size:clamp(34px,10vw,46px)!important;margin:48px 0 18px!important}
  .wxt-insight-reader__body h3{font-size:clamp(28px,8vw,36px)!important;margin:40px 0 16px!important}
  .wxt-insight-reader__body blockquote{margin:38px 0!important;padding-left:20px!important;font-size:clamp(27px,8vw,36px)!important}
  .wxt-insight-reader__next{padding:60px 0!important}
  .wxt-insight-reader__next h2{font-size:clamp(40px,11vw,54px)!important}
  .wxt-insight-reader__actions{width:100%!important;gap:12px!important}
  .wxt-insight-reader__actions :where(a,button){min-height:46px!important}
}

/* -------------------------------------------------------------------------
 * NARROW PHONE — final parity / no-crop guardrails
 * ---------------------------------------------------------------------- */
@media (max-width:420px){
  .wxt-capabilities-reference .wxt-capabilities-ref__shell,
  .wxt-about-ref__shell,
  .wxt-insights-shell{width:calc(100% - 24px)!important}

  .wxt-capabilities-reference .wxt-service-card__media--feature,
  .wxt-capabilities-reference .wxt-service-card__media--lower{
    min-height:200px!important;height:200px!important;
  }
  .wxt-capabilities-reference .wxt-capabilities-ref__closing{min-height:400px!important}

  .wxt-about-ref__media-card--primary,
  .wxt-about-ref__media-card--secondary{flex-basis:84vw!important;width:84vw!important}
  .wxt-about-ref__metric{gap:8px!important}
  .wxt-about-ref__metric b{font-size:27px!important}

  .wxt-insight-card{flex-basis:88vw!important;width:88vw!important}
  .wxt-insights-feature__copy{padding:24px 20px 28px!important}
}

/* Touch devices should not depend on hover-only motion for affordance. */
@media (hover:none) and (pointer:coarse){
  .wxt-capabilities-reference .wxt-service-card__button:hover,
  .wxt-capabilities-reference .wxt-service-card__plus:hover,
  .wxt-about-ref__media-card:hover .wxt-about-ref__media img,
  .wxt-insight-card:hover,
  .wxt-insight-card:hover .wxt-insight-card__media img,
  .wxt-insights-feature__media:hover img{
    transform:none!important;
  }
}

@media (prefers-reduced-motion:reduce){
  .wxt-about-ref__media-deck,
  .wxt-insights-grid,
  .wxt-insights-categories{scroll-behavior:auto!important}
}
