/* Boas Digital Solutions — components.css
   Requires tokens.css (CSS custom properties) loaded first.
   Class prefix: b-  */

/* ---------- Base ---------- */
.b-page{background:var(--ink);color:var(--frost);font-family:var(--font-body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
:where(.b-page) :where(h1,h2,h3,p,blockquote,ol,ul,figure){margin:0}
:where(.b-page) a{color:inherit}
.b-page a:focus-visible,.b-page button:focus-visible{outline:2px solid var(--coral);outline-offset:3px}

.b-container{max-width:1280px;margin-inline:auto;padding-inline:clamp(20px,4vw,48px);box-sizing:border-box}
.b-section{padding-block:clamp(80px,10vw,140px)}
.b-section--ink{background:var(--ink);color:var(--frost)}
.b-section--chalk{background:var(--chalk);color:var(--ink)}
.b-section--coral{background:var(--coral);color:var(--on-coral)}
.b-section--ruled{border-bottom:1px solid var(--rule-ink)}
.b-stack{display:flex;flex-direction:column;gap:clamp(48px,6vw,80px)}

/* ---------- Type ---------- */
.b-display{font-family:var(--font-display);font-stretch:125%;font-weight:800;text-transform:uppercase;letter-spacing:-0.01em;text-wrap:balance}
.b-display--xl{font-size:clamp(34px,7.6vw,116px);line-height:.94;color:var(--frost-bright)}
.b-display--l{font-size:clamp(30px,4.6vw,66px);line-height:.98}
/* For long headlines written in the CMS (article titles). */
.b-display--m{font-size:clamp(28px,3.6vw,52px);line-height:1.02}
.b-hero .b-display--m{color:var(--frost-bright)}
.b-section--ink .b-display--l{color:var(--frost-bright)}
.b-accent{color:var(--coral)}
.b-heading{font-family:var(--font-display);font-stretch:125%;font-weight:700;text-transform:uppercase;font-size:21px;line-height:1.15}
.b-heading--s{font-size:18px;line-height:1.2}
.b-lead{font-size:clamp(18px,1.5vw,21px);line-height:1.55;max-width:560px;text-wrap:pretty}
.b-section--ink .b-lead,.b-hero .b-lead{color:var(--mist)}
.b-meta{font-family:var(--font-mono);font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}
.b-micro{font-family:var(--font-mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase}
.b-muted{color:var(--stone)}
.b-section--chalk .b-muted{color:var(--pewter)}

/* Section head: headline left, supporting paragraph right. No eyebrow. */
.b-head{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:32px 80px;align-items:end}
.b-head p{font-size:18px;max-width:520px;text-wrap:pretty}
.b-section--chalk .b-head p{color:var(--graphite)}
.b-head--split{display:flex;justify-content:space-between;align-items:end;gap:24px;flex-wrap:wrap}

/* ---------- Buttons ---------- */
/* Buttons are the one place with light and shadow: a 1px highlight on the top
   edge, a tight contact shadow, and a soft glow in the button's own colour
   that grows on hover and settles on press. Variants set the variables:
   --btn-glow (colour), --btn-light (top highlight), --btn-rest/--btn-lift
   (glow strength at rest and on hover). */
.b-btn{--btn-glow:var(--coral);--btn-light:55%;--btn-rest:55%;--btn-lift:62%;display:inline-flex;align-items:center;gap:12px;min-height:44px;box-sizing:border-box;padding:18px 26px;border:1px solid transparent;border-radius:var(--radius-sm);font-family:var(--font-mono);font-size:13px;font-weight:500;line-height:1;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;cursor:pointer;
  --btn-top:inset 0 1px 0 color-mix(in srgb,var(--frost-bright) var(--btn-light),transparent);
  box-shadow:var(--btn-top),0 1px 2px color-mix(in srgb,var(--ink) 50%,transparent),0 6px 20px -8px color-mix(in srgb,var(--btn-glow) var(--btn-rest),transparent);
  transition:filter .2s,border-color .2s,color .2s,box-shadow .2s}
.b-btn:hover{box-shadow:var(--btn-top),0 1px 2px color-mix(in srgb,var(--ink) 50%,transparent),0 8px 24px -8px color-mix(in srgb,var(--btn-glow) var(--btn-lift),transparent)}
.b-btn:active{box-shadow:var(--btn-top),0 1px 1px color-mix(in srgb,var(--ink) 50%,transparent),0 3px 12px -6px color-mix(in srgb,var(--btn-glow) var(--btn-rest),transparent)}
.b-btn--primary{background:var(--coral);color:var(--on-coral)}
.b-btn--primary:hover{filter:brightness(1.08)}
.b-btn--ghost{--btn-glow:var(--frost);--btn-light:14%;--btn-rest:12%;--btn-lift:17%;background:transparent;color:var(--frost);border-color:var(--rule-ghost)}
.b-btn--ghost:hover{--btn-light:22%;border-color:var(--frost);color:var(--frost-bright)}
.b-btn--dark{--btn-glow:var(--ink);--btn-light:20%;background:var(--ink);color:var(--frost-bright)}
.b-btn--sm{padding:13px 20px;font-size:12px}
.b-btn svg,.b-btn i{font-size:14px;width:16px;height:16px}
.b-actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.b-section--coral .b-page a:focus-visible,.b-section--coral a:focus-visible{outline-color:var(--ink)}

/* ---------- Site header ---------- */
.b-header{background:var(--ink);border-bottom:1px solid var(--rule-ink)}
.b-header__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-block:22px}
.b-logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--frost)}
.b-logo__mark{font-family:var(--font-display);font-stretch:125%;font-weight:800;font-size:22px;letter-spacing:.04em}
.b-logo__img{display:block;align-self:flex-start;height:30px;width:auto;color:var(--coral)}
.b-logo .b-logo__img{align-self:center}
.b-logo__img--mono{color:var(--frost)}
.b-logo__sub{font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--stone)}
.b-nav{display:flex;gap:clamp(18px,2.6vw,36px);flex-wrap:wrap;font-size:15px;color:var(--mist)}
.b-nav a{text-decoration:none;transition:color .2s}
.b-nav a:hover,.b-nav a[aria-current="page"]{color:var(--frost-bright)}

