/* WebXtent v0.8.52 — Responsive Phase 2.
 * Scope: global Header/Footer + Home + Developments.
 * Principle: compose for touch/tablet/mobile rather than shrinking desktop.
 * Loaded after v0.8.51 so it is the authoritative responsive layer only.
 */

/* -------------------------------------------------------------------------
 * TABLET / COMPACT LAPTOP — global chrome
 * ---------------------------------------------------------------------- */
@media (max-width:1024px){
  .wxt-header{
    width:calc(100% - 24px)!important;
    top:max(10px,env(safe-area-inset-top,0px))!important;
  }
  .wxt-header__inner{
    min-height:56px!important;
    height:56px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    padding:0 8px 0 12px!important;
    gap:8px!important;
  }
  .wxt-nav{display:none!important}
  .wxt-nav-collapse{display:none!important}
  .wxt-menu-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important}
  .wxt-header__actions{grid-column:auto!important;gap:7px!important}
  .wxt-header__scroll-meta{display:none!important}
  .wxt-header-search-field{display:none!important}
  .wxt-spotlight-trigger{display:grid!important}
  .wxt-action--header{min-height:42px!important}
  .wxt-mobile-menu{
    margin-top:8px!important;
    max-height:calc(100svh - 88px - env(safe-area-inset-bottom,0px))!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    border-radius:20px!important;
    background:linear-gradient(145deg,rgba(247,248,246,.92),rgba(229,236,239,.84))!important;
    border:1px solid rgba(255,255,255,.68)!important;
    box-shadow:0 24px 62px rgba(7,20,30,.18)!important;
    backdrop-filter:blur(26px) saturate(130%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(130%)!important;
  }
  .wxt-mobile-menu a{
    min-height:48px!important;
    display:flex!important;
    align-items:center!important;
    border-bottom:1px solid rgba(16,42,62,.08)!important;
  }
  .wxt-mobile-menu a:last-child{border-bottom:0!important}
}

/* -------------------------------------------------------------------------
 * HOME — tablet composition
 * ---------------------------------------------------------------------- */
@media (max-width:1024px){
  .wxt-home-normal-main{--wxt-home-gutter:28px;--wxt-home-section-pad:76px}

  /* Hero: keep image immersive but turn content into a single readable stack. */
  [data-wxt-home-scroll-story] .wxt-home-scroll__hero{
    width:calc(100% - 56px)!important;
    padding:122px 0 54px!important;
  }
  .wxt-home-scroll__hero-layout{
    grid-template-columns:1fr!important;
    align-content:end!important;
    gap:22px!important;
  }
  .wxt-home-scroll__hero-copy{max-width:min(720px,78vw)!important}
  .wxt-home-scroll__hero-copy h1{
    font-size:clamp(3.6rem,8.5vw,var(--wxt-hero-tablet-title,66px))!important;
    max-width:8.8ch!important;
  }
  .wxt-home-hero__promo{
    width:min(520px,72vw)!important;
    justify-self:start!important;
  }

  /* Welcome/editorial: cinematic image first, copy second. */
  .wxt-home-editorial{padding:76px 28px!important}
  .wxt-home-editorial__inner{grid-template-columns:1fr!important;gap:40px!important}
  .wxt-home-editorial__media{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/10!important;
  }
  .wxt-home-editorial__content{max-width:720px!important}

  /* Reference / Design baseline */
  .wxt-home-design-baseline__shell{width:calc(100% - 48px)!important}
  .wxt-home-design-baseline__interlude{
    margin-bottom:48px!important;
    min-height:min(var(--wxt-interlude-height,320px),300px)!important;
  }
  .wxt-home-design-baseline__intro{
    grid-template-columns:1fr!important;
    gap:20px!important;
    align-items:start!important;
  }
  .wxt-home-design-baseline__intro-copy{justify-self:start!important;max-width:640px!important}
  .wxt-home-design-baseline__propositions{
    display:grid!important;
    grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr)!important;
    gap:14px!important;
  }
  .wxt-home-design-baseline__propositions>.wxt-home-subscription--inline-card{
    grid-column:1/-1!important;
    min-height:auto!important;
  }
  .wxt-home-design-baseline__story{
    grid-template-columns:1fr!important;
    gap:30px!important;
    padding-top:48px!important;
  }
  .wxt-home-design-baseline__story-copy{max-width:680px!important}
  .wxt-home-design-baseline__feature{min-height:480px!important}

  /* Final CTA / client expectation section */
  .wxt-home-ref-proof__inner{width:calc(100% - 48px)!important}
  .wxt-home-ref-proof__card{max-width:760px!important}

  /* Legacy scenic CTA composition, when enabled. */
  .wxt-home-finale__inner{width:calc(100% - 48px)!important}
  .wxt-home-finale__panel{
    grid-template-columns:1fr!important;
    min-height:0!important;
  }
  .wxt-home-finale__panel-copy{padding:38px!important}
  .wxt-home-finale__panel-media{min-height:360px!important;order:2!important}

  /* Footer: brand above navigation at tablet. */
  .wxt-footer__inner{
    grid-template-columns:1fr!important;
    grid-template-areas:"brand" "nav" "legal"!important;
    gap:36px!important;
  }
  .wxt-footer__brand{max-width:620px!important}
}

