/* Lowpitch — Clarity v5
   One 12-column grid, and the grid is visible: hairlines in the dark sections sit on
   the real column edges, so the structure behind the page is on show.
   Palette: blue-black (#141b27) as ink, a deep "night" ink blue (#0c1119) for dark sections,
   brand plum (#281124) kept for the logo,
   brand orange (#eb682b) as the single spark, on a warm, slightly creamy paper. */

:root{
  --plum:#281124; --ink:#141b27; --ink-2:#353e4e; --muted:#525b6a; --accent:#eb682b;
  --paper:#f8f4ef; --mist:#efe8e2;
  --night:#0c1119; --night-2:#121a26;
  --rule:rgba(20,27,39,.14); --rule-strong:rgba(20,27,39,.32);
  --on-dark:#f8f4ef; --on-dark-2:rgba(246,244,246,.74); --rule-dark:rgba(246,244,246,.16);
  --gutter:clamp(20px,5vw,64px); --maxw:1320px; --col-gap:24px;
  --header-h:84px; --sec:clamp(88px,11vw,168px);
  --ease:cubic-bezier(.22,.7,.2,1); --ease-io:cubic-bezier(.65,0,.35,1);
  --noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 8px);-webkit-text-size-adjust:100%;background:var(--night)}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Manrope,Arial,sans-serif;font-size:16px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
::selection{background:#f4b08b;color:var(--ink)}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-weight:500;text-wrap:balance}
p{text-wrap:pretty}
img{max-width:100%}
.wrap{width:min(var(--maxw),calc(100% - 2*var(--gutter)));margin-inline:auto}
.split{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--col-gap)}
.split-head{grid-column:1/span 5}
.split-body{grid-column:7/-1}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}
main:focus{outline:none}
.skip{position:absolute;left:16px;top:-64px;z-index:100;background:var(--paper);color:var(--ink);padding:12px 16px;border-radius:4px;font-size:14px;transition:top .2s}
.skip:focus{top:12px}

/* Header: takes its colours from whatever it is over */
.site-header{--h-fg:var(--ink);--h-rule:rgba(20,27,39,.3);--h-inv:var(--paper);--h-bg:rgba(248,244,239,.86);--h-line:var(--rule);
  position:sticky;top:0;z-index:50;color:var(--h-fg);transition:background-color .4s,box-shadow .4s,color .4s}
.site-header[data-tone=dark]{--h-fg:var(--on-dark);--h-rule:rgba(246,244,246,.32);--h-inv:var(--night);--h-bg:rgba(12,17,25,.8);--h-line:rgba(246,244,246,.12)}
.site-header.is-scrolled{background:var(--h-bg);-webkit-backdrop-filter:saturate(1.5) blur(16px);backdrop-filter:saturate(1.5) blur(16px);box-shadow:0 1px 0 var(--h-line)}
.header{height:var(--header-h);display:flex;align-items:center;justify-content:space-between}
.logo-link{display:block;padding:10px 0}
.logo{width:178px;height:auto;display:block;transition:width .45s var(--ease)}
.logo g{fill:currentColor;stroke:currentColor}
.is-scrolled .logo{width:160px}
.header nav{display:flex;gap:36px;align-items:center;font-size:13px;font-weight:550;letter-spacing:.005em}
.header nav a{position:relative}
.header nav a:not(.contact-link){padding:10px 0}
.header nav a:not(.contact-link)::after{content:"";position:absolute;left:0;right:0;bottom:5px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .45s var(--ease)}
.header nav a:not(.contact-link):hover::after,.header nav a[aria-current]:not(.contact-link)::after{transform:scaleX(1)}
.contact-link{display:inline-flex;gap:14px;align-items:center;padding:12px 18px;border:1px solid var(--h-rule);border-radius:4px;transition:background-color .25s,color .25s,border-color .25s}
.contact-link span{display:inline-block;transition:transform .3s var(--ease)}
.contact-link:hover{background:var(--h-fg);color:var(--h-inv);border-color:var(--h-fg)}
.contact-link:hover span{transform:translate(2px,-2px)}
.progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;opacity:0;transition:opacity .3s}
.is-scrolled .progress{opacity:1}