/* ---------- Hero ---------- */
.b-hero{background-color:var(--ink);border-bottom:1px solid var(--rule-ink)}
.b-hero--grid{background-image:linear-gradient(var(--grid-ink) 1px,transparent 1px),linear-gradient(90deg,var(--grid-ink) 1px,transparent 1px);background-size:80px 80px;background-position:-1px -1px}
.b-hero__inner{display:flex;flex-direction:column;gap:clamp(40px,5vw,64px);padding-block:clamp(72px,10vw,136px) clamp(64px,8vw,112px)}
.b-hero__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));gap:clamp(40px,6vw,96px);align-items:end}
.b-hero__copy{display:flex;flex-direction:column;gap:32px}

/* ---------- Spec panel (credentials) ---------- */
.b-spec{background:var(--slate);border:1px solid rgba(233,236,239,.1);border-radius:var(--radius-sm)}
.b-spec__head{display:flex;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(233,236,239,.1);font-family:var(--font-mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--stone)}
.b-spec__row{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid rgba(233,236,239,.06)}
.b-spec__row:last-child{border-bottom:0}
.b-spec__val{font-family:var(--font-mono);font-size:13px;color:var(--frost)}
.b-spec__val--on{color:var(--coral)}

/* ---------- Client strip ---------- */
.b-clients{display:flex;gap:32px 56px;align-items:center;flex-wrap:wrap;padding-block:44px}
.b-clients__list{display:flex;gap:20px 48px;flex-wrap:wrap;align-items:center;font-family:var(--font-display);font-stretch:125%;font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:var(--stone)}
.b-clients__list img{height:28px;width:auto;opacity:.7;filter:grayscale(1) brightness(1.6)}

/* Link groups: plain links in hairline rows under a small label (city pages).
   The arrow turns coral on hover, as in the services menu. */
.b-linkgroups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:40px}
.b-linkgroup .b-micro{display:block;margin-bottom:12px}
.b-linklist{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule-ink-strong)}
.b-linklist a{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:44px;box-sizing:border-box;padding:14px 0;border-bottom:1px solid var(--rule-ink);color:var(--frost);font-size:17px;text-decoration:none}
.b-linklist a:hover{color:var(--frost-bright)}
.b-linklist i{font-size:14px;color:var(--stone);transition:color .2s}
.b-linklist a:hover i,.b-linklist a:focus-visible i{color:var(--coral)}

