/* ==========================================================================
   Hepworth Browne Cinematic  /  design system
   Built from the approved static templates. Every rule stays scoped under
   .hb-scope. Do not hand edit: regenerate from build/01_assets.py.
   ========================================================================== */
/* ==========================================================================
   Hepworth Browne  /  design system
   All rules scoped under .hb-scope to avoid collisions with theme CSS.
   ========================================================================== */

.hb-scope{
  /* ink and paper */
  --hb-ink:#0A1729;
  --hb-navy:#133D77;
  --hb-blue:#1C58B2;
  --hb-blue-lift:#2E76DD;
  --hb-brass:#B8934A;
  --hb-paper:#EEF1F6;
  --hb-paper-2:#F7F9FC;
  --hb-white:#FFFFFF;
  --hb-slate:#5B6B80;
  --hb-line:rgba(10,23,41,.14);
  --hb-line-soft:rgba(10,23,41,.07);
  --hb-line-dark:rgba(255,255,255,.16);

  /* type */
  --hb-display:var(--hb-display-family,"Newsreader"),Georgia,"Times New Roman",serif;
  --hb-body:"Nobile","Helvetica Neue",Arial,sans-serif;
  --hb-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  /* metrics */
  --hb-gutter:clamp(20px,5vw,84px);
  --hb-max:1440px;
  --hb-head-h:104px;
  --hb-ease:cubic-bezier(.16,.84,.44,1);
  --hb-ease-soft:cubic-bezier(.22,.61,.36,1);

  font-family:var(--hb-body);
  color:var(--hb-ink);
  background:var(--hb-paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.hb-scope *,
.hb-scope *::before,
.hb-scope *::after{box-sizing:border-box;}

.hb-scope h1,.hb-scope h2,.hb-scope h3,.hb-scope h4,.hb-scope h5,.hb-scope h6,
.hb-scope p,.hb-scope figure,.hb-scope ul,.hb-scope ol{margin:0;padding:0;}
.hb-scope ul,.hb-scope ol{list-style:none;}
.hb-scope img{max-width:100%;display:block;}
.hb-scope a{color:inherit;text-decoration:none;}
.hb-scope button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}

.hb-scope :focus-visible{
  outline:2px solid var(--hb-blue);
  outline-offset:3px;
  border-radius:2px;
}

/* ---------- layout primitives ---------- */
.hb-shell{width:100%;max-width:var(--hb-max);margin:0 auto;padding-inline:var(--hb-gutter);}
.hb-band{position:relative;padding-block:clamp(50px,6.2vw,88px);}
.hb-band--tight{padding-block:clamp(34px,4.2vw,58px);}
.hb-dark{background:var(--hb-ink);color:#E8EDF5;}
.hb-dark .hb-eyebrow{color:#8FB6F2;}
.hb-dark .hb-lede{color:rgba(232,237,245,.72);}
.hb-rule{height:1px;background:var(--hb-line);border:0;}

/* ---------- type scale ---------- */
.hb-eyebrow{
  font-family:var(--hb-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--hb-blue);
  display:inline-flex;
  align-items:center;
  gap:12px;
}
.hb-eyebrow::before{
  content:"";
  width:26px;height:1px;
  background:var(--hb-brass);
  flex:none;
}
.hb-display{
  font-family:var(--hb-display);
  font-weight:300;
  font-variation-settings:"opsz" 60;
  line-height:1.05;
  letter-spacing:-.016em;
}
.hb-h1{font-size:clamp(44px,7.4vw,104px);}
.hb-h2{font-size:clamp(34px,4.6vw,64px);line-height:1.06;}
.hb-h3{font-size:clamp(24px,2.6vw,36px);line-height:1.14;}
.hb-h4{font-size:clamp(19px,1.5vw,23px);line-height:1.24;}
.hb-lede{
  font-size:clamp(16px,1.25vw,19px);
  line-height:1.72;
  color:var(--hb-slate);
  max-width:62ch;
}
.hb-body{font-size:16px;line-height:1.8;color:var(--hb-slate);}
.hb-italic{font-style:italic;}
.hb-code{
  font-family:var(--hb-mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--hb-brass);
}

/* ---------- buttons ---------- */
.hb-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:16px 30px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  overflow:hidden;
  isolation:isolate;
  transition:color .5s var(--hb-ease),border-color .5s var(--hb-ease),transform .5s var(--hb-ease);
}
.hb-btn span{position:relative;z-index:2;}
.hb-btn::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:var(--hb-ink);
  transform:translateY(101%);
  transition:transform .58s var(--hb-ease);
}
.hb-btn:hover::after,.hb-btn:focus-visible::after{transform:translateY(0);}
.hb-btn--solid{background:var(--hb-blue);color:#fff;}
.hb-btn--solid:hover,.hb-btn--solid:focus-visible{color:#fff;}
.hb-btn--ghost{border:1px solid var(--hb-line);color:var(--hb-ink);}
.hb-btn--ghost:hover,.hb-btn--ghost:focus-visible{color:#fff;border-color:var(--hb-ink);}
.hb-btn--light{border:1px solid rgba(255,255,255,.34);color:#fff;}
.hb-btn--light::after{background:#fff;}
.hb-btn--light:hover,.hb-btn--light:focus-visible{color:var(--hb-ink);border-color:#fff;}
.hb-btn .hb-arrow{width:16px;height:8px;flex:none;}
.hb-btn .hb-arrow path{stroke:currentColor;stroke-width:1.4;fill:none;}

.hb-link{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-family:var(--hb-mono);
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--hb-blue);
  padding-bottom:4px;
  position:relative;
}
.hb-link::before{
  content:"";
  position:absolute;
  left:0;bottom:0;
  width:100%;height:1px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .55s var(--hb-ease);
}
.hb-link:hover::before,.hb-link:focus-visible::before{transform:scaleX(1);transform-origin:left;}
.hb-link .hb-arrow{width:16px;height:8px;}
.hb-link .hb-arrow path{stroke:currentColor;stroke-width:1.4;fill:none;}
.hb-dark .hb-link{color:#9CC0F6;}

/* ---------- motion utilities ---------- */
.hb-rise{opacity:0;transform:translateY(30px);}
.hb-rise.is-in{
  opacity:1;transform:none;
  transition:opacity 1s var(--hb-ease) var(--hb-d,0ms),transform 1s var(--hb-ease) var(--hb-d,0ms);
}
.hb-fade{opacity:0;}
.hb-fade.is-in{opacity:1;transition:opacity 1.2s var(--hb-ease) var(--hb-d,0ms);}
.hb-line-mask{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em;}
.hb-line-mask > span{
  display:block;
  transform:translateY(112%);
  transition:transform 1.05s var(--hb-ease) var(--hb-d,0ms);
}
.is-in .hb-line-mask > span,.hb-line-mask.is-in > span{transform:none;}
.hb-mask-img{overflow:hidden;position:relative;}
.hb-mask-img::after{
  content:"";
  position:absolute;inset:0;
  background:var(--hb-paper);
  transform:scaleY(1);
  transform-origin:top;
  transition:transform 1.15s var(--hb-ease) var(--hb-d,0ms);
}
.hb-mask-img.is-in::after{transform:scaleY(0);}
.hb-dark .hb-mask-img::after{background:var(--hb-ink);}

/* ---------- scroll progress ---------- */
.hb-progress{
  position:fixed;top:0;left:0;right:0;height:2px;z-index:1200;
  background:transparent;pointer-events:none;
}
.hb-progress i{
  display:block;height:100%;width:0%;
  background:linear-gradient(90deg,var(--hb-blue),var(--hb-brass));
  transition:width .12s linear;
}

/* ---------- notice ribbon ---------- */
.hb-notice{
  position:relative;z-index:60;
  background:var(--hb-ink);
  color:#DCE6F6;
  font-size:12.5px;
  letter-spacing:.02em;
}
.hb-notice-in{
  display:flex;align-items:center;gap:18px;
  min-height:42px;padding-block:9px;
}
.hb-notice-tag{
  font-family:var(--hb-mono);
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--hb-ink);
  background:var(--hb-brass);
  padding:4px 9px;border-radius:2px;flex:none;
}
.hb-notice p{flex:1;min-width:0;}
.hb-notice a{color:#fff;border-bottom:1px solid rgba(255,255,255,.4);padding-bottom:1px;}
.hb-notice a:hover{border-color:var(--hb-brass);}
.hb-notice-x{
  flex:none;width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;color:rgba(255,255,255,.6);
  transition:background .4s,color .4s;
}
.hb-notice-x:hover{background:rgba(255,255,255,.1);color:#fff;}
.hb-notice.is-gone{display:none;}

/* ---------- header ---------- */
.hb-head{
  position:sticky;top:0;z-index:50;
  transition:background .55s var(--hb-ease),box-shadow .55s var(--hb-ease),border-color .55s var(--hb-ease);
  border-bottom:1px solid transparent;
}
.hb-head-in{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  height:var(--hb-head-h);
  transition:height .5s var(--hb-ease);
}
.hb-head.is-stuck{
  background:rgba(247,249,252,.92);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom-color:var(--hb-line-soft);
  box-shadow:0 18px 44px -34px rgba(10,23,41,.5);
}
.hb-head.is-stuck .hb-head-in{height:78px;}
.hb-head.is-stuck .hb-brand img{height:52px;}
.hb-head.is-solid{
  background:rgba(247,249,252,.97);
  border-bottom-color:var(--hb-line-soft);
}
.hb-brand{display:block;flex:none;position:relative;z-index:2;}
.hb-brand img{height:70px;width:auto;display:block;}

/* nav */
.hb-nav{display:flex;align-items:center;gap:2px;}
.hb-nav-item{position:relative;}
.hb-nav-link{
  position:relative;
  display:inline-flex;align-items:center;gap:7px;
  padding:12px 15px;
  font-size:13.5px;font-weight:500;letter-spacing:.01em;
  color:var(--hb-ink);
  transition:color .4s var(--hb-ease),opacity .4s var(--hb-ease);
}
.hb-nav-link::after{
  content:"";
  position:absolute;left:15px;right:15px;bottom:6px;height:1px;
  background:currentColor;
  transform:scaleX(0);transform-origin:right;
  transition:transform .5s var(--hb-ease);
}
.hb-nav-link:hover::after,.hb-nav-item.is-open .hb-nav-link::after{transform:scaleX(1);transform-origin:left;}
.hb-nav-item.is-open .hb-nav-link{color:var(--hb-blue);}
.hb-chev{width:9px;height:9px;flex:none;opacity:.65;transition:transform .5s var(--hb-ease);}
.hb-chev path{stroke:currentColor;stroke-width:1.5;fill:none;}
.hb-nav-item.is-open .hb-chev{transform:rotate(180deg);}
.hb-head-cta{display:flex;align-items:center;gap:12px;flex:none;}
.hb-head .hb-btn{padding:13px 24px;font-size:11.5px;}

/* mega menu: compact anchored card */
.hb-mega-wrap{
  position:absolute;left:50%;top:calc(100% + 4px);
  transform:translateX(calc(-50% + var(--shift,0px)));
  z-index:45;
  pointer-events:none;
}
.hb-mega{
  position:relative;
  width:max-content;
  max-width:min(1140px,calc(100vw - 32px));
  background:var(--hb-paper-2);
  border:1px solid var(--hb-line-soft);
  border-radius:12px;
  box-shadow:
    0 34px 64px -32px rgba(10,23,41,.5),
    0 8px 22px -12px rgba(10,23,41,.24);
  opacity:0;visibility:hidden;
  transform:translateY(-12px) scale(.98);
  transform-origin:top center;
  transition:opacity .42s var(--hb-ease),transform .48s var(--hb-ease),visibility 0s linear .48s;
  overflow:hidden;
}
.hb-mega::before{
  content:"";
  position:absolute;
  left:calc(50% - var(--shift,0px));top:0;
  width:22px;height:3px;margin-left:-11px;
  background:var(--hb-brass);
  border-radius:0 0 3px 3px;
}
.hb-nav-item.is-open .hb-mega{
  opacity:1;visibility:visible;transform:none;pointer-events:auto;
  transition:opacity .42s var(--hb-ease),transform .5s var(--hb-ease),visibility 0s;
}
.hb-mega-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(210px,max-content);
  gap:clamp(28px,3.2vw,54px);
  padding:34px 44px 34px 38px;
  align-items:stretch;
}
.hb-mega-col{
  opacity:0;transform:translateY(16px);
  transition:opacity .5s var(--hb-ease),transform .6s var(--hb-ease);
}
.hb-nav-item.is-open .hb-mega-col{
  opacity:1;transform:none;
  transition-delay:calc(70ms + var(--i,0) * 55ms);
}
.hb-mega-title{
  font-family:var(--hb-mono);
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--hb-slate);
  padding-bottom:13px;margin-bottom:14px;
  border-bottom:1px solid var(--hb-line-soft);
  white-space:nowrap;
}
.hb-mega-list li + li{margin-top:2px;}
.hb-mega-list a{
  position:relative;
  display:block;
  padding:8px 36px 8px 0;
  font-size:14.5px;
  color:var(--hb-ink);
  border-radius:3px;
  transition:color .35s var(--hb-ease),padding .45s var(--hb-ease);
}
.hb-mega-list a:hover{color:var(--hb-blue);padding-left:10px;}
.hb-mega-list a em{
  position:absolute;right:8px;top:10px;
  font-family:var(--hb-mono);font-style:normal;
  font-size:10px;letter-spacing:.1em;color:var(--hb-brass);
  opacity:0;transform:translateX(-6px);
  transition:opacity .35s,transform .35s;
}
.hb-mega-list a:hover em{opacity:1;transform:none;}
.hb-mega-list small{
  display:block;
  font-size:12px;color:var(--hb-slate);
  margin-top:3px;line-height:1.5;
  max-width:26ch;
}
.hb-mega-feature{
  position:relative;
  width:270px;
  margin-right:6px;
  border-radius:14px;
  min-height:100%;
  display:flex;align-items:flex-end;
  color:#fff;
  isolation:isolate;
  padding:14px;
  background:var(--hb-white);
  border:1px solid var(--hb-line);
  box-shadow:0 12px 30px -18px rgba(10,23,41,.4);
}
.hb-mega-feature img{
  position:absolute;inset:14px;z-index:-2;
  width:calc(100% - 28px);height:calc(100% - 28px);object-fit:cover;
  border-radius:6px;
  filter:saturate(.96) brightness(.98);
  transition:filter 1s var(--hb-ease);
}
.hb-mega-feature:hover img{filter:saturate(1.04) brightness(1.04);}
.hb-mega-feature::after{
  content:"";position:absolute;inset:14px;z-index:-1;
  border-radius:6px;
  background:linear-gradient(180deg,rgba(10,23,41,.14),rgba(10,23,41,.88));
}
.hb-mega-feature-in{padding:20px 20px 18px;}
.hb-mega-feature-title{font-family:var(--hb-display);font-weight:400;font-size:19px;line-height:1.24;margin-bottom:8px;}
.hb-mega-feature p{font-size:12.5px;line-height:1.58;color:rgba(255,255,255,.8);margin-bottom:14px;}
.hb-mega-feature .hb-link{color:#fff;font-size:10.5px;}

.hb-scrim{
  position:fixed;inset:0;z-index:40;
  background:rgba(10,23,41,.2);
  backdrop-filter:blur(1.5px);
  opacity:0;visibility:hidden;
  transition:opacity .5s var(--hb-ease),visibility 0s linear .5s;
}
.hb-scrim.is-on{opacity:1;visibility:visible;transition:opacity .5s var(--hb-ease),visibility 0s;}

/* burger */
.hb-burger{
  display:none;width:46px;height:46px;
  align-items:center;justify-content:center;
  border:1px solid var(--hb-line);border-radius:50%;
}
.hb-burger i{display:block;position:relative;width:18px;height:1.5px;background:var(--hb-ink);transition:background .35s,transform .45s var(--hb-ease);}
.hb-burger i::before,.hb-burger i::after{
  content:"";position:absolute;left:0;width:18px;height:1.5px;background:inherit;
  transition:transform .45s var(--hb-ease),opacity .3s;
}
.hb-burger i::before{top:-6px;}
.hb-burger i::after{top:6px;}
.hb-burger.is-on i{background:transparent;}
.hb-burger.is-on i::before{transform:translateY(6px) rotate(45deg);background:var(--hb-ink);}
.hb-burger.is-on i::after{transform:translateY(-6px) rotate(-45deg);background:var(--hb-ink);}

/* mobile drawer */
.hb-drawer{
  position:fixed;inset:0;z-index:48;
  background:var(--hb-paper-2);
  transform:translateY(-100%);
  transition:transform .72s var(--hb-ease);
  overflow-y:auto;
  padding-top:calc(var(--hb-head-h) + 12px);
  padding-bottom:60px;
  visibility:hidden;
}
.hb-drawer.is-open{transform:none;visibility:visible;}
.hb-acc{border-top:1px solid var(--hb-line-soft);}
.hb-acc:last-of-type{border-bottom:1px solid var(--hb-line-soft);}
.hb-acc-head{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:19px 0;text-align:left;
  font-family:var(--hb-display);font-weight:400;font-size:23px;
}
.hb-acc-head .hb-plus{position:relative;width:13px;height:13px;flex:none;}
.hb-acc-head .hb-plus::before,.hb-acc-head .hb-plus::after{
  content:"";position:absolute;background:var(--hb-blue);transition:transform .45s var(--hb-ease),opacity .35s;
}
.hb-acc-head .hb-plus::before{top:6px;left:0;width:13px;height:1.4px;}
.hb-acc-head .hb-plus::after{left:6px;top:0;width:1.4px;height:13px;}
.hb-acc.is-open .hb-plus::after{transform:rotate(90deg);opacity:0;}
.hb-acc-body{max-height:0;overflow:hidden;transition:max-height .6s var(--hb-ease);}
.hb-acc-body ul{padding-bottom:16px;}
.hb-acc-body a{display:block;padding:9px 0 9px 18px;font-size:15px;color:var(--hb-slate);border-left:1px solid var(--hb-line-soft);}
.hb-acc-body a:hover{color:var(--hb-blue);border-color:var(--hb-blue);}
.hb-drawer-foot{margin-top:34px;display:flex;flex-direction:column;gap:14px;}
.hb-drawer-foot a.hb-btn{justify-content:center;}
.hb-drawer-meta{margin-top:28px;font-size:14px;line-height:1.9;color:var(--hb-slate);}

/* ---------- hero ---------- */
.hb-hero{
  position:relative;
  margin-top:calc(var(--hb-head-h) * -1);
  min-height:min(100svh,940px);
  display:flex;align-items:flex-end;
  overflow:hidden;
  background:var(--hb-ink);
  color:#fff;
}
.hb-hero-media{position:absolute;inset:-8% 0 -12% 0;z-index:0;will-change:transform;}
.hb-hero-media video,.hb-hero-media img{width:100%;height:100%;object-fit:cover;}
.hb-hero::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(180deg,rgba(10,23,41,.72) 0%,rgba(10,23,41,.24) 34%,rgba(10,23,41,.86) 100%),
    linear-gradient(90deg,rgba(19,61,119,.5),rgba(10,23,41,0) 62%);
}
.hb-hero-in{position:relative;z-index:2;width:100%;padding-block:clamp(120px,16vh,190px) clamp(38px,6vh,64px);}
.hb-hero-fade{
  position:absolute;top:0;left:0;right:0;z-index:2;
  height:clamp(210px,28vh,320px);
  background:linear-gradient(180deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 22%,
    rgba(255,255,255,.9) 34%,
    rgba(255,255,255,.66) 46%,
    rgba(255,255,255,.44) 58%,
    rgba(255,255,255,.26) 71%,
    rgba(255,255,255,.12) 84%,
    rgba(255,255,255,.04) 93%,
    rgba(255,255,255,0) 100%);
  pointer-events:none;
  opacity:0;
  animation:hb-fade-in 1.3s var(--hb-ease) .1s forwards;
}
@keyframes hb-fade-in{to{opacity:1}}
.hb-hero h1{margin:26px 0 0;max-width:15ch;}
.hb-hero h1 .hb-em{
  font-style:italic;font-weight:400;
  background:linear-gradient(92deg,#fff 20%,#BBD3F6 92%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hb-hero-lede{
  margin-top:30px;max-width:52ch;
  font-size:clamp(16px,1.32vw,19.5px);line-height:1.72;
  color:rgba(255,255,255,.8);
}
.hb-hero-acts{margin-top:40px;display:flex;flex-wrap:wrap;gap:14px;}
.hb-hero-foot{
  margin-top:clamp(38px,6vh,64px);
  padding-top:22px;
  border-top:1px solid var(--hb-line-dark);
  display:flex;align-items:flex-end;justify-content:space-between;gap:30px;flex-wrap:wrap;
}
.hb-stats{display:flex;flex-wrap:wrap;gap:clamp(26px,4vw,64px);}
.hb-stat b{
  display:block;
  font-family:var(--hb-display);font-weight:300;
  font-size:clamp(30px,3.4vw,46px);line-height:1;
  letter-spacing:-.02em;
}
.hb-stat span{
  display:block;margin-top:9px;
  font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.6);
}
.hb-scroll-cue{
  display:inline-flex;align-items:center;gap:12px;
  font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.62);
}
.hb-scroll-cue i{
  display:block;width:1px;height:38px;background:rgba(255,255,255,.28);position:relative;overflow:hidden;
}
.hb-scroll-cue i::after{
  content:"";position:absolute;left:0;top:-40%;width:1px;height:40%;background:var(--hb-brass);
  animation:hb-drop 2.4s var(--hb-ease-soft) infinite;
}
@keyframes hb-drop{0%{top:-40%}60%,100%{top:100%}}

/* ---------- intro ---------- */
.hb-intro-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(30px,6vw,90px);align-items:start;
}
.hb-intro-mark{
  font-family:var(--hb-display);font-style:italic;font-weight:300;
  font-size:clamp(26px,3vw,40px);line-height:1.32;letter-spacing:-.015em;
  color:var(--hb-ink);
}
.hb-intro-body p + p{margin-top:22px;}
.hb-creds{
  margin-top:44px;padding-top:26px;border-top:1px solid var(--hb-line-soft);
  display:flex;align-items:center;gap:26px;flex-wrap:wrap;
}
.hb-creds img{height:52px;width:auto;opacity:.86;}
.hb-creds p{font-family:var(--hb-mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--hb-slate);line-height:1.9;}

/* ---------- services: expanding column panels ---------- */
.hb-panels{
  display:flex;gap:12px;
  min-height:clamp(460px,56vh,590px);
  margin-top:clamp(28px,3vw,44px);
}
.hb-panel{
  position:relative;flex:1;
  overflow:hidden;border-radius:10px;
  isolation:isolate;color:#fff;
  background:var(--hb-ink);
  transition:flex .85s var(--hb-ease);
  will-change:flex;
}
.hb-panel.is-open{flex:3.4;}
.hb-panel > img{
  position:absolute;inset:0;z-index:-2;
  width:100%;height:100%;object-fit:cover;
  transform:scale(1.08);
  transition:transform 1.6s var(--hb-ease),filter .8s var(--hb-ease);
  filter:saturate(.75) brightness(.82);
}
.hb-panel.is-open > img{transform:scale(1.01);filter:none;}
.hb-panel::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(10,23,41,.24) 26%,rgba(10,23,41,.9) 96%);
  transition:background .7s var(--hb-ease);
}
.hb-panel.is-open::after{
  background:linear-gradient(180deg,rgba(10,23,41,.06) 20%,rgba(8,17,31,.92) 96%);
}
.hb-panel-tab{
  position:absolute;inset:0;z-index:3;
  display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;
  gap:16px;padding:24px 0 26px 0;
  width:100%;text-align:left;
  opacity:1;transition:opacity .45s var(--hb-ease);
}
.hb-panel.is-open .hb-panel-tab{opacity:0;pointer-events:none;}
.hb-panel-tab i{
  font-style:normal;
  font-family:var(--hb-mono);font-size:10px;letter-spacing:.18em;
  color:var(--hb-brass);
  margin-left:24px;
}
.hb-panel-tab span{
  font-family:var(--hb-display);font-weight:300;
  font-size:clamp(19px,1.7vw,25px);letter-spacing:-.01em;line-height:1;
  writing-mode:vertical-rl;transform:rotate(180deg);
  margin-left:20px;
  max-height:72%;
}
.hb-panel-body{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  padding:clamp(22px,2.6vw,40px);
  opacity:0;transform:translateY(18px);
  pointer-events:none;
  transition:opacity .5s var(--hb-ease),transform .6s var(--hb-ease);
  min-width:min(520px,86vw);
}
.hb-panel.is-open .hb-panel-body{
  opacity:1;transform:none;pointer-events:auto;
  transition-delay:.3s;
}
.hb-panel-body h3{margin-top:12px;color:#fff;}
.hb-panel-sub{
  margin-top:12px;
  font-family:var(--hb-display);font-style:italic;font-weight:300;
  font-size:clamp(16px,1.35vw,19px);line-height:1.4;color:#BFD6F7;
}
.hb-panel-text{margin-top:16px;font-size:14.5px;line-height:1.7;color:rgba(255,255,255,.82);max-width:56ch;}
.hb-panel-body .hb-link{margin-top:22px;color:#fff;}
.hb-panel:focus-visible{outline:2px solid var(--hb-blue);outline-offset:3px;}

/* ---------- sector index (signature) ---------- */
.hb-sector{position:relative;overflow:hidden;}
.hb-sector-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:30px;flex-wrap:wrap;
  margin-bottom:clamp(28px,3.2vw,46px);
}
/*
 * The hairlines between cells are drawn by each cell, not by the grid painting
 * a light background through 1px gaps. With a gap technique any row that does
 * not divide exactly into the column count leaves the grid's own background
 * exposed, which reads as a grey slab hanging off the end of the last row. The
 * column count is responsive and the number of sectors is authored in wp-admin,
 * so a short last row is normal rather than something to design around: at six
 * columns fifteen sectors leave three cells empty.
 *
 * Each cell casts a 1px spread shadow into the gap instead, so the lines are
 * identical but the leftover space is simply the section background.
 */
.hb-spec-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1px;
  background:var(--hb-ink);
  border:1px solid var(--hb-line-dark);
  border-radius:6px;
  overflow:hidden;
  --hb-spec-cols:4;
  justify-content:center;
}
@media (max-width:1280px){
  .hb-spec-grid{--hb-spec-cols:2;}
}
/*
 * Flex rather than grid, so a grid track's own background is never exposed
 * through the gap on a short final row: that was the original bug here.
 *
 * The basis sets how many fit per row and subtracts the gaps, (cols - 1) of
 * them at 1px, before dividing.
 *
 * flex-grow is deliberately 0. It used to be 1, so that a short final row
 * shared the full width between whatever landed on it, but a tile has a fixed
 * aspect: one lone item on the last row grew to the width of the whole grid
 * and its height grew with it, rendering a single enormous mis-cropped cell
 * beside rows of normal ones. Sixteen fields divide exactly by both column
 * counts, so no row is short today; grow:0 is what guarantees every cell stays
 * the same size if that count is ever edited in wp-admin.
 */
.hb-spec{
  position:relative;
  flex:0 1 calc((100% - (var(--hb-spec-cols) - 1) * 1px) / var(--hb-spec-cols));
  background:var(--hb-ink);
  box-shadow:0 0 0 1px var(--hb-line-dark);
  isolation:isolate;
  overflow:hidden;
}
.hb-spec a{
  display:flex;flex-direction:column;justify-content:space-between;gap:26px;
  min-height:clamp(150px,13vw,205px);
  padding:18px 20px;
  width:100%;height:100%;
}
.hb-spec img{
  position:absolute;inset:0;z-index:-2;
  width:100%;height:100%;object-fit:cover;
  opacity:0;transform:scale(1.14);
  transition:opacity .7s var(--hb-ease),transform 1.3s var(--hb-ease);
}
/* Hover clip. Sits directly above the still and fades in once it is actually
   playing, so a cell never flashes an empty black box while the file loads. */
.hb-spec-clip{
  position:absolute;inset:0;z-index:-1;
  width:100%;height:100%;object-fit:cover;
  opacity:0;transform:scale(1.06);
  transition:opacity .5s var(--hb-ease),transform 1.3s var(--hb-ease);
  pointer-events:none;
}
.hb-spec.is-playing .hb-spec-clip{opacity:1;transform:scale(1.03);}
@media (prefers-reduced-motion:reduce){
  .hb-spec-clip{display:none;}
}
.hb-spec::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(10,23,41,.5),rgba(10,23,41,.9));
  opacity:0;transition:opacity .7s var(--hb-ease);
}
.hb-spec:hover img,.hb-spec:focus-within img{opacity:1;transform:scale(1.03);}
.hb-spec:hover::after,.hb-spec:focus-within::after{opacity:1;}
.hb-spec-top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.hb-spec .hb-ipc{
  font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.14em;
  color:rgba(255,255,255,.4);
  transition:color .5s var(--hb-ease);
}
.hb-spec:hover .hb-ipc,.hb-spec:focus-within .hb-ipc{color:var(--hb-brass);}
.hb-spec .hb-go{
  width:17px;height:9px;flex:none;
  opacity:0;transform:translateX(-8px);
  transition:opacity .45s var(--hb-ease),transform .55s var(--hb-ease);
}
.hb-spec .hb-go path{stroke:var(--hb-brass);stroke-width:1.4;fill:none;}
.hb-spec:hover .hb-go,.hb-spec:focus-within .hb-go{opacity:1;transform:none;}
.hb-spec .hb-name{
  font-family:var(--hb-display);font-weight:300;
  font-size:clamp(14px,1.15vw,17px);line-height:1.15;letter-spacing:-.01em;
  color:#E8EDF5;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transition:transform .55s var(--hb-ease),color .45s var(--hb-ease);
}
.hb-spec:hover .hb-name,.hb-spec:focus-within .hb-name{color:#fff;transform:translateY(-4px);}
.hb-spec::before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;z-index:2;
  background:var(--hb-brass);
  transform:scaleX(0);transform-origin:left;
  transition:transform .6s var(--hb-ease);
}
.hb-spec:hover::before,.hb-spec:focus-within::before{transform:scaleX(1);}

