

/* Mobile-first refinement pass — approved direction */

/* Approved mobile header: brand first, no duplicate CTA */

/* Mobile header/content alignment — final structure */
@media(max-width:760px){
  /* Fixed header now has two rows: reserve the full height so page heroes never sit underneath it */
  .wp-site-blocks{
    padding-top:128px!important;
  }

  /* Keep the brand centered as the sole first-row focus */
  .artilyze-brand-logo{
    justify-content:center!important;
    text-align:center!important;
  }
  .artilyze-brand-logo img{
    margin-inline:auto!important;
  }

  /* Internal-page headings: slightly calmer than Home, preserving editorial character */
  .artilyze-subpage-hero h1,
  .artilyze-page-hero h1{
    font-size:clamp(40px,10.5vw,52px)!important;
    line-height:1.01!important;
    letter-spacing:-.04em!important;
  }

  /* Avoid excess air after correcting the fixed-header offset */
  .artilyze-subpage-hero{
    padding-top:48px!important;
  }
  .artilyze-page-hero{
    padding-top:48px!important;
  }
}

@media(max-width:390px){
  .wp-site-blocks{
    padding-top:124px!important;
  }
  .artilyze-subpage-hero h1,
  .artilyze-page-hero h1{
    font-size:clamp(38px,10.5vw,48px)!important;
  }
}

@media(max-width:760px){
  .artilyze-header-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    gap:0!important;
  }

  .artilyze-brand-logo{
    grid-column:1!important;
    grid-row:1!important;
    min-height:70px!important;
    width:100%!important;
    padding:0 18px!important;
    justify-content:center!important;
    align-items:center!important;
    background:#f4f0e8!important;
  }

  .artilyze-brand-logo img{
    width:188px!important;
    max-width:72vw!important;
    height:auto!important;
  }

  .artilyze-mobile-top-cta{
    display:none!important;
  }

  .artilyze-mobile-tabs{
    grid-column:1!important;
    grid-row:2!important;
    width:100%!important;
  }
}

@media(max-width:390px){
  .artilyze-brand-logo{
    min-height:66px!important;
    padding-inline:14px!important;
  }
  .artilyze-brand-logo img{
    width:178px!important;
  }
}

