/* Brain Candy painted-wall style for the new pages (Lee, 28 Nov 2026): the same paint-on-the-wall panels
   as "Good ideas. Made useful." and "Recognisable." on the studio pages. Uses the approved wall artwork in /assets/work/bc/. */

/* hero = painted wall panel (cyan concrete, drips top right) */
html main>section.hero>.wrap,html main>section.einv-hero>.wrap{position:relative;isolation:isolate;border:1px solid #00d7e83d;border-radius:26px;
  padding:clamp(26px,4.5vw,60px);overflow:hidden;
  background:linear-gradient(90deg,#050609f0 0%,#050609c4 48%,#05060955 100%),url('/assets/work/bc/neon-wall-cyan-concrete.webp') right top/cover}
html main>section.hero{padding-top:34px}

/* the connected Cortex map sits on the splashed brick wall */
.bc-eco-map{background:radial-gradient(ellipse at center,#05070bcc 0,#05070b99 38%,#05070b55 75%),url('/assets/work/bc/neon-campaign-paint-wall.webp') center/cover!important;border-color:#ff2bd655!important}
.bc-eco-lines path{opacity:.55}

/* closing band = magenta brick wall */
html main>section.cta-end>.wrap{position:relative;isolation:isolate;border:1px solid #ff2bd655;border-radius:26px;padding:clamp(26px,4.5vw,56px);overflow:hidden;
  background:linear-gradient(90deg,#050609f2 0%,#050609cc 50%,#05060966 100%),url('/assets/work/bc/neon-wall-magenta-brick.webp') right center/cover}

/* first plain section on pages without a hero (industries, pricing) gets the plaster wall */
html main>section.block:first-child>.wrap{position:relative;isolation:isolate;border:1px solid #00d7e833;border-radius:26px;padding:clamp(24px,4vw,52px);overflow:hidden;
  background:linear-gradient(90deg,#050609f2 0%,#050609cc 55%,#05060966 100%),url('/assets/work/bc/neon-wall-neon-plaster.webp') right top/cover}

@media(max-width:700px){
  html main>section.hero>.wrap,html main>section.einv-hero>.wrap,html main>section.cta-end>.wrap,html main>section.block:first-child>.wrap{border-radius:20px;width:calc(100% - 20px);
    background-position:70% top}
}

@media(min-width:600px){html main>section.hero>.wrap{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;gap:clamp(12px,2.5vw,32px)!important;align-items:center}
html main>section.hero .brainwrap{max-width:none!important;margin:0!important}}
@media(max-width:860px) and (min-width:600px){
  html main>section.hero>.wrap{display:grid!important}
  html main>section.hero h1{max-width:100%!important}
  html main>section.hero .lede{font-size:15px}
  html main>section.hero .actions .btn{padding:12px 16px;font-size:14px}
}

/* Cortex star map: breathing room so no box touches the edge of the wall panel */
@media(min-width:861px){.bc-eco-map{aspect-ratio:1000/860!important;margin:0 auto}
.bc-eco-evie{--y:14.5%!important}.bc-eco-spark{--y:85.5%!important}
.bc-eco-synapse,.bc-eco-muse{--y:31%!important}.bc-eco-pulse,.bc-eco-vision{--y:69%!important}
.bc-eco-muse,.bc-eco-vision{--x:19.5%!important}.bc-eco-synapse,.bc-eco-pulse{--x:80.5%!important}
}
#divisions>.wrap>.bc-ecosystem{margin-top:28px!important}
@media(min-width:600px) and (max-width:860px){.bc-eco-map{aspect-ratio:1/1!important}
.bc-eco-evie{--y:14.5%!important}.bc-eco-spark{--y:85.5%!important}
.bc-eco-synapse,.bc-eco-muse{--y:31%!important}.bc-eco-pulse,.bc-eco-vision{--y:69%!important}
.bc-eco-muse,.bc-eco-vision{--x:17%!important}.bc-eco-synapse,.bc-eco-pulse{--x:83%!important}
.bc-eco-node{width:24%!important;min-height:0!important;padding:12px 10px!important}.bc-eco-cortex{width:28%!important}}

/* Homepage hero (Lee, 28 Nov): no painted wall behind the main brain, less top space, brain bigger beside the words */
html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.hero{padding-top:26px!important}
html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.hero>.wrap{background:none!important;border:0!important;padding:0!important;border-radius:0!important;overflow:visible!important}
@media(min-width:600px){html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.hero>.wrap{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important}}
html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.hero h1{max-width:560px!important;margin-bottom:14px!important}
html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.hero .brainwrap{margin:0 -10px 0 0!important}
@media(max-width:599px){html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.hero .brainwrap{max-width:340px!important;margin:6px auto 0!important}}

/* Homepage: brain level with the headline, studio tagline underneath the brain (Lee, 28 Nov) */
html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.hero>.wrap{align-items:start!important}
.herobrain{min-width:0}
.herobrain .hero-tag{text-align:center;margin:4px 0 0!important}
@media(min-width:600px){.herobrain{margin-top:-14px}}
@media(max-width:599px){.herobrain .hero-tag{margin-top:0!important}}

/* ===== Homepage hero v3 (Lee, 28 Nov): original layout — words | whole brain | services down the right; services along the bottom on iPad portrait ===== */
.top .head-tag{font:700 11px/1.3 "DM Sans",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#22e6ff;white-space:nowrap}
@media(min-width:1181px) and (max-width:1499px){.top .head-tag{display:none}}
@media(max-width:1180px){.top .head-tag{margin-left:auto}}
@media(max-width:700px){.top .head-tag{display:none}}
html main>section.home-hero{padding:22px 0 18px!important}
html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.home-hero>.wrap{display:grid!important;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr) 190px!important;gap:18px!important;align-items:center!important;background:none!important;border:0!important;padding:0!important;overflow:visible!important}
.home-hero .brainwrap{aspect-ratio:1;max-width:min(100%,72vh)!important;margin:0 auto!important;position:relative}
.home-hero .brainwrap img{width:100%;height:auto;display:block}
.home-hero h1{max-width:560px!important}
.home-hero .actions{margin-bottom:0!important}
.hero-services{display:flex;flex-direction:column;gap:22px;align-self:center}
.hero-services a{display:flex;align-items:center;gap:14px;text-decoration:none;color:#fff;font:700 15px/1.25 "DM Sans",sans-serif;text-transform:uppercase;letter-spacing:.04em}
.hero-services a svg{flex:none;filter:drop-shadow(0 0 6px currentColor)}
.hero-services small{display:block;font:500 12px/1.35 "DM Sans",sans-serif;text-transform:none;letter-spacing:0;color:#b9b9c9;margin-top:2px}
.hero-services a:hover span{color:#22e6ff}
.hero-services .big-ideas{width:120px;height:auto;margin-top:4px}
/* iPad portrait / small laptop: words | brain, services in a row underneath */
@media(max-width:1099px){
  html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.home-hero>.wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .hero-services{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;justify-content:space-between;gap:14px 18px;border-top:1px solid #ffffff14;padding-top:16px}
  .hero-services a{flex:1 1 150px}
  .hero-services .big-ideas{display:none}
}
/* phone: stacked, services 2 x 2 */
@media(max-width:599px){
  html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.home-hero>.wrap{grid-template-columns:1fr!important}
  .home-hero .brainwrap{max-width:330px!important}
  .hero-services{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .hero-services a{font-size:13px;gap:10px}.hero-services a svg{width:34px;height:34px}
}

/* Homepage hero v4 (Lee, 28 Nov): smaller words, bigger brain, brain and Create/Automate/Connect/Grow closer together */
html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.home-hero>.wrap{grid-template-columns:minmax(0,.78fr) minmax(0,1.3fr) 175px!important;gap:6px!important}
.home-hero h1{max-width:430px!important}
.home-hero .sub{font-size:15px!important;letter-spacing:.08em!important}
.home-hero .lede{font-size:15px!important;line-height:1.6!important}
.home-hero .actions .btn{padding:11px 16px!important;font-size:14px!important}
.home-hero .brainwrap{max-width:min(100%,80vh)!important;transform:scale(1.06);transform-origin:center}
.hero-services{gap:18px!important}
@media(max-width:1099px){
  html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.home-hero>.wrap{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important}
  .home-hero .brainwrap{transform:none}
}
@media(max-width:599px){html:has(link[rel="canonical"][href="https://www.braincandystudio.co.uk/"]) main>section.home-hero>.wrap{grid-template-columns:1fr!important}}
/* no glow on Create / Automate / Connect / Grow; keep all four on one row on iPad portrait */
.hero-services a svg{filter:none!important}
@media(min-width:600px) and (max-width:1099px){.hero-services{flex-wrap:nowrap!important}.hero-services a{flex:1 1 0!important;min-width:0}}