/* Dark surfaces: ink blue, fine grain, and the column grid */
.hero-wrap,.sec-dark{position:relative;isolation:isolate;background:var(--night);color:var(--on-dark)}
.sec-dark{box-shadow:inset 0 1px 0 rgba(246,244,246,.07)}
.hero-wrap::before,.sec-dark::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.07;background-image:var(--noise);background-size:220px}
.hero-wrap{margin-top:calc(-1*var(--header-h));overflow:clip}
.gridfx{--cols:12;--gl:rgba(246,244,246,.075);position:absolute;z-index:-1;top:0;bottom:0;left:0;right:0;margin-inline:auto;width:min(var(--maxw),calc(100% - 2*var(--gutter)));pointer-events:none;
  background-image:linear-gradient(90deg,var(--gl) 1px,transparent 1px);background-size:calc((100% + var(--col-gap))/var(--cols)) 100%;border-right:1px solid var(--gl);
  -webkit-mask-image:linear-gradient(#000 0,#000 72%,transparent 100%);mask-image:linear-gradient(#000 0,#000 72%,transparent 100%)}
/* the same grid, brighter and with rows, revealed only around the pointer */
.gridfx::after{content:"";position:absolute;inset:0;opacity:0;transition:opacity .5s;
  background-image:linear-gradient(90deg,rgba(246,244,246,.4) 1px,transparent 1px),linear-gradient(180deg,rgba(246,244,246,.24) 1px,transparent 1px);
  background-size:calc((100% + var(--col-gap))/var(--cols)) 100%,100% 96px;
  -webkit-mask-image:radial-gradient(260px 260px at var(--mx,50%) var(--my,50%),#000,transparent);mask-image:radial-gradient(260px 260px at var(--mx,50%) var(--my,50%),#000,transparent)}
.gridfx.is-hot::after{opacity:1}
.hero-wrap .gridfx{animation:grid-draw 2.2s var(--ease) .1s both}
@keyframes grid-draw{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}

/* Hero */
.hero{position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:space-between;padding:calc(var(--header-h) + clamp(24px,5vh,64px)) 0 clamp(48px,7vh,88px)}
.hero h1{font-size:clamp(40px,8.1vw,122px);line-height:1.03;letter-spacing:-.058em;font-weight:450;margin:0}
.accent-text{color:var(--accent)}
.hero-bottom{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--col-gap);margin-top:clamp(56px,10vh,128px)}
.hero-bottom>:not(.cue){grid-column:7/-1;justify-self:start}
.hero-bottom p{font-size:clamp(17px,1.5vw,22px);line-height:1.55;letter-spacing:-.012em;color:var(--on-dark-2);margin:0 0 clamp(26px,3.4vh,36px);max-width:34em}
.cue{grid-column:1/span 2;align-self:end;position:relative;width:1px;height:clamp(56px,9vh,96px);background:rgba(246,244,246,.3);margin-left:2px;animation:rise-s 1s var(--ease) 1s both;overflow:visible}
.cue i{position:absolute;left:-3px;top:0;width:7px;height:7px;background:var(--accent);animation:cue-drop 1.6s var(--ease-io) 1.4s both}
@keyframes cue-drop{from{transform:translateY(0)}to{transform:translateY(calc(clamp(56px,9vh,96px) - 7px))}}
.button{display:inline-flex;gap:56px;justify-content:space-between;align-items:center;background:linear-gradient(var(--accent),var(--accent)) no-repeat left/0% 100%,var(--paper);color:var(--ink);padding:19px 24px;border-radius:4px;font-size:14px;font-weight:600;letter-spacing:.005em;white-space:nowrap;transition:background-size .55s var(--ease),transform .25s var(--ease)}
.button span{display:inline-block;font-size:18px;line-height:1;transition:transform .35s var(--ease)}
.button:hover,.button:focus-visible{background-size:100% 100%}
.button:hover span{transform:translateY(3px)}
.button:active{transform:translateY(1px)}

/* Section scaffolding */
.services{position:relative;padding:clamp(72px,9vw,128px) 0 var(--sec)}
.services::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--accent);transform-origin:left;transition:transform 1.3s var(--ease)}
.js .services:not(.is-in)::before{transform:scaleX(0)}
h2{letter-spacing:-.045em}
.split-head h2,.services .split-head h2{margin:0}

/* Services */
.services .split-head{position:sticky;top:calc(var(--header-h) + 40px);align-self:start}
.services h2{font-size:clamp(30px,3.4vw,50px);line-height:1.08}
.services .split-head p{font-size:15px;line-height:1.6;color:var(--muted);margin:22px 0 0;max-width:24em;text-wrap:balance}
.service{position:relative;isolation:isolate;padding:clamp(36px,4.6vw,68px) 0;border-top:1px solid var(--rule)}
.service:first-child{padding-top:0;border-top:0}
.service:last-child{padding-bottom:0}
.service::before{content:"";position:absolute;left:calc(-1*var(--col-gap) - 4px);top:clamp(36px,4.6vw,68px);margin-top:.62em;width:9px;height:9px;background:var(--accent);transform:scale(0);transition:transform .6s var(--ease),rotate .6s var(--ease)}
.service:first-child::before{top:0}
.service.is-active::before{transform:scale(1)}
.service:hover::before{transform:scale(1);rotate:90deg}
.service h3{transition:transform .6s var(--ease);font-size:clamp(25px,2.6vw,38px);line-height:1.16;letter-spacing:-.038em;margin:0 0 clamp(18px,2vw,26px)}
.service:hover h3,.service.is-active h3{transform:translateX(2px)}
.service-copy p{font-size:clamp(15px,1.2vw,17px);line-height:1.68;color:var(--muted);max-width:33em;margin:0 0 24px}
.scope{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 clamp(20px,2.4vw,32px);max-width:36em}
.scope li{position:relative;padding-top:14px;font-size:13px;font-weight:550;letter-spacing:.01em;line-height:1.4;color:var(--ink);border-top:1px solid var(--rule-strong)}
.scope li::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .7s var(--ease) calc(var(--i,0)*.09s)}
.service:hover .scope li::before,.service.is-active .scope li::before{transform:scaleX(1)}
/* a soft light follows the pointer across a service */
.service::after{content:"";position:absolute;inset:-160px -40px;z-index:-1;pointer-events:none;opacity:0;transition:opacity .6s;background:radial-gradient(270px circle at var(--x,50%) var(--y,50%),rgba(235,104,43,.085),rgba(235,104,43,.03) 50%,rgba(235,104,43,0) 100%)}
@media(hover:hover){.service:hover::after{opacity:1}}
@media(hover:none){.service::after{display:none}}

