/* HADS V36 — HOME MOBILE / TABLET PREMIUM REFINEMENT ONLY
   Scope strictly <=1024px. Desktop remains untouched. */

/* New process photos exist in markup but are invisible on desktop. */
.process-thumb{display:none}

@media (max-width:1024px){
  /* ---------------------------------------------------------
     HERO — premium mobile/tablet composition
     --------------------------------------------------------- */
  #homeHero.hero{
    overflow:hidden!important;
  }
  #homeHero .hero-slides{
    filter:none!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
  }
  #homeHero .hero-slide{
    filter:saturate(.92) contrast(1.04)!important;
    transform:none!important;
  }
  #homeHero .hero-slide::after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    background:linear-gradient(180deg,rgba(10,10,15,.10) 0%,rgba(13,11,18,.42) 34%,rgba(15,12,19,.90) 100%)!important;
    pointer-events:none!important;
  }

  /* Chapter navigation behaves like touch UI, not desktop tabs. */
  #homeHero .home-path{
    position:relative!important;
    inset:auto!important;
    height:auto!important;
    padding:18px 14px 22px!important;
    background:linear-gradient(180deg,#fff 0%,#faf7fc 100%)!important;
    border:0!important;
    overflow:visible!important;
  }
  #homeHero .home-path-inner{
    width:100%!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
    padding:0!important;
    overflow:visible!important;
  }
  #homeHero .home-path a{
    width:auto!important;
    min-width:0!important;
    min-height:92px!important;
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:12px!important;
    align-items:center!important;
    padding:12px!important;
    border-radius:22px!important;
    border:1px solid #e8deed!important;
    background:linear-gradient(145deg,#fff,#f7f2fa)!important;
    box-shadow:0 7px 0 #e1d6e7,0 16px 30px rgba(64,43,76,.10)!important;
    transform:none!important;
    text-align:left!important;
  }
  #homeHero .home-path a b{
    grid-row:1/3!important;
    width:46px!important;
    height:46px!important;
    margin:0!important;
    border-radius:15px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:linear-gradient(145deg,#a65bc5,#70408a)!important;
    color:#fff!important;
    font-size:13px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 14px rgba(91,52,108,.22)!important;
  }
  #homeHero .home-path a span{
    font-size:11px!important;
    line-height:1.15!important;
    letter-spacing:0!important;
    text-transform:none!important;
    color:#302934!important;
    white-space:normal!important;
  }
  #homeHero .home-path a small{
    display:block!important;
    margin:3px 0 0!important;
    font-size:8px!important;
    line-height:1.2!important;
    letter-spacing:.03em!important;
    text-transform:none!important;
    color:#8d8292!important;
    white-space:normal!important;
  }
  #homeHero .home-path a::before,
  #homeHero .home-path a::after{display:none!important}

  /* ---------------------------------------------------------
     HOME EXPERTISE PROCESS — reuse the actual Expertise photos
     --------------------------------------------------------- */
  #from-idea .process{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
  #from-idea .process-item{
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
    display:grid!important;
    grid-template-columns:112px minmax(0,1fr)!important;
    grid-template-rows:auto auto 1fr!important;
    column-gap:14px!important;
    align-items:center!important;
    border-radius:24px!important;
    background:#fff!important;
    border:1px solid #e8deec!important;
    box-shadow:0 8px 0 #e0d5e6,0 18px 32px rgba(63,41,73,.10)!important;
  }
  #from-idea .process-thumb{
    display:block!important;
    grid-row:1/4!important;
    width:112px!important;
    height:100%!important;
    min-height:132px!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:22px 0 0 22px!important;
  }
  #from-idea .process-item small{
    margin:16px 14px 0 0!important;
    font-size:10px!important;
    letter-spacing:.18em!important;
    color:#8d55aa!important;
  }
  #from-idea .process-item h3{
    margin:6px 14px 0 0!important;
    font-size:18px!important;
    line-height:1.08!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  #from-idea .process-item p{
    margin:7px 14px 16px 0!important;
    font-size:10.5px!important;
    line-height:1.45!important;
    color:#746d78!important;
  }
}