@media(max-width:760px){
  /* Header: preserve comfortable type and allow natural horizontal navigation */
  .artilyze-mobile-tabs{
    display:flex!important;
    width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-snap-type:x proximity;
    grid-template-columns:none!important;
  }
  .artilyze-mobile-tabs::-webkit-scrollbar{display:none!important}
  .artilyze-mobile-tabs a{
    flex:0 0 auto!important;
    min-width:104px!important;
    padding:0 14px!important;
    font-size:12px!important;
    line-height:1.2!important;
    scroll-snap-align:start;
  }
  .artilyze-mobile-tabs a:nth-child(2){min-width:146px!important}

  /* Contact: form first, company information second */
  .artilyze-contact-layout>div{
    order:1!important
  }
  .artilyze-contact-sidebar{
    order:2!important;
    margin-top:8px
  }

  /* About: crop portrait intentionally for mobile instead of letting it dominate */
  .artilyze-about-page .artilyze-framed-image{
    max-width:560px;
    margin:0 auto;
    padding:7px
  }
  .artilyze-about-page .artilyze-framed-image img{
    width:100%!important;
    aspect-ratio:4/5!important;
    height:auto!important;
    object-fit:cover!important;
    object-position:center 24%!important;
  }

  /* Art: quieter first artwork scale, followed quickly by the interior view */
  .artilyze-art-page .artilyze-art-page-gallery{
    grid-template-columns:1fr!important;
    gap:18px!important
  }
  .artilyze-art-page .artilyze-art-page-piece:first-child{
    width:84%!important;
    max-width:440px!important;
    justify-self:center!important;
  }
  .artilyze-art-page .artilyze-art-page-piece:first-child img{
    max-height:54vh!important;
    object-fit:contain!important;
  }
  .artilyze-art-page .artilyze-art-page-piece:nth-child(2){
    margin-top:4px
  }

  /* Mobile typography: improve readability without changing the composition */
  .artilyze-mobile-tabs a{
    font-size:13px!important;
    font-weight:650!important
  }
  .artilyze-mobile-top-cta{
    font-size:12px!important;
    line-height:1.2!important
  }
  .artilyze-eyebrow{
    font-size:15px!important;
    letter-spacing:.05em!important;
    line-height:1.2!important
  }

  .artilyze-subpage-hero p,
  .artilyze-about-intro p,
  .artilyze-copy>p,
  .artilyze-art-intro-grid p,
  .artilyze-case-copy p,
  .artilyze-project-summary p,
  .artilyze-contact-sidebar p,
  .artilyze-form-head p,
  .artilyze-lead,
  .artilyze-hero-text,
  .artilyze-service-copy p,
  .artilyze-service-copy li{
    font-size:16px!important;
    line-height:1.65!important
  }

  .artilyze-copy .artilyze-role{
    font-size:21px!important;
    line-height:1.35!important
  }

  .artilyze-facts-refined .artilyze-fact span,
  .artilyze-project-focus-grid span,
  .artilyze-case-focus span{
    font-size:13px!important;
    line-height:1.5!important
  }

  .artilyze-art-page-piece small,
  .artilyze-service-media span,
  .artilyze-service-link span{
    font-size:12px!important;
    line-height:1.35!important
  }

  .artilyze-company-details dt,
  .artilyze-contact-meta-label,
  .artilyze-step-form label>span,
  .artilyze-form-step legend{
    font-size:12px!important;
    line-height:1.35!important
  }
  .artilyze-company-details dd,
  .artilyze-social-row{
    font-size:15px!important;
    line-height:1.5!important
  }

  .artilyze-step-form input,
  .artilyze-step-form select,
  .artilyze-step-form textarea{
    font-size:16px!important;
    line-height:1.45!important
  }

  .artilyze-btn,
  .artilyze-form-actions .artilyze-btn{
    font-size:14px!important;
    line-height:1.2!important
  }

  .artilyze-social-link{
    font-size:14px!important
  }

  .artilyze-footer,
  .artilyze-footer a,
  .artilyze-footer span,
  .artilyze-footer p{
    font-size:13px!important;
    line-height:1.55!important
  }
}

@media(max-width:480px){
  .artilyze-mobile-tabs a{
    min-width:100px!important;
    padding-inline:12px!important;
    font-size:12.5px!important
  }
  .artilyze-mobile-tabs a:nth-child(2){min-width:140px!important}

  .artilyze-about-page .artilyze-framed-image{
    width:92%;
    margin-inline:auto
  }

  .artilyze-art-page .artilyze-art-page-piece:first-child{
    width:80%!important
  }
}


/* Final mobile polish: navigation, About stats, Contact spacing, Services rhythm */
@media(max-width:760px){
  /* Navigation: slightly larger and more obviously swipeable */
  .artilyze-mobile-tabs{
    -webkit-mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 24px),transparent 100%);
    mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 24px),transparent 100%)
  }
  .artilyze-mobile-tabs a{
    min-width:108px!important;
    padding-inline:15px!important;
    font-size:13.5px!important
  }
  .artilyze-mobile-tabs a:nth-child(2){min-width:154px!important}

  /* About: two strong metrics, then a full-width positioning statement */
  .artilyze-facts-refined{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    border-top:1px solid rgba(74,66,57,.16)!important;
    border-bottom:1px solid rgba(74,66,57,.16)!important
  }
  .artilyze-facts-refined .artilyze-fact{
    padding:22px 18px!important;
    border-top:0!important;
    border-bottom:0!important
  }
  .artilyze-facts-refined .artilyze-fact:nth-child(2){
    border-left:1px solid rgba(74,66,57,.16)!important
  }
  .artilyze-facts-refined .artilyze-fact-wide{
    grid-column:1 / -1!important;
    border-left:0!important;
    border-top:1px solid rgba(74,66,57,.16)!important;
    padding-left:0!important;
    padding-right:0!important
  }

  /* Contact: clearer separation, less empty space before footer */
  .artilyze-contact-meta-label{
    margin-top:10px!important;
    margin-bottom:12px!important
  }
  .artilyze-contact-sidebar .artilyze-btns{
    margin-top:24px!important;
    margin-bottom:0!important
  }
  .artilyze-contact-page .artilyze-section{
    padding-bottom:46px!important
  }

  /* Design Services: tighten repeated service blocks without removing content */
  .artilyze-services-full .artilyze-service-item{
    padding-bottom:20px!important
  }
  .artilyze-services-full .artilyze-service-copy,
  .artilyze-services-full .artilyze-service-item:nth-child(even) .artilyze-service-copy{
    padding-top:22px!important;
    padding-bottom:14px!important
  }
  .artilyze-services-full .artilyze-service-copy h3{
    margin-top:10px!important;
    margin-bottom:8px!important
  }
  .artilyze-services-full .artilyze-service-copy p{
    margin-bottom:9px!important
  }
}