/* Logo wall: the client strip with logos in hairline cells that share their
   borders. Muted like the text strip; full colour on hover. */
/* A grid, not the strip's wrapping flex row: a wrapping column flexbox sizes
   the wall from the logos' natural heights and stretches every row. */
.b-clients--wall{display:grid;gap:24px}
.b-logowall{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(clamp(104px,24vw,150px),100%),1fr));border-top:1px solid var(--rule-ink);border-left:1px solid var(--rule-ink)}
.b-logowall__item{display:flex;align-items:center;justify-content:center;min-height:clamp(80px,9vw,104px);padding:18px 20px;border-right:1px solid var(--rule-ink);border-bottom:1px solid var(--rule-ink);box-sizing:border-box}
.b-logowall__item img{display:block;max-width:min(100%,128px);max-height:clamp(34px,4vw,56px);width:auto;height:auto;opacity:.7;filter:grayscale(1) brightness(1.6);transition:opacity .25s,filter .25s}
.b-logowall__item:hover img{opacity:1;filter:none}

/* ---------- Service tiles (chalk) ---------- */
.b-services{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));border-top:1px solid var(--ink)}
.b-service{display:flex;flex-direction:column;gap:20px;padding:36px 28px 40px;border-bottom:1px solid var(--rule-chalk);border-right:1px solid var(--rule-chalk);color:var(--ink);text-decoration:none;transition:background .25s}
.b-service:hover{background:var(--chalk-hover)}
.b-service__icon{font-size:26px;width:28px;height:28px;color:var(--ink)}
.b-service p{font-size:16px;color:var(--graphite)}
.b-service__more{margin-top:auto;display:flex;align-items:center;gap:10px;font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.b-service__more svg,.b-service__more i,.b-more i{transition:transform .25s}
.b-service:hover .b-service__more svg,.b-service:hover .b-service__more i,.b-more:hover i{transform:translateX(6px)}

/* ---------- Stats ---------- */
.b-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.b-stat{display:flex;flex-direction:column;gap:16px;padding:32px 32px 32px 0;border-top:1px solid var(--rule-ink-strong)}
.b-stat__num{font-family:var(--font-display);font-stretch:125%;font-weight:800;font-size:clamp(56px,7vw,104px);line-height:1;color:var(--coral);font-variant-numeric:tabular-nums}
.b-stat__label{font-size:17px;color:var(--frost)}

/* ---------- Case cards ---------- */
.b-cases{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));gap:48px 32px}
.b-case{display:flex;flex-direction:column;gap:22px;text-decoration:none;color:var(--frost)}
.b-case__frame{overflow:hidden;border-radius:var(--radius-sm)}
.b-case__shot{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;background:var(--slate);border:1px solid rgba(233,236,239,.1);box-sizing:border-box;transition:transform .4s}
.b-case:hover .b-case__shot{transform:scale(1.015)}
.b-case__tags{display:flex;gap:10px;flex-wrap:wrap;color:var(--stone)}
.b-case__title{font-size:22px}
.b-case p{font-size:16px;color:var(--mist)}

/* ---------- Process steps (chalk). Numbers allowed: this is a real sequence. ---------- */
.b-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:40px 32px}
.b-step{display:flex;flex-direction:column;gap:16px;border-top:2px solid var(--ink);padding-top:24px}
.b-step:last-child{border-top-color:var(--coral)}
.b-step__num{font-family:var(--font-display);font-stretch:125%;font-weight:800;font-size:44px;line-height:1}
.b-step p{font-size:16px;color:var(--graphite)}

/* ---------- Testimonial ---------- */
.b-quote{max-width:1080px;margin-inline:auto;display:flex;flex-direction:column;gap:40px}
.b-quote__mark{width:56px;height:44px;fill:var(--coral)}
.b-quote blockquote{display:flex;flex-direction:column;gap:36px}
.b-quote blockquote p{font-size:clamp(24px,2.8vw,38px);line-height:1.3;font-weight:500;color:var(--frost-bright);text-wrap:pretty}
.b-quote cite{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-style:normal;color:var(--stone)}
.b-quote cite::before{content:"";width:32px;height:1px;background:var(--coral)}
.b-quote cite strong{color:var(--frost);font-weight:500}

