/* 22 October 2026: artwork-proportional homepage, desktop 100% zoom fix. */
/* The source is 682 x 2048: preserve its natural proportions rather than forcing 100% 100%. */
@media (min-width: 901px) {
  main { background: #0b0c0d !important; isolation:isolate; }
  main::before { display:none !important; }
  main > section:not(.home-social) { position:relative; min-height:0 !important; height:auto !important; box-sizing:border-box; display:flex !important; flex-direction:column; justify-content:center; padding:clamp(24px,2.8vw,48px) 0 !important; overflow:hidden; }
  main .hero { aspect-ratio: 682 / 510; }
  main .home-flow-intro { aspect-ratio: 682 / 315; }
  main .home-right-help { aspect-ratio: 682 / 335; }
  main .home-banter { aspect-ratio: 682 / 340; }
  main .home-projects { aspect-ratio: 682 / 290; }
  main .home-final-cta { aspect-ratio: 682 / 258; }
  /* Each section uses the SAME artwork at its original aspect ratio, with a matching
     offset. No vertical stretching, no image crop, and no hard section edges. */
  main > section:not(.home-social)::selection { background:#ff6a00; }
  main .hero, main .home-flow-intro, main .home-right-help, main .home-banter, main .home-projects, main .home-final-cta {
    background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/coastal-craftsman-home-background.webp') !important;
    background-repeat:no-repeat !important;
    background-size:100% 100%, 100% auto !important;
    background-color:#101113 !important;
  }
  main .hero {background-position:center center, center 0 !important;}
  main .home-flow-intro {background-position:center center, center calc(-100vw * 510 / 682) !important;}
  main .home-right-help {background-position:center center, center calc(-100vw * 825 / 682) !important;}
  main .home-banter {background-position:center center, center calc(-100vw * 1160 / 682) !important;}
  main .home-projects {background-position:center center, center calc(-100vw * 1500 / 682) !important;}
  main .home-final-cta {background-position:center center, center calc(-100vw * 1790 / 682) !important;}
  main > section > .wrap { width:min(100% - 44px,1100px) !important; }
  main .hero-content { padding:0 !important; }
  main .hero-logo { width:clamp(155px,16vw,230px) !important; max-height:100px !important; }
  main .hero-content h1 { font-size:clamp(2.6rem,4.25vw,4.9rem) !important; max-width:710px !important; margin:12px 0 !important; }
  main .hero-tag { font-size:clamp(1.15rem,1.55vw,1.5rem) !important; }
  main .hero-humour { font-size:clamp(.95rem,1.15vw,1.12rem) !important; }
  main .hero-copy { font-size:clamp(.88rem,1vw,1rem) !important; }
  main .hero-categories { margin-top:15px !important; }
  main .home-flow-intro h2 {font-size:clamp(2.8rem,4.4vw,5rem) !important;max-width:780px !important;}
  main .home-right-help h2 {font-size:clamp(2.8rem,4.3vw,4.9rem) !important;max-width:800px !important;}
  main .home-banter h2 {font-size:clamp(2.5rem,3.9vw,4.3rem) !important;}
  main .home-projects h2 {font-size:clamp(2.6rem,3.8vw,4.3rem) !important;}
  main .home-final-cta h2 {font-size:clamp(2.2rem,3.4vw,4rem) !important;}
  main .home-social { min-height:0 !important; padding:60px 0 80px !important; background:#0b0c0d !important; }
  main .home-social::before,main .home-social::after {display:none !important;}
}
/* Narrow screens: retain readable, content-driven sections; never squeeze the tall image. */
@media (max-width:900px) {
  main {background:#101113 !important;}
  main::before {display:none !important;}
  main > section:not(.home-social) {
    background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/coastal-craftsman-home-background.webp') !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
  }
  main .home-social {background:#0b0c0d !important;}
}


/* Birthday mobile pass: separate original-artwork slices prevent the single
   2048px collage from stretching through content-height sections. Desktop untouched. */
@media(max-width:900px){
 main>section.hero,main>section.home-flow-intro,main>section.home-right-help,
 main>section.home-banter,main>section.home-projects,main>section.home-final-cta{
   background-repeat:no-repeat!important;
   background-size:cover,cover!important;
   background-position:center,center!important;
   background-color:#101113!important;
 }
 main>section.hero{background-image:linear-gradient(rgba(0,0,0,.63),rgba(0,0,0,.72)),url('/assets/home-section-hero.webp')!important}
 main>section.home-flow-intro{background-image:linear-gradient(rgba(0,0,0,.69),rgba(0,0,0,.74)),url('/assets/home-section-blueprint.webp')!important}
 main>section.home-right-help{background-image:linear-gradient(rgba(0,0,0,.68),rgba(0,0,0,.72)),url('/assets/home-section-orange-tools.webp')!important}
 main>section.home-banter{background-image:linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.77)),url('/assets/home-section-workshop.webp')!important}
 main>section.home-projects{background-image:linear-gradient(rgba(0,0,0,.61),rgba(0,0,0,.71)),url('/assets/home-section-beach.webp')!important}
 main>section.home-final-cta{background-image:linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.76)),url('/assets/home-section-cta.webp')!important}
}
@media(max-width:680px){
 main>section{min-width:0}
 main .hero{min-height:0!important}
 main .hero-content{padding:32px 0 48px!important}
 main .hero-logo{width:min(66vw,245px)!important;max-height:125px!important}
 main .hero-content h1{font-size:clamp(2.7rem,11vw,4rem)!important;line-height:1.02!important;max-width:100%;overflow-wrap:normal}
 main .hero-tag{font-size:clamp(1.2rem,5vw,1.5rem)!important}
 main .hero-copy,main .hero-humour{font-size:clamp(.96rem,3.8vw,1.1rem)!important;line-height:1.55}
 main .hero .actions{gap:10px;display:flex;flex-wrap:wrap}
 main .hero .actions .btn{min-width:0!important;min-height:45px;padding:10px 14px;font-size:.87rem}
 main .hero-categories{margin-top:17px!important;font-size:.78rem!important;gap:4px!important}
 main .hero-categories span{margin-right:0!important;padding-right:8px!important}
 main .home-flow-intro,main .home-right-help,main .home-banter,
 main .home-projects,main .home-final-cta{padding:48px 0!important}
 main .home-flow-intro h2,main .home-right-help h2,main .home-banter h2,
 main .home-projects h2,main .home-final-cta h2{font-size:clamp(2.55rem,10vw,4rem)!important;line-height:1.04!important;overflow-wrap:break-word}
 main .home-flow-intro .section-heading{display:block}
 main .home-flow-intro .section-heading p{max-width:100%}
 main .banter-grid{grid-template-columns:1fr!important;gap:8px!important}
 main .banter-grid p{padding:12px 14px!important;background:rgba(0,0,0,.30)!important}
 main .home-social{padding:45px 0 52px!important}
 main .home-social .social-grid{grid-template-columns:1fr!important;gap:14px!important}
 main .home-social .social-card{padding:18px!important}
 main .home-social .social-card img{width:clamp(120px,36vw,155px)!important;height:auto!important;aspect-ratio:1;object-fit:contain}
 main .home-social .social-heading h2{font-size:clamp(2.5rem,9vw,3.8rem)!important}
 .footer-grid{grid-template-columns:1fr!important;gap:25px!important}
 .footer-grid a,.footer-grid p{font-size:.9rem;line-height:1.55}
 .footer-grid img{width:145px}
 .copyright{font-size:.8rem;gap:8px}
}
@media(max-width:360px){main .hero-content h1{font-size:2.5rem!important}.wrap{width:calc(100% - 30px)}}

/* 22 Oct: mobile birthday shading fix. Match the approved uniform dark tint
   across all artwork slices, with independent full-section gradient sizing. */
@media (max-width:900px) {
 main > section.hero,
 main > section.home-flow-intro,
 main > section.home-right-help,
 main > section.home-banter,
 main > section.home-projects,
 main > section.home-final-cta {
   background-size:100% 100%, cover !important;
   background-position:center center, center center !important;
   background-repeat:no-repeat,no-repeat !important;
 }
 main > section.hero {background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/home-section-hero.webp')!important}
 main > section.home-flow-intro {background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/home-section-blueprint.webp')!important}
 main > section.home-right-help {background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/home-section-orange-tools.webp')!important}
 main > section.home-banter {background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/home-section-workshop.webp')!important}
 main > section.home-projects {background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/home-section-beach.webp')!important}
 main > section.home-final-cta {background-image:linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.74)),url('/assets/home-section-cta.webp')!important}
}

/* Mobile seam repair: use a real full-bleed overlay instead of a gradient
   background layer that can leave a 1px unshaded raster edge. The overlay
   extends 2px past the section edges so neighbouring sections meet cleanly.
   Desktop rules are deliberately untouched. */
@media (max-width: 900px) {
  main > section.hero,
  main > section.home-flow-intro,
  main > section.home-right-help,
  main > section.home-banter,
  main > section.home-projects,
  main > section.home-final-cta {
    position: relative !important;
    isolation: isolate !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  main > section.hero { background-image: url('/assets/home-section-hero.webp') !important; }
  main > section.home-flow-intro { background-image: url('/assets/home-section-blueprint.webp') !important; }
  main > section.home-right-help { background-image: url('/assets/home-section-orange-tools.webp') !important; }
  main > section.home-banter { background-image: url('/assets/home-section-workshop.webp') !important; }
  main > section.home-projects { background-image: url('/assets/home-section-beach.webp') !important; }
  main > section.home-final-cta { background-image: url('/assets/home-section-cta.webp') !important; }
  main > section.hero::before,
  main > section.home-flow-intro::before,
  main > section.home-right-help::before,
  main > section.home-banter::before,
  main > section.home-projects::before,
  main > section.home-final-cta::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: -2px 0 !important;
    background: rgba(0,0,0,.74) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }
  main > section.hero > *,
  main > section.home-flow-intro > *,
  main > section.home-right-help > *,
  main > section.home-banter > *,
  main > section.home-projects > *,
  main > section.home-final-cta > * {
    position: relative;
    z-index: 1;
  }
}

/* 22 Oct 2026: mobile-only permanent shading repair.
   Tint is baked into the mobile-only artwork, so no pseudo-element,
   gradient raster seam, or inherited legacy cutout can reveal a strip.
   The brighter beach is gently blended from the darker workshop boundary.
   Desktop >=901px remains completely unchanged. */
@media (max-width: 900px) {
  main > section.hero,
  main > section.home-flow-intro,
  main > section.home-right-help,
  main > section.home-banter,
  main > section.home-projects,
  main > section.home-final-cta {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #0b0c0d !important;
  }
  main > section.hero::before, main > section.hero::after,
  main > section.home-flow-intro::before, main > section.home-flow-intro::after,
  main > section.home-right-help::before, main > section.home-right-help::after,
  main > section.home-banter::before, main > section.home-banter::after,
  main > section.home-projects::before, main > section.home-projects::after,
  main > section.home-final-cta::before, main > section.home-final-cta::after,
  main > section.hero .hero-shade {
    display: none !important;
    content: none !important;
  }
  main > section.hero { background-image: url('/assets/home-section-hero-mobile-shaded.webp') !important; }
  main > section.home-flow-intro { background-image: url('/assets/home-section-blueprint-mobile-shaded.webp') !important; }
  main > section.home-right-help { background-image: url('/assets/home-section-orange-tools-mobile-shaded.webp') !important; }
  main > section.home-banter { background-image: url('/assets/home-section-workshop-mobile-shaded.webp') !important; }
  main > section.home-projects { background-image: url('/assets/home-section-beach-mobile-shaded.webp') !important; }
  main > section.home-final-cta { background-image: url('/assets/home-section-cta-mobile-shaded.webp') !important; }
}