/*
 * Light tone for the sector grid.
 *
 * Only the surfaces and the type colours change: layout, sizing, hover motion
 * and the clip behaviour are all shared with the dark treatment above.
 *
 * The scrim is the one piece that has to inverse rather than simply lighten.
 * On the dark grid it darkens the foot of the revealed image so white type
 * stays readable; here the type is ink, so it has to lift the foot back
 * towards paper instead, exactly as the people cards do.
 */
.hb-sector--light .hb-spec-grid{
  background:var(--hb-paper-2);
  border-color:var(--hb-line-soft);
}
.hb-sector--light .hb-spec{
  background:#fff;
  box-shadow:0 0 0 1px var(--hb-line-soft);
}
.hb-sector--light .hb-spec::after{
  background:linear-gradient(to top,
    rgba(255,255,255,.97) 0%,rgba(255,255,255,.9) 26%,
    rgba(255,255,255,.5) 52%,rgba(255,255,255,0) 78%);
}
.hb-sector--light .hb-spec .hb-ipc{color:var(--hb-slate);}
.hb-sector--light .hb-spec .hb-name{color:var(--hb-ink);}
.hb-sector--light .hb-spec:hover .hb-name,
.hb-sector--light .hb-spec:focus-within .hb-name{color:var(--hb-ink);}
/*
 * The darkened brass again, not the token: plain --hb-brass measured 2.72:1 on
 * a light ground when Lighthouse checked the footer.
 */
