/* Clearmill website, Direction B "The clear path". Built on the Clearmill design system.
   Colours, type and components follow the system; additions are marked "new". */
@font-face{font-family:"Lato";src:url("../fonts/lato-300.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Lato";src:url("../fonts/lato-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Lato";src:url("../fonts/lato-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
body{margin:0;background:#202526}
a{color:#202526}a:hover{color:#202526}

/* ---------- Page ---------- */
.b-page{container-type:inline-size;container-name:bpage;font-family:Lato,"Helvetica Neue",Arial,sans-serif;font-size:18px;line-height:1.6;color:#202526;background:#FAF9F6;-webkit-font-smoothing:antialiased;overflow-x:clip}
.b-page *,.b-page *::before,.b-page *::after{box-sizing:border-box}
.b-wrap{max-width:1200px;margin:0 auto;padding-left:clamp(16px,3.9cqi,56px);padding-right:clamp(16px,3.9cqi,56px)}
.b-page :focus-visible{outline:3px solid #167D8D;outline-offset:3px}
.b-on-dark :focus-visible{outline-color:#FAF9F6}
.b-skip{position:absolute;left:16px;top:12px;z-index:5;padding:10px 16px;border-radius:4px;background:#202526;color:#FAF9F6;font-weight:500;font-size:16px;text-decoration:none;transform:translateY(-200%)}
.b-skip:focus{transform:none;color:#FAF9F6;outline-color:#FAF9F6}

/* ---------- Bands ---------- */
.b-mineral{background:#E5EFED}
.b-paper{background:#FAF9F6}
.b-ink{background:#202526;color:#FAF9F6}
.b-teal{background:#167D8D;color:#FFFFFF}
.b-section{padding-top:clamp(80px,8.3cqi,120px);padding-bottom:clamp(80px,8.3cqi,120px)}

/* ---------- Type ---------- */
.b-h1{margin:0;font-weight:300;font-size:clamp(44px,5.8cqi,84px);line-height:1.02;letter-spacing:-0.02em;text-wrap:balance}
.b-lede{margin:32px 0 0;max-width:31em;font-size:clamp(19px,1.5cqi,21px);line-height:1.55;text-wrap:pretty}
.b-h2{margin:0;font-weight:500;font-size:clamp(30px,3.2cqi,46px);line-height:1.12;letter-spacing:-0.02em;text-wrap:balance}
.b-h2-band{margin:0;font-weight:500;font-size:clamp(32px,3.9cqi,56px);line-height:1.1;letter-spacing:-0.02em;text-wrap:balance}
.b-intro{margin:20px 0 0;max-width:24em;font-size:19px;line-height:1.55;color:#566361}
.b-promise{margin:12px 0 0;font-weight:500;font-size:clamp(24px,2.1cqi,30px);line-height:1.15;letter-spacing:-0.015em;color:#167D8D}

/* ---------- Components (Clearmill system) ---------- */
.b-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;border:0;border-radius:4px;background:#167D8D;color:#FFFFFF;font:500 16px/1.3 Lato,"Helvetica Neue",Arial,sans-serif;text-decoration:none;cursor:pointer;transition:background-color 180ms ease}
.b-btn:hover{background:#11697A;color:#FFFFFF}
.b-btn--compact{min-height:44px;padding:10px 16px}
.b-btn--inverse{background:#FAF9F6;color:#202526}
.b-btn--inverse:hover{background:#FFFFFF;color:#202526}
.b-link{color:inherit;font-weight:500;font-size:16px;line-height:1.3;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;transition:text-decoration-thickness 180ms ease}
.b-link:hover{color:inherit;text-decoration-thickness:2px}
.b-actions{margin-top:36px;display:flex;align-items:center;gap:16px 28px;flex-wrap:wrap}
.b-reassure{margin:18px 0 0;font-size:15px;line-height:1.6;color:#566361}

/* ---------- Header ---------- */
.b-header__row{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding-top:22px;padding-bottom:22px}
.b-logo{display:block;line-height:0}
.b-logo img{display:block;width:170px;height:auto}
.b-nav{display:flex;align-items:center;gap:28px}
.b-navlink{color:#202526;font-weight:500;font-size:16px;line-height:1.3;text-decoration:none;text-underline-offset:5px;padding:12px 2px}
.b-navlink:hover{text-decoration:underline}
.b-navlink[aria-current="page"]{text-decoration:underline;text-decoration-thickness:2px}

/* ---------- The line: nodes and stops (new, in the system's path language) ---------- */
.b-dot{display:block;width:10px;height:10px;border-radius:50%;background:#167D8D}

/* ---------- Closing band: the clear line ends at the button ---------- */
.b-close__head{max-width:22ch;color:#FFFFFF}
.b-close__text{margin:22px 0 0;max-width:32em;font-size:20px;line-height:1.55;color:#FFFFFF}
.b-close__actions{margin-top:36px;display:flex;align-items:center;gap:20px}
.b-close__line{position:relative;flex:1 1 auto;height:2px;margin-right:calc((100% - 100cqi) / 2);background:#FAF9F6;transform-origin:right center}
.b-close__line::before{content:"";position:absolute;left:0;top:50%;width:12px;height:12px;border-radius:50%;background:#FAF9F6;transform:translate(-2px,-50%)}

/* ---------- Footer ---------- */
.b-footer{background:#202526;color:#D9DDDA;font-size:15px;line-height:1.6}
.b-footer__grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:28px 32px;padding-top:56px;padding-bottom:48px}
.b-footer p{margin:0}
.b-footer__logo{display:inline-block;line-height:0;margin-bottom:16px}
.b-footer__logo img{display:block;width:160px;height:auto}
.b-footer__nav{display:flex;gap:4px 24px;flex-wrap:wrap;justify-content:flex-end;align-content:start}
.b-footer__nav a{color:#D9DDDA;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;padding:8px 0}
.b-footer__nav a:hover{color:#FAF9F6;text-decoration-thickness:2px}
.b-footer__legal{grid-column:1 / -1;border-top:1px solid #3A4244;padding-top:20px;color:#A9B1AE}

@container bpage (max-width:820px){
  .b-footer__grid{grid-template-columns:minmax(0,1fr)}
  .b-footer__nav{justify-content:flex-start}
}
@container bpage (max-width:600px){
  .b-actions{flex-direction:column;align-items:stretch;gap:20px}
  .b-actions .b-link{align-self:flex-start}
  .b-close__actions{flex-direction:column;align-items:stretch}
  .b-close__line{display:none}
}
@container bpage (max-width:560px){
  .b-header__row{gap:12px;padding-top:18px;padding-bottom:18px}
  .b-logo img{width:160px}
  .b-nav{gap:14px}
  .b-btn--compact{padding:10px 14px}
}

/* ---------- Motion: text rises, never fades; lines draw. All off with reduced motion. ---------- */
@keyframes b-rise{from{transform:translateY(12px)}to{transform:none}}
@keyframes b-draw-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes b-draw-y{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes b-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes b-pop{from{transform:scale(0)}to{transform:scale(1)}}
@media (prefers-reduced-motion:no-preference){
  .b-rise{animation:b-rise 400ms ease-out both}
  .b-rise--2{animation-delay:80ms}.b-rise--3{animation-delay:160ms}
  @supports (animation-timeline:view()){
    .b-reveal{animation:b-rise linear both;animation-timeline:view();animation-range:entry 0% entry 60%}
    .b-close__line{animation:b-draw-x linear both;animation-timeline:view();animation-range:entry 30% cover 55%}
  }
}
@media (prefers-reduced-motion:reduce){
  .b-btn,.b-link,.b-faq summary::after{transition:none}
}

/* ---------- Site extras ---------- */
[hidden]{display:none !important}
.b-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