@media (max-width:700px){
  /* ---------------------------------------------------------
     PHONE HERO — compact and premium, no giant broken words
     --------------------------------------------------------- */
  #homeHero.hero{
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    background:#121018!important;
  }
  #homeHero .hero-slides{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    border-radius:0!important;
    z-index:0!important;
  }
  #homeHero .hero-slide{
    border-radius:0!important;
    background-position:62% center!important;
  }
  #homeHero .hero-content-wrap{
    position:relative!important;
    z-index:2!important;
    min-height:0!important;
    height:auto!important;
    width:100%!important;
    padding:28px 18px 32px!important;
    display:block!important;
  }
  #homeHero .hero-copy{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:22px 20px 20px!important;
    border-radius:28px!important;
    background:linear-gradient(160deg,rgba(20,16,25,.86),rgba(20,16,25,.62))!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 22px 56px rgba(0,0,0,.28)!important;
    backdrop-filter:blur(7px)!important;
    -webkit-backdrop-filter:blur(7px)!important;
  }
  #homeHero .hero-experience{
    display:inline-grid!important;
    width:auto!important;
    max-width:100%!important;
    margin:0 0 13px!important;
    padding:9px 12px!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.15)!important;
    box-shadow:none!important;
  }
  #homeHero .hero-experience strong{
    font-size:26px!important;
    line-height:1!important;
    letter-spacing:-.04em!important;
    color:#fff!important;
  }
  #homeHero .hero-experience span{
    margin-top:4px!important;
    font-size:7.5px!important;
    line-height:1.25!important;
    letter-spacing:.12em!important;
    color:#dcd3e0!important;
  }
  #homeHero .hero-title,
  #homeHero .hero-title-fixed{
    margin:0 0 13px!important;
    max-width:100%!important;
    font-size:clamp(29px,8.1vw,37px)!important;
    line-height:.98!important;
    letter-spacing:-.045em!important;
    text-wrap:balance!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  #homeHero .hero-title-premium,
  #homeHero .hero-title-strong,
  #homeHero .hero-title-accent{
    display:block!important;
    font-size:inherit!important;
    line-height:inherit!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  #homeHero .hero-title-premium,
  #homeHero .hero-title-strong{color:#fff!important}
  #homeHero .hero-title-accent{
    margin-top:4px!important;
    color:#c26ce2!important;
    font-family:"Syne",sans-serif!important;
    font-style:normal!important;
  }
  #homeHero .hero-description{
    margin:0 0 15px!important;
    max-width:100%!important;
    font-size:12.5px!important;
    line-height:1.48!important;
    color:#eee9f0!important;
  }
  #homeHero .hero-process-line{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin:0 0 16px!important;
  }
  #homeHero .hero-process-line i{display:none!important}
  #homeHero .hero-process-line span{
    min-height:30px!important;
    padding:6px 10px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.93)!important;
    color:#62456f!important;
    font-size:8.5px!important;
    font-weight:800!important;
    line-height:1.05!important;
    box-shadow:0 5px 12px rgba(0,0,0,.12)!important;
  }
  #homeHero .hero-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin:0!important;
  }
  #homeHero .hero-actions a{
    min-height:58px!important;
    width:100%!important;
    padding:11px 10px!important;
    border-radius:17px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    font-size:8.7px!important;
    line-height:1.2!important;
    white-space:normal!important;
  }
  #homeHero .hero-nav{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    margin:14px 0 0!important;
    padding:0!important;
    background:transparent!important;
    display:flex!important;
    justify-content:center!important;
    gap:7px!important;
  }
  #homeHero .hero-dot{
    width:28px!important;
    height:7px!important;
    min-width:0!important;
    padding:0!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.22)!important;
    font-size:0!important;
  }
  #homeHero .hero-dot.active{background:#b95bd8!important}
  #homeHero .hero-progress{display:none!important}

  /* Phone chapter cards: complete 2-column tiles, no half cards. */
  #homeHero .home-path{
    padding:17px 16px 24px!important;
  }
  #homeHero .home-path-inner{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  #homeHero .home-path a{
    min-height:88px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:9px!important;
    padding:12px!important;
  }
  #homeHero .home-path a b{
    width:38px!important;
    height:38px!important;
    border-radius:13px!important;
    font-size:11px!important;
  }
  #homeHero .home-path a span{
    font-size:10.5px!important;
    line-height:1.15!important;
  }
  #homeHero .home-path a small{display:none!important}

  /* Process cards become visual touch cards on phones. */
  #from-idea .expertise-grid{
    display:block!important;
  }
  #from-idea .expertise-visual{
    height:360px!important;
    margin-bottom:22px!important;
    border-radius:28px!important;
  }
  #from-idea .process{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  #from-idea .process-item{
    grid-template-columns:108px minmax(0,1fr)!important;
    border-radius:23px!important;
  }
  #from-idea .process-thumb{
    width:108px!important;
    min-height:138px!important;
    border-radius:21px 0 0 21px!important;
  }
  #from-idea .process-item h3{
    font-size:17px!important;
  }
  #from-idea .process-item p{
    font-size:10.5px!important;
  }
}

@media (max-width:390px){
  #homeHero .hero-actions{grid-template-columns:1fr!important}
  #homeHero .hero-title,#homeHero .hero-title-fixed{font-size:28px!important}
  #homeHero .home-path a{min-height:84px!important}
}
