/* barmSTUDIO 7.3 — shared design language, true five-project layout, Polish typesetting.
   Loaded last, isolated from old portfolio widgets and existing plugin functionality. */
body.bs-v6 {
  --bs73-ink:#14213d;
  --bs73-navy:#111b33;
  --bs73-accent:#7895ef;
  --bs73-border:#e0e6f0;
  --bs73-shadow:0 16px 40px rgba(15,29,58,.055);
}
body.bs-v6 :where(main,footer) :where(h1,h2,h3,h4,h5){text-wrap:balance;hyphens:manual;word-break:normal;overflow-wrap:break-word}
body.bs-v6 :where(main,footer) :where(p,li,blockquote,dd){text-wrap:pretty;orphans:2;widows:2;hyphens:manual}
body.bs-v6 :where(.bs7-label,.bs-eyebrow){color:#6b81ad}
body.bs-v6 :where(.bs-card,.bs-project-card,.bs-editorial-card,.bs-testimonial-panel>.bs-card){border-color:var(--bs73-border);box-shadow:var(--bs73-shadow)}
body.bs-v6 .bs7-section-title :is(h2,p){max-width:none}
body.bs-v6 .bs7-section-title h2{max-width:20ch}

/* Main featured grid: 1 lead + 4 equally sized projects. */
body.bs-v6 .bs7-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2.2vw,29px)}
body.bs-v6 .bs7-featured-grid>.bs7-case-lead:first-child{grid-column:1/-1}
body.bs-v6 .bs7-featured-grid>.bs7-case{min-width:0;max-width:100%}
body.bs-v6 .bs7-case-image>img{max-height:none!important;width:100%;height:auto!important;object-fit:contain!important}
body.bs-v6 .bs7-case-caption h3{overflow-wrap:anywhere}

/* Browser frame in ALL portfolio cards: exact same bar as on the homepage. */
body.bs-v6 .bs-project-card{overflow:hidden;border-radius:19px;display:flex;flex-direction:column}
body.bs-v6 .bs-project-media,
body.bs-v6 .bs-project-card .bs-project-media{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  padding:0!important;gap:0!important;aspect-ratio:auto!important;
  background:#eef2f8!important;border:0;position:relative;overflow:hidden;
  width:100%;border-bottom:1px solid var(--bs73-border)
}
body.bs-v6 .bs-project-card .bs-project-media .bs72-browserbar{order:0;z-index:2;align-self:stretch}
body.bs-v6 .bs-project-card .bs-project-media>img{
  order:1;width:100%!important;height:auto!important;max-height:none!important;
  aspect-ratio:16 / 10;object-fit:contain!important;object-position:center;
  padding:0!important;box-shadow:none!important;border-radius:0!important;
  transform:none!important;filter:none!important;background:#fff!important
}
body.bs-v6 .bs-project-card .bs-project-media>.bs-project-placeholder{order:1;min-height:230px}
body.bs-v6 .bs-project-card .bs-project-open{display:none!important}
body.bs-v6 .bs-project-card .bs73-project-visit{order:2;right:10px;bottom:10px;font-size:11px;z-index:3}
body.bs-v6 .bs-project-card .bs-project-body{flex:1;display:flex;flex-direction:column;padding:clamp(17px,2vw,26px)}
body.bs-v6 .bs-project-card .bs-project-card-foot{margin-top:auto}
body.bs-v6 .bs-project-card:hover{transform:translateY(-3px)}

