/* Site build glue, 15 November 2026. Not part of the design system.
   1. The font. 2. The wrapper that scopes current site sections (.cs). 3. Section labels and their toggle.
   4. The Calendly placeholder. Components keep their own CSS untouched. */

@font-face{font-family:"DM Sans";font-style:normal;font-weight:100 1000;font-display:swap;src:url("../assets/fonts/DMSans-variable.woff2") format("woff2")}
@font-face{font-family:"DM Sans";font-style:italic;font-weight:100 1000;font-display:swap;src:url("../assets/fonts/DMSans-variable-italic.woff2") format("woff2")}

html,body{margin:0}
body.hz-page{background:var(--hz-surface-light);color:var(--hz-text-on-light);overflow-x:clip}
.hzb-skip{position:absolute;left:-10000px;top:0}
.hzb-skip:focus{left:var(--hz-space-3);top:var(--hz-space-3);z-index:200;padding:var(--hz-space-2) var(--hz-space-3);background:var(--hz-surface-light);color:var(--hz-text-on-light);border-radius:var(--hz-radius-control)}

/* Current site sections: the site's body rules land on the wrapper, so reset the ones that shape a page */
.cs{display:block;min-height:0}
/* Current site heroes sat under an in-flow header; the system navigation floats over the page, so they start below its bar */
.cs:has(> .hero){padding-top:var(--hz-header-height);background:var(--hz-surface-dark)}
.cs.is-nested{background:transparent;color:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit}
.hz-hero__visual .cs img{box-shadow:none;border-radius:0;transform:none}
.hz-hero__visual .cs{width:100%}
.hz-hero__visual .ai-hero .aios{margin-inline:auto}
.hz-people .cs.is-nested{margin-top:var(--hz-block-web-large, var(--hz-space-7))}
/* The insights cover in the hero visual slot */
.hz-hero__visual .hz-insights img{box-shadow:none;border-radius:0;width:auto;transform:none}
.hz-hero__visual > .hz-insights{width:100%;background:transparent}
/* A current site visual in the hero slot takes the slot's fixed treatment: radius-card and shadow-float-web, on navy as drawn */
.hz-hero__visual > .cs.hzb-card{background:var(--hz-surface-dark);border-radius:var(--hz-radius-card);box-shadow:var(--hz-shadow-float-web);padding:var(--hz-block-web) var(--hz-inset-card)}
/* Subhead under the rule list header (Investor Intelligence, Why more than a PDF?) */
.hzb-subhead{margin:var(--hz-stack-web) 0 0;color:var(--g-secondary)}

/* Calendly placeholder (decision 10) */
.cs .hzb-cal{display:flex;flex-direction:column;justify-content:center;gap:var(--hz-space-2);min-height:22rem;margin-top:var(--hz-space-4);padding:var(--hz-inset-card);
  border:var(--hz-border-width-hairline) dashed var(--hz-border-light);border-radius:var(--hz-radius-card);background:var(--hz-surface-muted);
  color:var(--hz-text-secondary-on-light);font-family:var(--hz-font-sans);font-size:var(--hz-web-small-size);line-height:var(--hz-web-small-leading)}
.cs .hzb-cal p{margin:0}
.cs .hzb-cal__title{color:var(--hz-text-on-light);font-weight:var(--hz-web-kicker-weight)}