/* ---------- CTA band (coral) ---------- */
.b-cta{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(460px,100%),1fr));gap:48px 80px;align-items:end}
.b-cta .b-display{font-size:clamp(36px,6vw,92px);line-height:.94}
.b-cta__copy{display:flex;flex-direction:column;gap:28px;max-width:480px}
.b-cta__copy p{font-size:19px;line-height:1.55}
.b-cta__email{font-size:14px;font-family:var(--font-mono);text-underline-offset:4px}

/* ---------- Footer ---------- */
.b-footer{background:var(--ink);color:var(--mist)}
.b-footer__inner{display:flex;flex-direction:column;gap:64px;padding-block:96px 40px}
.b-footer__cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:40px}
.b-footer__col{display:flex;flex-direction:column;gap:10px;font-size:15px}
.b-footer__col a{text-decoration:none}
.b-footer__col a:hover{color:var(--frost-bright)}
.b-footer__col .b-micro{color:var(--stone);margin-bottom:6px}
.b-footer__word{font-family:var(--font-display);font-stretch:125%;font-weight:900;font-size:clamp(72px,19vw,280px);line-height:.8;color:var(--slate);overflow:hidden;white-space:nowrap}
.b-footer__legal{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--rule-ink);padding-top:24px;font-family:var(--font-mono);font-size:12px;color:var(--stone)}
.b-footer__legal nav{display:flex;gap:24px}

/* ---------- Inline link with arrow ("Explore", "Websites") ---------- */
.b-more{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;text-decoration:none}
.b-more:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- Page hero (inner pages): the home hero, shorter ---------- */
.b-hero--page .b-hero__inner{padding-block:clamp(64px,8vw,112px) clamp(56px,7vw,96px);gap:32px}
.b-hero .b-display--l{color:var(--frost-bright)}

/* ---------- Split: two columns that stack on phones ---------- */
.b-split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));gap:clamp(40px,6vw,96px);align-items:start}

/* ---------- Rows: hairline list of name / description / end value ---------- */
.b-rows{list-style:none;padding:0;border-bottom:1px solid var(--rule-ink-strong)}
.b-row{display:grid;gap:8px 40px;padding:28px 0;border-top:1px solid var(--rule-ink-strong)}
.b-row p{font-size:16px;color:var(--mist);max-width:620px}
.b-row__end{font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--frost)}
@media (min-width:900px){.b-row{grid-template-columns:minmax(0,4fr) minmax(0,7fr) minmax(0,3fr);align-items:baseline}.b-row__end{text-align:right;justify-self:end}}
.b-section--chalk .b-rows,.b-section--chalk .b-row{border-color:var(--rule-chalk)}
.b-section--chalk .b-rows{border-top:1px solid var(--ink)}
.b-section--chalk .b-row:first-child{border-top:0}
.b-section--chalk .b-row p{color:var(--graphite)}
.b-section--chalk .b-row__end{color:var(--ink)}

/* ---------- FAQ: native details/summary, opens on click only ---------- */
.b-faq{border-bottom:1px solid var(--rule-ink-strong)}
.b-faq details{border-top:1px solid var(--rule-ink-strong)}
.b-faq summary{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:24px 0;cursor:pointer;list-style:none;font-size:19px;font-weight:500;color:var(--frost-bright)}
.b-faq summary::-webkit-details-marker{display:none}
.b-faq summary::after{content:"+";font-family:var(--font-mono);font-size:20px;color:var(--coral);flex:none}
.b-faq details[open] summary::after{content:"−"}
.b-faq details p{padding-bottom:28px;max-width:720px;color:var(--mist)}