/* A recognisable dark hero on every WordPress service, local, portfolio, blog and contact landing. */
body.bs-v6 .bs-page-hero .bs-page-hero-card,
body.bs-v6 .bs-page-hero .bs-about-copy-v2{
  position:relative;isolation:isolate;overflow:hidden;
  background:radial-gradient(circle at 92% 13%,rgba(86,114,204,.22),transparent 48%),linear-gradient(127deg,#121b30 8%,#202e53 100%)!important;
  border:1px solid #283b60!important;color:#f6f8ff!important;
  border-radius:clamp(18px,2.4vw,27px)!important;
  box-shadow:0 25px 60px rgba(14,28,56,.12)!important;
  padding:clamp(29px,4.5vw,62px)!important;
}
body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) :is(h1,h2,h3,strong){color:#fff!important}
body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) :is(p,.bs-lead){color:#bac8e5!important;line-height:1.68}
body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) .bs-eyebrow{color:#a4bcf5!important}
body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) .bs-eyebrow::before{background:#82a5f6}
body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) h1{
  max-width:20ch;letter-spacing:-.052em;font-size:clamp(32px,4.6vw,62px);line-height:1.08
}
body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) :is(.bs-btn-primary,.bs-portfolio-stat){background:#fff;color:#152340;border-color:#fff}
body.bs-v6 .bs-page-hero .bs-portfolio-stat :is(strong,span){color:#182b50!important}
body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) .bs-btn-ghost{border-color:rgba(255,255,255,.46);color:#fff;background:transparent}
body.bs-v6 .bs-page-hero .bs-portfolio-stat{border-radius:12px;padding:12px 15px;display:inline-flex;align-items:center;gap:12px}
body.bs-v6 .bs-page-hero .bs-portfolio-stat strong{font-size:clamp(22px,3vw,34px)}
body.bs-v6 .bs-page-hero .bs-about-copy-v2 :is(.bs-about-actions,.bs-about-actions a){position:relative;z-index:2}

/* Shared rhythm for subpages as well as the front page. */
body.bs-v6 .bs-section-head{gap:clamp(14px,3vw,40px);margin-bottom:clamp(24px,3.4vw,40px)}
body.bs-v6 .bs-section-head h2{font-size:clamp(29px,3.6vw,50px);letter-spacing:-.048em;line-height:1.12}
body.bs-v6 .bs-section-head p{max-width:54ch;line-height:1.72}
body.bs-v6 :where(.bs-section,.bs-page-hero,.bs-service-detail){min-width:0}
body.bs-v6 :where(.bs-service-detail-list,.bs-feature-grid,.bs-growth-solutions-grid,.bs-portfolio-section,.bs-project-grid){min-width:0}
body.bs-v6 .bs-service-sticky{border-radius:20px}
body.bs-v6 .bs-editorial-hero{border-radius:22px;background:linear-gradient(132deg,#f9fbff,#eaf0fc)}
body.bs-v6 .bs-testimonial-panel>.bs-card{border-radius:20px}

/* The home CTA remains visible and readable on phones too. */
body.bs-v6.bs-front .bs7-closing,
body.bs-v6.home .bs7-closing{
  display:block!important;visibility:visible!important;opacity:1!important;
  transform:none!important;position:relative;z-index:1;
  background:#101a30;isolation:isolate;overflow:hidden;
  margin-bottom:clamp(18px,4vw,38px)
}
body.bs-v6 .bs7-closing .bs7-actions,body.bs-v6 .bs7-closing :is(h2,p,.bs7-label){position:relative;z-index:2}

/* Google reviews, cards respect the existing barmSTUDIO visual language. */
body.bs-v6 .bs73-review-empty,body.bs-v6 .bs73-review-loading{
  grid-column:1/-1;padding:clamp(20px,3vw,35px);border:1px solid var(--bs73-border);
  border-radius:18px;background:#fff;color:#58657a;line-height:1.7
}
body.bs-v6 .bs73-review-empty p{margin:0}
body.bs-v6 .bs73-google-disclosure{font-size:12px;color:#6f7c91;margin:16px 0 3px;line-height:1.7}
body.bs-v6 .bs73-google-disclosure [translate="no"]{white-space:nowrap;font-weight:600}
body.bs-v6 .bs73-google-link{margin-top:12px}
body.bs-v6 .bs73-live-review{display:flex;flex-direction:column;min-width:0;min-height:210px;border-radius:19px;padding:clamp(20px,2.2vw,29px);background:#fff;border:1px solid var(--bs73-border);box-shadow:var(--bs73-shadow)}
body.bs-v6 .bs73-live-top{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#607baf;font-size:12px;font-weight:750}
body.bs-v6 .bs73-live-top .bs73-stars{letter-spacing:1px;color:#e6a217;font-size:17px}
body.bs-v6 .bs73-live-review>p{font-size:14px;color:#35435d;line-height:1.76;margin:22px 0 20px;flex:1}
body.bs-v6 .bs73-live-foot{display:flex;align-items:center;gap:10px;min-width:0;margin-top:auto}
body.bs-v6 .bs73-live-avatar{height:37px;width:37px;flex:0 0 37px;display:grid;place-items:center;background:#eef3ff;color:#4466b3;border-radius:100%;overflow:hidden;font-size:14px;font-weight:800}
body.bs-v6 .bs73-live-avatar img{height:100%;width:100%;object-fit:cover}
body.bs-v6 .bs73-live-author{display:flex;flex-direction:column;min-width:0;gap:3px}
body.bs-v6 .bs73-live-author :is(a,strong){color:#1e2b49;font-size:12px;font-weight:800;text-decoration:none}
body.bs-v6 .bs73-live-author small{font-size:11px;color:#7d879b}
body.bs-v6 .bs73-live-source{margin-left:auto;color:#4b71b0;font-size:11px;font-weight:700;white-space:nowrap}
body.bs-v6 .bs73-live-source:hover,body.bs-v6 .bs73-live-author a:hover{text-decoration:underline}

@media(max-width:800px){
  body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2){padding:clamp(26px,5vw,39px)!important}
  body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) h1{font-size:clamp(30px,6vw,44px);max-width:22ch}
  body.bs-v6 .bs-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  /* Intentional mobile magazine grid: 1 full-width + 4 half-width pieces. */
  body.bs-v6 .bs7-featured-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:clamp(13px,3.4vw,19px)!important}
  body.bs-v6 .bs7-featured-grid>.bs7-case-lead:first-child{grid-column:1/-1!important}
  body.bs-v6 .bs7-featured-grid>.bs7-case:not(.bs7-case-lead){grid-column:auto!important}
  body.bs-v6 .bs7-featured-grid .bs7-case-image{border-radius:12px}
  body.bs-v6 .bs7-featured-grid .bs72-browserbar{grid-template-columns:30px minmax(0,1fr) 13px;font-size:8px;padding:0 5px;height:25px;flex-basis:25px;gap:3px}
  body.bs-v6 .bs7-featured-grid .bs72-browserdots{gap:2px}
  body.bs-v6 .bs7-featured-grid .bs72-browserdots i{width:5px;height:5px}
  body.bs-v6 .bs7-featured-grid .bs72-browseraddress{max-width:100%;padding:3px 4px;white-space:nowrap}
  body.bs-v6 .bs7-featured-grid .bs7-case-image>img{aspect-ratio:1.52!important;height:auto!important}
  body.bs-v6 .bs7-featured-grid .bs7-case-lead .bs7-case-image>img{aspect-ratio:1.9!important}
  body.bs-v6 .bs7-featured-grid .bs7-case-caption{padding:10px 0 0;gap:7px;align-items:flex-start}
  body.bs-v6 .bs7-featured-grid .bs7-case-caption span{font-size:8px;line-height:1.4}
  body.bs-v6 .bs7-featured-grid .bs7-case-caption h3{font-size:clamp(16px,4.3vw,24px);line-height:1.19;overflow-wrap:anywhere}
  body.bs-v6 .bs7-featured-grid .bs7-case-caption>a{width:27px;height:27px;border-radius:8px;font-size:15px}
  body.bs-v6 .bs7-featured-grid .bs7-case-lead .bs7-case-caption h3{font-size:clamp(23px,6vw,31px)}
  body.bs-v6 .bs7-featured-grid .bs7-case-visit{font-size:9px;padding:7px 8px;bottom:8px;right:8px;border-radius:7px}
  body.bs-v6 .bs-page-hero .bs-page-hero-card,body.bs-v6 .bs-page-hero .bs-about-copy-v2{padding:26px 22px!important;border-radius:20px!important}
  body.bs-v6 .bs-page-hero :is(.bs-page-hero-card,.bs-about-copy-v2) h1{font-size:clamp(29px,7.7vw,39px);max-width:100%}
  body.bs-v6 .bs-project-grid{grid-template-columns:1fr}
  body.bs-v6 .bs7-closing{display:block!important;padding:clamp(29px,6vw,41px) 23px!important;border-radius:19px!important;min-height:0!important;margin-top:clamp(52px,12vw,72px)!important}
  body.bs-v6 .bs7-closing h2{font-size:clamp(34px,9.4vw,49px)!important;max-width:100%;line-height:1.09}
  body.bs-v6 .bs7-closing .bs7-actions{align-items:stretch;flex-direction:column}
  body.bs-v6 .bs7-closing .bs7-button{width:100%;max-width:100%}
  body.bs-v6 .bs7-closing .bs7-underlink{overflow-wrap:anywhere}
  body.bs-v6 .bs7-closing-outline{right:-40px;bottom:-30px;font-size:160px;opacity:.7}
  body.bs-v6 .bs7-review-grid{grid-template-columns:1fr}
  body.bs-v6 .bs73-live-review{min-height:180px}
}
@media(max-width:350px){
  body.bs-v6 .bs7-featured-grid{gap:10px!important}
  body.bs-v6 .bs7-featured-grid .bs7-case-caption h3{font-size:15px}
  body.bs-v6 .bs7-featured-grid .bs7-case-visit{display:none}
}
@media(prefers-reduced-motion:reduce){body.bs-v6 .bs-project-card{transition:none}}

/* Contact page shares the same live Google data, with vertical cards in its column. */
body.bs-v6 .bs73-contact-google{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px}
body.bs-v6 .bs73-contact-google .bs73-live-review{min-height:0;padding:18px}
body.bs-v6 .bs73-contact-google .bs73-live-review>p{margin:13px 0 17px}

/* Also align standalone project stories and editorial archives with the homepage hero. */
body.bs-v6 .bs-project-detail-intro,
body.bs-v6 .bs-editorial-head .bs-editorial-hero,
body.bs-v6 .bs-article-hero-v2.no-image .bs-article-hero-shell{
  background:radial-gradient(ellipse at 92% 5%,rgba(99,121,218,.18),transparent 52%),linear-gradient(130deg,#121b30,#23345a)!important;
  color:#f6f8ff!important;border:1px solid #283b60!important;
  border-radius:clamp(18px,2.4vw,27px)!important;
  box-shadow:0 25px 60px rgba(14,28,56,.12)!important
}
body.bs-v6 :is(.bs-project-detail-intro,.bs-editorial-head .bs-editorial-hero,.bs-article-hero-v2.no-image .bs-article-hero-shell) :is(h1,h2,h3,strong){color:#fff!important}
body.bs-v6 :is(.bs-project-detail-intro,.bs-editorial-head .bs-editorial-hero,.bs-article-hero-v2.no-image .bs-article-hero-shell) :is(p,.bs-lead,.bs-editorial-intro,.bs-article-meta){color:#bdc9e1!important}
body.bs-v6 :is(.bs-project-detail-intro,.bs-editorial-head .bs-editorial-hero,.bs-article-hero-v2.no-image .bs-article-hero-shell) .bs-eyebrow{color:#a4bcf5!important}
body.bs-v6 :is(.bs-project-detail-intro,.bs-editorial-head .bs-editorial-hero) .bs-btn-primary{color:#152340!important;background:#fff!important;border-color:#fff!important}
body.bs-v6 :is(.bs-project-detail-intro,.bs-editorial-head .bs-editorial-hero) .bs-btn-ghost{color:#fff!important;border-color:rgba(255,255,255,.4)!important;background:transparent!important}
body.bs-v6 .bs-project-detail-intro .bs-back{color:#bad0ff!important}
body.bs-v6 .bs-project-detail-intro .bs-project-tech-list span{color:#c5d4f2;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16)}
body.bs-v6 .bs-project-browser{border-radius:20px;overflow:hidden}
body.bs-v6 .bs-project-browser-bar{background:#f8faff;border-bottom:1px solid #dce4f0;color:#6c7c97}
body.bs-v6 .bs-article-hero-v2.no-image .bs-article-hero-copy{color:#fff!important}
body.bs-v6 .bs-project-next-card{background:linear-gradient(125deg,#111a30,#23345b);border-radius:21px;border-color:#283b60}
body.bs-v6 .bs-project-next-card :is(h2,.bs-eyebrow){color:#fff}
body.bs-v6 .bs-project-next-card .bs-btn-primary{background:#fff;color:#152340;border-color:#fff}
@media(max-width:600px){
  body.bs-v6 .bs-project-detail-intro,
  body.bs-v6 .bs-editorial-head .bs-editorial-hero{border-radius:20px!important}
  body.bs-v6 .bs-editorial-head .bs-editorial-hero h1,
  body.bs-v6 .bs-project-detail-intro h1{font-size:clamp(30px,8vw,43px);line-height:1.1}
}

body.bs-v6 .bs73-provider-credit{grid-column:1/-1;font-size:12px;color:#687892;margin:0}body.bs-v6 .bs73-provider-credit a{color:#456ab6;text-decoration:underline}