.hb-sector--light .hb-spec:hover .hb-ipc,
.hb-sector--light .hb-spec:focus-within .hb-ipc{color:#8a6e36;}
.hb-sector--light .hb-spec .hb-go path{stroke:#8a6e36;}
.hb-sector--light .hb-spec::before{background:#8a6e36;}

/* ---------- case feature ---------- */
.hb-case{position:relative;overflow:hidden;background:#08111F;color:#fff;}
.hb-case-bg{position:absolute;inset:-10% 0;z-index:0;opacity:.34;will-change:transform;}
.hb-case-bg img,.hb-case-bg video{width:100%;height:100%;object-fit:cover;}
.hb-case::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:radial-gradient(120% 90% at 22% 30%,rgba(19,61,119,.62),rgba(8,17,31,.94) 68%);
}
.hb-case-in{position:relative;z-index:2;display:grid;grid-template-columns:1.25fr .9fr;gap:clamp(30px,5vw,80px);align-items:center;}
.hb-case blockquote{
  margin:26px 0 0;
  font-family:var(--hb-display);font-weight:300;
  font-size:clamp(24px,2.8vw,42px);line-height:1.2;letter-spacing:-.02em;
}
.hb-case-cite{
  margin-top:24px;font-family:var(--hb-mono);font-size:11.5px;letter-spacing:.14em;
  color:var(--hb-brass);
}
.hb-case p.hb-body{color:rgba(232,237,245,.72);margin-top:24px;max-width:58ch;}
.hb-case-card{
  border:1px solid var(--hb-line-dark);
  background:rgba(255,255,255,.04);
  backdrop-filter:blur(6px);
  padding:clamp(24px,2.6vw,38px);
  border-radius:3px;
}
/*
 * No white plate behind the logo.
 *
 * It was there so a dark logo would stay legible on the dark card, but the
 * client logo this card carries is light artwork on transparency, so the plate
 * put white on white and the mark all but disappeared. The marquee already
 * solves the same problem the other way, by lightening logos with a filter
 * rather than sitting them on a panel, so this now matches that treatment.
 */
.hb-case-card img{
  margin-bottom:22px;
  max-height:64px;width:auto;
  background:transparent;
}
.hb-case-card dl{display:grid;gap:16px;}
.hb-case-card dt{font-family:var(--hb-mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:rgba(232,237,245,.5);}
.hb-case-card dd{margin:4px 0 0;font-size:15.5px;line-height:1.55;}
.hb-case-card dd + dt{padding-top:12px;border-top:1px solid var(--hb-line-dark);}

/* ---------- pillars (charges / relationship / ethos) ---------- */
.hb-pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--hb-line-soft);}
.hb-pillar{
  position:relative;background:var(--hb-paper);
  min-height:clamp(430px,42vw,560px);
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:clamp(28px,2.8vw,44px);
  overflow:hidden;color:#fff;isolation:isolate;
}
.hb-pillar img{
  position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;
  transform:scale(1.04);transition:transform 1.6s var(--hb-ease);
}
.hb-pillar::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(10,23,41,.28) 10%,rgba(10,23,41,.9) 88%);
  transition:background .7s var(--hb-ease);
}
.hb-pillar:hover img{transform:scale(1.11);}
.hb-pillar:hover::after{background:linear-gradient(180deg,rgba(19,61,119,.42) 8%,rgba(8,17,31,.94) 90%);}
.hb-pillar h3{margin:14px 0 0;font-family:var(--hb-display);font-weight:400;}
.hb-pillar .hb-pillar-sub{
  margin-top:12px;font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--hb-brass);line-height:1.7;
}
.hb-pillar p{margin-top:16px;font-size:15px;line-height:1.75;color:rgba(255,255,255,.78);}
.hb-pillar .hb-link{margin-top:24px;color:#fff;align-self:flex-start;}

/* ---------- testimonials ---------- */
.hb-quotes{position:relative;text-align:center;}
.hb-quotes .hb-sector-head{justify-content:center;}
.hb-quote-stage{position:relative;min-height:clamp(300px,26vw,360px);}
.hb-quote{
  position:absolute;inset:0;
  opacity:0;transform:translateY(18px);
  pointer-events:none;
  transition:opacity .8s var(--hb-ease),transform .8s var(--hb-ease);
}
.hb-quote.is-on{opacity:1;transform:none;pointer-events:auto;position:relative;}
.hb-quote p{
  font-family:var(--hb-display);font-weight:300;font-style:italic;
  font-size:clamp(19px,2.05vw,30px);line-height:1.44;letter-spacing:-.012em;
  color:var(--hb-ink);max-width:34ch;margin:0 auto;
}
.hb-quote footer{margin-top:28px;display:flex;align-items:center;justify-content:center;gap:16px;}
.hb-quote footer b{font-size:14.5px;font-weight:700;letter-spacing:.02em;}
.hb-quote footer span{font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--hb-slate);}
.hb-quote-mark{
  font-family:var(--hb-display);font-size:120px;line-height:.6;color:var(--hb-brass);opacity:.34;
  display:block;margin-bottom:10px;height:.52em;
}
.hb-quote-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:40px;}
.hb-qbtn{
  width:52px;height:52px;border:1px solid var(--hb-line);border-radius:50%;
  display:grid;place-items:center;
  transition:background .45s var(--hb-ease),border-color .45s var(--hb-ease),color .45s var(--hb-ease);
}
.hb-qbtn:hover{background:var(--hb-ink);border-color:var(--hb-ink);color:#fff;}
.hb-qbtn svg{width:17px;height:9px;}
.hb-qbtn path{stroke:currentColor;stroke-width:1.4;fill:none;}
.hb-qdots{display:flex;gap:8px;margin-left:12px;}
.hb-qdot{width:26px;height:2px;background:var(--hb-line);position:relative;overflow:hidden;}
.hb-qdot.is-on::after{
  content:"";position:absolute;inset:0;background:var(--hb-blue);
  transform-origin:left;animation:hb-fill 8s linear forwards;
}
@keyframes hb-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* ---------- clients marquee ---------- */
.hb-marq{overflow:hidden;position:relative;padding-block:6px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);}
.hb-marq-track{display:flex;align-items:center;gap:clamp(40px,6vw,90px);width:max-content;animation:hb-slide 46s linear infinite;}
.hb-marq:hover .hb-marq-track{animation-play-state:paused;}
@keyframes hb-slide{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.hb-marq img{
  height:clamp(34px,3.4vw,48px);width:auto;object-fit:contain;
  filter:grayscale(1) contrast(.55) brightness(1.4);
  opacity:.62;transition:opacity .5s,filter .5s;
}
.hb-marq img:hover{opacity:1;filter:none;}

/* ---------- people ---------- */
.hb-people-group-title{
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--hb-slate);margin:0 0 16px;
}
/*
 * Flex rather than grid, so a grid track's own background is never exposed
 * through the gap on a short final row.
 *
 * flex-grow is deliberately 0: a card has a fixed aspect, so letting one lone
 * item on a short row grow to the full width grew its height with it and
 * rendered a single enormous portrait beside rows of normal ones. Every card
 * keeps the same basis and never grows, so all of them are the same size
 * whatever the count, and justify-content centres whatever is left over.
 */