/* ---------- Prose: long-form text on ink (legal, about) ---------- */
.b-prose{max-width:720px}
.b-prose > * + *{margin-top:20px}
.b-prose h2{font-family:var(--font-display);font-stretch:125%;font-weight:700;text-transform:uppercase;font-size:21px;line-height:1.2;color:var(--frost-bright);margin-top:56px}
.b-prose h2:first-child{margin-top:0}
.b-prose h3{font-size:18px;font-weight:500;color:var(--frost-bright);margin-top:32px}
.b-prose p,.b-prose li{color:var(--mist)}
.b-prose ul,.b-prose ol{padding-left:22px}
.b-prose li + li{margin-top:10px}
.b-prose li::marker{color:var(--coral)}
.b-prose strong{color:var(--frost);font-weight:500}
.b-prose a{color:var(--frost-bright);text-decoration:underline;text-decoration-color:var(--coral);text-underline-offset:4px}

/* ---------- Articles ---------- */
/* Post list: each post a hairline row; the whole row links, the arrow turns coral on hover. */
.b-postlist{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule-ink-strong)}
.b-post{position:relative;display:grid;gap:10px;padding:28px 56px 28px 0;border-bottom:1px solid var(--rule-ink);color:var(--frost);text-decoration:none}
.b-post__title{font-size:clamp(18px,2vw,24px);color:var(--frost-bright);text-wrap:balance}
.b-post__excerpt{max-width:720px;color:var(--mist)}
.b-post__arrow{position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:16px;color:var(--stone);transition:color .2s}
.b-post:hover .b-post__arrow,.b-post:focus-visible .b-post__arrow{color:var(--coral)}
.b-pager{display:flex;justify-content:space-between;align-items:center;gap:16px}
/* Article body: CMS sections inside b-prose, each spaced like a chapter. */
.b-article__body{padding-top:clamp(40px,5vw,64px)}
.b-article__meta{display:flex;flex-wrap:wrap;gap:8px 24px}
.b-article__meta a,.b-author a{color:inherit;text-decoration:underline;text-decoration-color:var(--coral);text-underline-offset:4px}
.b-article__figure{max-width:960px}
.b-article > section + section{margin-top:56px}
.b-article section > * + *{margin-top:20px}
.b-article h4{font-size:16px;font-weight:500;color:var(--frost-bright);margin-top:28px}
.b-article__lead{font-size:clamp(18px,1.5vw,21px);color:var(--frost)}
.b-article__quote{margin-inline:0;padding-block:24px;border-top:1px solid var(--rule-ink-strong);border-bottom:1px solid var(--rule-ink-strong)}
.b-article__quote p{font-size:clamp(18px,1.6vw,22px);line-height:1.5;color:var(--frost-bright)}
.b-article__quote cite{display:block;margin-top:12px;font-style:normal}
.b-author{display:flex;gap:20px;align-items:flex-start;max-width:720px;padding-top:32px;border-top:1px solid var(--rule-ink-strong)}
.b-author__img{flex:none;width:72px;height:72px;object-fit:cover;border-radius:var(--radius-sm)}
.b-author__bio{margin-top:10px;color:var(--mist)}

/* ---------- Form ---------- */
.b-form{display:grid;gap:24px}
.b-form__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:24px}
.b-field{display:flex;flex-direction:column;gap:8px}
.b-field label{color:var(--stone)}
.b-input{box-sizing:border-box;width:100%;min-height:48px;padding:14px 16px;background:var(--slate);border:1px solid var(--rule-ghost);border-radius:var(--radius-sm);color:var(--frost-bright);font:inherit;font-size:17px}
.b-input:focus-visible{outline:2px solid var(--coral);outline-offset:2px;border-color:var(--frost)}
.b-input[aria-invalid="true"]{border-color:var(--coral)}
textarea.b-input{min-height:180px;resize:vertical}
.b-field__error{font-size:14px;color:var(--coral)}
.b-field__hint{font-size:14px;color:var(--stone)}
/* Steps: fieldsets that show one at a time once /js/steps.js adds .is-stepped.
   Without it they stack, split by a rule. */