/* AI section (ink blue) */
.ai-section{padding:var(--sec) 0}
.ai-layout .split-head{grid-column:1/span 6}
.ai-section h2{font-size:clamp(32px,3.6vw,54px);line-height:1.07;margin:0 0 clamp(22px,2.4vw,30px)}
.ai-section .split-head>p{font-size:clamp(16px,1.25vw,18px);line-height:1.68;color:var(--on-dark-2);max-width:29em;margin:0 0 clamp(28px,3vw,40px)}
.text-link{position:relative;display:inline-flex;align-items:center;gap:32px;padding:14px 0;font-size:14px;font-weight:600;border-bottom:1px solid rgba(246,244,246,.34)}
.text-link::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease)}
.text-link:hover::after{transform:scaleX(1)}
.text-link span{display:inline-block;transition:transform .3s var(--ease)}
.text-link:hover span{transform:translate(2px,-2px)}
.ai-questions{position:relative}
.ai-questions article{position:relative;isolation:isolate;padding:clamp(28px,3.2vw,44px) 0}
.ai-questions article:first-child{padding-top:0}
.ai-questions article:last-child{padding-bottom:0}
.ai-questions h3{position:relative;font-size:clamp(22px,2.2vw,32px);line-height:1.2;letter-spacing:-.035em;margin:0 0 12px}
.ai-questions p{font-size:clamp(15px,1.15vw,17px);line-height:1.66;color:var(--on-dark-2);max-width:30em;margin:0}
/* the brand square, repeated small, marks each step; a line draws through them as you scroll */
.ai-questions article::before{content:"";position:absolute;z-index:2;width:9px;height:9px;background:var(--accent);transition:transform .7s var(--ease) var(--d,0s),rotate .6s var(--ease)}
.ai-questions article::before{left:calc(-1*var(--col-gap) - 4px);top:clamp(28px,3.2vw,44px);margin-top:.95em;transform-origin:center}
.ai-questions article:first-child::before{top:0}
.js .ai-questions article:not(.is-in)::before{transform:scale(0)}
.ai-questions article:hover::before{rotate:90deg}
.ai-questions::before{content:"";position:absolute;left:calc(-1*var(--col-gap));top:calc(.95em + 4.5px);height:var(--lineh,calc(100% - .95em));width:1px;
  background:linear-gradient(var(--accent),var(--accent)) top/100% calc(var(--p,0)*100%) no-repeat,rgba(246,244,246,.14)}

/* Experience */
.experience{padding:var(--sec) 0}
.experience h2{font-size:clamp(34px,5.5vw,82px);line-height:1.06;letter-spacing:-.05em;font-weight:450;margin:0 0 clamp(40px,5.5vw,80px);max-width:15em}

/* How we work */
.working{padding:var(--sec) 0}
.working-head{align-items:end}
.working h2{font-size:clamp(32px,3.8vw,56px);line-height:1.08;margin:0}

/* Contact (ink blue) */
.contact{padding:var(--sec) 0 clamp(72px,9vw,128px)}
.contact h2{font-size:clamp(44px,8vw,122px);line-height:1.02;letter-spacing:-.06em;font-weight:450;margin:0 0 clamp(48px,6.5vw,96px)}
.contact-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--col-gap);align-items:start;border-top:1px solid var(--rule-dark);padding-top:clamp(28px,4vw,52px)}
.contact-copy{grid-column:1/span 5}
.contact-copy p{font-size:clamp(16px,1.3vw,19px);line-height:1.68;color:var(--on-dark-2);margin:0;max-width:26em}

/* Hero trace: a route from the grid to the call to action, with the brand square as the packet */
.hero.has-trace .cue{visibility:hidden}
.trace{position:absolute;left:0;top:0;pointer-events:none;overflow:visible;animation:trace-in .9s var(--ease) 1s both}
@keyframes trace-in{from{opacity:0}to{opacity:1}}
.trace-track{fill:none;stroke:rgba(246,244,246,.22);stroke-width:1}
.trace-run{fill:none;stroke:var(--accent);stroke-width:1.25}
.trace-origin{fill:var(--night);stroke:var(--accent);stroke-width:1.25}
.trace-pkt{fill:var(--accent);filter:drop-shadow(0 0 8px rgba(235,104,43,.75))}