.hb-people{
  display:flex;flex-wrap:wrap;gap:1px;
  justify-content:center;
}
/* Same breakpoints the rest of the theme's responsive rules use. */
@media (max-width:1180px){.hb-people{--hb-people-cols:2!important;}}
@media (max-width:680px){.hb-people{--hb-people-cols:1!important;}}

.hb-person{
  position:relative;isolation:isolate;overflow:hidden;
  flex:0 1 calc((100% - (var(--hb-people-cols) - 1) * 1px) / var(--hb-people-cols));
  min-width:200px;
  /*
   * Square, because the portraits themselves are square 660x660 crops: at the
   * old 3/4 the card was a quarter taller than the image it exists to show,
   * which both cropped the photo and made the section tower over everything
   * around it.
   */
  aspect-ratio:1/1;
  background:#fff;
  box-shadow:0 0 0 1px var(--hb-line-soft);
  display:flex;flex-direction:column;justify-content:flex-end;
}
.hb-person-photo{
  position:absolute;inset:0;
  background:var(--hb-paper-2);
}
/*
 * Hidden until hover or keyboard focus: the card reads as a clean name plate
 * at rest, then the portrait settles into place as it fades and scales down to
 * size. A card is one link, so a touch device that never fires :hover is given
 * the photo outright in the hover:none query below, rather than never seeing it.
 */
.hb-person-photo img{
  width:100%;height:100%;object-fit:cover;object-position:top center;
  opacity:0;
  transform:scale(1.07);
  transition:opacity .7s var(--hb-ease),transform 1.1s var(--hb-ease);
}
.hb-person:hover .hb-person-photo img,
.hb-person:focus-within .hb-person-photo img{
  opacity:1;
  transform:scale(1);
}
/*
 * A white scrim, not a dark one. The card is light and its type is ink, so the
 * gradient has to lift the foot of the photo back towards paper to keep the
 * name legible once the portrait is showing, rather than darkening behind it.
 */
.hb-person-scrim{
  position:absolute;inset:0;
  background:linear-gradient(to top,
    rgba(255,255,255,.97) 0%,rgba(255,255,255,.92) 22%,
    rgba(255,255,255,.6) 42%,rgba(255,255,255,0) 66%);
  opacity:0;
  transition:opacity .6s var(--hb-ease);
}
.hb-person:hover .hb-person-scrim,
.hb-person:focus-within .hb-person-scrim{opacity:1;}

.hb-person-info{
  position:relative;z-index:1;
  padding:clamp(16px,1.8vw,24px);
  display:flex;flex-direction:column;gap:5px;
}
.hb-person-info b{
  font-family:var(--hb-display);font-weight:400;font-size:clamp(17px,1.4vw,20px);
  line-height:1.2;letter-spacing:-.01em;color:var(--hb-ink);
}
.hb-person-role{
  font-family:var(--hb-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--hb-slate);
}
/*
 * The darkened brass, not the token. Plain --hb-brass measured 2.72:1 on a light
 * ground when Lighthouse checked the footer; this is the same hue cleared to
 * 4.5:1, and this card is now light for the same reason that one is.
 */
.hb-person .hb-link{
  margin-top:9px;color:#8a6e36;font-size:10.5px;
  opacity:0;transform:translateY(4px);
  transition:opacity .5s var(--hb-ease),transform .5s var(--hb-ease);
}
.hb-person:hover .hb-link,
.hb-person:focus-within .hb-link{opacity:1;transform:none;}
@media (hover:none){
  /* No hover to reveal on: show the photo, scrim and call to action outright. */
  .hb-person-photo img{opacity:1;transform:none;}
  .hb-person-scrim{opacity:1;}
  .hb-person .hb-link{opacity:1;transform:none;}
}

/* ---------- map band ---------- */
.hb-map-head{margin-bottom:clamp(20px,2.4vw,32px);}
/*
 * Wide and shallow on a desktop, because a street map reads along its width:
 * this is the shape the sidebar card could not give it. It deepens as the
 * viewport narrows so the pin and its surrounding streets stay legible.
 */
.hb-map{
  position:relative;
  aspect-ratio:21/8;
  border:1px solid var(--hb-line-soft);
  border-radius:8px;
  overflow:hidden;
  background:var(--hb-paper-2);
}
.hb-map iframe{width:100%;height:100%;border:0;display:block;}
@media (max-width:1024px){
  .hb-map{aspect-ratio:16/10;}
}
@media (max-width:680px){
  .hb-map{aspect-ratio:4/5;border-radius:6px;}
}

/* ---------- contact ---------- */
.hb-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(34px,5vw,80px);align-items:start;}
.hb-offices{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:38px;}
.hb-office{border-top:1px solid var(--hb-line-dark);padding-top:18px;}
.hb-office b{display:block;font-family:var(--hb-display);font-weight:400;font-size:24px;margin-bottom:10px;}
.hb-office p{font-size:14.5px;line-height:1.8;color:rgba(232,237,245,.7);}
.hb-office a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px;}
.hb-form{background:rgba(255,255,255,.045);border:1px solid var(--hb-line-dark);padding:clamp(26px,3vw,44px);border-radius:3px;}
/*
 * The padding reserves the space the label floats up into.
 *
 * The label rests at top:14px and lifts by 20px, which put it at -6px, outside
 * the field's own box. It therefore overlapped whatever sat above: on a narrow
 * screen the step heading is directly above the first field, so a filled name
 * field collided with "Who shall we get back to?". The padding gives it
 * somewhere to go, and the label's resting offset is increased by the same
 * amount so the empty state is unchanged.
 */