/* -------------------------------------------------------------------------
 * DEVELOPMENTS — tablet composition
 * ---------------------------------------------------------------------- */
@media (max-width:1024px){
  .wxt-development-showcase{--wxt-dev-gutter:28px}
  .wxt-development-showcase__hero{min-height:100svh!important}
  .wxt-development-quick-search{
    top:88px!important;
    left:28px!important;
    width:min(320px,calc(100vw - 56px))!important;
  }
  .wxt-development-showcase__hero-copy{
    left:28px!important;
    right:28px!important;
    bottom:clamp(250px,31vh,330px)!important;
    max-width:min(58vw,560px)!important;
  }
  .wxt-development-project-wheel{max-width:100%!important;}
  .wxt-development-project-wheel__item--current{
    font-size:clamp(3.7rem,9vw,6rem)!important;
  }
  .wxt-development-showcase__project-carousel{
    left:28px!important;
    right:28px!important;
    bottom:20px!important;
    gap:12px!important;
  }
  .wxt-development-showcase__project-track{gap:10px!important}
  .wxt-development-stack-card{
    flex-basis:calc((100% - 20px)/3)!important;
    width:calc((100% - 20px)/3)!important;
    min-width:calc((100% - 20px)/3)!important;
  }
  .wxt-development-showcase__project-status{display:inline-flex!important}
}

/* -------------------------------------------------------------------------
 * PHONE — global header + touch-safe menu
 * ---------------------------------------------------------------------- */