/* Section labels: review aid only */
:where([data-hzlabel]){position:relative}
.hzl-badge{position:absolute;z-index:60;top:8px;left:8px;max-width:calc(100% - 16px);padding:3px 8px;border-radius:6px;
  background:#10192d;color:#fff;font:600 12px/1.4 "DM Sans",system-ui,sans-serif;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  box-shadow:0 0 0 1px rgba(255,255,255,.35);pointer-events:none}
.hzl-badge.is-cs{background:#f2c94c;color:#10192d;box-shadow:0 0 0 1px rgba(16,25,45,.35)}
.hz-nav > .hzl-badge{top:calc(var(--hz-header-height) + 6px);bottom:auto;left:8px}
.hz-hero > .hzl-badge,.cs:has(> .hero) > .hzl-badge{top:calc(var(--hz-header-height) + 36px)}
.cs .hz-form > .hzl-badge{top:0;left:auto;right:0}
.is-nested > .hzl-badge,.hz-insights[data-layout="cover"] > .hzl-badge{top:0;left:0}
.hz-nav.is-hidden > .hzl-badge{display:none}
html.hzl-off .hzl-badge{display:none}
.hzl-dock{position:fixed;z-index:150;right:12px;bottom:12px;display:flex;gap:8px}
.hzl-toggle{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:0;border-radius:var(--hz-radius-control,8px);
  background:#10192d;color:#fff;font:600 14px/1 "DM Sans",system-ui,sans-serif;cursor:pointer;box-shadow:0 0 0 1px rgba(255,255,255,.4),0 6px 18px rgba(16,25,45,.25)}
.hzl-toggle:focus-visible{outline:2px solid #1fb0bb;outline-offset:2px}
.hzl-toggle i{display:inline-block;width:10px;height:10px;border-radius:2px;background:#f2c94c}
html.hzl-off .hzl-toggle i{background:transparent;box-shadow:inset 0 0 0 1.5px #fff}
@media print{.hzl-badge,.hzl-toggle{display:none}}

/* ---- Round 2, 15 November 2026 ---- */
/* Animated dashboard (current site film) in the Home hero visual slot, with the slot's radius and shadow */
.hz-hero__visual > .hzb-film{width:100%}
.hz-hero__visual > .hzb-film .hero-panel{margin-inline:auto;border-radius:var(--hz-radius-card);box-shadow:var(--hz-shadow-float-web)}
/* Shared stage in the hero visual slot: the slot's image treatment does not apply to screens inside frames */
.hz-hero__visual .hz-stage img{border-radius:0;box-shadow:none;transform:none}
.hz-hero__visual > .hz-stage{width:100%;margin:0}
/* Person card with the capability bubbles to the right from 1024px */
.hzb-people-split{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--hz-block-web-large, var(--hz-space-7))}
.hzb-people-split > .cs.is-nested{margin-top:0}
@media (min-width:1024px){
  .hzb-people-split{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center}
}
/* Keyline graphic at the right edge of the Book a demo form band, placed as on the call to action band, from 768px */
.hzb-has-keyline{position:relative;overflow:clip;isolation:isolate}
.hzb-keyline{display:none;position:absolute;z-index:-1;top:50%;right:0;height:auto;transform:translate(16%,-50%);pointer-events:none;user-select:none}
@media (min-width:768px){.hzb-keyline{display:block;width:min(44vw,var(--hz-graphic-keyline-width-web))}}
/* Data sphere: the component's bleed, which starts at 1280px, also from 1024px, so the globe sits at the right edge */
@media (min-width:1024px) and (max-width:1279.98px){
  .hz-feature:has(.hz-sphere[data-bleed="on"]){overflow:clip}
  .hz-sphere[data-bleed="on"] .hz-sphere__stage{width:min(140%,760px);margin:-6% 0 -6% 0}
}
/* AI hero layers on the mesh: no current site glow behind the figure (it was clipped to the figure's box) */
.hz-hero__visual .ai-hero .aios-draw::before{display:none}
.hz-hero__visual .ai-hero{overflow:visible}

/* ---- Round 3, 15 November 2026 ---- */
/* Jump links land clear of the sticky bar, with breathing room */
html{scroll-padding-top:calc(var(--hz-header-height) + var(--hz-space-6))}
/* AI hero layers: 25 per cent smaller, with room below */
.hz-hero__visual .ai-hero .aios{width:75%;margin-inline:auto}
.hz-hero__visual > .cs.is-nested:has(.ai-hero){padding-bottom:var(--hz-block-web-large, var(--hz-space-7))}
@media (max-width:767.98px){.hz-hero__visual .ai-hero .aios{width:100%}}
/* Keyline on the Book a demo band: fades in, holds, fades out, on a loop */
@keyframes hzb-keyline-breathe{0%{opacity:0}18%{opacity:1}62%{opacity:1}82%{opacity:0}100%{opacity:0}}
.hzb-keyline{animation:hzb-keyline-breathe 9s var(--hz-ease-ui) infinite}
@media (prefers-reduced-motion:reduce){.hzb-keyline{animation:none}}
/* AI hero: a short fade to white in the clear space under the layers, so no white text sits on the fade */
.hz-hero.hzb-fade-tail .hz-hero__fade{height:240px}
.hz-hero.hzb-fade-tail .hz-hero__visual > .cs.is-nested:has(.ai-hero){padding-bottom:200px}
@media (max-width:767.98px){.hz-hero.hzb-fade-tail .hz-hero__fade{height:160px}.hz-hero.hzb-fade-tail .hz-hero__visual > .cs.is-nested:has(.ai-hero){padding-bottom:120px}}

/* Component controls (build/controls.js): review aid only */
.hzc-gear{position:absolute;z-index:62;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;
  background:rgba(16,25,45,.72);color:#fff;cursor:pointer;opacity:.5;box-shadow:0 0 0 1px rgba(255,255,255,.35);transition:opacity .15s}
.hzc-gear:hover,.hzc-gear:focus-visible,.hzc-gear[aria-expanded="true"]{opacity:1}
.hzc-gear:focus-visible{outline:2px solid #1fb0bb;outline-offset:2px}
.hzc-gear.is-nav{top:calc(100% + 6px);bottom:auto}
html.hzc-off .hzc-gear{display:none}
.hzc-toggle i{background:#1fb0bb}
html.hzc-off .hzc-toggle i{background:transparent;box-shadow:inset 0 0 0 1.5px #fff}
.hzc-panel{position:fixed;z-index:160;right:12px;bottom:64px;width:min(320px,calc(100vw - 24px));max-height:min(72vh,640px);display:flex;flex-direction:column;
  background:#fff;color:#10192d;border-radius:12px;box-shadow:0 0 0 1px rgba(16,25,45,.12),0 18px 48px rgba(16,25,45,.28);font:400 13px/1.4 "DM Sans",system-ui,sans-serif}
.hzc-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #e3e8ee}
.hzc-head b{font-weight:600;font-size:14px}
.hzc-x{border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:#10192d;padding:2px 6px}
.hzc-body{overflow:auto;padding:6px 14px 10px}
.hzc-group{margin:12px 0 4px;font-weight:600;color:#1e6266}
.hzc-row{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:8px;padding:3px 0}
.hzc-row span{color:#4a5568}
.hzc-row select{width:100%;min-height:30px;border:1px solid #c5ced8;border-radius:6px;background:#fff;color:#10192d;font:inherit;padding:0 6px}
.hzc-foot{display:flex;gap:8px;padding:10px 14px;border-top:1px solid #e3e8ee}
.hzc-foot button{min-height:32px;padding:0 12px;border-radius:8px;border:1px solid #10192d;background:#10192d;color:#fff;font:600 13px/1 "DM Sans",system-ui,sans-serif;cursor:pointer}
.hzc-foot .hzc-reset{background:#fff;color:#10192d}
.hzc-note{margin:0;padding:0 14px 12px;color:#6b7785;font-size:12px}
@media print{.hzc-gear,.hzc-panel,.hzl-dock{display:none}}

/* Hero title fade-up (1 December 2026, replaces the typewriter): the title rises 12px and fades in once on load. Reduced motion: no animation. */
@media (prefers-reduced-motion: no-preference){
  html.hz-ready main h1{animation:hzt-rise .7s cubic-bezier(.22,1,.36,1) .05s both}
}
@keyframes hzt-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Mobile trims (1 December 2026, Matt's choices). Phones only, under 768px; tablet and desktop show everything.
   The script parts live in build/mobile.js; without script nothing is hidden except the Home comparison columns. */
.m-more-btn,.ii-who-toggle .ii-who-chev{display:none}
.ii-who-toggle{all:unset;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;cursor:default}
@media (max-width:767.98px){
  /* Home: "More than a consultancy. More than software." shows the Hazlewood column only */
  .hz-compare__option:not([data-preferred]){display:none}
  /* AI and data: first two case studies, then a button for the rest */
  .hz-case__list.is-m-collapsed > :nth-child(n+3){display:none}
  .m-more-btn{display:inline-flex;margin-top:var(--hz-block-web,32px)}
  /* Investor Intelligence, "Who does it help?": each audience is a row that opens on tap */
  .ii-who.is-m-toggle .ii-who-item:not(.is-open) :is(.ii-vig,.ii-who-points){display:none}
  .cs .ii-who.is-m-toggle{row-gap:0}
  .cs .ii-who.is-m-toggle .ii-who-item{gap:16px;padding-bottom:20px}
  .cs .ii-who.is-m-toggle .ii-who-text{order:1}
  .cs .ii-who.is-m-toggle .ii-vig{order:2}
  .ii-who-toggle{cursor:pointer}
  .ii-who-toggle:focus-visible{outline:2px solid var(--hz-aqua,#1fb0bb);outline-offset:4px;border-radius:4px}
  .ii-who-toggle .ii-who-chev{display:block;flex:none;width:24px;height:24px;transition:transform .2s ease}
  .ii-who-item.is-open .ii-who-chev{transform:rotate(180deg)}
  /* About, "How do we work?": each principle and its first line; the "In practice" notes are left out */
  .hz-rules:has(#how-title) .hz-rule__note{display:none}
}

/* Who leads the work? (1 December 2026): a larger 4:3 photo above each bio instead of the small square headshot */
.hz-people .hzb-people-main .hz-person{flex-direction:column;align-items:stretch}
.hz-people .hzb-people-main .hz-person__photo{width:100%;max-width:560px;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:50% 30%}

/* Investor Intelligence hero phone (1 December 2026): the product film plays in the phone, as on Home.
   The phone screen keeps 12% at the top for the status bar, so the film's canvas is 360 by 677 to fill the rest. */
.hz-stage__screen > .hzb-phone-film{display:block;width:100%;height:100%;margin:0;padding:0;overflow:hidden;background:#fff}
.hzb-phone-film .ii-phone{width:100%;height:100%}
.cs.hzb-phone-film .ii-phone .film{--fh:677;aspect-ratio:360 / 677}

/* First paint = final layout (1 December 2026). Everything a script used to change after load is set here or in the HTML,
   so nothing moves when a page first appears. */
/* Phone bezel chosen in the review (6px), set before any script runs */
.hz-stage{--hz-device-bezel-web:6px}
/* Home film: the panel takes the shape of the canvas its width will use (phone under 600px, tablet under 900px)
   before the script sets data-size, so the hero does not change height once the script runs */
.hzb-film :has(> .film[data-film]){container-type:inline-size}
@container (max-width:599.98px){.cs .film[data-film]:not([data-size]):not([data-phone]){--fw:420;--fh:640;aspect-ratio:420 / 640}}
@container (min-width:600px) and (max-width:899.98px){.cs .film[data-film]:not([data-size]):not([data-phone]){--fw:760;--fh:540;aspect-ratio:760 / 540}}
/* About hero (no visual): sized to its content instead of a full screen, so on wide or short screens the next section
   is in view and the copy is not floating in an empty band */
@media (min-width:768px){
  .hz-hero:not(.hz-hero--has-visual){height:auto;min-height:0;display:flex;flex-direction:column;align-items:center;
    padding:calc(var(--hz-header-height) + 72px) var(--hz-gutter) 150px}
  .hz-hero:not(.hz-hero--has-visual) .hz-hero__copy{position:relative;left:auto;top:auto;transform:none}
  .hz-hero:not(.hz-hero--has-visual):is([data-fade="short"],[data-fade="long"]) .hz-hero__fade{height:140px}
}
/* Films: hidden until the script has sized them (data-size), so the canvas never shows at full size for a moment
   before it scales down; then a short fade in */
.cs .film:not([data-size]) .film-stage{visibility:hidden}
@media (prefers-reduced-motion:no-preference){.cs .film[data-size] .film-stage{animation:hzb-film-in .35s ease-out both}}
@keyframes hzb-film-in{from{opacity:0}to{opacity:1}}

/* Sample dashboard tooltips (1 December 2026): a white card with a soft shadow, so it stands apart from the pale
   column highlight, and it glides between columns instead of jumping */
.cs .ii-db-tip,.cs .ii-db-chart .ii-db-tip{background:#fff;box-shadow:0 1px 2px rgba(16,25,45,.08),0 8px 24px rgba(16,25,45,.16);
  border:1px solid rgba(16,25,45,.06);pointer-events:none;white-space:nowrap}
@media (prefers-reduced-motion:no-preference){
  .cs .ii-db-tip{transition:opacity .16s ease,transform .16s ease,left .18s cubic-bezier(.22,1,.36,1),top .18s cubic-bezier(.22,1,.36,1)}
  .cs .ii-db-tip:not(.is-on){transition:opacity .16s ease,transform .16s ease}
}

/* Page load as one piece (build/boot.js): navy until the page is ready, then header and content fade in together */
html.hz-boot,html.hz-boot body,html.hz-ready:not(.hz-settled),html.hz-ready:not(.hz-settled) body{background:#0b1426}
html.hz-boot main,html.hz-boot footer,html.hz-boot .hz-nav,html.hz-boot .hzb-skip{opacity:0}
html.hz-ready main,html.hz-ready footer{transition:opacity .5s cubic-bezier(.22,1,.36,1)}
html.hz-ready .hz-nav{transition:opacity .5s cubic-bezier(.22,1,.36,1),transform var(--hz-dur-short) var(--hz-ease-out)}
/* Between pages: a short crossfade through navy (Chrome, Edge, Safari) */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.32s}
}
@media (prefers-reduced-motion:reduce){html.hz-ready main,html.hz-ready footer{transition:none}html.hz-ready .hz-nav{transition:transform var(--hz-dur-short) var(--hz-ease-out)}}

/* About, Where we are (1 December 2026): the office photograph and a still map that opens Google Maps. The map is a
   picture rendered from OpenStreetMap, so the page sets no Google cookies until a visitor chooses to open the map. */
.hzb-place{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.hzb-place__photo{margin:0}
.hzb-place img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;border-radius:var(--hz-radius-card,12px);background:#eef1f4}
.hzb-place__map{position:relative;display:block;border-radius:var(--hz-radius-card,12px);overflow:hidden;color:#10192d;text-decoration:none}
.hzb-place__map img{transition:transform .5s cubic-bezier(.22,1,.36,1)}
.hzb-place__map:hover img{transform:scale(1.03)}
.hzb-place__map:focus-visible{outline:2px solid var(--hz-aqua,#1fb0bb);outline-offset:3px}
.hzb-place__open{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#fff;
  font-size:13px;line-height:1.2;font-weight:600;box-shadow:0 1px 2px rgba(16,25,45,.08),0 6px 16px rgba(16,25,45,.14)}
.hzb-place__credit{grid-column:1 / -1;margin:0;font-size:11px;line-height:1.4;color:var(--hz-text-secondary-on-light,#5a6b85);text-align:right}
.hzb-place__credit a{color:inherit}
@media (max-width:599.98px){.hzb-place{grid-template-columns:minmax(0,1fr)}}
@media (min-width:1024px){
  .hz-rules .hz-rule.hzb-place-rule{grid-column:1 / -1;grid-row:auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);
    grid-template-rows:auto auto 1fr;column-gap:var(--hz-block-web-large,56px);align-items:start}
  .hzb-place-rule > .hz-rule__title{grid-column:1;grid-row:1}
  .hzb-place-rule > .hz-rule__body{grid-column:1;grid-row:2}
  .hzb-place-rule > .hz-rule__links{grid-column:1;grid-row:3}
  .hzb-place-rule > .hzb-place{grid-column:2;grid-row:1 / 4;margin-top:0}
}


/* Investor Intelligence teaser: the Vimeo player with the site's card corners (the transform makes Safari clip the frame) */
.ii-embed{border-radius:var(--hz-radius-card,16px);overflow:hidden;background:#0b1426;transform:translateZ(0);box-shadow:var(--hz-shadow-float-web,none)}
.ii-embed iframe{border:0;border-radius:inherit}