/* Service diagrams: precise line drawings that draw themselves as each service comes into focus */
.service-figs{position:relative;margin-top:clamp(36px,4.4vw,64px);max-width:460px;aspect-ratio:480/300}
.fig{position:absolute;inset:0;width:100%;height:100%;overflow:visible;opacity:0;transition:opacity .5s var(--ease)}
.fig.is-on{opacity:1}
.fig :is(path,rect,circle):not(.dash):not(.acc){fill:none;stroke:var(--ink);stroke-opacity:.62;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.3s var(--ease) calc(var(--i,0)*70ms)}
.fig.is-on :is(path,rect,circle):not(.dash):not(.acc){stroke-dashoffset:0}
.fig .dash{fill:none;stroke:var(--ink);stroke-opacity:.38;stroke-width:1.25;stroke-dasharray:3 5;opacity:0;transition:opacity 1s var(--ease) .6s}
.fig.is-on .dash{opacity:1}
.fig .acc{fill:var(--accent);opacity:0;transform:scale(0);transform-box:fill-box;transform-origin:center;transition:transform .7s var(--ease) .9s,opacity .4s .9s}
.fig.is-on .acc{opacity:1;transform:none}
html:not(.js) .fig:first-child{opacity:1}
html:not(.js) .fig :is(path,rect,circle):not(.dash):not(.acc){stroke-dashoffset:0}
html:not(.js) .fig .dash,html:not(.js) .fig .acc{opacity:1;transform:none}
@media(max-height:720px){.service-figs{display:none}}

/* A text cursor, in the brand square's orange, closes the invitation to write */
.caret{display:inline-block;width:.085em;height:.74em;margin-left:.1em;background:var(--accent);vertical-align:baseline}
.lines.is-in .caret{animation:blink 1.15s steps(1,end) 1.3s infinite}
@keyframes blink{0%,54%{opacity:1}55%,100%{opacity:0}}

/* Counted figures keep their final width, so nothing shifts while they count */
.count{display:inline-grid;justify-items:end;font-variant-numeric:tabular-nums}
.count>*,.count::after{grid-area:1/1}
.count::after{content:attr(data-to);visibility:hidden}

/* Footer */
.footer{padding:clamp(36px,4.5vw,56px) 0;display:flex;justify-content:space-between;align-items:center;gap:40px}
.footer img{width:152px;height:auto;display:block}
.footer div{text-align:right}
.footer p{font-size:13px;color:var(--muted);line-height:1.75;margin:0}

/* Reveal on scroll (only when JS is running) */
.js [data-reveal]{opacity:0;transform:translateY(20px);transition:opacity .9s var(--ease) var(--d,0s),transform .9s var(--ease) var(--d,0s)}
.js [data-reveal].is-in{opacity:1;transform:none}

