/* Final contrast and interaction layer. Keep media, portfolio previews and navigation intact. */
html body {color:#fff}
/* Surface and foreground are assigned together, not independently. */
html body main #prepress-services :is(.service-group-heading,.service-group-intro,.service-detail-card){background:rgba(0,0,0,.60)!important;color:#fff!important}
html body main #prepress-services :is(h2,h3,p,li,small){color:#fff!important;opacity:1!important}
html body main #custom-solutions :is(.service-group-heading,.service-group-intro){background:#000!important;color:#fff!important}
html body main #custom-solutions .service-group-intro :is(h2,p){color:#fff!important;opacity:1!important}
html body main :is(.bc-head,.bc-page-title,.bc-product-head,.bc-details,.bc-form-wrap,.bc-faq,.bc-band,.knowledge-copy,.knowledge-card-body,.knowledge-note,.knowledge-mini,.knowledge-faq,.knowledge-cta,.pricing-note,.pricing-cta,.packaging-boundary,.specialist-note,.cs-panel,.cs-callout,.cs-warning,.cs-step,.cs-catalogue-detail,.cs-pricing-level,.terms-grid article,.legal-note,.legal-additions,.bi-card,.brief-form,.finder-form){color:#fff!important;background-color:rgba(0,0,0,.55)!important}
html body main :is(.bc-head,.bc-page-title,.bc-product-head,.bc-details,.bc-form-wrap,.bc-faq,.bc-band,.knowledge-copy,.knowledge-card-body,.knowledge-note,.knowledge-mini,.knowledge-faq,.knowledge-cta,.pricing-note,.pricing-cta,.packaging-boundary,.specialist-note,.cs-panel,.cs-callout,.cs-warning,.cs-step,.cs-catalogue-detail,.cs-pricing-level,.terms-grid article,.legal-note,.legal-additions,.bi-card,.brief-form,.finder-form) :is(h1,h2,h3,h4,p,li,dt,dd,legend,label,small,summary){color:#fff!important;opacity:1!important}
html body main :is(.bc-band-links,.bc-ways) a{background:#000!important;color:#fff!important;border:1px solid rgba(255,255,255,.55);border-radius:18px!important}
html body main :is(.bc-band-links,.bc-ways) a :is(strong,span){color:#fff!important}

/* Translate independently of transform so hover can coexist with scroll reveals. */
main :is(.bc-band-links > a[href],.bc-ways > a[href],a.bc-product-card,a.bc-tile,.bc-work > a[href],
  .project-card[role="button"],
  :is(.knowledge-card,.packaging-visual-card,.pf-card,.bc-specialist-card,.bc-offer > article):has(a[href])){
  transition:translate .4s var(--bc-ease),border-color .3s ease;

  &:is(:focus-visible,:has(a:focus-visible)){border-color:var(--bc-red)!important}

  @media (hover:hover) and (pointer:fine){
    &:hover{border-color:var(--bc-red)!important}
  }

  @media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
    &:hover{translate:0 -4px}
  }

  @media (prefers-reduced-motion:reduce){
    &{transition:none!important}
  }
}

main :is(.bc-work > a[href],.project-card[role="button"]){border:1px solid transparent}

/* Expand the existing destination of each single-action card. */
main :is(.knowledge-card,.packaging-visual-card,.pf-card,.bc-specialist-card,.bc-offer > article):has(
  :is(a.guide-action-button,a.pf-text-link,a.bc-packaging-cta,a.bc-link)[href]
){position:relative}
main :is(.knowledge-card,.packaging-visual-card,.pf-card,.bc-specialist-card,.bc-offer > article)
  :is(a.guide-action-button,a.pf-text-link,a.bc-packaging-cta,a.bc-link)[href]{
  position:static;
  transform:none!important;
}
main :is(.knowledge-card,.packaging-visual-card,.pf-card,.bc-specialist-card,.bc-offer > article)
  :is(a.guide-action-button,a.pf-text-link,a.bc-packaging-cta,a.bc-link)[href]::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
}
.js main :is(.bc-band-links,.bc-ways,.bc-offer) .bc-rise{
  transition:opacity 1s var(--bc-ease) var(--d,0ms),transform 1.1s var(--bc-ease) var(--d,0ms),
    translate .4s var(--bc-ease),border-color .3s ease;
}

html body main .bc-details a{background:none!important;text-decoration:none!important;color:#fff!important}
/* All actionable buttons, including dynamically created controls. */
html body :is(button,[role="button"],input[type="submit"],input[type="button"],input[type="reset"],.bc-unified-cta,.bc-final-cta,.bc-currency-chip,.bc-work-controls button,.bc-wa-bubble){border-radius:14px!important}
html body :is(.bc-whatsapp,.bc-nav-search,.bc-menu-toggle,.modal-close,.cs-submit-toast__close){border-radius:50%!important}
html body :is(a.bc-unified-cta,a.bc-final-cta){display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 20px;border-radius:999px!important;background:#000!important;color:#fff!important;border:1px solid #fff!important;text-decoration:none!important;font-weight:700;line-height:1.35;white-space:normal;text-align:center;opacity:1!important;transition:transform .2s ease,background-color .2s ease,color .2s ease}
html body :is(a.bc-unified-cta,a.bc-final-cta) :is(span,strong,b,small){color:inherit!important;opacity:1!important}
html body :is(a.bc-unified-cta,a.bc-final-cta):hover{background:#fff!important;color:#000!important;border-color:#000!important;transform:translateY(-2px)}
html body main .bc-final-cta{background:#000!important;color:#fff!important;border:2px solid #fff!important;font-size:17px}
html body main .bc-final-cta:hover{background:#fff!important;color:#000!important}
html body main .bc-actions:has(.bc-final-cta){display:flex;flex-wrap:wrap;gap:12px}
html body :is(button.btn,button.cs-btn,button.bc-currency-chip,.bc-work-controls button,input[type="submit"]){background:#000!important;color:#fff!important;border:1px solid #fff!important;min-height:44px}
html body :is(button.btn,button.cs-btn,button.bc-currency-chip,.bc-work-controls button):hover,html body button.bc-currency-chip.is-active{background:#fff!important;color:#000!important;border-color:#fff!important}
/* Strong visible keyboard focus; preserve native keyboard and form semantics. */
html body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid #fff!important;outline-offset:3px;box-shadow:0 0 0 5px #000!important}
/* Match the Start a project form: dark controls, white labels, fine visible borders. */
html body main :is(form,.bc-form-wrap) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]),select,textarea):not(.cs-country-native):not([aria-hidden="true"]){background:#000!important;color:#fff!important;border:1px solid rgba(255,255,255,.65)!important;border-radius:10px!important;min-height:46px;font-size:16px;box-sizing:border-box;color-scheme:dark}
html body main form :is(input,textarea)::placeholder{color:#fff!important;opacity:1!important}
html body main form :is(select,option,optgroup){background:#000!important;color:#fff!important}
html body main form :is(label,legend){color:#fff!important;opacity:1!important}
html body main form :is(.field,.cs-field){min-width:0}
html body main form :is(input,select,textarea):focus:not([type="hidden"]){border-color:#ff0000!important;outline:2px solid #fff!important;outline-offset:2px}
html body main form :is(input[type="checkbox"],input[type="radio"]){accent-color:#ff0000;background:#000!important;border:1px solid #fff!important}
html body main form fieldset{border:1px solid rgba(255,255,255,.40)!important;border-radius:14px!important}
html body main form .cs-country-trigger{background:#000!important;color:#fff!important;border:1px solid rgba(255,255,255,.65)!important}
html body main .bc-form-wrap .form-grid{gap:20px}
html body main .bc-form-wrap .field:not(:has(.contact-honeypot)){padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.25)}
/* Preserve honeypot invisibility. */
html body main form .contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:600px){html body main .bc-actions:has(.bc-final-cta) .bc-final-cta{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){html body :is(.bc-unified-cta,.bc-final-cta){transition:none!important}}
/* Defeat earlier per-section CTA overrides; keep clear boundaries on black and red. */
html body main a.bc-final-cta{border:2px solid #fff!important;background:#000!important;color:#fff!important}
html body main a.bc-final-cta:hover{border-color:#000!important;background:#fff!important;color:#000!important}
html body main :is(.bc-offer,.bc-work-foot,.bc-home-capability-grid) a.bc-unified-cta,html body main a.bc-guide-cta{background:#ff0000!important;color:#fff!important;border:1px solid #fff!important;font-size:19px!important;font-weight:700!important}
html body main :is(.bc-offer,.bc-work-foot,.bc-home-capability-grid) a.bc-unified-cta:hover,html body main a.bc-guide-cta:hover{background:#000!important;color:#fff!important}
/* Catalogue and portfolio captions must not retain light-theme foregrounds. */
html body #main-content.pricing-page :is(h1,h2,h3,h4,p,strong,li,th,td,.pricing-meta,.catalog-footnote){color:#fff!important;opacity:1!important}
html body #main-content.pricing-page :is(.pricing-note,.terms-grid article,.catalog-section){background:#000!important;color:#fff!important}
html body main .project-card:is(.media-ready,.media-loading) .project-info{background:#000!important;color:#fff!important}
html body main .project-card:is(.media-ready,.media-loading) .project-info :is(h3,p,.project-tag){color:#fff!important;opacity:1!important}
html body main .project-card .project-info .project-tag{background:#000!important;border-color:#fff!important}
html body #main-content.pricing-page :is(.pricing-container,.price-table-wrap,.price-table,thead,tbody,tr,td,th){background:rgba(0,0,0,.70)!important;color:#fff!important;border-color:rgba(255,255,255,.35)!important}

/* Explicit CTA states: independent of inherited section and legacy button styles. */
html body main section[aria-labelledby="cta-title"] .bc-actions a.bc-final-cta.bc-unified-cta,
html body main #briandcas-contact-form button#contact-submit-button {
 background:#ff0000!important;color:#000!important;border:2px solid #ffffff!important;
 border-radius:999px!important;opacity:1!important;visibility:visible!important;
 text-decoration:none!important;min-height:48px;font-weight:700;box-shadow:none!important;
 transition:background-color .2s,color .2s,transform .2s;
}
html body main section[aria-labelledby="cta-title"] .bc-actions a.bc-final-cta[href*="wa.me"]{background:#008000!important;color:#fff!important;}
html body main section[aria-labelledby="cta-title"] .bc-actions a.bc-final-cta.bc-unified-cta:is(:hover,:focus-visible),
html body main #briandcas-contact-form button#contact-submit-button:not(:disabled):is(:hover,:focus-visible){background:#fff!important;color:#000!important;border-color:#000!important;}
html body main section[aria-labelledby="cta-title"] .bc-actions a.bc-final-cta::before,
html body main section[aria-labelledby="cta-title"] .bc-actions a.bc-final-cta::after,
html body main #briandcas-contact-form button#contact-submit-button::before,
html body main #briandcas-contact-form button#contact-submit-button::after{content:none!important;display:none!important;}
html body main #briandcas-contact-form button#contact-submit-button:disabled{cursor:wait;}
#contact-delivery-toast[hidden]{display:none!important;}
#contact-delivery-toast{position:fixed;top: max(90px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:2147483000;width:min(520px,calc(100vw - 28px));box-sizing:border-box;padding:18px;background:#000!important;color:#fff!important;border:1px solid #fff;border-radius:16px;box-shadow:0 15px 50px #0009;animation:bcDeliveryIn .25s ease-out;}
#contact-delivery-toast .cs-submit-toast__top{display:flex;align-items:center;gap:12px;}
#contact-delivery-toast .cs-submit-toast__label{display:inline-flex;align-items:center;border-radius:999px;padding:11px 16px;color:#fff!important;font-weight:700;font-size:16px;background:#008000;}
#contact-delivery-toast.is-error .cs-submit-toast__label{background:#ff0000;}
#contact-delivery-toast .cs-submit-toast__close{margin-left:auto;flex:0 0 40px;width:40px;height:40px;background:#000!important;color:#fff!important;border:1px solid #fff!important;border-radius:50%!important;font-size:24px;cursor:pointer;}
#contact-delivery-toast .cs-submit-toast__message{color:#fff!important;opacity:1!important;font-size:16px;line-height:1.55;margin:14px 0 0;}
@keyframes bcDeliveryIn{from{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){#contact-delivery-toast{animation:none;}html body main section[aria-labelledby="cta-title"] .bc-actions a.bc-final-cta,html body main #briandcas-contact-form button#contact-submit-button{transition:none!important;}}

/* Site-wide action button audit: explicit filled primary actions and outlined secondary actions.
   Navigation, ordinary text links, portfolio cards and delivery-status controls are intentionally excluded. */
html body main#main-content a.bc-action-red.bc-unified-cta,
html body main#main-content a.bc-action-red.know-label-live,
html body main#main-content a.bc-action-red.bc-unified-cta:is(:link,:visited):where(:not(:hover,:focus-visible)),
html body main#main-content a.bc-action-red.know-label-live:is(:link,:visited):where(:not(:hover,:focus-visible)),
html body main#main-content :is(.knowledge-cta,.knowledge-actions,.knowledge-compare) a.bc-action-red.bc-unified-cta:is(:link,:visited,:active):where(:not(:hover,:focus-visible)){
 background:#ff0000!important;color:#000!important;border:1px solid #fff!important;
 text-decoration:none!important;opacity:1!important;visibility:visible!important;
}
html body main#main-content a.bc-action-outline.bc-unified-cta,
html body main#main-content a.bc-action-outline.bc-unified-cta:is(:link,:visited):where(:not(:hover,:focus-visible)){
 background:#000!important;color:#fff!important;border:1px solid #fff!important;
 text-decoration:none!important;opacity:1!important;visibility:visible!important;
}
html body main#main-content :is(a.bc-action-red,a.bc-action-outline):is(:hover,:focus-visible),
html body main#main-content :is(.knowledge-cta,.knowledge-actions,.knowledge-compare) a.bc-unified-cta:is(.bc-action-red,.bc-action-outline):is(:hover,:focus-visible){
 background:#fff!important;color:#000!important;border-color:#000!important;
}
html body main#main-content :is(a.bc-action-red,a.bc-action-outline) :is(span,strong,b,small){color:inherit!important;opacity:1!important}
html body main#main-content :is(a.bc-action-red,a.bc-action-outline):not(.know-label-live){border-radius:999px!important;min-height:44px;max-width:100%;box-sizing:border-box;white-space:normal;line-height:1.35;}
html body main#main-content .knowledge-compare a.bc-action-table{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 16px!important;font-size:16px!important;font-weight:700!important;line-height:1.3;white-space:normal;min-width:112px;box-sizing:border-box;}
/* Form, finder and brief primary buttons; secondary utilities remain outlined. */
html body main#main-content :is(button.knowledge-btn:not(.secondary),button.cs-btn:not(.secondary),button[type="submit"],input[type="submit"]):not(.cs-submit-toast__label){background:#ff0000!important;color:#000!important;border:1px solid #fff!important;border-radius:999px!important;min-height:44px;opacity:1!important;}
html body main#main-content :is(button.knowledge-btn:not(.secondary),button.cs-btn:not(.secondary),button[type="submit"],input[type="submit"]):not(:disabled):not(.cs-submit-toast__label):is(:hover,:focus-visible){background:#fff!important;color:#000!important;border-color:#000!important;}
html body main#main-content :is(button.knowledge-btn.secondary,button.cs-btn.secondary,button.filter){background:#000!important;color:#fff!important;border:1px solid #fff!important;border-radius:999px!important;min-height:44px;}
html body main#main-content :is(button.knowledge-btn.secondary,button.cs-btn.secondary,button.filter):is(:hover,:focus-visible){background:#fff!important;color:#000!important;border-color:#000!important;}
html body main#main-content button.filter.active:not(:hover):not(:focus-visible){background:#ff0000!important;color:#000!important;border-color:#fff!important;}
html body main#main-content :is(button.knowledge-btn,button.cs-btn,button[type="submit"]):disabled{cursor:not-allowed;}

/* Shared type scale. Component selectors distinguish content roles from heading levels. */
:root {
  --bc-type-main: 2rem;
  --bc-type-section: 1.625rem;
  --bc-type-subhead: 1.25rem;
  --bc-type-minor: 1.125rem;
  --bc-type-card: 1.125rem;
  --bc-type-body: 1rem;
  --bc-type-control: 1rem;
  --bc-type-nav: .9375rem;
  --bc-type-caption: .875rem;
  --bc-type-main-gap: clamp(1rem, 1.5vw, 1.5rem);
}
@media (min-width: 640px) {
  :root {
    --bc-type-main: 2.75rem;
    --bc-type-section: 2rem;
    --bc-type-subhead: 1.375rem;
    --bc-type-card: 1.25rem;
    --bc-type-body: 1.0625rem;
  }
}
@media (min-width: 960px) {
  :root {
    --bc-type-main: 3.5rem;
    --bc-type-section: 2.25rem;
    --bc-type-subhead: 1.5rem;
    --bc-type-minor: 1.25rem;
    --bc-type-card: 1.375rem;
    --bc-type-body: 1.125rem;
  }
}
@media (min-width: 1600px) {
  :root {
    --bc-type-main: 4rem;
    --bc-type-section: 2.5rem;
    --bc-type-subhead: 1.625rem;
  }
}
@media (max-width: 900px) {
  :root { --bc-type-nav: 1rem; }
}
@media (max-width: 600px) {
  :root { --bc-type-caption: .8125rem; }
}

html body #main-content {
  font-family: var(--bc-font);
  font-size: var(--bc-type-body);
  line-height: 1.6;
}
html body #main-content h1 {
  font-size: var(--bc-type-main) !important;
  font-weight: 600;
  line-height: 1.12 !important;
  letter-spacing: -.03em !important;
  margin-block-end: var(--bc-type-main-gap) !important;
}
html body #main-content h2 {
  font-size: var(--bc-type-section);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.02em;
}
html body #main-content h3 {
  font-size: var(--bc-type-subhead);
  font-weight: 600;
  line-height: 1.3;
}
html body #main-content h4 {
  font-size: var(--bc-type-minor);
  font-weight: 600;
  line-height: 1.35;
}

html body #main-content :is(
  .bc-offer article, .bc-tile, .bc-product-card, .service-detail-title,
  .service-detail-content, .project-info, .knowledge-card-body, .visual-card-copy,
  .pf-card-body, .finder-result, .knowledge-mini, .bi-card, .cs-panel-head,
  .terms-grid article, .bc-catalog-head, .bc-ways a
) :is(h2,h3,h4,strong:first-child),
html body #main-content .bc-work > a span > strong,
html body #main-content .bc-product-copy > strong {
  font-family: var(--bc-display);
  font-size: var(--bc-type-card);
  font-weight: 600;
  line-height: 1.27;
}
html body #main-content :is(
  .bc-offer article, .bc-tile, .bc-product-copy, .service-detail-card, .project-info,
  .knowledge-card-body, .visual-card-copy, .pf-card-body, .finder-result,
  .knowledge-mini, .bi-card, .cs-panel, .terms-grid article
) p,
html body #main-content .bc-ways a > span {
  font-family: var(--bc-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}
html body #main-content :is(
  .bc-hero-copy, .bc-page-title, .page-hero, .knowledge-hero,
  .bc-head, .bc-section, .service-group-intro, .knowledge-copy, .bc-faq
) > p,
html body #main-content :is(.bc-page-title,.page-hero,.knowledge-hero) > :is(.bc-wrap,.container,.pricing-container) > p {
  font-family: var(--bc-font);
  font-size: var(--bc-type-body);
  line-height: 1.6;
}
html body #main-content :is(.page-hero,.knowledge-hero) p {
  font-size: var(--bc-type-body) !important;
}
html body #main-content figcaption {
  font-family: var(--bc-font);
  font-size: var(--bc-type-caption);
  line-height: 1.5;
}
html body .bc-header .bc-nav :is(a,button) {
  font-family: var(--bc-font);
  font-size: var(--bc-type-nav);
}
html body #main-content :is(
  a.bc-unified-cta, a.bc-final-cta, button.knowledge-btn, button.cs-btn,
  button.filter, button.bc-currency-chip, input[type="submit"]
) {
  font-family: var(--bc-font);
  font-size: var(--bc-type-control);
}
html body #main-content :is(
  .bc-offer,.bc-work-foot,.bc-home-capability-grid
) a.bc-unified-cta,
html body #main-content :is(a.bc-guide-cta,.knowledge-compare a.bc-action-table) {
  font-size: var(--bc-type-control) !important;
}
html body #main-content form :is(input:not([type="hidden"]),select,textarea) {
  font-family: var(--bc-font);
  font-size: var(--bc-type-control);
}

/* Keep dense catalogue utilities distinct from ordinary section headings. */
html body #main-content :is(.cs-pricing-level,.cs-requirements) h3 {
  font-size: var(--bc-type-control);
  line-height: 1.35;
}