.b-form__step{display:grid;gap:24px;min-width:0;margin:0;padding:0;border:0}
.b-form__step[hidden]{display:none}
/* The rule goes under the earlier step: a fieldset's legend covers its own top border. */
.b-form:not(.is-stepped) .b-form__step:not(:last-child){padding-bottom:40px;border-bottom:1px solid var(--rule-ink)}
.b-form:not(.is-stepped) [data-step-next],.b-form:not(.is-stepped) [data-step-back]{display:none}
.b-form__legend{display:flex;justify-content:space-between;align-items:baseline;gap:16px;width:100%;padding:0;margin-bottom:24px;color:var(--frost-bright)}
.b-form__nav{padding-top:8px}
/* Choices: radios and checkboxes as hairline rows; the picked row lights up. */
.b-choices{display:grid;gap:12px;align-content:start;min-width:0;margin:0;padding:0;border:0}
.b-choices legend{padding:0;margin-bottom:12px;color:var(--stone)}
.b-choices__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:8px}
.b-choice{display:flex;align-items:center;gap:12px;min-height:48px;box-sizing:border-box;padding:12px 14px;border:1px solid var(--rule-ghost);border-radius:var(--radius-sm);color:var(--mist);cursor:pointer;transition:border-color .2s,color .2s}
.b-choice input{flex:none;width:18px;height:18px;margin:0;accent-color:var(--coral)}
.b-choice:hover,.b-choice:has(input:checked){border-color:var(--frost);color:var(--frost-bright)}
.b-choice input:focus-visible{outline:2px solid var(--coral);outline-offset:3px}
.b-choices[aria-invalid="true"] .b-choice{border-color:var(--coral)}
.b-notice{padding:18px 20px;border:1px solid var(--rule-ghost);border-radius:var(--radius-sm);color:var(--frost-bright)}
.b-notice--error{border-color:var(--coral)}
.b-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Coral is 2.5:1 on chalk, too faint for a focus ring there; use ink, as the coral band does. */
.b-section--chalk a:focus-visible,.b-section--chalk button:focus-visible{outline-color:var(--ink)}

/* ---------- Header: stacked logo, navigation, dropdown, phone menu ----------
   Without JS every nav link shows inline (wrapping on phones) and the toggles
   stay hidden. nav.js adds .b-js to <html>: then phones get the Menu button
   and Services gets its dropdown. Breakpoint 1080px: below it the links plus Client login no longer fit on one row. */