/* Hero entrance: CSS only, so it never waits on script */
@keyframes rise-s{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes mask-up{from{transform:translateY(108%)}to{transform:none}}
.hero-bottom>:not(.cue){animation:rise-s 1s var(--ease) .55s both}

/* Masked lines: each line of a headline slides up out of its own mask */
.ln{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.ln>span{display:block}
.hero .ln>span{animation:mask-up 1.15s var(--ease) both}
.hero .ln:nth-child(2)>span{animation-delay:.1s}
.js .lines .ln>span{transform:translateY(108%);transition:transform 1.1s var(--ease)}
.js .lines .ln:nth-child(2)>span{transition-delay:.12s}
.js .lines.is-in .ln>span{transform:none}
.js .lines[data-reveal]{opacity:1;transform:none}
.ln.soft{color:rgba(20,27,39,.5)}


/* Tablet */
@media(max-width:900px){
  .gridfx{--cols:6}
  .split-head,.split-body,.ai-layout .split-head{grid-column:1/-1}
  .services .split-head{position:static}
  .services .split-head p{margin-top:16px}
  .service:first-child{padding-top:clamp(36px,6vw,52px)}
  .split-body.service-list{margin-top:clamp(28px,5vw,44px)}
  .ai-layout .split-body{margin-top:clamp(48px,8vw,72px)}
  .ai-questions article::before{left:0;top:clamp(28px,5vw,40px)}
  .ai-questions::before{left:4px}
  .ai-questions article{padding-left:28px}
  .ai-questions article:first-child::before{top:0}
  .working-head{align-items:start}
  .hero{min-height:0;padding-bottom:clamp(56px,9vw,96px)}
  .hero-bottom{margin-top:clamp(40px,7vw,72px)}
  .hero-bottom>:not(.cue){grid-column:1/-1}
  .cue{display:none}
  .service::before,.service::after{display:none}
  .service.is-in .scope li::before{transform:scaleX(1)}
  .service-figs{display:none}
  .contact-copy{grid-column:1/-1}
  .ai-section h2 br{display:none}
}

/* Mobile */
@media(max-width:640px){
  :root{--header-h:68px;--col-gap:16px}
  .gridfx{--cols:4}
  .logo{width:148px}
  .is-scrolled .logo{width:140px}
  .header nav a:not(.contact-link){display:none}
  .contact-link{padding:11px 15px;font-size:12px;gap:10px}
  .hero{padding:calc(var(--header-h) + 24px) 0 56px}
  .hero h1{font-size:clamp(31px,9.8vw,46px);line-height:1.05;letter-spacing:-.047em}
  .accent-text{white-space:nowrap}
  .hero-bottom{margin-top:36px}
  .hero-bottom p{font-size:17px}
  .button{width:100%;justify-content:space-between;padding:20px 22px}
  .service h3 br{display:none}
  .scope{flex-direction:column;gap:0}
  .scope li{padding:12px 0}
  .ai-questions article{padding-left:26px}
  .experience h2{letter-spacing:-.045em}
  .footer{flex-direction:column;align-items:flex-start;gap:24px}
  .footer div{text-align:left}
  .footer img{width:132px}
}
@media(max-width:380px){.logo{width:132px}.is-scrolled .logo{width:128px}.contact-link{padding:10px 12px}}

/* Reduced motion: no transitions or entrances; everything is simply present */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .gridfx::after{display:none}
  .trace{animation:none}
  .caret{animation:none}
  .js [data-reveal]{opacity:1;transform:none}
  .js .lines .ln>span{transform:none}
  .js [data-scrub]{--p:1}
  .js .services:not(.is-in)::before,.js .ai-questions article:not(.is-in)::before{transform:none}
}
@media print{.js [data-reveal]{opacity:1;transform:none}.site-header{position:static}.hero-wrap{margin-top:0}}

/* Pass 5: small refinements, mostly felt rather than seen */
html{scrollbar-width:thin;scrollbar-color:rgba(20,27,39,.32) transparent}
body{font-kerning:normal;font-variant-ligatures:common-ligatures;-webkit-tap-highlight-color:transparent}
h1,h2,h3{font-optical-sizing:auto;hanging-punctuation:first}
.progress{box-shadow:0 0 12px rgba(235,104,43,.55)}
.button,.contact-link{will-change:auto}
.button:active{transform:translateY(1px) scale(.995)}
/* the packet arrives: the button gives one soft ring of acknowledgement */
.hero.trace-done .button{animation:received 1.5s var(--ease) both}
@keyframes received{0%{box-shadow:0 0 0 0 rgba(235,104,43,.55)}100%{box-shadow:0 0 0 16px rgba(235,104,43,0)}}
/* diagrams: the orange squares breathe, and the whole figure drifts a few pixels with the pointer */
.service-figs{transform:translate3d(var(--fx,0px),var(--fy,0px),0);transition:transform .9s var(--ease)}
.fig.is-on .acc{animation:breathe 4.2s ease-in-out 1.6s infinite}
@keyframes breathe{0%,100%{opacity:1;filter:drop-shadow(0 0 0 rgba(235,104,43,0))}50%{opacity:.82;filter:drop-shadow(0 0 5px rgba(235,104,43,.55))}}
/* dark sections: the faint column lines drift a touch, as if the grid is live */
.gridfx{animation:grid-breathe 14s ease-in-out infinite}
@keyframes grid-breathe{0%,100%{opacity:1}50%{opacity:.72}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media(prefers-reduced-motion:reduce){.hero.trace-done .button,.fig.is-on .acc,.gridfx{animation:none}.service-figs{transform:none;transition:none}}

/* Experience: two figures, each with a rail drawn to the same 27-year scale */
.experience-copy p.note{font-size:clamp(16px,1.25vw,18px);line-height:1.7;color:var(--muted);max-width:33em;margin:clamp(40px,4.4vw,64px) 0 0}
.stats{display:grid;row-gap:clamp(32px,3.6vw,52px);max-width:36em}
.experience-copy .stat .head{display:grid;grid-template-columns:auto 1fr;column-gap:clamp(20px,2.4vw,36px);align-items:end}
.experience-copy .stat .num{display:flex;align-items:baseline;gap:clamp(6px,.7vw,10px);margin:0;font-size:clamp(56px,6.6vw,100px);line-height:.9;letter-spacing:-.06em;font-weight:450;color:var(--ink);max-width:none}
.experience-copy .stat .unit{font-size:clamp(14px,1.15vw,17px);letter-spacing:0;font-weight:550;color:var(--muted)}
.experience-copy .stat .cap{margin:0;padding-bottom:.35em;font-size:clamp(15px,1.25vw,18px);line-height:1.4;color:var(--ink);max-width:16em}
.rail{position:relative;height:16px;margin-top:clamp(16px,1.8vw,22px);border-bottom:1px solid var(--rule-strong);
  background:repeating-linear-gradient(90deg,var(--rule-strong) 0 1px,transparent 1px calc(100%/27)) left bottom/100% 7px no-repeat}
.rail i{position:absolute;left:0;bottom:-1px;height:2px;width:calc(var(--w)*100%);background:var(--ink);transform-origin:left;transition:transform 1.7s var(--ease) .1s}
.rail i::after{content:"";position:absolute;right:-1px;bottom:-2.5px;width:7px;height:7px;background:var(--ink);transform:translateX(50%)}
.stat.acc .rail i,.stat.acc .rail i::after{background:var(--accent)}
.js [data-reveal]:not(.is-in) .rail i{transform:scaleX(0)}
.note mark{background:linear-gradient(var(--accent),var(--accent)) no-repeat left 96%/0% 1.5px;color:var(--ink);padding:0;transition:background-size .9s var(--ease) .5s}
.note.is-in mark:nth-of-type(2){transition-delay:.75s}.note.is-in mark:nth-of-type(3){transition-delay:1s}
.note.is-in mark,html:not(.js) .note mark{background-size:100% 1.5px}
@media(max-width:900px){.stats{max-width:none}}
@media(prefers-reduced-motion:reduce){.rail i,.note mark{transition:none}.note mark{background-size:100% 1.5px}.js [data-reveal]:not(.is-in) .rail i{transform:none}}
.stat:not(.acc) .rail i::after{right:0;transform:none}

/* Pass 6: Manrope-specific spacing, and quieter accents on small screens */
/* Tight display tracking also closes up Manrope's word spaces; give them back a little */
h1,h2{word-spacing:.04em}
h3{word-spacing:.02em}
@media(max-width:900px){
  /* the scope rules stay neutral; a short orange tick draws in at the start of each */
  .scope li::before{right:auto;width:22px}
}

/* the hero fills the screen, but stops growing on very tall displays so the headline
   and the intro never drift apart */
@media(min-width:901px){.hero{min-height:min(100svh,1000px)}}

/* Hero call to action now leads to contact: its arrow lifts like the other contact links */
.button:hover span{transform:translate(2px,-2px)}
/* The two-line headline, intro and button sit together as one group, centred in the hero */
@media(min-width:901px){.hero{justify-content:center}}

/* Blueprint: dark sections drop the corner glows. Flat ink blue, lifted slightly at the
   top, with the column grid a touch firmer and faint rows, like a technical drawing.
   Orange is left to the headline, the trace and the call to action. */
.hero-wrap{background:linear-gradient(180deg,#121a26 0%,var(--night) 70%)}
.ai-section,.contact{background:linear-gradient(180deg,#111824 0%,var(--night) 60%)}
.gridfx{--gl:rgba(246,244,246,.09);--gr:rgba(246,244,246,.045);
  background-image:linear-gradient(90deg,var(--gl) 1px,transparent 1px),linear-gradient(180deg,var(--gr) 1px,transparent 1px);
  background-size:calc((100% + var(--col-gap))/var(--cols)) 100%,100% 96px}
@media(max-width:640px){.gridfx{background-size:calc((100% + var(--col-gap))/var(--cols)) 100%,100% 72px}.gridfx::after{background-size:calc((100% + var(--col-gap))/var(--cols)) 100%,100% 72px}}

/* Text on cream is blue-black, matching the ink-blue dark sections; the logo keeps its brand plum */
.site-header:not([data-tone=dark]) .logo g{fill:var(--plum);stroke:var(--plum)}

/* Intro: larger and brighter, so the step down from the headline is gentler */
.hero-bottom p{font-size:clamp(18px,1.75vw,26px);line-height:1.45;letter-spacing:-.016em;color:rgba(246,244,246,.86);max-width:28em}
@media(max-width:640px){.hero-bottom p{font-size:18px;line-height:1.5}}

/* Circuit trace: finer line, quicker entrance, and the hero's grid rows line up with it */
.trace{animation-delay:.3s}
.trace-track,.trace-run,.trace-origin{stroke-width:1}
.hero-wrap .gridfx{background-position:0 0,0 var(--row-y,0px)}
.hero-wrap .gridfx::after{background-position:0 0,0 var(--row-y,0px)}
/* The pointer-lit grid fades in and out slowly (its position eases in clarity-motion.js) */
.gridfx::after{transition:opacity 1.4s var(--ease)}

/* Services: the kinds of work we're brought in for, as a quiet two-column list under the services */
.work{position:relative;padding-top:clamp(36px,4.6vw,68px);border-top:1px solid var(--rule)}
.work h3{font-size:clamp(20px,1.7vw,25px);line-height:1.25;letter-spacing:-.03em;margin:0 0 clamp(18px,2vw,24px)}
.work-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(20px,2.4vw,32px);max-width:44em}
.work-list li{position:relative;padding:13px 0 13px 20px;border-top:1px solid var(--rule);font-size:clamp(14px,1.05vw,16px);line-height:1.45;color:var(--ink-2)}
.work-list li::before{content:"";position:absolute;left:0;top:calc(13px + .5em);width:6px;height:6px;margin-top:-1px;background:var(--ink);opacity:.32}
@media(max-width:900px){.work{padding-top:clamp(36px,6vw,52px)}}
@media(max-width:640px){.work-list{grid-template-columns:1fr}}
/* Services intro: a stronger one-line lede that frames the two services */
.services .split-head p.services-lede{font-size:clamp(18px,1.45vw,21px);line-height:1.45;letter-spacing:-.014em;color:var(--ink-2);max-width:none;margin-top:clamp(18px,1.8vw,24px);text-wrap:pretty}
.nw{white-space:nowrap}

/* Declutter: the blueprint rows and the pointer-lit grid belong to the hero only. Lower dark
   sections keep faint column lines; the AI questions lose their dividers (the connector
   already structures them) and their pointer glow. */
.sec-dark .gridfx{--gl:rgba(246,244,246,.06);background-image:linear-gradient(90deg,var(--gl) 1px,transparent 1px);background-size:calc((100% + var(--col-gap))/var(--cols)) 100%}
.sec-dark .gridfx::after{display:none}

/* AI questions as progress steps: no travelling square; each marker is an outline until the
   orange line reaches it, then fills. Without JS, or with reduced motion, markers stay solid. */
.ai-questions article::before{transition:transform .7s var(--ease) var(--d,0s),rotate .6s var(--ease),background-color .45s var(--ease),box-shadow .45s var(--ease)}
.js .ai-questions article:not(.reached)::before{background:var(--night);box-shadow:inset 0 0 0 1.25px var(--accent)}
@media(prefers-reduced-motion:reduce){.js .ai-questions article:not(.reached)::before{background:var(--accent);box-shadow:none}}

/* How we work: the practical questions agencies ask, as a quiet question-and-answer table
   on the page grid (replaces the before / during / over time timeline and its connector) */
.faq{margin:clamp(48px,6vw,88px) 0 0}
.faq>div{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--col-gap);align-items:baseline;padding:clamp(22px,2.4vw,30px) 0;border-top:1px solid var(--rule)}
.faq>div:last-child{border-bottom:1px solid var(--rule)}
.faq dt{grid-column:1/span 5;font-size:clamp(19px,1.6vw,24px);line-height:1.3;letter-spacing:-.025em;word-spacing:.02em;font-weight:500;color:var(--ink)}
.faq dd{grid-column:7/-1;margin:0;font-size:clamp(15px,1.2vw,18px);line-height:1.6;color:var(--muted);max-width:32em}
@media(max-width:900px){.faq dt,.faq dd{grid-column:1/-1}.faq dd{margin-top:8px}}

/* FAQ on scroll: each row's rule draws in from the left, then the question and its answer
   settle in just behind it, one row after another. The rows themselves don't fade. */
.faq>div{position:relative;border-top:0}
.faq>div::before,.faq>div:last-child::after{content:"";position:absolute;left:0;right:0;height:1px;background:var(--rule);transform-origin:left;transition:transform 1.2s var(--ease) var(--d,0s)}
.faq>div::before{top:0}
.faq>div:last-child{border-bottom:0}
.faq>div:last-child::after{bottom:0;transition-delay:calc(var(--d,0s) + .25s)}
.js .faq>div[data-reveal]{opacity:1;transform:none}
.js .faq>div:not(.is-in)::before,.js .faq>div:not(.is-in)::after{transform:scaleX(0)}
.js .faq dt,.js .faq dd{transition:opacity .8s var(--ease),transform .9s var(--ease)}
.js .faq dt{transition-delay:calc(var(--d,0s) + .18s)}
.js .faq dd{transition-delay:calc(var(--d,0s) + .32s)}
.js .faq>div:not(.is-in) dt,.js .faq>div:not(.is-in) dd{opacity:0;transform:translateY(14px)}
/* A way on from the FAQ: the same quiet text link as the AI section, in ink on cream */
.faq-more{margin-top:clamp(32px,3.6vw,48px);color:var(--ink);border-bottom-color:var(--rule-strong)}

/* FAQ, a little more ceremony on scroll: an orange glint rides the leading edge of each rule
   as it draws, questions wipe up out of their baseline, and the answer under the pointer firms up */
.faq>div::before{background:linear-gradient(90deg,rgba(235,104,43,0),var(--accent) 70%,rgba(235,104,43,0)) no-repeat,var(--rule);background-size:120px 100%,100% 100%;background-position:-120px 0,0 0}
.js .faq>div.is-in::before{animation:faq-glint 1.2s var(--ease) var(--d,0s) both}
@keyframes faq-glint{0%{background-position:0 0,0 0}80%{background-position:100% 0,0 0}100%{background-position:calc(100% + 120px) 0,0 0}}
.js .faq dt{transition:clip-path .9s var(--ease),transform .9s var(--ease),opacity .4s var(--ease);transition-delay:calc(var(--d,0s) + .22s)}
.js .faq>div:not(.is-in) dt{opacity:1;clip-path:inset(0 0 100% 0);transform:translateY(.55em)}
.js .faq>div.is-in dt{clip-path:inset(-.2em 0 -.3em 0)}
.faq dd{transition:color .4s var(--ease)}
.js .faq dd{transition:opacity .8s var(--ease) calc(var(--d,0s) + .38s),transform .9s var(--ease) calc(var(--d,0s) + .38s),color .4s var(--ease)}
@media(hover:hover){.faq>div:hover dd{color:var(--ink-2)}}

/* Experience: who Lowpitch is (Toby, by name) and the pharma specifics sit to the right of the
   figures; on smaller screens the bio leads, then the figures, then the specifics */
.experience-copy p.bio{font-size:clamp(18px,1.45vw,21px);line-height:1.55;letter-spacing:-.012em;color:var(--ink);max-width:31em;margin:0 0 clamp(36px,4vw,52px)}
.note.is-in mark:nth-of-type(4){transition-delay:1.25s}
@media(min-width:901px){
  .experience-copy{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto auto;column-gap:var(--col-gap);align-items:start}
  .experience-copy .stats{grid-column:1/span 6;grid-row:1/span 2}
  .experience-copy p.bio{grid-column:8/-1;grid-row:1;margin:0}
  .experience-copy p.note{grid-column:8/-1;grid-row:2;margin:clamp(28px,3vw,40px) 0 0}
}

/* Experience sits on a full-width band of warm grey, so it reads as its own section after the
   cream FAQ rather than running on from it */
.experience{background:var(--mist)}

/* Contact: the email address is the call to action */
.contact-mail{grid-column:7/-1;display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.contact-mail .mail{font-size:clamp(26px,3vw,44px);line-height:1.15;letter-spacing:-.035em;color:var(--on-dark);padding-bottom:6px;background:linear-gradient(var(--accent),var(--accent)) no-repeat left 100%/0% 2px,linear-gradient(rgba(246,244,246,.28),rgba(246,244,246,.28)) no-repeat left 100%/100% 1px;transition:background-size .55s var(--ease)}
.contact-mail .mail:hover,.contact-mail .mail:focus-visible{background-size:100% 2px,100% 1px}
.contact-mail .mail span{display:inline-block;font-size:.55em;margin-left:.2em;color:var(--on-dark-2);vertical-align:.25em;transition:transform .35s var(--ease),color .35s}
.contact-mail .mail:hover span{transform:translate(3px,-3px);color:var(--accent)}
@media(max-width:900px){.contact-mail{grid-column:1/-1;margin-top:32px}}

/* Avoid single-word last lines in answers, list items and captions as well as paragraphs */
dt,dd,li{text-wrap:pretty}
.experience-copy .stat .cap{text-wrap:balance}

/* Emphasis in the pharma note is set in ink rather than underlined, so it can't be mistaken for links */
.note mark,.note.is-in mark,html:not(.js) .note mark{background:none;color:var(--ink);font-weight:550}
/* Scope lists stay neutral: orange lines beside labels read as links */
.scope li::before{display:none}

/* One type scale across sections. Bookends (hero, contact) stay display size; every other
   section heading, item heading, lead paragraph and body paragraph shares one size per role. */
:root{
  --t-h2:clamp(32px,3.8vw,56px);      /* section headings */
  --t-h3:clamp(24px,2.3vw,34px);      /* item headings: services, AI questions */
  --t-h4:clamp(19px,1.6vw,24px);      /* small headings: FAQ questions, work list title */
  --t-lead:clamp(18px,1.45vw,21px);   /* lead paragraphs: services line, AI intro, bio */
  --t-body:clamp(16px,1.2vw,18px);    /* body copy */
}
.services h2,.ai-section h2,.experience h2,.working h2{font-size:var(--t-h2);line-height:1.08}
.experience h2{letter-spacing:-.045em;font-weight:500;max-width:none}
.service h3,.ai-questions h3{font-size:var(--t-h3);line-height:1.18}
.faq dt,.work h3{font-size:var(--t-h4);line-height:1.3}
.services .split-head p.services-lede,.ai-section .split-head>p,.experience-copy p.bio{font-size:var(--t-lead);line-height:1.55}
.service-copy p,.ai-questions p,.faq dd,.experience-copy p.note,.contact-copy p{font-size:var(--t-body);line-height:1.65}
/* the FAQ heading has the full width to itself, so it sits on one line */
.working .split-head{grid-column:1/-1}

/* Hero button: a quick, even fade to orange on hover, rather than a left-to-right sweep */
.button{background:var(--paper);transition:background-color .3s var(--ease),transform .25s var(--ease)}
.button:hover,.button:focus-visible{background:var(--accent)}

/* Arrows are drawn as SVG rather than the ↗ character, which phones render as a colour emoji */
.arr{display:block;width:.82em;height:.82em;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
