/* Case study invitation and How I Work on the home page, and the /case-study/ page.
   On the home page both sections sit on the dark field painted by mvp-services.js; it turns light again at About.
   Motion classes (.xh-motion, .cs-motion) are added by examples.js only without a reduced-motion preference. */

/* Home: hero text closer to the bottom edge (Bruno, 27 Oct 2026). Desktop only: the bottom padding drops from
   clamp(48px,8vh,96px) to 32px. The left paragraph stays under the title: aligned to the enquiry button instead, it
   opened a ~90px gap below "for Growing Businesses". Hero height, type sizes, the art and its quiet band are unchanged. */
@media(min-width:761px){
  body main #top.hero{padding-bottom:32px}
}

/* Home: case study invitation */
/* Spacing tightened with Bruno, 27 Oct 2026: about 120px from the services, about 70px to Clear Scope. */
.xh-invite{position:relative;padding:64px 0 0;color:#f2f7ff;text-align:center}
.xh-eyebrow{margin:0 auto 22px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#a5bddb}
.xh-invite-title{max-width:16ch;margin:0 auto;font-weight:300;font-size:clamp(40px,7vw,104px);line-height:1.04;letter-spacing:-.02em;color:#fff}
.xh-grow{display:inline-block;transform-origin:50% 100%;will-change:transform}
.xh-invite-text{max-width:34rem;margin:30px auto 0;font-size:18px;line-height:1.6;color:#c4d1e0}
/* "See the case study" is the site's enquiry button with the colours inverted (Bruno, 27 Oct 2026): a dark satin face,
   ice-blue blocks that move along the base (the idle animation from visitor-controls.css) and, on hover, rise into a
   white face with dark text. The block geometry and timings stay those of .button .enquiry-blocks. */
.xh-invite .xh-invite-link{margin-top:34px;text-decoration:none;color:#f2f7ff;background-color:#111d2e;background-image:radial-gradient(circle at 25% 30%,rgba(255,255,255,.07) .45px,transparent .85px),linear-gradient(135deg,#1a2a42,#0d1726);box-shadow:inset 1px 1px 0 rgba(165,189,219,.3),inset -1px -1px 0 rgba(0,0,0,.45),0 0 0 1px rgba(165,189,219,.16),8px 14px 30px rgba(0,0,0,.45)}
.xh-invite .xh-invite-link .enquiry-blocks i{background-image:radial-gradient(circle at 25% 30%,rgba(255,255,255,.35) .45px,transparent .85px),linear-gradient(135deg,#cfe6ff,#78b7f3);box-shadow:0 0 10px rgba(120,183,243,.45)}
.xh-invite .xh-invite-link .arrow{color:#78b7f3}
.xh-invite .xh-invite-link:is(:hover,:focus-visible){color:#0b1421;box-shadow:inset 1px 1px 0 rgba(255,255,255,.8),0 0 0 1px rgba(207,230,255,.5),0 0 22px rgba(120,183,243,.35),8px 14px 30px rgba(0,0,0,.45)}
.xh-invite .xh-invite-link:is(:hover,:focus-visible) .enquiry-blocks i{background-image:radial-gradient(circle at 25% 30%,rgba(22,75,255,.06) .45px,transparent .85px),linear-gradient(135deg,#ffffff,#e4eef8)}
.xh-invite .xh-invite-link:is(:hover,:focus-visible) .arrow{color:#164bff}
.xh-invite .xh-invite-link:focus-visible{outline:2px solid #78b7f3;outline-offset:4px}

/* Home: How I Work. One thin line runs through four square nodes and fills as the steps scroll by. */
/* Strip only (Bruno, 27 Oct 2026): the four steps keep number and title; their paragraphs were removed. */
.xh-process{position:relative;padding:56px 0 96px;color:#f2f7ff}
.xh-process-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:end;margin-bottom:44px}
.xh-process-intro h2{margin:0;font-weight:300;font-size:clamp(36px,4.4vw,62px);line-height:1.08;color:#fff}
.xh-process-intro p{max-width:32rem;margin:0;font-size:18px;line-height:1.65;color:#c4d1e0}
.xh-steps{--xh-axis:x;--xh-progress:1;position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:44px;margin:0;padding:0;list-style:none}
.xh-steps::before,.xh-steps::after{content:"";position:absolute;left:6px;right:0;top:6px;height:1px}
/* Brighter line (Bruno, 27 Oct 2026): the filled part carries the glow of the curtain's seam current. */
.xh-steps::before{background:rgba(165,189,219,.4)}
.xh-steps::after{background:linear-gradient(90deg,#78b7f3,#dcecff 70%,#fff);box-shadow:0 0 8px 1px rgba(120,183,243,.75),0 0 22px 3px rgba(22,75,255,.35);transform:scaleX(var(--xh-progress));transform-origin:0 50%}
.xh-steps li{position:relative;padding-top:30px}
.xh-step-node{position:absolute;left:0;top:0;z-index:1;width:13px;height:13px;box-sizing:border-box;border:1px solid #cfe6ff;background:#9fcfff;box-shadow:0 0 0 5px rgba(120,183,243,.18),0 0 16px 3px rgba(120,183,243,.6);transition:background-color .3s,border-color .3s,box-shadow .3s}
.xh-motion .xh-step-node{border-color:#c4d6ea;background:#0b1421;box-shadow:0 0 6px rgba(165,189,219,.25)}
.xh-motion .xh-steps li.is-reached .xh-step-node{border-color:#cfe6ff;background:#9fcfff;box-shadow:0 0 0 5px rgba(120,183,243,.18),0 0 16px 3px rgba(120,183,243,.6)}
.xh-motion .xh-steps li.is-reached .xh-step-number{color:#cfe6ff}
.xh-step-number{display:block;font-size:12px;letter-spacing:.14em;color:#8fa6c2;font-variant-numeric:tabular-nums}
.xh-steps h3{margin:6px 0 0;font-weight:400;font-size:24px;line-height:1.25;color:#fff}
@media(max-width:900px){
  .xh-process-intro{grid-template-columns:minmax(0,1fr);gap:22px;margin-bottom:56px}
  .xh-steps{--xh-axis:y;grid-template-columns:minmax(0,1fr);gap:22px}
  .xh-steps::before,.xh-steps::after{left:6px;right:auto;top:6px;bottom:0;width:1px;height:auto}
  .xh-steps::after{background:linear-gradient(180deg,#78b7f3,#dcecff 70%,#fff);transform:scaleY(var(--xh-progress));transform-origin:50% 0}
  .xh-steps li{padding:0 0 0 40px}
  .xh-steps h3{margin-top:4px}
}
@media(max-width:760px){
  .xh-invite{padding:56px 0 0}
  .xh-invite-text{font-size:17px}
  .xh-process{padding:56px 0 96px}
  .xh-steps h3{font-size:19px}
}

/* /case-study/ page */
@font-face{font-family:Manrope;src:url('/assets/fonts/manrope-light.woff2') format('woff2'),url('/assets/fonts/manrope-light.ttf') format('truetype');font-style:normal;font-weight:300;font-display:swap}
@font-face{font-family:Manrope;src:url('/assets/fonts/manrope-regular.woff2') format('woff2'),url('/assets/fonts/manrope-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.cs-page{margin:0;background:#fff;color:#101318;font-family:Manrope,system-ui,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.cs-page *,.cs-page *::before,.cs-page *::after{box-sizing:border-box}
.cs-wrap{width:min(1200px,100% - 64px);margin-inline:auto}
.cs-skip{position:absolute;left:-9999px;top:12px;z-index:10;padding:10px 14px;background:#101318;color:#fff}
.cs-skip:focus{left:16px}
.cs-page a:focus-visible,.cs-page button:focus-visible{outline:2px solid #164bff;outline-offset:3px}
.cs-header{position:sticky;top:0;z-index:5;border-bottom:1px solid #e3ebf3;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.cs-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:84px}
.cs-header .brand{display:block;line-height:0}
.cs-header .brand-logo{display:block;width:118px;height:auto}
.cs-nav{display:flex;align-items:center;gap:28px}
.cs-nav>a:not(.cs-button){color:#101318;font-size:15px;text-decoration:none}
.cs-nav>a:not(.cs-button):hover{text-decoration:underline;text-underline-offset:4px}
.cs-button{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;background:#164bff;color:#fff;font-size:15px;text-decoration:none;transition:background-color .25s}
.cs-button:hover{background:#1039c7}
.cs-arrow{display:inline-flex;transition:transform .25s}
.cs-arrow svg{display:block;width:18px;height:18px}
.cs-button:hover .cs-arrow{transform:translate(2px,-2px)}
.cs-button-large{margin-top:30px;padding:16px 26px;font-size:16px}

.cs-intro{padding:96px 0 64px}
.cs-eyebrow{margin:0 0 20px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#5e7a93}
.cs-intro h1{max-width:17ch;margin:0;font-weight:300;font-size:clamp(40px,5.4vw,76px);line-height:1.05;letter-spacing:-.015em}
.cs-lead{max-width:41rem;margin:28px 0 0;font-size:19px;line-height:1.6;color:#4a5866}
.cs-note{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:28px 0 0;font-size:14px;line-height:1.5;color:#4a5866}
.cs-badge{display:inline-block;padding:4px 10px;border:1px solid #5e7a93;color:#101318;font-size:11px;letter-spacing:.14em;text-transform:uppercase}

/* Thumbnails: the portal home first, then the four areas it opens. examples.js draws the connecting line. */
.cs-map{position:relative;padding:8px 0 24px}
.cs-circuit{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.cs-circuit path{fill:none;stroke:#164bff;stroke-width:1.4;stroke-linejoin:miter;stroke-linecap:square}
.cs-circuit rect{fill:#164bff}
.cs-grid{--cs-layout:tree;position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:104px 30px;margin:0;padding:0;list-style:none}
.cs-item{position:relative;min-width:0}
.cs-item-hub{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:56px;align-items:center;width:min(100%,1040px);margin-inline:auto}
.cs-thumbs{position:relative;display:block;padding:0 13% 20px 0;cursor:zoom-in}
.cs-screen{display:block;overflow:hidden;border:1px solid #d5dfea;background:#fff;box-shadow:0 26px 54px -32px rgba(16,19,24,.5);transition:transform .4s cubic-bezier(.2,.7,.2,1),box-shadow .4s}
.cs-screen::before{content:"";display:block;height:12px;border-bottom:1px solid #e3ebf3;background:#f3f7fb}
.cs-screen img{display:block;width:100%;height:auto}
.cs-phone{position:absolute;right:0;bottom:0;width:21%;padding:4px;border-radius:13px;background:#101318;box-shadow:0 22px 40px -20px rgba(16,19,24,.7);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.cs-phone img{display:block;width:100%;height:auto;border-radius:9px}
.cs-thumbs:hover .cs-screen,.cs-item:focus-within .cs-screen{transform:translateY(-4px);box-shadow:0 36px 64px -32px rgba(16,19,24,.55)}
.cs-thumbs:hover .cs-phone,.cs-item:focus-within .cs-phone{transform:translate(5px,-12px)}
.cs-copy{margin-top:22px}
.cs-item-hub .cs-copy{margin-top:0}
.cs-num{display:block;font-size:12px;letter-spacing:.14em;color:#5e7a93;font-variant-numeric:tabular-nums}
.cs-copy h2{margin:8px 0 10px;font-weight:400;font-size:20px;line-height:1.28}
.cs-item-hub .cs-copy h2{font-weight:300;font-size:clamp(28px,2.8vw,38px);line-height:1.15}
.cs-copy p{margin:0;font-size:15.5px;line-height:1.6;color:#4a5866}
.cs-item-hub .cs-copy p{font-size:17px}
.cs-more{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:6px 0;border:0;border-bottom:1px solid currentColor;background:none;color:#164bff;font:inherit;font-size:14px;cursor:pointer}
.cs-more:hover{color:#1039c7}
.cs-hint{margin:64px 0 0;font-size:14px;color:#5e7a93;text-align:center}

/* Entrance: the portal first, then the line, then each area as the line reaches it. */
.cs-motion .cs-item{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.cs-motion .cs-item .cs-phone{opacity:0;transform:translateY(22px)}
.cs-motion .cs-item.is-shown{opacity:1;transform:none}
.cs-motion .cs-item.is-shown .cs-phone{opacity:1;transform:none;transition:opacity .6s ease .25s,transform .7s cubic-bezier(.2,.7,.2,1) .25s}
.cs-motion .cs-item.is-shown .cs-thumbs:hover .cs-phone,.cs-motion .cs-item.is-shown:focus-within .cs-phone{transform:translate(5px,-12px);transition-delay:0s}
.cs-motion .cs-circuit rect{transform-box:fill-box;transform-origin:center;transform:scale(0);transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.cs-motion .cs-circuit rect.is-lit{transform:scale(1)}

.cs-close{padding:120px 0 128px;text-align:center}
.cs-close h2{max-width:20ch;margin:0 auto;font-weight:300;font-size:clamp(32px,3.8vw,52px);line-height:1.12}
.cs-close p{max-width:36rem;margin:22px auto 0;font-size:18px;line-height:1.6;color:#4a5866}
.cs-footer{border-top:1px solid #e3ebf3;padding:28px 0 36px;font-size:14px;color:#4a5866}
.cs-footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 32px}
.cs-footer p{margin:0}
.cs-footer a{color:#101318}

/* Full-size viewer */
.cs-viewer{width:min(1240px,100vw - 48px);max-width:none;max-height:calc(100vh - 40px);margin:auto;padding:0;border:0;background:#fff;color:#101318;box-shadow:0 40px 120px -20px rgba(0,0,0,.55)}
.cs-viewer::backdrop{background:rgba(11,20,33,.74);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.cs-viewer-bar{display:flex;align-items:center;gap:16px;padding:12px 14px 12px 20px;border-bottom:1px solid #e3ebf3}
.cs-viewer-count{min-width:3.4em;margin:0;font-size:13px;color:#5e7a93;font-variant-numeric:tabular-nums}
.cs-viewer-bar h2{flex:1;margin:0;font-weight:400;font-size:17px;line-height:1.3}
.cs-viewer-close{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:#101318;cursor:pointer}
.cs-viewer-views{display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px 0}
.cs-viewer-views button{padding:7px 14px;border:1px solid #d5dfea;background:#fff;color:#101318;font:inherit;font-size:14px;cursor:pointer}
.cs-viewer-views button[aria-pressed="true"]{border-color:#101318;background:#101318;color:#fff}
.cs-viewer-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:14px 14px 16px}
.cs-viewer-figure{display:flex;flex-direction:column;align-items:center;min-width:0;margin:0}
.cs-viewer-image{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 220px);border:1px solid #e3ebf3;background:#f3f7fb}
.cs-viewer-figure figcaption{margin-top:10px;font-size:13px;color:#5e7a93}
.cs-viewer-step{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d5dfea;background:#fff;color:#101318;cursor:pointer}
.cs-viewer-step:hover,.cs-viewer-close:hover{background:#eef4fa}
html.cs-locked{overflow:hidden}

@media(max-width:999px){
  .cs-grid{--cs-layout:trunk;grid-template-columns:minmax(0,1fr);gap:72px;padding-left:44px}
  .cs-item,.cs-item-hub{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:36px;align-items:center;width:auto}
  .cs-item .cs-copy{margin-top:0}
}
@media(max-width:760px){
  .cs-wrap{width:calc(100% - 40px)}
  .cs-header-inner{min-height:68px}
  .cs-header .brand-logo{width:96px}
  .cs-nav{gap:18px}
  .cs-button{padding:10px 14px;font-size:14px}
  .cs-intro{padding:64px 0 48px}
  .cs-lead{font-size:17px}
  .cs-grid{gap:64px;padding-left:30px}
  .cs-item,.cs-item-hub{grid-template-columns:minmax(0,1fr);gap:0}
  .cs-item .cs-copy{margin-top:20px}
  .cs-copy h2,.cs-item-hub .cs-copy h2{font-size:22px;font-weight:400}
  .cs-hint{margin-top:48px}
  .cs-close{padding:88px 0 96px}
  .cs-close p{font-size:17px}
  .cs-viewer{width:100vw;height:100dvh;max-height:none;margin:0}
  .cs-viewer[open]{display:flex;flex-direction:column}
  .cs-viewer-stage{flex:1;grid-template-columns:36px minmax(0,1fr) 36px;gap:6px;padding:10px 6px 12px;min-height:0}
  .cs-viewer-step{width:36px;height:36px}
  .cs-viewer-image{max-height:calc(100dvh - 190px)}
}
@media(max-width:420px){
  .cs-nav>a:not(.cs-button){display:none}
}
@media (prefers-reduced-motion:reduce){
  .xh-arrow,.cs-arrow,.cs-screen,.cs-phone,.xh-step-node{transition:none}
}
.cs-page .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