@media (max-width:767px){
  html,body{max-width:100%;overflow-x:hidden}
  .wxt-header{
    width:calc(100% - 16px)!important;
    top:max(8px,env(safe-area-inset-top,0px))!important;
  }
  .wxt-header__inner{
    min-height:54px!important;
    height:54px!important;
    padding:0 6px 0 10px!important;
    border-radius:18px!important;
  }
  .wxt-header__brand-zone{min-width:0!important}
  .wxt-brand{gap:8px!important;min-width:0!important}
  .wxt-brand__logo{width:30px!important;height:auto!important;flex:0 0 auto!important}
  .wxt-brand__text{font-size:10px!important;line-height:1!important;white-space:nowrap!important}
  .wxt-header-admin-shortcut{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
  .wxt-spotlight-trigger,.wxt-menu-toggle{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  .wxt-header__actions{gap:4px!important}
  .wxt-action--header{display:none!important}
  .wxt-mobile-menu{padding:10px!important;border-radius:18px!important}
  .wxt-mobile-menu a{padding:12px 12px!important;font-size:.92rem!important}

  /* Home hero */
  .wxt-home-normal-main{--wxt-home-gutter:16px;--wxt-home-section-pad:58px}
  .wxt-home-normal-main .wxt-home-hero-story,
  .wxt-home-normal-main .wxt-home-hero-story .wxt-home-scroll__viewport{
    min-height:100svh!important;
    height:100svh!important;
  }
  [data-wxt-home-scroll-story] .wxt-home-scroll__hero{
    width:calc(100% - 28px)!important;
    padding:96px 0 calc(24px + env(safe-area-inset-bottom,0px))!important;
    align-items:end!important;
  }
  .wxt-home-scroll__hero-layout{gap:16px!important}
  .wxt-home-scroll__hero-copy{padding-left:0!important;max-width:none!important}
  .wxt-home-scroll__hero-copy h1{
    font-size:clamp(3rem,15vw,var(--wxt-hero-mobile-title,54px))!important;
    line-height:.92!important;
    max-width:8.6ch!important;
    margin-bottom:14px!important;
  }
  .wxt-home-scroll__hero-copy .wxt-lede{
    font-size:clamp(.9rem,4vw,var(--wxt-hero-mobile-body,15px))!important;
    line-height:1.48!important;
    max-width:34ch!important;
    margin-bottom:18px!important;
  }
  .wxt-home-hero__actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    width:min(100%,360px)!important;
    margin-bottom:0!important;
  }
  .wxt-home-hero__button{
    width:100%!important;
    min-height:48px!important;
    justify-content:space-between!important;
    padding:0 10px 0 18px!important;
  }
  .wxt-home-hero__button-badge{width:34px!important;height:34px!important}
  .wxt-home-hero__trust{display:none!important}
  .wxt-home-hero__promo{
    width:min(100%,360px)!important;
    grid-template-columns:92px 1fr!important;
    gap:11px!important;
    padding:10px!important;
    border-radius:20px!important;
  }
  .wxt-home-hero-story[style*="--wxt-hero-promo-mobile:0"] .wxt-home-hero__promo{display:none!important}
  .wxt-home-hero__promo-media{height:92px!important;border-radius:15px!important}
  .wxt-home-hero__promo-title{font-size:1rem!important}
  .wxt-home-hero__promo-text{display:none!important}
  .wxt-home-hero__promo-action{width:40px!important;height:40px!important}

  /* Home Welcome / editorial */
  .wxt-home-editorial{padding:54px 16px 58px!important}
  .wxt-home-editorial__inner{gap:26px!important}
  .wxt-home-editorial__media{aspect-ratio:4/3!important;border-radius:18px!important}
  .wxt-home-editorial__carousel-dots{left:12px!important;bottom:12px!important;transform:scale(.9);transform-origin:left bottom}
  .wxt-home-editorial h2{font-size:clamp(2.6rem,12.5vw,4rem)!important;max-width:11ch!important}
  .wxt-home-editorial__text{font-size:.94rem!important;line-height:1.55!important}
  .wxt-home-editorial__action{width:100%!important;justify-content:space-between!important}

  /* Home image interlude */
  .wxt-home-design-baseline__shell{width:calc(100% - 28px)!important}
  .wxt-home-design-baseline__interlude{
    min-height:420px!important;
    height:420px!important;
    border-radius:20px!important;
    margin-bottom:38px!important;
  }
  .wxt-home-design-baseline__interlude-track,
  .wxt-home-design-baseline__interlude-slide,
  .wxt-home-design-baseline__interlude-media{height:100%!important}
  .wxt-home-design-baseline__interlude-copy{
    left:18px!important;
    right:18px!important;
    bottom:56px!important;
    max-width:none!important;
  }
  .wxt-home-design-baseline__interlude-copy h3{font-size:clamp(2rem,11vw,3.3rem)!important;max-width:10ch!important}
  .wxt-home-design-baseline__interlude-copy p{
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    margin-bottom:14px!important;
    font-size:.9rem!important;
  }
  .wxt-home-design-baseline__interlude-copy a{min-height:42px!important;padding:0 16px!important}
  .wxt-home-design-baseline__interlude-controls{right:12px!important;bottom:10px!important;transform:scale(.86)!important}

  /* Reference section: one column, keep editorial hierarchy. */
  .wxt-home-design-baseline__intro{gap:16px!important;margin-bottom:28px!important}
  .wxt-home-design-baseline__intro h2{font-size:clamp(2.4rem,12vw,3.6rem)!important;max-width:10ch!important}
  .wxt-home-design-baseline__intro-copy{font-size:.94rem!important;line-height:1.5!important}
  .wxt-home-design-baseline__propositions{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .wxt-home-design-card,
  .wxt-home-subscription--inline-card{
    min-height:auto!important;
    border-radius:20px!important;
  }
  .wxt-home-design-card--feature{min-height:390px!important}
  .wxt-home-design-card--dark{min-height:220px!important}
  .wxt-home-subscription--inline-card{padding:16px!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__text{-webkit-line-clamp:3!important;font-size:.78rem!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__fields{grid-template-columns:1fr!important}
  .wxt-home-subscription--inline-card input[type="text"],
  .wxt-home-subscription--inline-card input[type="email"]{height:42px!important;min-height:42px!important;font-size:.86rem!important}
  .wxt-home-subscription--inline-card button[type="submit"]{height:42px!important;min-height:42px!important;font-size:.78rem!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__topics{grid-template-columns:1fr 1fr!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__topics label{min-height:30px!important;font-size:.72rem!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__frequency{grid-template-columns:1fr!important;gap:6px!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__frequency select{height:34px!important;min-height:34px!important;font-size:.76rem!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__consent{font-size:.68rem!important}

  .wxt-home-design-baseline__story{gap:22px!important;padding-top:36px!important}
  .wxt-home-design-baseline__story-copy h2{font-size:clamp(2.4rem,12vw,3.6rem)!important}
  .wxt-home-design-baseline__feature{min-height:440px!important;border-radius:22px!important}
  .wxt-home-design-baseline__feature-copy{padding:22px 20px 0!important}
  .wxt-home-design-baseline__feature-media{height:58%!important}

  /* Client expectation / closing band */
  .wxt-home-ref-proof__inner{width:calc(100% - 28px)!important;padding-inline:0!important}
  .wxt-home-ref-proof__eyebrow{font-size:.58rem!important}
  .wxt-home-ref-proof h2{font-size:clamp(2.4rem,12vw,3.6rem)!important;text-align:left!important}
  .wxt-home-ref-proof__card{
    display:grid!important;
    grid-template-columns:auto 1fr!important;
    gap:12px!important;
    padding:16px!important;
    border-radius:18px!important;
  }
  .wxt-home-ref-proof__card .wxt-home-ref-proof__action{
    grid-column:1/-1!important;
    width:100%!important;
    justify-content:space-between!important;
    margin-top:4px!important;
  }
  .wxt-home-ref-proof__gallery{
    margin-top:18px!important;
    margin-inline:-2px!important;
  }

  /* Legacy scenic CTA */
  .wxt-home-finale__inner{width:calc(100% - 28px)!important;padding-bottom:40px!important}
  .wxt-home-finale__panel{border-radius:22px!important}
  .wxt-home-finale__panel-copy{padding:26px 20px!important}
  .wxt-home-finale__panel h2{font-size:clamp(2.4rem,12vw,3.6rem)!important}
  .wxt-home-finale__panel-media{min-height:260px!important}
  .wxt-home-cta-action{width:100%!important;justify-content:space-between!important}

  /* Footer — single column, touch-friendly, no tiny desktop columns. */
  .wxt-home-finale .wxt-footer,
  body:not(.home) .wxt-footer,
  .wxt-footer{padding-left:16px!important;padding-right:16px!important}
  .wxt-footer__inner{
    padding:44px 0 calc(22px + env(safe-area-inset-bottom,0px))!important;
    gap:30px!important;
  }
  .wxt-footer__brand strong{font-size:2rem!important}
  .wxt-footer__brand p{font-size:.88rem!important}
  .wxt-footer__brand-contact{margin-top:18px!important}
  .wxt-footer__nav{
    grid-template-columns:1fr 1fr!important;
    gap:28px 20px!important;
  }
  .wxt-footer__column:last-child{grid-column:1/-1!important}
  .wxt-footer__column a{font-size:.9rem!important;line-height:1.45!important;padding-block:2px!important}
  .wxt-footer__legal{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:10px!important;
    font-size:.72rem!important;
  }

  /* Developments — mobile is a purpose-built touch composition. */
  .wxt-development-showcase{--wxt-dev-gutter:16px;padding-bottom:0!important}
  .wxt-development-showcase__hero{min-height:100svh!important;height:100svh!important}
  .wxt-development-showcase__hero-image{object-position:center center!important}
  .wxt-development-quick-search{
    top:78px!important;
    left:16px!important;
    right:16px!important;
    width:auto!important;
  }
  .wxt-development-quick-search__field{min-height:44px!important;border-radius:999px!important}
  .wxt-development-quick-search__field input{font-size:.86rem!important}

  .wxt-development-showcase__hero-copy{
    left:18px!important;
    right:18px!important;
    bottom:242px!important;
    max-width:none!important;
  }
  .wxt-development-project-wheel{
    max-width:100%!important;
    transform-origin:left center!important;
  }
  .wxt-development-project-wheel__item--previous,
  .wxt-development-project-wheel__item--next{
    font-size:clamp(.9rem,4vw,1.05rem)!important;
    max-width:80%!important;
  }
  .wxt-development-project-wheel__item--current{
    font-size:clamp(3.15rem,16vw,5rem)!important;
    line-height:.9!important;
    max-width:8.5ch!important;
  }
  .wxt-development-project-wheel__contrast{
    left:-18px!important;
    width:calc(100% + 36px)!important;
    height:calc(100% + 48px)!important;
    filter:blur(8px)!important;
  }

  .wxt-development-showcase__project-carousel{
    left:14px!important;
    right:14px!important;
    bottom:12px!important;
    gap:8px!important;
  }
  .wxt-development-showcase__project-carousel-bar{
    min-height:52px!important;
    gap:8px!important;
  }
  .wxt-development-showcase__project-carousel-label{gap:8px!important;font-size:.68rem!important;letter-spacing:.14em!important}
  .wxt-development-showcase__project-carousel-accent{width:28px!important}
  .wxt-development-project-wheel__dock{left:-2px!important;width:30px!important;height:96px!important;transform:translate(-100%,-50%)!important}
  .wxt-development-showcase__project-carousel-nav{gap:7px!important}
  .wxt-development-showcase__project-carousel-line{min-width:20px!important}
  .wxt-development-showcase__project-status{display:none!important}
  .wxt-development-carousel-toggle{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  .wxt-development-showcase__project-position{font-size:1.7rem!important;margin-left:2px!important}

  .wxt-development-showcase__project-track{
    gap:8px!important;
    padding:3px 0 7px!important;
    scroll-snap-type:x mandatory!important;
  }
  .wxt-development-stack-card{
    flex:0 0 min(72vw,260px)!important;
    width:min(72vw,260px)!important;
    min-width:min(72vw,260px)!important;
    height:clamp(180px,50vw,230px)!important;
    border-radius:16px!important;
    scroll-snap-align:start!important;
  }

  /* Auto-idle on touch keeps controls available instead of moving everything off-screen. */
  .wxt-development-showcase.is-gallery-idle .wxt-development-showcase__project-carousel{
    transform:translate3d(0,0,0)!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  .wxt-development-showcase.is-gallery-idle .wxt-development-showcase__project-track{
    opacity:0!important;
    visibility:hidden!important;
    max-height:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    transform:translate3d(0,22px,0)!important;
    pointer-events:none!important;
  }
  .wxt-development-showcase.is-gallery-active .wxt-development-showcase__project-track{
    opacity:1!important;
    visibility:visible!important;
    max-height:260px!important;
    transform:none!important;
    pointer-events:auto!important;
  }
  .wxt-development-gallery-reveal-zone{display:none!important}
  .wxt-development-showcase.is-gallery-idle .wxt-development-showcase__project-carousel-contrast{
    top:-16px!important;
    height:76px!important;
  }
  .wxt-development-showcase.is-gallery-manual-collapsed .wxt-development-showcase__project-track{
    opacity:0!important;visibility:hidden!important;max-height:0!important;pointer-events:none!important;
  }
  .wxt-development-gallery-compact-next{margin-left:8px!important}

  .wxt-whatsapp-chat{right:10px!important;bottom:max(10px,env(safe-area-inset-bottom,0px))!important}
}

@media (max-width:430px){
  .wxt-brand__text{display:none!important}
  .wxt-header__inner{padding-left:8px!important}
  .wxt-home-hero__promo{display:none!important}
  .wxt-home-scroll__hero-copy h1{font-size:clamp(2.8rem,15.5vw,4rem)!important}
  .wxt-home-design-baseline__shell{width:calc(100% - 20px)!important}
  .wxt-home-design-baseline__interlude{height:390px!important;min-height:390px!important}
  .wxt-home-subscription--inline-card .wxt-home-subscription__topics{grid-template-columns:1fr!important}
  .wxt-home-ref-proof__inner{width:calc(100% - 20px)!important}
  .wxt-footer__nav{grid-template-columns:1fr!important}
  .wxt-footer__column:last-child{grid-column:auto!important}

  .wxt-development-quick-search{left:10px!important;right:10px!important}
  .wxt-development-showcase__hero-copy{left:12px!important;right:12px!important;bottom:220px!important}
  .wxt-development-showcase__project-carousel{left:10px!important;right:10px!important}
  .wxt-development-showcase__project-carousel-line{display:none!important}
  .wxt-development-showcase__project-position{font-size:1.5rem!important}
  .wxt-development-stack-card{flex-basis:min(78vw,250px)!important;width:min(78vw,250px)!important;min-width:min(78vw,250px)!important}
}

@media (prefers-reduced-motion:reduce){
  .wxt-mobile-menu,
  .wxt-development-showcase__project-track{scroll-behavior:auto!important;transition:none!important}
}