@media(max-width:480px){
  .artilyze-mobile-tabs a{
    min-width:104px!important;
    font-size:13px!important
  }
  .artilyze-mobile-tabs a:nth-child(2){min-width:148px!important}
}






/* Mobile header proportion correction: logo leads, CTA supports */
@media(max-width:760px){
  .artilyze-header-inner{
    display:grid!important;
    grid-template-columns:55% 45%!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
    gap:0!important;
    height:auto!important;
    width:100%!important;
    max-width:none!important;
  }

  .artilyze-brand-logo{
    grid-column:1!important;
    grid-row:1!important;
    min-height:72px!important;
    padding:0 18px!important;
    justify-content:flex-start!important;
    align-items:center!important;
    background:#f4f0e8!important;
  }

  .artilyze-brand-logo img{
    width:182px!important;
    max-width:100%!important;
    height:auto!important;
  }

  .artilyze-mobile-top-cta{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    min-height:72px!important;
    padding:0 10px!important;
    justify-content:center!important;
    font-size:10.6px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }

  .artilyze-mobile-tabs{
    grid-column:1 / -1!important;
    grid-row:2!important;
  }
}

@media(max-width:390px){
  .artilyze-header-inner{
    grid-template-columns:54% 46%!important;
  }
  .artilyze-brand-logo{
    padding-inline:14px!important;
  }
  .artilyze-brand-logo img{
    width:170px!important;
  }
  .artilyze-mobile-top-cta{
    padding-inline:8px!important;
    font-size:10px!important;
  }
}


/* Final desktop/mobile harmony pass */
@media(max-width:760px){
  /* Make the CTA supportive rather than dominant */
  .artilyze-mobile-top-cta{
    min-height:46px!important;
    padding:0 14px!important;
    margin-right:0!important;
    font-size:11.2px!important;
    font-weight:650!important;
    letter-spacing:0!important;
    gap:10px!important
  }

  .artilyze-brand-logo img{
    max-width:158px!important;
    width:auto!important;
    height:auto!important
  }

  /* Current-page state */
  .artilyze-mobile-tabs a[aria-current="page"]{
    background:rgba(199,161,90,.07)!important
  }
  .artilyze-mobile-tabs a[aria-current="page"]:after{
    bottom:7px!important;
    width:20px!important
  }

  /* Footer: intentional groups instead of accidental wrapping */
  .artilyze-footer-top{
    display:grid!important;
    gap:28px!important
  }
  .artilyze-footer-links{
    display:grid!important;
    gap:17px!important;
    width:100%!important
  }
  .artilyze-footer-link-group{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px 18px!important;
    align-items:center!important
  }
  .artilyze-footer-social-links{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    color:#8b847b!important
  }
  .artilyze-footer-social-links span{
    font-size:12.5px!important;
    color:#8b847b!important
  }
  .artilyze-footer-legal-links{
    padding-top:4px!important
  }
  .artilyze-footer-bottom{
    display:grid!important;
    gap:8px!important;
    margin-top:26px!important;
    padding-top:20px!important
  }

  /* Keep buttons consistent across mobile */
  .artilyze-btn,
  .artilyze-form-actions .artilyze-btn{
    min-height:42px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important
  }

  /* Small rhythm corrections */
  .artilyze-contact-sidebar .artilyze-social-stack{
    margin-top:24px!important
  }
  .artilyze-case-focus{
    gap:6px!important
  }
  .artilyze-case-focus span{
    padding:6px 8px!important
  }
  .artilyze-art-page-piece small{
    padding-top:8px!important
  }
}