.hb-field{position:relative;margin-bottom:26px;padding-top:8px;}
.hb-field label{
  position:absolute;left:0;top:22px;
  font-size:15px;color:rgba(232,237,245,.52);
  transform-origin:left;pointer-events:none;
  transition:transform .45s var(--hb-ease),color .45s var(--hb-ease);
}
.hb-field input,.hb-field textarea{
  width:100%;background:transparent;border:0;border-bottom:1px solid var(--hb-line-dark);
  padding:14px 0 12px;color:#fff;font-family:var(--hb-body);font-size:15.5px;
  transition:border-color .45s var(--hb-ease);
}
.hb-field textarea{resize:vertical;min-height:92px;}
.hb-field input:focus,.hb-field textarea:focus{outline:none;border-bottom-color:var(--hb-brass);}
.hb-field input:focus + label,.hb-field textarea:focus + label,
.hb-field input.has-val + label,.hb-field textarea.has-val + label{
  transform:translateY(-20px) scale(.72);color:var(--hb-brass);
}
.hb-field.is-bad input,.hb-field.is-bad textarea{border-bottom-color:#E4756B;}
.hb-field .hb-err{
  display:block;margin-top:7px;font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;color:#E4756B;opacity:0;transition:opacity .3s;
}
.hb-field.is-bad .hb-err{opacity:1;}
.hb-form-note{margin-top:18px;font-size:12.5px;line-height:1.7;color:rgba(232,237,245,.5);}
.hb-form-done{
  margin-top:20px;padding:16px 18px;border:1px solid var(--hb-brass);border-radius:3px;
  font-size:14px;color:#fff;display:none;
}
.hb-form-done.is-on{display:block;}

/* ---------- multi-step enquiry ---------- */
.hb-wiz{
  position:relative;
  background:rgba(255,255,255,.055);
  border:1px solid var(--hb-line-dark);
  border-radius:12px;
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  overflow:hidden;
  box-shadow:0 30px 60px -40px rgba(0,0,0,.6);
}
.hb-wiz-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:22px clamp(24px,2.6vw,34px);
  border-bottom:1px solid var(--hb-line-dark);
}
.hb-wiz-step{
  font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(232,237,245,.6);
}
.hb-wiz-step b{color:var(--hb-brass);}
.hb-wiz-bar{flex:1;max-width:200px;height:2px;background:var(--hb-line-dark);border-radius:2px;overflow:hidden;}
.hb-wiz-bar i{display:block;height:100%;width:25%;background:linear-gradient(90deg,var(--hb-blue),var(--hb-brass));transition:width .6s var(--hb-ease);}
.hb-wiz-body{position:relative;padding:clamp(26px,3vw,40px);}
.hb-step{
  display:none;
  opacity:0;transform:translateY(14px);
  transition:opacity .5s var(--hb-ease),transform .5s var(--hb-ease);
}
.hb-step.is-on{display:block;opacity:1;transform:none;}
.hb-step > .hb-code{margin-bottom:6px;}
.hb-step h3{color:#fff;margin-bottom:6px;}
.hb-step-hint{font-size:13.5px;line-height:1.6;color:rgba(232,237,245,.62);margin-bottom:24px;max-width:46ch;}
.hb-opts{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.hb-opt{
  position:relative;
  display:flex;align-items:flex-start;gap:13px;
  padding:16px 18px;
  border:1px solid var(--hb-line-dark);
  border-radius:8px;
  cursor:pointer;
  transition:border-color .4s var(--hb-ease),background .4s var(--hb-ease),transform .4s var(--hb-ease);
}
.hb-opt:hover{border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.04);}
.hb-opt input{position:absolute;opacity:0;pointer-events:none;}
.hb-opt-mark{
  flex:none;width:19px;height:19px;margin-top:1px;
  border:1px solid rgba(255,255,255,.34);border-radius:50%;
  display:grid;place-items:center;
  transition:border-color .4s var(--hb-ease),background .4s var(--hb-ease);
}
.hb-opt-mark::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--hb-brass);transform:scale(0);transition:transform .35s var(--hb-ease);}
.hb-opt-txt b{display:block;font-size:14.5px;color:#fff;margin-bottom:2px;}
.hb-opt-txt span{font-size:12px;line-height:1.45;color:rgba(232,237,245,.6);}
.hb-opt input:checked + .hb-opt-mark{border-color:var(--hb-brass);}
.hb-opt input:checked + .hb-opt-mark::after{transform:scale(1);}
.hb-opt:has(input:checked){border-color:var(--hb-brass);background:rgba(184,147,74,.08);}
.hb-opt input:focus-visible + .hb-opt-mark{outline:2px solid var(--hb-blue);outline-offset:2px;}
.hb-wiz .hb-field{margin-bottom:22px;}
.hb-wiz .hb-field:last-of-type{margin-bottom:0;}
.hb-wiz-foot{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:20px clamp(24px,2.6vw,34px);
  border-top:1px solid var(--hb-line-dark);
}
.hb-wiz-back{
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(232,237,245,.6);
  display:inline-flex;align-items:center;gap:9px;
  opacity:0;pointer-events:none;
  transition:opacity .4s var(--hb-ease),color .4s var(--hb-ease);
}
.hb-wiz-back.is-on{opacity:1;pointer-events:auto;}
.hb-wiz-back:hover{color:#fff;}
.hb-wiz-back svg{width:15px;height:8px;}
.hb-wiz-back path{stroke:currentColor;stroke-width:1.4;fill:none;}
.hb-wiz-summary{
  margin-top:2px;padding:18px 20px;
  border:1px dashed var(--hb-line-dark);border-radius:8px;
  font-size:13.5px;line-height:1.7;color:rgba(232,237,245,.78);
}
.hb-wiz-summary b{color:#fff;font-weight:500;}
.hb-wiz-done{text-align:center;padding:clamp(30px,4vw,54px) clamp(24px,3vw,40px);display:none;}
.hb-wiz-done.is-on{display:block;animation:hb-fade-in .6s var(--hb-ease) forwards;}
.hb-wiz-done .hb-tick{
  width:56px;height:56px;margin:0 auto 20px;border-radius:50%;
  border:1px solid var(--hb-brass);display:grid;place-items:center;
}
.hb-wiz-done .hb-tick svg{width:24px;height:24px;}
.hb-wiz-done .hb-tick path{stroke:var(--hb-brass);stroke-width:1.6;fill:none;}
.hb-wiz-done h3{color:#fff;margin-bottom:10px;}
.hb-wiz-done p{font-size:14px;line-height:1.7;color:rgba(232,237,245,.7);max-width:40ch;margin:0 auto;}
.hb-foot{background:var(--hb-paper-2);border-top:1px solid var(--hb-line-soft);}
.hb-foot-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:clamp(26px,3vw,48px);padding-block:clamp(52px,6vw,84px);}
.hb-foot img.hb-foot-logo{height:52px;width:auto;margin-bottom:22px;}
.hb-foot h2{
  font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--hb-slate);margin-bottom:18px;font-weight:500;
}
.hb-foot li + li{margin-top:11px;}
.hb-foot li a{font-size:14.5px;color:var(--hb-ink);position:relative;}
.hb-foot li a::after{
  content:"";position:absolute;left:0;bottom:-3px;width:100%;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:right;transition:transform .5s var(--hb-ease);
}
.hb-foot li a:hover::after{transform:scaleX(1);transform-origin:left;}
.hb-foot-bar{
  border-top:1px solid var(--hb-line-soft);
  padding-block:24px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  font-size:12.5px;color:var(--hb-slate);
}
.hb-foot-bar a:hover{color:var(--hb-blue);}
/*
 * --hb-brass measures 2.72:1 against --hb-paper-2, well under the 4.5:1 AA
 * minimum: it is designed to sit on the dark ink background used everywhere
 * else it appears, not this light footer bar. Rather than touch the shared
 * token, which is correct on every other background it is used against, this
 * is the same hue and saturation darkened to the point of passing, computed
 * rather than picked: 4.56:1.
 */
.hb-ipreg{font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#8a6e36;}

/* ---------- back to top + cursor ---------- */
.hb-top{
  position:fixed;right:24px;bottom:24px;z-index:44;
  width:52px;height:52px;border-radius:50%;
  background:var(--hb-ink);color:#fff;
  display:grid;place-items:center;
  opacity:0;transform:translateY(14px) scale(.9);pointer-events:none;
  transition:opacity .5s var(--hb-ease),transform .5s var(--hb-ease),background .4s;
}
.hb-top.is-on{opacity:1;transform:none;pointer-events:auto;}
.hb-top:hover{background:var(--hb-blue);}
.hb-top svg{width:14px;height:14px;}
.hb-top path{stroke:currentColor;stroke-width:1.6;fill:none;}

.hb-cursor{
  position:fixed;top:0;left:0;z-index:1300;
  width:34px;height:34px;border:1px solid rgba(28,88,178,.5);border-radius:50%;
  transform:translate3d(-100px,-100px,0);
  pointer-events:none;opacity:0;
  transition:opacity .4s,width .4s var(--hb-ease),height .4s var(--hb-ease),background .4s,border-color .4s;
  mix-blend-mode:difference;
}
.hb-cursor.is-on{opacity:1;}
.hb-cursor.is-big{width:64px;height:64px;background:rgba(184,147,74,.16);border-color:rgba(184,147,74,.7);}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .hb-nav,.hb-head-cta .hb-btn{display:none;}
  .hb-burger{display:inline-flex;}
  .hb-panels{flex-direction:column;gap:8px;min-height:0;}
  .hb-panel{flex:none;min-height:78px;transition:min-height .8s var(--hb-ease);}
  .hb-panel.is-open{flex:none;min-height:min(560px,78vh);}
  .hb-panel-tab{flex-direction:row;align-items:center;gap:14px;padding:0 22px;}
  .hb-panel-tab span{writing-mode:horizontal-tb;transform:none;margin-left:0;max-height:none;font-size:20px;}
  .hb-panel-tab i{margin-left:0;}
  .hb-panel-body{min-width:0;}
  .hb-case-in{grid-template-columns:1fr;}
  .hb-pillars{grid-template-columns:1fr;}
  .hb-pillar{min-height:360px;}
  .hb-contact-grid{grid-template-columns:1fr;}
  .hb-foot-top{grid-template-columns:1fr 1fr;}
  .hb-intro-grid{grid-template-columns:1fr;}
}
@media (max-width:680px){
  .hb-scope{--hb-head-h:84px;}
  .hb-brand img{height:52px;}
  .hb-head.is-stuck .hb-head-in{height:68px;}
  .hb-head.is-stuck .hb-brand img{height:43px;}
  .hb-opts{grid-template-columns:1fr;}
  .hb-hero{min-height:92svh;}
  .hb-hero-foot{align-items:flex-start;}
  .hb-scroll-cue{display:none;}
  .hb-stats{gap:26px 34px;}
  .hb-offices,.hb-foot-top{grid-template-columns:1fr;}
  .hb-spec-grid{--hb-spec-cols:2;}
  .hb-spec a{min-height:104px;padding:15px 16px;gap:20px;}
  .hb-spec .hb-name{font-size:15px;}
  .hb-notice-in{align-items:flex-start;gap:12px;}
  .hb-notice p{font-size:12px;line-height:1.5;}
  .hb-quote-mark{font-size:84px;}
  .hb-top{right:16px;bottom:16px;}
}

@media (prefers-reduced-motion:reduce){
  .hb-scope *,.hb-scope *::before,.hb-scope *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .hb-rise,.hb-fade{opacity:1 !important;transform:none !important;}
  .hb-line-mask > span{transform:none !important;}
  .hb-mask-img::after{display:none;}
  .hb-cursor{display:none;}
}

/* ==========================================================================
   Interior page components (page hero, prose article, sidebar, CTA strip,
   related grid). Shared by every page that is not the front page.
   ========================================================================== */
/* ============ inner page styles (scoped, additive) ============ */
.hb-scope .hb-phero{
  position:relative;
  margin-top:calc(var(--hb-head-h) * -1);
  min-height:clamp(440px,58vh,600px);
  display:flex;align-items:flex-end;
  overflow:hidden;background:var(--hb-ink);color:#fff;
}
.hb-phero-media{position:absolute;inset:-8% 0 -12% 0;z-index:0;will-change:transform;}
.hb-phero-media img,.hb-phero-media video{width:100%;height:100%;object-fit:cover;}
.hb-phero::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(180deg,rgba(10,23,41,.7) 0%,rgba(10,23,41,.34) 40%,rgba(10,23,41,.9) 100%),
    linear-gradient(90deg,rgba(19,61,119,.5),rgba(10,23,41,0) 60%);
}
.hb-phero-in{position:relative;z-index:2;width:100%;padding-block:clamp(120px,16vh,180px) clamp(40px,6vh,64px);}
.hb-phero-fade{
  position:absolute;top:0;left:0;right:0;z-index:2;
  height:clamp(210px,28vh,320px);
  background:linear-gradient(180deg,
    rgba(255,255,255,1) 0%,rgba(255,255,255,1) 22%,rgba(255,255,255,.9) 34%,
    rgba(255,255,255,.66) 46%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.26) 71%,
    rgba(255,255,255,.12) 84%,rgba(255,255,255,.04) 93%,rgba(255,255,255,0) 100%);
  pointer-events:none;opacity:0;animation:hb-fade-in 1.3s var(--hb-ease) .1s forwards;
}
.hb-crumb{
  display:flex;align-items:center;gap:11px;flex-wrap:wrap;
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.66);margin-bottom:26px;
}
.hb-crumb a{color:rgba(255,255,255,.66);transition:color .35s var(--hb-ease);}
.hb-crumb a:hover{color:#fff;}
.hb-crumb span{color:var(--hb-brass);}
.hb-phero h1{margin:0;max-width:18ch;}
.hb-phero .hb-phero-sub{
  margin-top:22px;max-width:52ch;
  font-family:var(--hb-display);font-style:italic;font-weight:300;
  font-size:clamp(18px,1.7vw,24px);line-height:1.4;color:#BFD6F7;
}
.hb-phero-meta{
  margin-top:clamp(30px,5vh,52px);padding-top:22px;
  border-top:1px solid var(--hb-line-dark);
  display:flex;flex-wrap:wrap;gap:clamp(22px,4vw,58px);
}
.hb-phero-meta div b{
  display:block;font-family:var(--hb-mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.55);margin-bottom:7px;
}
.hb-phero-meta div span{font-size:15px;color:#E8EDF5;}
.hb-phero-meta div span a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(232,237,245,.3);transition:border-color .3s var(--hb-ease),color .3s var(--hb-ease);}
.hb-phero-meta div span a:hover{color:var(--hb-blue);border-color:currentColor;}

/* article + sidebar layout */
.hb-article{
  display:grid;grid-template-columns:minmax(0,1fr) 320px;
  gap:clamp(34px,5vw,80px);align-items:start;
}
.hb-prose > * + *{margin-top:24px;}
.hb-prose p{
  font-size:16.5px;line-height:1.78;color:var(--hb-slate);
  text-align:justify;text-justify:inter-word;
  hyphens:auto;-webkit-hyphens:auto;
}
/* Enquiry honeypot. Positioned away rather than display:none, since some bots
   skip fields that are not rendered at all. Never shown to a real visitor. */
.hb-hp{position:absolute!important;left:-9999px!important;top:auto;
  width:1px;height:1px;overflow:hidden;}
.hb-wiz-error{margin-top:14px;font-size:14px;line-height:1.5;color:#b3261e;}

/* ---------------- header enquiry dialog ----------------
   Native <dialog>, so the browser supplies focus trapping, escape to close and
   an inert background. ::backdrop is the element's own backdrop pseudo, which
   is why there is no separate overlay div. */
.hb-enq{
  border:0;padding:0;background:transparent;
  width:min(680px,calc(100vw - 32px));max-width:none;max-height:none;
  color:#E8EDF5;
}
.hb-enq::backdrop{background:rgba(6,13,24,.72);backdrop-filter:blur(3px);}
.hb-enq-box{
  position:relative;
  background:var(--hb-ink);
  border:1px solid var(--hb-line-dark);
  border-radius:6px;
  padding:clamp(24px,3.4vw,44px);
  max-height:calc(100vh - 48px);overflow-y:auto;
}
.hb-enq-close{
  position:absolute;top:14px;right:14px;
  width:36px;height:36px;display:grid;place-items:center;
  background:transparent;border:1px solid var(--hb-line-dark);border-radius:50%;
  cursor:pointer;transition:border-color .3s,background .3s;
}
.hb-enq-close:hover{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06);}
.hb-enq-close svg{width:13px;height:13px;stroke:#E8EDF5;stroke-width:1.6;fill:none;}
.hb-enq .hb-h3{margin:10px 0 0;color:#fff;}
.hb-enq-lede{margin:12px 0 26px;color:rgba(232,237,245,.72);font-size:15px;line-height:1.6;}
/* The wizard already styles itself for a dark ground, so it needs no card of
   its own inside the dialog. */
.hb-wiz--dialog{border:0;padding:0;background:transparent;}
@media (prefers-reduced-motion:no-preference){
  .hb-enq[open]{animation:hb-enq-in .28s var(--hb-ease);}
}
@keyframes hb-enq-in{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}

/* ---------------- accolades timeline ----------------
   Bar geometry comes from two custom properties set inline per bar, --s for the
   start offset and --w for the width, both percentages of the full date range.
   Built from block elements rather than svg because wp_kses_post strips svg out
   of the raw layout, and because real text is readable by crawlers and language
   models in a way that an svg rect is not. */
.hb-tl{margin-top:8px;}
.hb-tl-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px;}
.hb-tl-filter{
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(232,237,245,.65);background:transparent;
  border:1px solid var(--hb-line-dark);border-radius:999px;
  padding:8px 15px;cursor:pointer;transition:color .3s,border-color .3s,background .3s;
}
.hb-tl-filter:hover{color:#fff;border-color:rgba(255,255,255,.34);}
.hb-tl-filter.is-on{color:var(--hb-ink);background:var(--hb-brass);border-color:var(--hb-brass);}
.hb-tl-axis{
  position:relative;height:22px;margin-bottom:10px;
  border-bottom:1px solid var(--hb-line-dark);
}
.hb-tl-tick{
  position:absolute;left:var(--x);top:0;transform:translateX(-50%);
  font-family:var(--hb-mono);font-size:10px;letter-spacing:.18em;
  color:rgba(232,237,245,.45);
}
/*
 * Two columns from 760px up: the entry on the left, its bar on the right, so
 * ten entries read as a chart rather than ten stacked blocks. Below that the
 * bar drops under the label, since a bar a few centimetres wide conveys
 * nothing useful on a phone.
 */
.hb-tl-rows{list-style:none;margin:0;padding:0;}
.hb-tl-row{
  padding:14px 0;border-bottom:1px solid var(--hb-line-dark);
}
.hb-tl-row[hidden]{display:none;}
@media (min-width:760px){
  .hb-tl-row{
    display:grid;
    grid-template-columns:minmax(210px,26%) 1fr;
    grid-template-areas:"label track" "desc desc";
    column-gap:28px;align-items:center;
  }
  .hb-tl-label{grid-area:label;}
  .hb-tl-range{grid-area:label;align-self:end;}
  .hb-tl-track{grid-area:track;}
  .hb-tl-desc{grid-area:desc;}
  /* label and range share the left cell, stacked */
  .hb-tl-row{grid-template-areas:"label track" "range track" "desc desc";
    grid-template-rows:auto auto auto;}
  .hb-tl-range{grid-area:range;}
}
.hb-tl-label{
  font-family:var(--hb-display);font-weight:500;font-size:clamp(15px,1.15vw,17px);
  line-height:1.25;color:#fff;margin:0;
}
.hb-tl-range{
  font-family:var(--hb-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(232,237,245,.5);margin:4px 0 8px;
}
.hb-tl-track{
  display:block;position:relative;height:8px;border-radius:4px;
  background:rgba(255,255,255,.05);overflow:hidden;
}
.hb-tl-bar{
  position:absolute;left:var(--s);width:var(--w);top:0;bottom:0;
  border-radius:4px;background:var(--hb-brass);
}
.hb-tl-bar--case{background:var(--hb-brass);}
.hb-tl-bar--award{background:#7fa6d9;}
.hb-tl-bar--ranking{background:#6f8fa8;}
.hb-tl-bar--recognition{background:#9c8f6f;}
/* An entry with no end date fades out rather than stopping abruptly. */
.hb-tl-bar--ongoing{
  -webkit-mask-image:linear-gradient(to right,#000 70%,transparent 100%);
  mask-image:linear-gradient(to right,#000 70%,transparent 100%);
}
.hb-tl-desc{
  font-size:13.5px;line-height:1.65;color:rgba(232,237,245,.66);
  margin:8px 0 0;max-width:78ch;text-align:left;hyphens:none;
}
.hb-tl-marks-head{
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(232,237,245,.5);margin:34px 0 14px;
}
.hb-tl-marks{list-style:none;margin:0;padding:0;display:grid;gap:1px;
  grid-template-columns:repeat(3,1fr);background:var(--hb-line-dark);
  border:1px solid var(--hb-line-dark);border-radius:6px;overflow:hidden;}
.hb-tl-mark{background:var(--hb-ink);padding:18px 20px;}
.hb-tl-mark time{
  display:block;font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--hb-brass);margin-bottom:8px;
}
.hb-tl-mark b{display:block;font-family:var(--hb-display);font-weight:500;
  font-size:16px;line-height:1.3;color:#fff;margin-bottom:6px;}
.hb-tl-mark span{font-family:var(--hb-mono);font-size:11px;color:rgba(232,237,245,.55);}
@media (max-width:880px){
  .hb-tl-marks{grid-template-columns:1fr;}
}

/* Letterhead, running heads and footers lifted out of a pdf transcription.
   Kept for fidelity but set quietly, so they do not read as body copy. */
.hb-prose .hb-doc-meta{
  font-family:var(--hb-mono);font-size:11px;line-height:1.7;letter-spacing:.02em;
  text-align:left;hyphens:none;color:rgba(90,102,120,.75);
  border-left:1px solid var(--hb-line);padding-left:14px;margin-top:18px;
}
/* Headings inside a transcription. h3 is the document's own title, h4 a section
   heading within it. The page keeps its single h1 and the section its h2. */
.hb-prose h4{
  font-family:var(--hb-display);font-weight:600;
  font-size:clamp(16px,1.3vw,18px);line-height:1.3;color:var(--hb-ink);
  margin-top:30px;
}

/* Transcribed document viewer, built by hb.js from the pdf page markers. */
.hb-docs{margin:34px 0 26px;border-top:1px solid var(--hb-line);
  border-bottom:1px solid var(--hb-line);padding:16px 0;}
.hb-docs-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.hb-docs-tabs button{
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--hb-slate);
  background:none;border:1px solid var(--hb-line);border-radius:2px;
  padding:8px 12px;cursor:pointer;text-align:left;max-width:100%;
  transition:border-color .3s var(--hb-ease),color .3s var(--hb-ease);
}
.hb-docs-tabs button:hover{border-color:var(--hb-brass);color:var(--hb-ink);}
.hb-docs-tabs button.is-on{border-color:var(--hb-brass);color:var(--hb-ink);
  background:rgba(176,141,87,.08);}
.hb-docs-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.hb-docs-bar button{
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--hb-ink);
  background:none;border:1px solid var(--hb-line);border-radius:2px;
  padding:9px 16px;cursor:pointer;
  transition:border-color .3s var(--hb-ease),opacity .3s var(--hb-ease);
}
.hb-docs-bar button:hover:not(:disabled){border-color:var(--hb-brass);}
.hb-docs-bar button:disabled{opacity:.35;cursor:default;}
.hb-docs-count{font-family:var(--hb-mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--hb-slate);}
@media (max-width:600px){
  .hb-docs-bar{flex-wrap:wrap;justify-content:center;}
  .hb-docs-count{order:-1;width:100%;text-align:center;}
}
.hb-prose p strong{color:var(--hb-ink);font-weight:600;}
.hb-prose h2{
  font-family:var(--hb-display);font-weight:400;
  font-size:clamp(24px,2.4vw,33px);line-height:1.14;letter-spacing:-.01em;
  color:var(--hb-ink);margin-top:46px;
}
.hb-prose h3{
  font-family:var(--hb-display);font-weight:500;
  font-size:clamp(19px,1.6vw,23px);line-height:1.2;color:var(--hb-ink);margin-top:38px;
}
.hb-prose .hb-lead{
  font-family:var(--hb-display);font-weight:300;
  font-size:clamp(20px,1.9vw,27px);line-height:1.42;letter-spacing:-.012em;color:var(--hb-ink);
}
.hb-prose ul{margin-top:22px;display:grid;gap:2px;}
.hb-prose ul li{
  position:relative;padding:13px 0 13px 30px;
  font-size:16px;line-height:1.6;color:var(--hb-ink);
  border-bottom:1px solid var(--hb-line-soft);
}
.hb-prose ul li:first-child{border-top:1px solid var(--hb-line-soft);}
.hb-prose ul li::before{
  content:"";position:absolute;left:2px;top:20px;
  width:11px;height:1px;background:var(--hb-brass);
}
.hb-prose ol{margin-top:22px;counter-reset:hbc;display:grid;gap:16px;}
.hb-prose ol li{
  position:relative;padding-left:44px;
  font-size:16px;line-height:1.7;color:var(--hb-slate);counter-increment:hbc;
}
.hb-prose ol li::before{
  content:counter(hbc,decimal-leading-zero);
  position:absolute;left:0;top:1px;
  font-family:var(--hb-mono);font-size:12px;color:var(--hb-brass);
  border:1px solid var(--hb-line);border-radius:50%;
  width:28px;height:28px;display:grid;place-items:center;
}
.hb-prose blockquote{
  margin-top:34px;padding:4px 0 4px 28px;border-left:2px solid var(--hb-brass);
  font-family:var(--hb-display);font-style:italic;font-weight:300;
  font-size:clamp(19px,1.9vw,25px);line-height:1.4;letter-spacing:-.01em;color:var(--hb-navy);
}
.hb-prose a:not(.hb-btn):not(.hb-link){
  color:var(--hb-blue);border-bottom:1px solid var(--hb-line);
  padding-bottom:1px;transition:border-color .35s var(--hb-ease);
}
.hb-prose a:not(.hb-btn):not(.hb-link):hover{border-color:var(--hb-blue);}
.hb-pullquote{
  margin-block:clamp(34px,4vw,52px);padding:clamp(26px,3vw,40px);
  background:var(--hb-paper-2);border:1px solid var(--hb-line-soft);border-radius:8px;
  position:relative;
}
.hb-pullquote::before{
  content:"\201C";position:absolute;top:6px;left:18px;
  font-family:var(--hb-display);font-size:80px;line-height:1;color:var(--hb-brass);opacity:.24;
}
.hb-pullquote p{
  font-family:var(--hb-display);font-weight:300;font-size:clamp(19px,2vw,26px);
  line-height:1.36;letter-spacing:-.012em;color:var(--hb-ink);position:relative;
}
.hb-pullquote cite{
  display:block;margin-top:16px;font-family:var(--hb-mono);font-style:normal;
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--hb-brass);
}

/* sidebar */
.hb-side{position:sticky;top:calc(var(--hb-head-h) + 26px);display:grid;gap:20px;}
.hb-side-card{
  border:1px solid var(--hb-line-soft);border-radius:10px;
  padding:clamp(22px,2vw,28px);background:var(--hb-paper-2);
}
.hb-side-card.is-dark{background:var(--hb-ink);border-color:transparent;color:#fff;}
.hb-side-card h4{
  font-family:var(--hb-mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--hb-slate);margin-bottom:16px;font-weight:500;
}
.hb-side-card.is-dark h4{color:#8FB6F2;}
.hb-side-card.is-dark .hb-display{color:#fff;margin-bottom:10px;}
.hb-side-card.is-dark p{font-size:14px;line-height:1.6;color:rgba(232,237,245,.72);margin-bottom:18px;}
.hb-side-list{display:grid;gap:1px;}
.hb-side-list a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 0;font-size:14.5px;color:var(--hb-ink);
  border-bottom:1px solid var(--hb-line-soft);
  transition:color .35s var(--hb-ease),padding .4s var(--hb-ease);
}
.hb-side-list a:last-child{border-bottom:0;}
.hb-side-list a:hover{color:var(--hb-blue);padding-left:6px;}
.hb-side-list a.is-current{color:var(--hb-blue);font-weight:600;}
.hb-side-list a svg{width:15px;height:8px;flex:none;opacity:0;transform:translateX(-6px);transition:opacity .35s,transform .4s var(--hb-ease);}
.hb-side-list a:hover svg{opacity:1;transform:none;}
.hb-side-list a svg path{stroke:currentColor;stroke-width:1.4;fill:none;}
.hb-side-contact p{font-size:14px;line-height:1.85;color:var(--hb-slate);}
.hb-side-contact a{color:var(--hb-ink);}
.hb-side-contact a:hover{color:var(--hb-blue);}
.hb-side-credentials-list{display:grid;gap:1px;margin-top:4px;}
.hb-side-credentials-list li{
  position:relative;padding:11px 0 11px 20px;font-size:13.5px;line-height:1.5;
  color:var(--hb-ink);border-bottom:1px solid var(--hb-line-soft);
}
.hb-side-credentials-list li:last-child{border-bottom:0;}
.hb-side-credentials-list li::before{
  content:"";position:absolute;left:0;top:18px;width:6px;height:6px;
  border-radius:50%;background:var(--hb-brass);
}
.hb-side-card.is-dark .hb-side-credentials-list li{color:rgba(232,237,245,.85);border-color:rgba(255,255,255,.12);}

/* contact strip */
.hb-cta-strip{position:relative;overflow:hidden;background:var(--hb-ink);color:#fff;}
.hb-cta-strip-bg{position:absolute;inset:-12% 0;z-index:0;opacity:.26;will-change:transform;}
.hb-cta-strip-bg img{width:100%;height:100%;object-fit:cover;}
.hb-cta-strip::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:radial-gradient(120% 100% at 20% 20%,rgba(19,61,119,.6),rgba(8,17,31,.92) 70%);
}
.hb-cta-strip-in{
  position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;
  gap:clamp(24px,4vw,60px);flex-wrap:wrap;
}
.hb-cta-strip h2{max-width:20ch;}
.hb-cta-strip .hb-lede{color:rgba(232,237,245,.72);margin-top:16px;max-width:48ch;}

/* related tiles */
.hb-related{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--hb-line-soft);}
.hb-rel{
  position:relative;min-height:220px;overflow:hidden;isolation:isolate;
  display:flex;flex-direction:column;justify-content:flex-end;padding:26px;color:#fff;
  background:var(--hb-ink);
}
.hb-rel img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transform:scale(1.05);transition:transform 1.5s var(--hb-ease);}
.hb-rel::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(10,23,41,.25),rgba(10,23,41,.9));transition:background .6s;}
.hb-rel:hover img{transform:scale(1.12);}
.hb-rel:hover::after{background:linear-gradient(180deg,rgba(19,61,119,.4),rgba(8,17,31,.92));}
.hb-rel .hb-code{margin-bottom:10px;}
.hb-rel b{font-family:var(--hb-display);font-weight:400;font-size:21px;line-height:1.15;}
.hb-rel .hb-link{margin-top:16px;color:#fff;}

@media (max-width:960px){
  .hb-article{grid-template-columns:1fr;}
  .hb-side{position:static;grid-template-columns:1fr 1fr;}
  .hb-related{grid-template-columns:1fr;}
}
@media (max-width:680px){
  .hb-side{grid-template-columns:1fr;}
}

/* ==========================================================================
   v1.9 corrections
   ========================================================================== */

/* Section rhythm tightened by roughly a quarter. The originals were generous
   enough that long pages felt sparse once the copy landed. */
.hb-scope .hb-band{padding-block:clamp(38px,4.6vw,66px);}
.hb-scope .hb-band--tight{padding-block:clamp(26px,3.2vw,44px);}
.hb-scope .hb-intro-grid{gap:clamp(28px,3.4vw,56px);}
.hb-scope .hb-sector-head{margin-bottom:clamp(24px,2.6vw,38px);}
.hb-scope .hb-article{gap:clamp(30px,3.4vw,56px);}
.hb-scope .hb-prose > h2{margin-top:1.7em;}
.hb-scope .hb-foot-top{padding-block:clamp(34px,4vw,58px);}

/* Contrast on cards that place text over a photograph.
   .hb-pillar had no scrim at all, so white text sat directly on the image and
   failed on any light photograph. .hb-rel had one, but it was weak in the upper
   half where the title sits. Both now carry a guaranteed gradient, and the text
   colours are set explicitly rather than left to inherit. */
.hb-scope .hb-pillar::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(10,23,41,.30) 0%,rgba(10,23,41,.72) 55%,rgba(8,17,31,.93) 100%);
  transition:background .6s var(--hb-ease);
}
.hb-scope .hb-pillar:hover::after{
  background:linear-gradient(180deg,rgba(19,61,119,.42) 0%,rgba(10,23,41,.80) 55%,rgba(8,17,31,.95) 100%);
}
.hb-scope .hb-rel::after{
  background:linear-gradient(180deg,rgba(10,23,41,.42) 0%,rgba(10,23,41,.78) 50%,rgba(8,17,31,.94) 100%);
}
.hb-scope .hb-rel:hover::after{
  background:linear-gradient(180deg,rgba(19,61,119,.50) 0%,rgba(10,23,41,.84) 50%,rgba(8,17,31,.96) 100%);
}

/* Explicit light text on both card types. Set on the elements themselves so no
   later rule can win on equal specificity and drop a title back to ink. */
.hb-scope .hb-rel,
.hb-scope .hb-rel b,
.hb-scope .hb-rel p,
.hb-scope .hb-rel .hb-link,
.hb-scope .hb-pillar,
.hb-scope .hb-pillar h3,
.hb-scope .hb-pillar .hb-link{color:#FFFFFF;}
.hb-scope .hb-rel b,
.hb-scope .hb-pillar h3{text-shadow:0 1px 24px rgba(8,17,31,.55);}
.hb-scope .hb-rel p,
.hb-scope .hb-pillar p{color:rgba(255,255,255,.84);}
.hb-scope .hb-rel .hb-code,
.hb-scope .hb-pillar .hb-pillar-sub{color:var(--hb-brass);}
.hb-scope .hb-rel .hb-link svg,
.hb-scope .hb-pillar .hb-link svg{stroke:#FFFFFF;}

/* The dark sections set a light body colour but leave headings to inherit. */
.hb-scope .hb-dark h2,
.hb-scope .hb-dark h3,
.hb-scope .hb-dark h4,
.hb-scope .hb-dark blockquote,
.hb-scope .hb-case h2,
.hb-scope .hb-case blockquote,
.hb-scope .hb-cta-strip h2{color:#FFFFFF;}
.hb-scope .hb-dark .hb-body{color:rgba(232,237,245,.80);}

/*
 * The rule this comment used to defend made things worse, not better.
 *
 * .hb-foot sits on --hb-paper-2, a near white background, and its base h5
 * colour is --hb-slate, which measures 5.16:1 against it, comfortably past
 * the 4.5:1 AA minimum for that font size. This override set the heading to
 * rgba(255,255,255,.92), near white on near white, at a measured 1.05:1: not
 * a shade too dim, effectively invisible. Left in place so the mistake is not
 * quietly repeated; the fix is simply not overriding the base colour.
 */

/* ==========================================================================
   News hub
   ========================================================================== */

/* Category filter. Chips reuse the mono treatment used elsewhere. */
.hb-scope .hb-news-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.hb-scope .hb-chip{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--hb-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--hb-slate);background:var(--hb-paper-2);
  border:1px solid var(--hb-line-soft);border-radius:999px;
  padding:8px 15px;transition:color .3s var(--hb-ease),border-color .3s var(--hb-ease),background .3s var(--hb-ease);
}
.hb-scope .hb-chip em{font-style:normal;opacity:.55;font-size:10px;}
.hb-scope .hb-chip:hover{color:var(--hb-ink);border-color:var(--hb-line);}
.hb-scope .hb-chip.is-on{color:#FFFFFF;background:var(--hb-ink);border-color:var(--hb-ink);}

/* Featured lead article. */
.hb-scope .hb-news-lead{
  position:relative;display:block;overflow:hidden;isolation:isolate;
  border-radius:3px;min-height:clamp(320px,42vw,520px);
  display:flex;align-items:flex-end;color:#FFFFFF;
}
.hb-scope .hb-news-lead img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;
  transition:transform 1.1s var(--hb-ease);
}
.hb-scope .hb-news-lead::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(10,23,41,.30) 0%,rgba(10,23,41,.74) 55%,rgba(8,17,31,.94) 100%);
  transition:background .6s var(--hb-ease);
}
.hb-scope .hb-news-lead:hover img{transform:scale(1.04);}
.hb-scope .hb-news-lead:hover::after{
  background:linear-gradient(180deg,rgba(19,61,119,.42) 0%,rgba(10,23,41,.82) 55%,rgba(8,17,31,.96) 100%);
}
.hb-scope .hb-news-lead-in{padding:clamp(24px,3.4vw,46px);max-width:62ch;}
.hb-scope .hb-news-lead .hb-code{
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;color:var(--hb-brass);margin-bottom:16px;
}
.hb-scope .hb-news-lead h2{color:#FFFFFF;margin:0 0 14px;text-shadow:0 1px 24px rgba(8,17,31,.55);}
.hb-scope .hb-news-lead .hb-lede{color:rgba(255,255,255,.86);margin:0 0 20px;}
.hb-scope .hb-news-lead .hb-link{color:#FFFFFF;}
.hb-scope .hb-news-lead .hb-link svg{stroke:#FFFFFF;}

/* Featured flag, shared by the lead and the grid cards. */
.hb-scope .hb-news-flag{
  display:inline-block;font-family:var(--hb-mono);font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--hb-ink);background:var(--hb-brass);
  padding:3px 9px;border-radius:2px;margin-right:10px;
}

/* Previous and next, below the article prose. */
.hb-scope .hb-post-nav{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;
  margin-top:clamp(34px,4vw,56px);padding-top:clamp(24px,3vw,36px);
  border-top:1px solid var(--hb-line-soft);
}
.hb-scope .hb-post-nav-item{
  display:block;padding:18px 20px;background:var(--hb-paper-2);
  border:1px solid var(--hb-line-soft);border-radius:3px;
  transition:border-color .3s var(--hb-ease),transform .3s var(--hb-ease);
}
.hb-scope .hb-post-nav-item:hover{border-color:var(--hb-line);transform:translateY(-2px);}
.hb-scope .hb-post-nav-item .hb-code{display:block;color:var(--hb-brass);margin-bottom:8px;}
.hb-scope .hb-post-nav-item b{
  font-family:var(--hb-display);font-weight:400;font-size:17px;line-height:1.35;color:var(--hb-ink);
}
.hb-scope .hb-post-nav-next{text-align:right;}

@media (max-width:760px){
  .hb-scope .hb-news-lead{min-height:300px;}
  .hb-scope .hb-post-nav-next{text-align:left;}
}

/* ------------------------------------------------------------------
   Hepworth Browne - flowing colour for display headings

   A continuous gradient drifts through the letterforms, navy through
   blue into brass and back. CSS only, animates background-position.

   Applied to .hb-h1 and .hb-h2 directly, so no template change is
   needed. .hb-h1-flow is kept as an explicit opt in for anywhere else.

   WHY color IS NEVER SET TO transparent
   The usual form of this effect pairs background-clip:text with
   color:transparent. That has the same shape as the opacity:0 reveal
   bug this theme already shipped: if the gradient does not paint, for
   any reason, the heading is simply gone. Two guards instead:
     1. -webkit-text-fill-color:transparent hides only the glyph fill.
        color keeps its real value, so currentColor still resolves and
        nothing downstream inherits transparent.
     2. background-color sits under the gradient, clipped to the same
        glyphs. If the gradient fails to paint, the letters fill solid
        in the correct colour rather than vanishing.

   GROUNDS
   Every .hb-h1 sits on a dark ground: hero, and phero which single.php
   and index.php both render through. .hb-h2 sits on BOTH, so the light
   palette below is the default and dark grounds opt into the lifted
   one. The dark .hb-h2 sections are contact and sectors, which carry
   .hb-dark, and cta-strip, which does NOT: .hb-cta-strip sets
   background:var(--hb-ink) in its own rule, so it is listed by name.
   Miss it and that heading renders dark on dark.
   ------------------------------------------------------------------ */

/* 1. Palette as custom properties, so a context redefines the colours
      and the gradient itself is written once.

      Defaults are the LIGHT ground palette: every stop dark enough to
      read on --hb-paper. --hb-flow-base is the flat, non gradient
      colour, applied as a plain `color` before any of the effect, so
      dropping every rule below still leaves a solid heading. */
.hb-h1,
.hb-h2,
.hb-h1-flow {
  --hb-flow-base: var(--hb-ink, #0A1729);
  --hb-flow-1:    #0A1729; /* ink                                   */
  --hb-flow-2:    #133D77; /* navy                                  */
  --hb-flow-3:    #1C58B2; /* blue                                  */
  --hb-flow-4:    #8A6B2E; /* brass, darkened for contrast on paper */
  --hb-flow-dur:  11s;

  color: var(--hb-flow-base);
}

/* A slightly longer cycle on h2 so a page with both does not pulse in
   lockstep. Close enough to read as one system, apart enough to avoid
   a visible wave down the page. */
.hb-h2 {
  --hb-flow-dur: 13s;
}

/* 2. Dark grounds: the hero over its video still, the phero band, any
      .hb-dark panel, and the cta strip which is dark by its own rule.
      The same journey, lifted, so no stop lands dark on dark. Worst
      stop here is the mid blue at about 8:1 on --hb-ink, comfortably
      past the 3:1 large text threshold. */
.hb-hero .hb-h1,
.hb-hero .hb-h2,
.hb-phero .hb-h1,
.hb-phero .hb-h2,
.hb-dark .hb-h1,
.hb-dark .hb-h2,
.hb-cta-strip .hb-h1,
.hb-cta-strip .hb-h2,
.hb-hero .hb-h1-flow,
.hb-phero .hb-h1-flow,
.hb-dark .hb-h1-flow,
.hb-cta-strip .hb-h1-flow,
.hb-on-dark .hb-h1-flow,
.hb-h1-flow.hb-on-dark {
  --hb-flow-base: var(--hb-white, #FFFFFF);
  --hb-flow-1:    #FFFFFF; /* white                               */
  --hb-flow-2:    #C9D8F2; /* pale blue, lifted from --hb-blue    */
  --hb-flow-3:    #8FB3E8; /* mid blue, still well above the ink  */
  --hb-flow-4:    #E2C489; /* brass, lifted for legibility on ink */
}

/* 3. The effect. Gated on the clip AND the fill property, so a browser
      that cannot do either never reaches a transparent fill. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) and
          (-webkit-text-fill-color: transparent) {

  .hb-h1,
  .hb-h2,
  .hb-h1-flow {
    /* Solid layer beneath the gradient, clipped to the same glyphs.
       This is the guard that makes a failed gradient legible. */
    background-color: var(--hb-flow-base);

    /* Soft symmetrical ramp. Stop 1 and stop 8 are the same colour, so
       the tile is a closed loop and tiles against itself with no seam. */
    background-image: linear-gradient(
      100deg,
      var(--hb-flow-1)  0%,
      var(--hb-flow-2) 16%,
      var(--hb-flow-3) 30%,
      var(--hb-flow-2) 44%,
      var(--hb-flow-4) 58%,
      var(--hb-flow-3) 72%,
      var(--hb-flow-2) 86%,
      var(--hb-flow-1) 100%
    );

    /* 200% and -200% are a matched pair, do not change one alone.
       A percentage background-position resolves against
       (container width - image width). At 200% background-size that is
       -1x the container width, so a position of -200% offsets the image
       by exactly +2x the container width, which is exactly one tile.
       The loop restarts on an identical pixel: no jump.
       Any other size needs position = size / (100% - size). */
    background-size: 200% 100%;
    background-repeat: repeat;
    background-position: 0% 50%;

    -webkit-background-clip: text;
            background-clip: text;
    /* Fill only. `color` above is deliberately left as a real colour. */
    -webkit-text-fill-color: transparent;

    animation: hb-flow-drift var(--hb-flow-dur) linear infinite;
  }

  /* The hero emphasis, the italic word in the headline, already carries
     its own static gradient:
       .hb-hero h1 .hb-em{ background:linear-gradient(92deg,#fff,#BBD3F6);
                           background-clip:text; color:transparent; }
     A child's own background paints over the parent's, so that word
     would sit still while the rest of the line flows. Removing just the
     background lets the H1's gradient run through it unbroken, while
     italic and weight 400 are left alone so the word keeps its emphasis.
     Specificity here is 0,3,0 against the original 0,2,1, so it wins. */
  .hb-hero .hb-h1 .hb-em,
  .hb-hero .hb-h1-flow .hb-em {
    background: none;
  }

  /* Selection paints over a clipped background and would be unreadable,
     so restore a solid fill for the selection alone. */
  .hb-h1::selection,
  .hb-h2::selection,
  .hb-h1-flow::selection {
    -webkit-text-fill-color: var(--hb-flow-base);
    background: rgba(28, 88, 178, 0.22);
  }
}

@keyframes hb-flow-drift {
  from { background-position:    0% 50%; }
  to   { background-position: -200% 50%; }
}

/* 4. Composition with the theme's reveal.
      Nothing to declare. This sets background-position, the background
      paint and the text fill. It never sets opacity and never sets a
      transition, so .hb-fade{opacity:0} -> .hb-fade.is-in{opacity:1}
      and .hb-rise keep sole control of opacity and transform on the
      same element. Deliberately empty: adding an opacity or transition
      here would override the theme's own reveal. */

/* 5. Reduced motion: settle, do not freeze. The drift is removed and
      the gradient parks at a known position. Every stop in view is
      opaque, so the heading is fully painted, never caught part way. */
@media (prefers-reduced-motion: reduce) {
  .hb-h1,
  .hb-h2,
  .hb-h1-flow {
    animation: none !important;
    background-position: 0% 50% !important;
  }
}

/* 6. Print: ink on white, effect dropped, words kept. */
@media print {
  .hb-h1,
  .hb-h2,
  .hb-h1-flow {
    background-image: none !important;
    -webkit-text-fill-color: #0A1729 !important;
            color: #0A1729 !important;
    animation: none !important;
  }
}

/* 7. Forced colours: hand the heading back to the user's palette. */
@media (forced-colors: active) {
  .hb-h1,
  .hb-h2,
  .hb-h1-flow {
    background-image: none !important;
    -webkit-text-fill-color: CanvasText !important;
            color: CanvasText !important;
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Cookie consent: CookieYes (cookie-law-info), restyled to the theme          */
/* -------------------------------------------------------------------------- */
/*
 * CookieYes writes its colours as inline style attributes from its own
 * settings screen, so these rules need !important to win. Only the banner,
 * the preference centre and the revisit button are styled; the plugin's
 * behaviour is untouched.
 *
 * The banner renders outside .hb-scope, where the theme's custom properties
 * are defined, so every var() here carries the token's literal value as its
 * fallback.
 *
 * Accept and Reject All are deliberately the same size and weight: UK ICO
 * guidance expects refusing to be as easy as accepting.
 */
.cky-consent-container{
  left:50% !important;
  right:auto !important;
  bottom:clamp(12px,2.4vw,28px) !important;
  transform:translateX(-50%);
  width:min(1080px,calc(100% - 32px)) !important;
  max-width:none !important;
  z-index:99990 !important;
}
.cky-consent-container .cky-consent-bar{
  background:rgba(10,23,41,.78) !important;
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  backdrop-filter:blur(18px) saturate(140%);
  border:1px solid rgba(255,255,255,.16) !important;
  border-radius:20px !important;
  box-shadow:0 24px 60px -24px rgba(10,23,41,.55),0 2px 0 rgba(255,255,255,.04) inset !important;
  padding:clamp(18px,2.2vw,28px) clamp(20px,2.6vw,34px) !important;
  color:rgba(255,255,255,.82) !important;
}
.cky-consent-bar .cky-notice{display:flex;flex-wrap:wrap;align-items:center;gap:14px 32px;}
.cky-consent-bar .cky-title{
  font-family:var(--hb-display-family,"Newsreader"),Georgia,serif !important;
  font-weight:400 !important;
  font-size:clamp(19px,1.6vw,23px) !important;
  line-height:1.2 !important;
  letter-spacing:-.005em;
  color:#FFFFFF !important;
  margin:0 0 6px !important;
  flex-basis:100%;
}
.cky-consent-bar .cky-notice-group{display:flex;flex:1 1 100%;flex-wrap:wrap;align-items:center;gap:16px 32px;}
.cky-consent-bar .cky-notice-des,
.cky-consent-bar .cky-notice-des *{
  font-family:var(--hb-body,"Nobile","Helvetica Neue",Arial,sans-serif) !important;
  font-size:14px !important;
  line-height:1.6 !important;
  color:rgba(255,255,255,.78) !important;
}
.cky-consent-bar .cky-notice-des{flex:1 1 380px;margin:0 !important;}
.cky-consent-bar .cky-notice-des a{color:#8FB6F2 !important;text-decoration:underline;text-underline-offset:3px;}
.cky-consent-bar .cky-notice-btn-wrapper{display:flex;flex-wrap:wrap;gap:10px;margin:0 !important;flex:0 0 auto;}

/* Buttons share the theme's pill: mono, uppercase, tracked. */
.cky-consent-container .cky-btn,
.cky-modal .cky-btn{
  font-family:var(--hb-mono,"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace) !important;
  font-size:11.5px !important;
  font-weight:500 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase !important;
  line-height:1 !important;
  padding:14px 22px !important;
  border-radius:999px !important;
  border-width:1px !important;
  min-width:0 !important;
  margin:0 !important;
  transition:background-color .35s var(--hb-ease,cubic-bezier(.16,.84,.44,1)),color .35s var(--hb-ease,cubic-bezier(.16,.84,.44,1)),border-color .35s var(--hb-ease,cubic-bezier(.16,.84,.44,1)),transform .35s var(--hb-ease,cubic-bezier(.16,.84,.44,1));
}
.cky-consent-container .cky-btn-accept{
  background:var(--hb-blue,#1C58B2) !important;
  border-color:var(--hb-blue,#1C58B2) !important;
  color:#FFFFFF !important;
}
.cky-consent-container .cky-btn-accept:hover{background:var(--hb-blue-lift,#2E76DD) !important;border-color:var(--hb-blue-lift,#2E76DD) !important;}
.cky-consent-container .cky-btn-reject{
  background:rgba(255,255,255,.06) !important;
  border-color:rgba(255,255,255,.7) !important;
  color:#FFFFFF !important;
}
.cky-consent-container .cky-btn-customize{
  background:transparent !important;
  border-color:rgba(255,255,255,.28) !important;
  color:rgba(255,255,255,.86) !important;
}
.cky-consent-container .cky-btn-reject:hover,
.cky-consent-container .cky-btn-customize:hover{background:#FFFFFF !important;border-color:#FFFFFF !important;color:var(--hb-ink,#0A1729) !important;}
.cky-consent-container .cky-btn:focus-visible,
.cky-modal .cky-btn:focus-visible,
.cky-btn-revisit-wrapper:focus-within{outline:2px solid #8FB6F2 !important;outline-offset:3px;}
.cky-consent-container .cky-btn-close img{filter:invert(1);opacity:.7;}

/* Preference centre: light glass, so the toggles and long text stay readable. */
.cky-overlay{background:rgba(10,23,41,.45) !important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);}
.cky-modal .cky-preference-center{
  background:rgba(247,249,252,.9) !important;
  -webkit-backdrop-filter:blur(22px) saturate(140%);
  backdrop-filter:blur(22px) saturate(140%);
  border:1px solid rgba(10,23,41,.1) !important;
  border-radius:20px !important;
  box-shadow:0 40px 90px -30px rgba(10,23,41,.5) !important;
  color:var(--hb-ink,#0A1729) !important;
  overflow:hidden;
}
.cky-modal .cky-preference-title{
  font-family:var(--hb-display-family,"Newsreader"),Georgia,serif !important;
  font-weight:400 !important;
  font-size:22px !important;
  color:var(--hb-ink,#0A1729) !important;
}
.cky-modal .cky-preference-center,
.cky-modal .cky-preference-center p,
.cky-modal .cky-accordion-btn,
.cky-modal .cky-preference-content-wrapper{font-family:var(--hb-body,"Nobile","Helvetica Neue",Arial,sans-serif) !important;}
.cky-modal .cky-preference-header,
.cky-modal .cky-footer-wrapper,
.cky-modal .cky-accordion{border-color:var(--hb-line,rgba(10,23,41,.14)) !important;}
.cky-modal .cky-footer-wrapper,
.cky-modal .cky-prefrence-btn-wrapper{background:transparent !important;}
.cky-modal .cky-footer-shadow{background:linear-gradient(180deg,rgba(247,249,252,0) 0%,rgba(247,249,252,.95) 100%) !important;}
.cky-modal .cky-btn-accept{background:var(--hb-blue,#1C58B2) !important;border-color:var(--hb-blue,#1C58B2) !important;color:#FFFFFF !important;}
.cky-modal .cky-btn-reject,
.cky-modal .cky-btn-preferences{background:transparent !important;border-color:var(--hb-ink,#0A1729) !important;color:var(--hb-ink,#0A1729) !important;}
.cky-modal .cky-btn-reject:hover,
.cky-modal .cky-btn-preferences:hover{background:var(--hb-ink,#0A1729) !important;color:#FFFFFF !important;}
.cky-modal .cky-switch input[type="checkbox"]:checked{background:var(--hb-blue,#1C58B2) !important;}

/* Revisit button: a small glass disc in the theme navy. */
.cky-btn-revisit-wrapper{
  background:rgba(10,23,41,.72) !important;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:0 10px 24px -10px rgba(10,23,41,.5) !important;
}

/* No backdrop blur, or the visitor asked for less transparency: go solid. */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .cky-consent-container .cky-consent-bar{background:rgba(10,23,41,.96) !important;}
  .cky-modal .cky-preference-center{background:#F7F9FC !important;}
}
@media (prefers-reduced-transparency:reduce){
  .cky-consent-container .cky-consent-bar{background:#0A1729 !important;-webkit-backdrop-filter:none;backdrop-filter:none;}
  .cky-modal .cky-preference-center{background:#F7F9FC !important;-webkit-backdrop-filter:none;backdrop-filter:none;}
}

/* Phones: full width card, buttons stacked and easy to hit. */
@media (max-width:640px){
  .cky-consent-container{bottom:10px !important;width:calc(100% - 20px) !important;}
  .cky-consent-bar .cky-notice-btn-wrapper{flex-direction:column;width:100%;}
  .cky-consent-container .cky-btn{width:100% !important;padding:15px 18px !important;}
  .cky-consent-container .cky-btn-accept{order:-1;}
}
