/* Background experiments (Liam, November 24, 2026: "for the hoemapge can we try experimenet with having some abckgorund
   vairance and creativity?"). Two picks in the Backgrounds row beside Varied, both on the light page (Sofiya: no
   aggressive dark). Every rule sits under html.bgx-*, so Varied is exactly the page as it was. bgx.js adds the buttons
   and the light layer.
     Orange break         the page stays calm lilac and the case studies break it on a light orange gradient, the
                          results on white glass.
     Orange + glass card  the same ground with the heading and results inside one frosted warm glass slab.
   Rising light, Light forms and the two all-sections glass picks came out the same night (Liam: "Remove all five"). */

/* ---- shared: one grain for every option ---- */
.bgx-l{display:none}
section>.bgx-l{position:absolute !important;inset:0 !important;z-index:-1 !important;pointer-events:none;overflow:hidden;width:auto !important;height:auto !important;margin:0 !important;padding:0 !important}
/* grey noise centred on mid-grey, so overlay adds texture without darkening the ground */
.bgx-grain{position:absolute;inset:0;opacity:.2;mix-blend-mode:overlay;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") 0 0/220px 220px}

/* ================= Orange break ================= */
html.bgx-orange:not(#_):not(#_) #services,
html.bgx-orange:not(#_):not(#_) #rules{background:linear-gradient(#dcd9e1,#dcd9df) !important}
html.bgx-orange #work .bgx-l{display:block}
/* a light orange gradient with no dark in it (Liam, November 24, 2026, on the board blur: "can u try removeingthe balck
   and amking it more lgiht gradient"): pale pools behind the heading and under the results, one clear orange to the
   right, nothing darker than #f2803a */
html.bgx-orange:not(#_):not(#_) #work{background:
  radial-gradient(48% 55% at 16% 18%,rgba(255,206,160,.8) 0,rgba(255,206,160,0) 72%),
  radial-gradient(42% 60% at 86% 30%,rgba(242,128,58,.9) 0,rgba(242,128,58,0) 72%),
  radial-gradient(70% 45% at 50% 104%,rgba(255,214,180,.9) 0,rgba(255,214,180,0) 74%),
  radial-gradient(40% 50% at 6% 90%,rgba(246,140,72,.75) 0,rgba(246,140,72,0) 70%),
  linear-gradient(165deg,#fdbf88 0,#f98e48 48%,#fbac70 100%) !important}
@media(max-width:760px){html.bgx-orange:not(#_):not(#_) #work{background:
  radial-gradient(90% 30% at 20% 8%,rgba(255,232,210,.95) 0,rgba(255,232,210,0) 72%),
  radial-gradient(80% 30% at 90% 30%,rgba(242,128,58,.85) 0,rgba(242,128,58,0) 72%),
  linear-gradient(175deg,#fdbf88 0,#f98e48 45%,#fbac70 100%) !important}}
/* the black toggle goes light too: cream glass with ink type */
html.bgx-orange:not(#_):not(#_) #work .proof-toggle>i{background:rgba(255,248,240,.92) !important;box-shadow:inset 0 1px 0 #fff,0 10px 24px -14px rgba(150,60,10,.5) !important}
html.bgx-orange:not(#_):not(#_) #work .proof-toggle>button{color:#191714 !important}
html.bgx-orange #work::before,html.bgx-orange #work::after{opacity:0 !important}
html.bgx-orange #work .bgx-grain{opacity:.3}
html.bgx-orange #work :is(h1,h2){color:#1d1713 !important}
html.bgx-orange #work p{color:rgba(29,23,19,.86) !important}
/* the results sheet turns to warm frosted glass over the orange; figures stay orange on it */
html.bgx-orange:not(#_):not(#_) #work .cxx-wall{background:rgba(255,255,255,.93) !important;border-color:rgba(255,255,255,.95) !important;
  box-shadow:inset 0 1px 0 #fff,0 30px 60px -30px rgba(120,40,0,.55) !important}

/* ================= Orange box ================= */
/* (Liam, November 24, 2026: "wew shoudlahve a wrapper card glass thing", then "nooo i mena the other way around lol the
   backgorund is the ornae then a glass morphistic wtrapper aroudnt he case sutdies inner"). The Orange break ground runs
   full width as before; the heading and results sit inside one frosted warm glass slab over it, the footer's Glass orange
   recipe: a pale see-through face, a lit top rim, a burnt-orange stepped side and a warm shadow. The slab sits on the
   container's edges and the content moves inside it by the footer's inset. */
/* breathing room inside the slab (Liam, November 24, 2026: "wha thappens when u giv eithe glass card some morebrekathing
   spac eliek not keep it so tight to th emain content"): the content sits about 88px in from the slab's sides at 1440
   and 88px below its top and above its foot, up from 46 and 44. Then: "but like u just increase th eheight and notthe
   width thoooo": the room goes to the sides. The slab now reaches out past the container toward the window edge (24px
   from it at 1440), the content sits about 88px in from the slab's sides, and the top and foot are back near 56px, with
   the case studies no longer stretched to a full screen's height. Then, on his ~1730px wide window: "as i said ebfore the
   width is sitl lton arrow": the slab now runs nearly the full window, 12 to 32px from its edges at every width, and the
   content stays on the site's container, or 72px inside the slab where the window is too narrow for that) */
html:is(.bgx-obox,.bgx-gc){--bx-g:calc((100vw - min(1320px,calc(100vw - 2 * clamp(20px,3.4vw,44px)))) / 2);
  --bx-x:clamp(12px,1.8vw,32px);--bx-in:clamp(16px,6vw,72px);--bx-c:max(var(--bx-g),calc(var(--bx-x) + var(--bx-in)));
  --bx-top:clamp(24px,3vw,44px);--bx-pad:calc(var(--bx-top) + clamp(24px,3.9vw,56px))}
html.bgx-obox #work{--gutter:var(--bx-c) !important}
html.bgx-obox:not(#_):not(#_) #work{padding-top:var(--bx-pad) !important;padding-bottom:var(--bx-pad) !important;min-height:0 !important}
html.bgx-obox:not(#_):not(#_) #work>.bgx-l{inset:var(--bx-top) var(--bx-x) !important;border-radius:28px;overflow:visible;
  -webkit-backdrop-filter:blur(22px) saturate(1.35);backdrop-filter:blur(22px) saturate(1.35);
  background:linear-gradient(180deg,rgba(255,246,236,.42) 0%,rgba(255,234,214,.26) 50%,rgba(255,222,194,.2) 100%) !important;
  box-shadow:0 1px 0 rgba(255,236,214,.6),0 3px 0 -.5px rgba(196,84,18,.6),0 4px 1px -1px rgba(120,40,0,.3),
    0 60px 80px -46px rgba(110,36,0,.5),0 24px 36px -24px rgba(110,36,0,.3)}
html.bgx-obox #work>.bgx-l .bgx-grain{display:none}
html.bgx-obox #work>.bgx-l::after{content:"";position:absolute;inset:0;border-radius:28px;pointer-events:none;
  background:linear-gradient(160deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 26%);
  box-shadow:inset 0 1.5px 0 rgba(255,246,236,.95),inset 1.5px 0 0 rgba(255,240,226,.7),inset 0 -1.5px 0 rgba(150,50,4,.35),inset -1px 0 0 rgba(150,50,4,.22),
    inset 0 0 0 9px rgba(255,240,226,.08),inset 0 0 0 10px rgba(255,240,226,.24),inset 0 12px 16px -12px rgba(255,246,236,.6)}
@media(max-width:700px){html.bgx-obox:not(#_):not(#_) #work>.bgx-l,html.bgx-obox #work>.bgx-l::after{border-radius:22px}
  /* the narrower slab: the website work link wraps instead of running past the rim */
  html.bgx-obox #work .cue-peek .peek-label{white-space:normal;letter-spacing:.1em;text-align:left;font-size:10px}}

/* ================= Glass cards on sections (Design options, Whole page) ================= */
/* (Liam, November 24, 2026, after the all-sections picks came out of Backgrounds: "so cnau. add these card options o the
   enw dedesn thing we created"). Its own row in the Design options panel, apart from the backgrounds: Services and Five
   rules each get the case studies' slab, nearly the full window wide, the content on the site's container. Glass: the
   footer's white frost on the lilac. Orange + glass: both sections on the light orange ground with the warm slab. Why work
   with us stays open ("sixty doesnt need th eglass border thing card"). ?cards=glass|orange opens on one. */
.bgx-card{display:none}
html.bgx-gc .bgx-card{display:block;position:absolute !important;inset:var(--bx-top) var(--bx-x) !important;border-radius:28px;z-index:-1;pointer-events:none;
  -webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);
  background:linear-gradient(180deg,rgba(255,255,255,.5) 0%,rgba(255,255,255,.32) 45%,rgba(236,232,244,.3) 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.7),0 3px 0 -.5px rgba(205,201,218,.95),0 4px 1px -1px rgba(150,144,170,.35),
    0 60px 80px -46px rgba(62,54,88,.45),0 24px 36px -24px rgba(62,54,88,.26)}
html.bgx-gc .bgx-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(160deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,0) 24%);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.98),inset 1.5px 0 0 rgba(255,255,255,.8),inset 0 -1.5px 0 rgba(112,104,136,.3),inset -1px 0 0 rgba(112,104,136,.2),
    inset 0 0 0 9px rgba(255,255,255,.14),inset 0 0 0 10px rgba(255,255,255,.32),inset 0 12px 16px -12px rgba(255,255,255,.75)}
html.bgx-gc:not(#_) :is(#services,#rules){isolation:isolate}
html.bgx-gc #services .c2-shell{padding-left:calc(var(--bx-c) - var(--bx-g)) !important;padding-right:calc(var(--bx-c) - var(--bx-g)) !important;box-sizing:border-box}
html.bgx-gc:not(#_):not(#_) :is(#services,#rules){padding-top:var(--bx-pad) !important;padding-bottom:var(--bx-pad) !important}
html.bgx-gc:not(#_) #rules{padding-left:var(--bx-c) !important;padding-right:var(--bx-c) !important}
html.bgx-gco:not(#_):not(#_):not(#_) :is(#services,#rules){background:
  radial-gradient(48% 55% at 16% 18%,rgba(255,232,210,.95) 0,rgba(255,232,210,0) 72%),
  radial-gradient(42% 60% at 86% 30%,rgba(242,128,58,.9) 0,rgba(242,128,58,0) 72%),
  radial-gradient(70% 45% at 50% 104%,rgba(255,214,180,.9) 0,rgba(255,214,180,0) 74%),
  radial-gradient(40% 50% at 6% 90%,rgba(246,140,72,.75) 0,rgba(246,140,72,0) 70%),
  linear-gradient(165deg,#fdbf88 0,#f98e48 48%,#fbac70 100%) !important}
html.bgx-gco .bgx-card{background:linear-gradient(180deg,rgba(255,246,236,.42) 0%,rgba(255,234,214,.26) 50%,rgba(255,222,194,.2) 100%);
  -webkit-backdrop-filter:blur(22px) saturate(1.35);backdrop-filter:blur(22px) saturate(1.35);
  box-shadow:0 1px 0 rgba(255,236,214,.6),0 3px 0 -.5px rgba(196,84,18,.6),0 4px 1px -1px rgba(120,40,0,.3),
    0 60px 80px -46px rgba(110,36,0,.5),0 24px 36px -24px rgba(110,36,0,.3)}
html.bgx-gco .bgx-card::after{background:linear-gradient(160deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 26%);
  box-shadow:inset 0 1.5px 0 rgba(255,246,236,.95),inset 1.5px 0 0 rgba(255,240,226,.7),inset 0 -1.5px 0 rgba(150,50,4,.35),inset -1px 0 0 rgba(150,50,4,.22),
    inset 0 0 0 9px rgba(255,240,226,.08),inset 0 0 0 10px rgba(255,240,226,.24),inset 0 12px 16px -12px rgba(255,246,236,.6)}
@media(max-width:700px){html.bgx-gc .bgx-card{border-radius:22px}}

/* phones: lighter grain, same plans */
@media (max-width:760px){
  .bgx-grain{opacity:.14}
}

/* a case study copy (cs-copies.js) paints its own lilac host over the section; on the orange ground the host stays clear
   so the orange shows round the copy (Liam, November 25, 2026: "lets try brining the orange background") */
html.bgx-orange:not(#_):not(#_) #work .cpy-host{background:transparent !important}
html.bgx-orange:not(#_):not(#_) #work .cpy-host :is(h1,h2,h3) :is(em,span,i,b){color:inherit !important}

/* the heading in white on the orange (Liam, November 25, 2026: "try a white text here"); the pale pool behind it is warmed
   above so the white keeps its contrast */
html.bgx-orange:not(#_):not(#_) #work .cpy-host .dp-title{color:#fff !important;text-shadow:0 2px 30px rgba(150,56,8,.28)}
/* the case study copies hide every other child of #work; the glass slab is the ground, so it stays (Liam, November 25,
   2026: "can u stry adding that glass wrapper thing arodunt he cases tudy content?") */
html.cpy-on.bgx-obox:not(#_):not(#_) #work>.bgx-l{display:block !important}
/* a tad quieter (Liam, November 25, 2026: "maybe jsut make the outer shell warpper jsut a tad less promotinent but still
   glassy"): the same blur and see-through face, a thinner and paler rim, no burnt-orange step, a softer shadow */
html.bgx-obox:not(#_):not(#_) #work>.bgx-l{
  background:linear-gradient(180deg,rgba(255,246,236,.3) 0%,rgba(255,234,214,.18) 50%,rgba(255,222,194,.12) 100%) !important;
  box-shadow:0 1px 0 rgba(255,236,214,.45),0 40px 70px -50px rgba(110,36,0,.32) !important}
html.bgx-obox:not(#_):not(#_) #work>.bgx-l::after{
  background:linear-gradient(160deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,0) 22%);
  box-shadow:inset 0 1px 0 rgba(255,246,236,.75),inset 1px 0 0 rgba(255,240,226,.4),inset 0 -1px 0 rgba(150,50,4,.14),inset -1px 0 0 rgba(150,50,4,.1),
    inset 0 0 0 1px rgba(255,240,226,.18)}

/* ================= Case study colours (Design options, Case studies) ================= */
/* (Liam, November 25, 2026, on the three results cards over the orange: "its jsut like a little ahrd with hte organge
   backgorund either can we tone down the backgorund and/or can we also try making the cooiurs in the cards a tad more like
   cohesive with the backgorund? idk maybe give me some optinos?"). bgx.js's Colours bar sets the classes; ?tone= opens on one.
     cst-soft   the orange ground calmed to a pale apricot wash; the heading goes to ink, since white fails on the paler ground
     cst-warm   the cards take the ground's warmth: the dark card turns espresso, the white card cream, the third peach.
                Each brand keeps its own accent (Collabstr pink, Bustem blue)
     cst-dusk   the page's lilac runs into the section and warms to peach toward the cards, with the warm cards */
html.bgx-orange.cst-soft:not(#_):not(#_):not(#_) #work{background:
  radial-gradient(55% 60% at 18% 14%,rgba(255,244,234,.95) 0,rgba(255,244,234,0) 72%),
  radial-gradient(44% 58% at 88% 30%,rgba(246,164,104,.5) 0,rgba(246,164,104,0) 72%),
  radial-gradient(70% 50% at 50% 78%,rgba(244,150,88,.42) 0,rgba(244,150,88,0) 72%),
  radial-gradient(70% 45% at 50% 104%,rgba(255,226,204,.85) 0,rgba(255,226,204,0) 74%),
  linear-gradient(165deg,#fde3cc 0,#f7c098 50%,#f9d2b2 100%) !important}
html.bgx-orange.cst-dusk:not(#_):not(#_):not(#_) #work{background:
  radial-gradient(60% 40% at 50% 100%,rgba(250,196,156,.85) 0,rgba(250,196,156,0) 75%),
  radial-gradient(40% 50% at 90% 70%,rgba(244,160,110,.45) 0,rgba(244,160,110,0) 72%),
  linear-gradient(180deg,#e0dde5 0,#e6d9dc 28%,#f1d3c4 62%,#f6c8a6 100%) !important}
@media(max-width:760px){
  html.bgx-orange.cst-soft:not(#_):not(#_):not(#_) #work{background:linear-gradient(175deg,#fdeadb 0,#f8cba8 55%,#fadbc2 100%) !important}
  html.bgx-orange.cst-dusk:not(#_):not(#_):not(#_) #work{background:linear-gradient(180deg,#e0dde5 0,#f0d4c6 50%,#f6c8a6 100%) !important}}
/* ink heading and an ink button on the paler grounds, the top bar's Book a call colours */
html.bgx-orange:is(.cst-soft,.cst-dusk):not(#_):not(#_) #work .cpy-host .dp-title{color:#1d1713 !important;text-shadow:none}
html.bgx-orange:is(.cst-soft,.cst-dusk):not(#_):not(#_) #work .cpy-host .ct-all-btn{background:#1d1713;color:#f6f1ea;box-shadow:0 14px 28px -16px rgba(90,40,10,.5)}
html.bgx-orange:is(.cst-soft,.cst-dusk):not(#_):not(#_) #work .cpy-host .ct-all-btn:hover{background:#000}
/* the paler grounds take a paler slab rim */
html.bgx-obox:is(.cst-soft,.cst-dusk):not(#_):not(#_):not(#_) #work>.bgx-l{background:linear-gradient(180deg,rgba(255,255,255,.26) 0%,rgba(255,250,244,.14) 60%,rgba(255,244,234,.1) 100%) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.5),0 40px 70px -50px rgba(110,50,20,.22) !important}

/* warm cards: a tint laid over each card's drawing, under its words. The drawings paint their own grounds (embed.js), so
   the tint is a blend layer, not a new background, and the drawings' own code stays as it is */
html.cst-warm #work .copy-commonthread .card::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit}
html.cst-warm #work .copy-commonthread .card.brand-collabstr::before{background:linear-gradient(170deg,#c4642a 0%,#8a3c1c 100%);mix-blend-mode:color;opacity:.32}
html.cst-warm #work .copy-commonthread .card.brand-collabstr{box-shadow:inset 0 1.5px 0 rgba(255,220,190,.18),0 40px 60px -36px rgba(90,30,0,.6) !important}
html.cst-warm #work .copy-commonthread .card.brand-bustem::before{background:linear-gradient(180deg,#fff1e2 0%,#f8dcc4 100%);mix-blend-mode:multiply}
html.cst-warm #work .copy-commonthread .card.brand-bustem{box-shadow:inset 0 1.5px 0 #fff,0 0 0 1px rgba(120,60,20,.06),0 40px 60px -36px rgba(110,50,10,.5) !important}
html.cst-warm #work .copy-commonthread .card.brand-bustem .label{color:#2f4cc0 !important}
html.cst-warm #work .copy-commonthread .card.brand-aivideo::before{background:linear-gradient(180deg,#fff0e2 0%,#f6d2b4 100%);mix-blend-mode:multiply}
html.cst-warm #work .copy-commonthread .card.brand-aivideo .label{color:#b8531a !important}

/* the bar on its own (the Design options panel takes it in) */
.cst-sw{position:fixed;right:16px;bottom:330px;z-index:62;display:flex;flex-wrap:wrap;gap:3px;padding:5px;background:#211e1aee;border-radius:24px;max-width:min(560px,calc(100vw - 32px))}
.cst-sw button{border:0;background:none;color:#e9e2d6;font:500 13px/1 var(--font,system-ui);padding:9px 14px;border-radius:30px;cursor:pointer;white-space:nowrap}
.cst-sw button[aria-pressed=true]{background:#f6f4ef;color:#211e1a}
html.c2-shot .cst-sw{display:none !important}

/* Calm grounds for the case studies (Liam, November 25, 2026: "not on an oragne backgorund. or liek asuepr light organge
   like something super nonchalent"): Warm white and Pale peach on the Case study colours row, ?tone=white|peach.
   The heading goes to ink and the cards keep a soft warm shadow so they still lift off a light ground. */
html.bgx-orange.cst-white:not(#_):not(#_):not(#_):not(#_) #work{background:#fbf9f6 !important}
html.bgx-orange.cst-peach:not(#_):not(#_):not(#_):not(#_) #work{background:radial-gradient(60% 55% at 85% 20%,rgba(255,206,160,.55),rgba(255,206,160,0) 70%),radial-gradient(55% 50% at 10% 85%,rgba(255,222,192,.55),rgba(255,222,192,0) 70%),#fdf5ec !important}
html.bgx-orange:is(.cst-white,.cst-peach):not(#_):not(#_):not(#_) #work .bgx-l{opacity:0 !important}
html.bgx-orange:is(.cst-white,.cst-peach):not(#_):not(#_):not(#_):not(#_) #work .cpy-host .dp-title{color:#191714 !important;text-shadow:none !important}
html.bgx-orange:is(.cst-white,.cst-peach):not(#_):not(#_) #work .copy-commonthread .card{box-shadow:0 30px 60px -36px rgba(110,60,20,.35)}