.b-header{position:relative;z-index:30}
.b-logo__text{display:flex;flex-direction:column;gap:5px;line-height:1}
.b-logo__text .b-logo__mark{line-height:1}
.b-logo .b-logo__img{height:38px}
.b-nav__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:clamp(18px,2.6vw,36px)}
.b-nav__item{position:relative;display:flex;align-items:center;gap:4px}
.b-nav .b-btn--primary:hover{color:var(--on-coral)}
/* Client login: last in the nav, set apart by a hairline on desktop; its own row in the phone menu. */
.b-nav{align-items:center}
.b-nav__login{padding-left:clamp(18px,2.6vw,36px);border-left:1px solid var(--rule-ink-strong)}
.b-menu-toggle,.b-nav__sub-toggle,.b-nav__cta{display:none}
.b-nav__sub-toggle{align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:0;background:none;border:0;color:inherit;font-size:12px;cursor:pointer}
/* CSS-drawn chevron and menu bars: the toggles must show even if the icon kit fails. */
.b-chevron{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.b-nav__sub-toggle[aria-expanded="true"] .b-chevron{transform:translateY(2px) rotate(225deg)}
.b-menu-toggle__icon{position:relative;width:14px;height:1.5px;background:currentColor}
.b-menu-toggle__icon::before,.b-menu-toggle__icon::after{content:"";position:absolute;left:0;width:14px;height:1.5px;background:currentColor;transition:transform .2s}
.b-menu-toggle__icon::before{top:-5px}
.b-menu-toggle__icon::after{top:5px}
.b-menu-toggle[aria-expanded="true"] .b-menu-toggle__icon{background:transparent}
.b-menu-toggle[aria-expanded="true"] .b-menu-toggle__icon::before{transform:translateY(5px) rotate(45deg)}
.b-menu-toggle[aria-expanded="true"] .b-menu-toggle__icon::after{transform:translateY(-5px) rotate(-45deg)}
.b-js .b-nav__sub-toggle{display:inline-flex}
.b-subnav{display:none}
.b-subnav[data-open]{display:block}
.b-subnav__list{list-style:none;margin:0;padding:0;display:grid;gap:0 32px}
.b-subnav__link{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--rule-ink);color:var(--frost);font-size:15px}
.b-subnav__link i{width:20px;font-size:18px;color:var(--stone);transition:color .2s}
.b-subnav__link:hover,.b-subnav__link[aria-current="page"]{color:var(--frost-bright)}
/* The service icon turns coral on hover and focus, and stays coral on the current page. */
.b-subnav__link:hover i,.b-subnav__link:focus-visible i,.b-subnav__link[aria-current="page"] i{color:var(--coral)}
.b-subnav__all{margin-top:20px;color:var(--frost)}
@media (min-width:1080px){
  .b-subnav{position:absolute;top:calc(100% + 26px);left:-24px;width:540px;padding:20px 24px 24px;background:var(--slate);border:1px solid var(--rule-ink-strong);border-radius:var(--radius-sm)}
  .b-subnav__list{grid-template-columns:1fr 1fr}
  /* Mouse users: open on hover. Without JavaScript, keyboard users get it
     while focus is inside; with it, the chevron button and Escape (nav.js)
     handle the keyboard instead. */
  .b-nav__item:hover > .b-subnav,html:not(.b-js) .b-nav__item:focus-within > .b-subnav{display:block}
  /* The panel sits 26px below the link; this bridge keeps hover alive across the gap. */
  .b-subnav::before{content:"";position:absolute;left:0;right:0;top:-28px;height:28px}
}
@media (max-width:1079px){
  .b-js .b-menu-toggle{display:inline-flex;margin-left:auto}
  .b-js .b-header__cta{display:none}
  .b-js .b-nav{display:none;flex-basis:100%;padding-bottom:24px}
  .b-js .b-nav[data-open]{display:block}
  .b-js .b-nav__list{flex-direction:column;align-items:stretch;gap:0}
  .b-js .b-nav__item{flex-wrap:wrap;border-top:1px solid var(--rule-ink-strong)}
  .b-js .b-nav__link{flex:1;padding:16px 0;font-size:20px;color:var(--frost-bright)}
  .b-js .b-nav__sub-toggle{min-width:44px;min-height:44px;font-size:14px}
  .b-js .b-subnav{flex-basis:100%;padding-bottom:16px}
  .b-js .b-nav__login{display:block;padding:16px 0;border-left:0;border-top:1px solid var(--rule-ink-strong);border-bottom:1px solid var(--rule-ink-strong);font-size:20px;color:var(--frost-bright)}
  .b-js .b-nav__cta{display:inline-flex;margin-top:24px}
}

/* ---------- Case studies ---------- */
/* Stats written in the CMS run longer ("+31 Ranks", "+174%"): smaller numbers, up to four across. */
.b-stats--compact{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.b-stats--compact .b-stat__num{font-size:clamp(40px,4.2vw,58px);overflow-wrap:anywhere}
/* Landscape screenshots (MongoDB thumbnails): 16:10 instead of 4:5. */
.b-cases--wide .b-case__shot{aspect-ratio:16/10}
.b-prose h4{font-size:17px;font-weight:500;color:var(--frost-bright);margin-top:28px}
.b-figure img{display:block;width:100%;height:auto;border:1px solid var(--rule-ink-strong);border-radius:var(--radius-sm)}
.b-figure figcaption{margin-top:10px}
/* Gallery: a scroll-snapping row; the row itself is focusable. */
.b-gallery{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}
.b-gallery__img{flex:0 0 min(85%,560px);aspect-ratio:16/10;object-fit:cover;scroll-snap-align:start;border:1px solid var(--rule-ink-strong);border-radius:var(--radius-sm)}
.b-gallery:focus-visible{outline:2px solid var(--coral);outline-offset:3px}

/* ---------- Placeholder (unfilled content) ---------- */
.b-placeholder{display:flex;align-items:center;justify-content:center;background:var(--slate) repeating-linear-gradient(135deg,rgba(233,236,239,.04) 0 2px,transparent 2px 14px);border:1px solid rgba(233,236,239,.1);font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--stone)}

@media (prefers-reduced-motion: reduce){
  .b-btn,.b-service,.b-case__shot,.b-service__more svg,.b-service__more i,.b-more i,.b-logowall__item img,.b-choice,.b-subnav__link i,.b-linklist i,.b-post__arrow{transition:none}
  .b-case:hover .b-case__shot{transform:none}
}