/* Trial: mobile navigation with all six items visible at once */
@media(max-width:760px){
  .artilyze-mobile-tabs{
    display:grid!important;
    grid-template-columns:.78fr 1.34fr 1fr .58fr .78fr .88fr!important;
    width:100%!important;
    overflow:visible!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
    scroll-snap-type:none!important;
  }
  .artilyze-mobile-tabs a{
    min-width:0!important;
    width:auto!important;
    padding:0 3px!important;
    font-size:10.8px!important;
    line-height:1.12!important;
    white-space:normal!important;
    text-align:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-weight:650!important;
  }
  .artilyze-mobile-tabs a:nth-child(2){
    min-width:0!important;
  }
}

@media(max-width:390px){
  .artilyze-mobile-tabs a{
    font-size:10.3px!important;
    letter-spacing:-.01em!important;
  }
}


/* Canonical mobile header + viewport containment
   This block intentionally comes last to override earlier experiments. */
@media(max-width:760px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  .wp-site-blocks{
    width:100%!important;
    max-width:100%!important;
    overflow-x:clip!important;
    padding-top:130px!important;
  }

  .artilyze-header{
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100vw!important;
    overflow:hidden!important;
  }

  .artilyze-header-inner{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:72px 58px!important;
    width:100%!important;
    max-width:100%!important;
    height:130px!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    overflow:hidden!important;
  }

  .artilyze-brand-logo{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-height:0!important;
    height:72px!important;
    padding:0 16px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    background:#f4f0e8!important;
  }

  .artilyze-brand-logo img{
    display:block!important;
    width:184px!important;
    max-width:62vw!important;
    height:auto!important;
    margin:0 auto!important;
  }

  .artilyze-mobile-top-cta{
    display:none!important;
  }

  .artilyze-mobile-tabs{
    grid-column:1!important;
    grid-row:2!important;
    display:grid!important;
    grid-template-columns:.82fr 1.38fr 1.05fr .58fr .82fr .95fr!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:58px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
    scroll-snap-type:none!important;
  }

  .artilyze-mobile-tabs a,
  .artilyze-mobile-tabs a:nth-child(2){
    min-width:0!important;
    max-width:100%!important;
    width:auto!important;
    height:58px!important;
    padding:0 2px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:hidden!important;
    font-size:10.4px!important;
    line-height:1.12!important;
    letter-spacing:-.01em!important;
    font-weight:650!important;
  }

  .artilyze-header + *,
  .artilyze-subpage-hero,
  .artilyze-page-hero,
  .artilyze-hero,
  .artilyze-section,
  .artilyze-portfolio-page,
  .artilyze-about-page,
  .artilyze-art-page,
  .artilyze-contact-page,
  .artilyze-project-detail{
    max-width:100vw!important;
  }

  .artilyze-wrap,
  .artilyze-header-inner,
  .artilyze-footer-top,
  .artilyze-footer-bottom,
  .artilyze-art>.artilyze-wrap{
    max-width:100%!important;
  }

  .artilyze-subpage-hero,
  .artilyze-page-hero,
  .artilyze-hero{
    overflow:hidden!important;
  }
}

@media(max-width:390px){
  .artilyze-header-inner{
    grid-template-rows:68px 58px!important;
    height:126px!important;
  }
  .wp-site-blocks{
    padding-top:126px!important;
  }
  .artilyze-brand-logo{
    height:68px!important;
  }
  .artilyze-brand-logo img{
    width:176px!important;
  }
  .artilyze-mobile-tabs a,
  .artilyze-mobile-tabs a:nth-child(2){
    font-size:10px!important;
    padding-inline:1px!important;
  }
}
