/* askversa.ai. Layout and components. Colours come from tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }   /* no blue flash on a tap on a phone, anywhere (inherited; the buttons' own pressed and checked states carry the feedback, and keyboard focus keeps its outline) */
/* The Ask field is off for V1 (see the script in index.html). With it off nothing is shown and no room is kept for the dock. */
:root { --dock-clear: 112px; }
html:not([data-ask="on"]) { --dock-clear: var(--space-small); }
html:not([data-ask="on"]) #front-door, html:not([data-ask="on"]) .dock, html:not([data-ask="on"]) .convo { display: none; }
html { scroll-behavior: smooth; }   /* native fallback. Lenis takes over below */
/* Lenis (js/smooth.js): its recommended rules */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: var(--w-body); line-height: 1.2; letter-spacing: .025em;
  font-size: clamp(18px, 1.05vw, 20px);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Sections */
.section { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); padding: var(--space-main) var(--margin); }
/* Gradient moments: the page is one colour (--canvas) and these sections fade up to --peak and back, so there are no hard edges.
   The fade is long and eased (a smoothstep in 11 steps, mixed in oklab so it stays even and does not band): --ramp is its length.
   The content starts at 80% of the ramp, where the colour is nearly the peak and white text still has about 4.6:1 contrast.
   The fade is drawn by ::before and reaches beyond the section by --ov (half the ramp) at the top and bottom, into the empty padding
   of the sections either side, so the section itself needs far less padding. Sections have no background of their own, so it shows through. */
.section { background: transparent; }
.section--glow { --ramp: clamp(280px, 38vw, 580px); --ov: calc(var(--ramp) * .5); position: relative; overflow-x: clip; overflow-y: visible; background: none;
  padding-top: calc(var(--ramp) * .8 - var(--ov-top, var(--ov))); padding-bottom: calc(var(--ramp) * .8 - var(--ov-bottom, var(--ov))); }
.section--glow::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: calc(var(--ov-top, var(--ov)) * -1); bottom: calc(var(--ov-bottom, var(--ov)) * -1);
  pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--peak) 0.0%, var(--canvas)) calc(var(--ramp) * 0),
    color-mix(in oklab, var(--peak) 2.8%, var(--canvas)) calc(var(--ramp) * 0.1),
    color-mix(in oklab, var(--peak) 10.4%, var(--canvas)) calc(var(--ramp) * 0.2),
    color-mix(in oklab, var(--peak) 21.6%, var(--canvas)) calc(var(--ramp) * 0.3),
    color-mix(in oklab, var(--peak) 35.2%, var(--canvas)) calc(var(--ramp) * 0.4),
    color-mix(in oklab, var(--peak) 50.0%, var(--canvas)) calc(var(--ramp) * 0.5),
    color-mix(in oklab, var(--peak) 64.8%, var(--canvas)) calc(var(--ramp) * 0.6),
    color-mix(in oklab, var(--peak) 78.4%, var(--canvas)) calc(var(--ramp) * 0.7),
    color-mix(in oklab, var(--peak) 89.6%, var(--canvas)) calc(var(--ramp) * 0.8),
    color-mix(in oklab, var(--peak) 97.2%, var(--canvas)) calc(var(--ramp) * 0.9),
    color-mix(in oklab, var(--peak) 100.0%, var(--canvas)) calc(var(--ramp) * 1),
    color-mix(in oklab, var(--peak) 100.0%, var(--canvas)) calc(100% - var(--ramp) * 1),
    color-mix(in oklab, var(--peak) 97.2%, var(--canvas)) calc(100% - var(--ramp) * 0.9),
    color-mix(in oklab, var(--peak) 89.6%, var(--canvas)) calc(100% - var(--ramp) * 0.8),
    color-mix(in oklab, var(--peak) 78.4%, var(--canvas)) calc(100% - var(--ramp) * 0.7),
    color-mix(in oklab, var(--peak) 64.8%, var(--canvas)) calc(100% - var(--ramp) * 0.6),
    color-mix(in oklab, var(--peak) 50.0%, var(--canvas)) calc(100% - var(--ramp) * 0.5),
    color-mix(in oklab, var(--peak) 35.2%, var(--canvas)) calc(100% - var(--ramp) * 0.4),
    color-mix(in oklab, var(--peak) 21.6%, var(--canvas)) calc(100% - var(--ramp) * 0.3),
    color-mix(in oklab, var(--peak) 10.4%, var(--canvas)) calc(100% - var(--ramp) * 0.2),
    color-mix(in oklab, var(--peak) 2.8%, var(--canvas)) calc(100% - var(--ramp) * 0.1),
    color-mix(in oklab, var(--peak) 0.0%, var(--canvas)) calc(100% - var(--ramp) * 0)); }
/* The hero's content sits optically centred in the first screen: the section is a screen tall with the content centred (a touch above the middle, by 3svh).
   The fade is long, so it starts above the top of the page (the part above the page is simply off screen) by however much puts the content at the peak:
   where the content begins (about half of the screen less half the content, estimated at 290px) is 85% of the way up the fade. */
.hero { --ramp: clamp(220px, 38vw, 580px); --ov-top: max(0px, calc(var(--ramp) * .85 - (100svh - 290px) / 2)); --hero-pad: 120px; min-height: 100svh; padding-top: var(--hero-pad); padding-bottom: calc(var(--hero-pad) + 6svh); }
/* The last one (contact) ramps up and stays at the peak, so the footer carries on from it */
.section--glow.section--glow-end { --ov-bottom: 0px; padding-bottom: var(--space-main); }
.section--glow.section--glow-end::before {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--peak) 0.0%, var(--canvas)) calc(var(--ramp) * 0),
    color-mix(in oklab, var(--peak) 2.8%, var(--canvas)) calc(var(--ramp) * 0.1),
    color-mix(in oklab, var(--peak) 10.4%, var(--canvas)) calc(var(--ramp) * 0.2),
    color-mix(in oklab, var(--peak) 21.6%, var(--canvas)) calc(var(--ramp) * 0.3),
    color-mix(in oklab, var(--peak) 35.2%, var(--canvas)) calc(var(--ramp) * 0.4),
    color-mix(in oklab, var(--peak) 50.0%, var(--canvas)) calc(var(--ramp) * 0.5),
    color-mix(in oklab, var(--peak) 64.8%, var(--canvas)) calc(var(--ramp) * 0.6),
    color-mix(in oklab, var(--peak) 78.4%, var(--canvas)) calc(var(--ramp) * 0.7),
    color-mix(in oklab, var(--peak) 89.6%, var(--canvas)) calc(var(--ramp) * 0.8),
    color-mix(in oklab, var(--peak) 97.2%, var(--canvas)) calc(var(--ramp) * 0.9),
    color-mix(in oklab, var(--peak) 100.0%, var(--canvas)) calc(var(--ramp) * 1)); }
.section--peak { background: var(--peak); }
.footer.section--peak { position: relative; overflow: hidden; }
.footer.section--peak > * { position: relative; z-index: 2; }
/* Grain (the versa.agency noise tile, drifting at 0.6x the page speed, see the parallax block in js/site.js): dark, mid-tone and violet sections and the footer. Sits above the section background (and the hero horizon) and below the content. */
.section.section--dark::after, .section.section--mid::after, .section.section--glow::after, .footer.section--peak::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../assets/noise.png") 0 var(--noise-y) / 134px 134px repeat;
  mix-blend-mode: var(--noise-blend); opacity: var(--noise-opacity); }
.section.section--glow::after { top: calc(var(--ov-top, var(--ov)) * -1); bottom: calc(var(--ov-bottom, var(--ov)) * -1); }   /* the grain covers the overlap too */
/* The grain fades with the gradient. It is the same box as the fade (::before), and its strength follows the same curve, so it is at full
   strength where the violet peaks and gone where the page is its own colour: there is no edge where the grain stops. (Without this it
   ended in a hard horizontal line, across the 3D shape, at the bottom of the section.) */
.section.section--glow::after {
  -webkit-mask-image: linear-gradient(180deg,
    rgb(0 0 0 / 0.000) calc(var(--ramp) * 0),
    rgb(0 0 0 / 0.028) calc(var(--ramp) * 0.1),
    rgb(0 0 0 / 0.104) calc(var(--ramp) * 0.2),
    rgb(0 0 0 / 0.216) calc(var(--ramp) * 0.3),
    rgb(0 0 0 / 0.352) calc(var(--ramp) * 0.4),
    rgb(0 0 0 / 0.500) calc(var(--ramp) * 0.5),
    rgb(0 0 0 / 0.648) calc(var(--ramp) * 0.6),
    rgb(0 0 0 / 0.784) calc(var(--ramp) * 0.7),
    rgb(0 0 0 / 0.896) calc(var(--ramp) * 0.8),
    rgb(0 0 0 / 0.972) calc(var(--ramp) * 0.9),
    rgb(0 0 0 / 1.000) calc(var(--ramp) * 1),
    rgb(0 0 0 / 1.000) calc(100% - var(--ramp) * 1),
    rgb(0 0 0 / 0.972) calc(100% - var(--ramp) * 0.9),
    rgb(0 0 0 / 0.896) calc(100% - var(--ramp) * 0.8),
    rgb(0 0 0 / 0.784) calc(100% - var(--ramp) * 0.7),
    rgb(0 0 0 / 0.648) calc(100% - var(--ramp) * 0.6),
    rgb(0 0 0 / 0.500) calc(100% - var(--ramp) * 0.5),
    rgb(0 0 0 / 0.352) calc(100% - var(--ramp) * 0.4),
    rgb(0 0 0 / 0.216) calc(100% - var(--ramp) * 0.3),
    rgb(0 0 0 / 0.104) calc(100% - var(--ramp) * 0.2),
    rgb(0 0 0 / 0.028) calc(100% - var(--ramp) * 0.1),
    rgb(0 0 0 / 0.000) calc(100% - var(--ramp) * 0));
  mask-image: linear-gradient(180deg,
    rgb(0 0 0 / 0.000) calc(var(--ramp) * 0),
    rgb(0 0 0 / 0.028) calc(var(--ramp) * 0.1),
    rgb(0 0 0 / 0.104) calc(var(--ramp) * 0.2),
    rgb(0 0 0 / 0.216) calc(var(--ramp) * 0.3),
    rgb(0 0 0 / 0.352) calc(var(--ramp) * 0.4),
    rgb(0 0 0 / 0.500) calc(var(--ramp) * 0.5),
    rgb(0 0 0 / 0.648) calc(var(--ramp) * 0.6),
    rgb(0 0 0 / 0.784) calc(var(--ramp) * 0.7),
    rgb(0 0 0 / 0.896) calc(var(--ramp) * 0.8),
    rgb(0 0 0 / 0.972) calc(var(--ramp) * 0.9),
    rgb(0 0 0 / 1.000) calc(var(--ramp) * 1),
    rgb(0 0 0 / 1.000) calc(100% - var(--ramp) * 1),
    rgb(0 0 0 / 0.972) calc(100% - var(--ramp) * 0.9),
    rgb(0 0 0 / 0.896) calc(100% - var(--ramp) * 0.8),
    rgb(0 0 0 / 0.784) calc(100% - var(--ramp) * 0.7),
    rgb(0 0 0 / 0.648) calc(100% - var(--ramp) * 0.6),
    rgb(0 0 0 / 0.500) calc(100% - var(--ramp) * 0.5),
    rgb(0 0 0 / 0.352) calc(100% - var(--ramp) * 0.4),
    rgb(0 0 0 / 0.216) calc(100% - var(--ramp) * 0.3),
    rgb(0 0 0 / 0.104) calc(100% - var(--ramp) * 0.2),
    rgb(0 0 0 / 0.028) calc(100% - var(--ramp) * 0.1),
    rgb(0 0 0 / 0.000) calc(100% - var(--ramp) * 0)); }
.section.section--glow.section--glow-end::after {
  -webkit-mask-image: linear-gradient(180deg,
    rgb(0 0 0 / 0.000) calc(var(--ramp) * 0),
    rgb(0 0 0 / 0.028) calc(var(--ramp) * 0.1),
    rgb(0 0 0 / 0.104) calc(var(--ramp) * 0.2),
    rgb(0 0 0 / 0.216) calc(var(--ramp) * 0.3),
    rgb(0 0 0 / 0.352) calc(var(--ramp) * 0.4),
    rgb(0 0 0 / 0.500) calc(var(--ramp) * 0.5),
    rgb(0 0 0 / 0.648) calc(var(--ramp) * 0.6),
    rgb(0 0 0 / 0.784) calc(var(--ramp) * 0.7),
    rgb(0 0 0 / 0.896) calc(var(--ramp) * 0.8),
    rgb(0 0 0 / 0.972) calc(var(--ramp) * 0.9),
    rgb(0 0 0 / 1.000) calc(var(--ramp) * 1));
  mask-image: linear-gradient(180deg,
    rgb(0 0 0 / 0.000) calc(var(--ramp) * 0),
    rgb(0 0 0 / 0.028) calc(var(--ramp) * 0.1),
    rgb(0 0 0 / 0.104) calc(var(--ramp) * 0.2),
    rgb(0 0 0 / 0.216) calc(var(--ramp) * 0.3),
    rgb(0 0 0 / 0.352) calc(var(--ramp) * 0.4),
    rgb(0 0 0 / 0.500) calc(var(--ramp) * 0.5),
    rgb(0 0 0 / 0.648) calc(var(--ramp) * 0.6),
    rgb(0 0 0 / 0.784) calc(var(--ramp) * 0.7),
    rgb(0 0 0 / 0.896) calc(var(--ramp) * 0.8),
    rgb(0 0 0 / 0.972) calc(var(--ramp) * 0.9),
    rgb(0 0 0 / 1.000) calc(var(--ramp) * 1)); }
.section > :not(.horizon, .mesh, .scroll-cue):not(.horizon) { position: relative; z-index: 2; }   /* (the second :not repeats the first only to keep this rule's specificity at 0,3,0, as it was: adding a third :not raised it above .mission.is-pinned .ms-pin and made the mission stop being sticky) */
.stack { display: flex; flex-direction: column; gap: var(--space-small); align-items: flex-start; }
.stack--center { align-items: center; text-align: center; }
@media (min-width: 768px) { .stack--center-desktop { align-items: center; text-align: center; } }

/* Type */
h1 { font-size: clamp(44px, 3.2vw, 80px); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(38px, 2.68vw, 69px); font-weight: var(--w-title); line-height: 1.2; text-wrap: balance; }
h3 { font-size: clamp(28px, 2.08vw, 40px); font-weight: var(--w-h3); line-height: 1.4; }
.lede { font-size: clamp(36px, 2.8vw, 52px); font-weight: var(--w-large); line-height: 1.4; text-wrap: balance; }
.body-l { font-size: clamp(21px, 1.61vw, 31px); font-weight: var(--w-body); line-height: 1.4; text-wrap: pretty; }
.body-m { font-size: clamp(18px, 1.41vw, 26px); font-weight: var(--w-body); line-height: 1.4; }
.muted { color: var(--ink-2); }
.measure { max-width: 46ch; }
.link { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font: inherit; font-weight: 400; cursor: pointer; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s; }
.btn:active { transform: scale(.97); }
.btn-small { background: var(--ink); color: var(--bg); padding: 12px 20px; font-size: 16px; border: 1px solid var(--ink); border-radius: var(--radius-button); }
.btn-small:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.section--dark .btn-small:hover, .section--mid .btn-small:hover { color: var(--bg-dark); }
.section--glow .btn-small:hover, .section--peak .btn-small:hover { background: rgb(255 255 255 / .86); border-color: transparent; color: var(--bg); }
.btn-solid { background: var(--ink); color: var(--bg); padding: 14px 24px; font-size: 18px; font-weight: 400; border: 1px solid var(--ink); border-radius: var(--radius-button); }
.btn-solid:hover { background: var(--bg); color: var(--ink); }
.btns { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* Nav (not fixed in phase 1, it sits in the dark hero so no colour switching is needed) */
/* Header: fixed to the top. Transparent over the light top of the hero. Once the page has scrolled it becomes a slim light glass bar
   (so the logo and button stay readable over the violet moments), hides on scroll down and returns on scroll up (js/site.js). */
.nav { color: var(--ink); position: fixed; top: 0; left: 0; right: 0; z-index: 5; height: 120px; padding: 20px var(--margin) 0; display: flex; justify-content: space-between; align-items: center;
  background: transparent;
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), height .3s var(--ease), background-color .3s ease; }
.nav.is-stuck { height: 76px; padding-top: 0; background: rgb(247 246 242 / .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wordmark { display: inline-flex; align-items: baseline; gap: .30em; color: inherit; opacity: .9; text-decoration: none; font-size: 27px; line-height: 1; font-weight: var(--w-large); letter-spacing: .01em; }
.wordmark svg { width: 200px; height: auto; display: block; flex: none; }
.nav-pill { display: flex; align-items: center; gap: 20px; }
.nav-pill .btn-small { line-height: 20px; } /* 46px tall (was 45.2), so the 44px menu button centres on a whole pixel */
.menu-btn { width: 44px; height: 44px; display: grid; place-content: center; gap: 8px; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; margin-right: -9px; }
.menu-btn span { display: block; width: 26px; height: 2px; /* whole pixels: 1.5px lines land on different fractions of a pixel and render unevenly */ background: currentColor; transition: transform .2s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 4; background: var(--peak); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--margin); gap: 12px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { align-self: flex-start; font-size: clamp(31px, 3vh, 80px); line-height: 1.4; text-decoration: none; padding-bottom: .04em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;   /* the underline: nothing until hovered or focused */
  transition: background-size .55s cubic-bezier(0.23, 1, 0.32, 1); }   /* it draws from the left with a long ease out */
.menu a:focus-visible { background-size: 100% 2px; }
@media (hover: hover) { .menu a:hover { background-size: 100% 2px; } }
@media (min-width: 992px) { .menu a { font-size: clamp(44px, 5.6vh, 88px); } }   /* bigger on a desktop screen (it was 31px at a laptop's height) */
body.menu-open { overflow: hidden; }
body.menu-open .nav, body.menu-open .nav.is-stuck { transform: none; color: #fff; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }   /* the menu overlay is dark already */

.btn { white-space: nowrap; }
/* A jump to a section (js/smooth.js honours this too): on a phone the sections' top padding is shorter than the sticky nav, so the heading would land behind it. */
@media (max-width: 767px) { .section[id]:not(.contact) { scroll-margin-top: 40px; } }
@media (max-width: 767px) {
  .nav { height: 96px; padding-top: 16px; }
  .nav.is-stuck { height: 64px; padding-top: 0; }
  .wordmark { font-size: 20px; }
  .wordmark svg { width: 150px; }
  .nav-pill { gap: 8px; }
  .door { padding: 6px 8px 6px 20px; font-size: 16px; } /* 16px stops iOS zooming into the field */
  .door .btn-small { padding: 10px 16px; font-size: 15px; }
}

/* Narrow phones: The logo plus the button and menu need room, so everything in the header tightens up. */
@media (max-width: 420px) {
  .wordmark svg { width: 120px; }
  .nav-pill { gap: 2px; }
  .nav-pill .btn-small { padding: 10px 14px; font-size: 15px; }
}

/* Hero */
.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: var(--space-small); }
.horizon { position: absolute; left: 50%; bottom: -55vw; width: 90vw; height: 90vw; max-width: 1400px; max-height: 1400px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 12%, #5d5ad0 0%, #413f9b 22%, #1b1450 55%, #0a071e 75%); opacity: .9; box-shadow: 0 -30px 120px 10px rgb(143 141 240 / .25); }
.hero h1 { font-size: clamp(36px, 3.4vw, 64px); font-weight: 400; line-height: 1.15; }
.hero-sub { margin: 0; max-width: 50ch; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; color: var(--ink-2); }

/* Front door. Phase 1: a text field and an Ask button. Phase 2 connects it to the conversation. */
.door { position: relative; width: min(640px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 28px; border-radius: var(--radius-round); text-decoration: none; text-align: left;
  background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); }
.door input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 12px 0; color: var(--ink); font: inherit; letter-spacing: inherit; }
.door input::placeholder { color: var(--ink-2); opacity: 1; }
.door:focus-within { border-color: var(--accent); }

/* Ask dock. Always dark, so it reads over both light and dark sections. Sits above the page, below the menu overlay. */
.dock { position: fixed; left: 0; right: 0; bottom: var(--dock-lift, 0px); z-index: 3; display: flex; justify-content: center; pointer-events: none;
  padding: 0 var(--margin) calc(20px + env(safe-area-inset-bottom));
  transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), opacity .25s ease, visibility 0s linear .35s; }
.dock.is-visible { transform: none; opacity: 1; visibility: visible;
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), opacity .25s ease, visibility 0s; }
.dock .door { pointer-events: auto; background: rgb(10 7 30 / .94); box-shadow: 0 10px 40px rgb(10 7 30 / .35); }
@media (max-width: 767px) { .dock { padding-left: 16px; padding-right: 16px; } }

/* Placeholder swap: the old suggestion fades out, the new one fades in. */
.door input::placeholder { transition: opacity .18s ease; }
.door input.is-swapping::placeholder { opacity: 0; }

/* Conversation: a full-page dark glass layer while an Ask field is focused. Messages read top to bottom and sit at the
   bottom of the screen, next to the field (like a chat). Visitor lines are a quiet bubble on the right; replies are plain
   text on the glass, so they do not look like the input. Above the header (5), so it covers the whole page. */
.convo { position: fixed; inset: 0; z-index: 6; display: flex; flex-direction: column; color: var(--on-dark);
  background: rgb(10 7 30 / .85); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(28px) saturate(1.2);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.convo.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
body.convo-open { overflow: hidden; }
body.convo-open .dock { opacity: 0; visibility: hidden; }   /* the conversation has its own field in the same place */
.convo-close { position: absolute; top: 24px; right: var(--margin); z-index: 2; width: 44px; height: 44px; display: grid; place-content: center; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; opacity: .8; }
.convo-close:hover { opacity: 1; }
.convo-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.convo-scroll { flex: 1; min-height: 0; display: flex; overflow-y: auto; overscroll-behavior: contain; padding: 96px var(--margin) 24px; }
.convo-log { width: min(720px, 100%); margin: auto auto 0; display: flex; flex-direction: column; gap: 28px; }   /* top margin auto: short chats sit at the bottom */
.convo-bar { display: flex; justify-content: center; padding: 0 var(--margin) calc(20px + env(safe-area-inset-bottom)); }
.convo-bar .door { background: rgb(10 7 30 / .94); }
.msg { margin: 0; animation: msg-in .25s var(--ease) both; }
.msg--you { align-self: flex-end; max-width: 80%; padding: 12px 20px; border-radius: 22px 22px 6px 22px; background: rgb(255 255 255 / .1); border: 1px solid var(--line-on-dark); font-size: 16px; line-height: 1.4; }
.msg--kath { align-self: flex-start; max-width: 100%; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; }
.msg-aside { margin-top: 1em; color: var(--on-dark-2); }
.msg--intro { color: var(--on-dark-2); }
.convo-link { display: inline-block; margin-top: 14px; font-size: 16px; color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.convo-link::after { content: " \2192"; }
.convo-link:hover { color: var(--on-dark); }
.msg--typing { display: flex; gap: 6px; padding: 10px 0; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-2); animation: typing 1s ease-in-out infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
/* Response layouts (js/response.js): a reply can carry a visual, built from a few modules. Quiet cards on the glass; each
   cell rises in turn (--i set by the script). */
.lay { margin-top: 22px; }
.lay-title { margin: 0 0 14px; font-size: 15px; color: var(--on-dark-2); }
.lay dl, .lay ol, .lay ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lay--stats dl { grid-template-columns: repeat(3, 1fr); }
.lay--steps ol { grid-template-columns: repeat(4, 1fr); }
.lay--logos ul { grid-template-columns: repeat(4, 1fr); }
.lay-cell { margin: 0; padding: 18px; border-radius: var(--radius-image); background: rgb(255 255 255 / .06); border: 1px solid var(--line-on-dark);
  animation: msg-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.lay-label { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 400; color: var(--on-dark); }
.lay-note { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--on-dark-2); }
.lay-num { margin: 8px 0 0; font-size: clamp(38px, 4.4vw, 52px); line-height: 1; font-weight: var(--w-large); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.lay-step { display: block; margin-bottom: 14px; font-size: 14px; color: var(--accent-on-dark); font-variant-numeric: tabular-nums; }
.lay--steps .lay-label { margin-bottom: 8px; }
.lay--steps .lay-note { margin: 0; }
.lay-logo { display: grid; place-items: center; aspect-ratio: 1 / .46; margin-bottom: 14px; border-radius: 10px; background: #f7f6f2; }   /* the standard off-white (--bg), as a fixed value because dark sections re-point the tokens. The logos are drawn for light backgrounds */
.lay-logo img { width: calc(var(--w, .55) * 100%); height: auto; display: block; position: relative; top: calc(var(--dy, 0) * 217.4%); }
.lay--logos .lay-cell { padding: 12px 12px 16px; }
.lay--logos .lay-note { font-size: 13px; }
.lay-row { margin: 0 0 22px; animation: msg-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 120ms); }
.lay-rowhead { margin: 0 0 10px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.lay-value { font-size: clamp(22px, 2.4vw, 30px); font-weight: var(--w-large); font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.lay-row.is-accent .lay-value { color: var(--accent-on-dark); }
.lay-track { position: relative; height: 12px; border-radius: 6px; background: rgb(255 255 255 / .1); overflow: hidden; }
.lay-seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--on-dark-2); transform-origin: left; animation: seg-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 350ms); }
.lay-row.is-accent .lay-seg { background: var(--accent-on-dark); }
@keyframes seg-in { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 767px) { .lay--stats dl, .lay--steps ol { grid-template-columns: 1fr; } .lay--logos ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) and (max-width: 991px) { .lay--steps ol { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .lay-cell, .lay-row, .lay-seg { animation: none; } }
@keyframes typing { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .convo-scroll, .convo-bar { padding-left: 16px; padding-right: 16px; } .convo-close { right: 8px; top: 16px; } .msg--you { max-width: 90%; } }
@media (prefers-reduced-motion: reduce) { .convo, .convo.is-open { transition: none; } .msg { animation: none; } .msg--typing span { animation: none; opacity: .6; } }

/* Cards */
.grid { display: grid; gap: var(--space-small); width: 100%; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-slim); display: flex; flex-direction: column; gap: 14px; transition: transform .2s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.card .num { font-size: 14px; letter-spacing: .12em; color: var(--ink-muted); }
.card h3 { font-size: clamp(24px, 1.8vw, 34px); line-height: 1.25; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.tag { padding: 8px 18px; border-radius: var(--radius-pill); background: var(--bg-tint); border: .5px solid var(--line); font-size: 15px; }

/* Timeline (Innovation is in our blood). Always open: a sideways-scrolling strip with every step's text showing, stepped by the arrow buttons under the intro (js/timeline.js) or by
   swiping. The earlier folded, pinned scroll-driven version is saved in reference/timeline-pinned/ (and the git tag timeline-pinned-v1). */
.section.timeline { overflow: clip; padding-left: 0; padding-right: 0; }
.tl-pin { display: flex; flex-direction: column; gap: var(--space-medium); }
.tl-head { padding: 0 var(--margin); }
/* Why VERSA runs on into the timeline: Why VERSA gives up its bottom padding, and the CTA band follows */
/* The space above How we think is 1.6 x --space-medium; the timeline has the standard section space above and below */
.why-gap { height: calc(var(--space-medium) * 1.6); }
#why-versa { padding-bottom: 0; }
#apart-more { padding-top: 0; }   /* the timeline above carries the space */
.section.timeline { padding-top: var(--space-main); padding-bottom: var(--space-main); }   /* the standard section space, above and below (the sides stay 0: the heading and the track carry the margin themselves) */
.cta-band.cta-band--plain { margin-top: 0; padding-top: 40px; border-top: 0; }   /* under How we think it is the same band as in Voice at scale (the line left, the pair right), minus the hairline above (the list's last one is there) and none below */
/* The arrow buttons sit under the intro: the standard small button with a chevron. An arrow that has nowhere to go is dimmed. */
.tl-nav { display: flex; gap: 10px; margin-top: 4px; }
.tl-arrow { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
.tl-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-arrow:disabled { opacity: .3; pointer-events: none; }
.tl-viewport { overflow-x: auto; scrollbar-width: none; padding: 0 var(--margin) 16px; scroll-snap-type: x proximity; scroll-padding-inline: var(--margin); /* keeps the left margin when a step snaps to the start */ }
.tl-viewport::-webkit-scrollbar { display: none; }
.tl-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }

.tl-step { --step-w: clamp(340px, 36vw, 560px); --node: 76px; --on: 1; --vis: 1; --fill: 1;
  position: relative; flex: none; width: var(--step-w); padding-right: 14vw; scroll-snap-align: start;
  display: grid; grid-template-rows: auto auto auto 1fr; justify-items: start; row-gap: 18px; }
.tl-year { font-size: clamp(28px, 2.4vw, 44px); font-weight: var(--w-large); line-height: 1; letter-spacing: .04em; }

/* the node, and the line to the next one (dotted track, accent fill that grows as you progress) */
.tl-node { position: relative; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) calc(var(--on) * 100%), var(--bg-raised));
  /* the icon flips from dark to white once the fill is past halfway, so it never blends into the fill */
  color: color-mix(in srgb, #fff clamp(0%, calc((var(--on) - .5) * 1000%), 100%), var(--ink)); transform: scale(calc(1 + var(--on) * .08)); }
.tl-node svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tl-node::before, .tl-node::after { content: ""; position: absolute; left: 100%; top: 50%; height: 2px; margin-top: -1px; width: calc(var(--step-w) - var(--node)); }
.tl-node::before { background: repeating-linear-gradient(90deg, var(--ink-muted) 0 2px, transparent 2px 9px); opacity: .55; }
.tl-node::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--fill)); }
.tl-step:last-child .tl-node::before, .tl-step:last-child .tl-node::after { display: none; }

.tl-title { margin: 0; min-height: 2.5em; font-size: clamp(22px, 1.6vw, 30px); font-weight: var(--w-h3); line-height: 1.25; text-wrap: balance;
  color: color-mix(in srgb, var(--ink) calc(55% + 45% * var(--on)), var(--ink-muted)); }
.tl-text { color: var(--ink-2); font-size: clamp(17px, 1.2vw, 22px); line-height: 1.4;
  opacity: var(--vis); transform: translateY(calc((1 - var(--vis)) * 10px)); }
.tl-text p { margin: 0 0 .9em; }
.tl-text p:last-child { margin-bottom: 0; }

@media (max-width: 767px) { .tl-step { --step-w: min(86vw, 380px); padding-right: 40px; --node: 64px; row-gap: 14px; } .tl-node svg { width: 26px; height: 26px; } }


/* Mission (We're on a mission). Pinned: the heading and one block of text on the left, the picture on the right, four steps (js/mission.js).
   Step 1 the experience (the chat), steps 2 to 4 the talent (the dots and the count). The text is one block at a time, in the same place:
   attention is in one spot, and the picture only supports it. The base styles are the static fallback (no pinning; every block shows in order
   with its own label; both chat replies; every dot lit and the count at 200). js adds .is-pinned when it can pin. */
.section.mission { overflow: clip; --ms-gap: var(--space-main); /* the gutter between the text and the picture */
  --t1: 1; --t2: 1; --t3: 1; --t4: 1; --g1: 1; --g2: 1; --ka: 1; --kb: 1; --flip: 1; --flip-out: 0; --flip-in: 1; --p: 1; }
.ms-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ms-gap); align-items: start; }
.ms-left { display: flex; flex-direction: column; gap: var(--space-small); min-width: 0; }
.ms-texts { display: grid; gap: var(--space-small); }
.ms-text { position: relative; }
.ms-kicker, .ms-kickers { margin: 0 0 10px; font-size: clamp(14px, 1.2vw, 19px); color: var(--ink-muted); }   /* the same style as the "designers" label beside the big number (.ms-unit) */
.ms-kickers { display: none; }
.ms-statement { margin: 0; font-size: clamp(22px, 2.05vw, 34px); font-weight: var(--w-body); line-height: 1.32; text-wrap: pretty; }
.ms-sub { margin-top: .75em; }   /* the second sentence is the same style as the first (it was a paler grey, which read as a very slight difference) */
.ms-stage { position: relative; display: flex; flex-direction: column; gap: var(--space-medium); min-width: 0; }
.ms-ticks { display: none; }

/* the chat (step 1) */
.ms-chat { display: flex; flex-direction: column; gap: 16px; width: min(100%, 660px); padding: clamp(24px, 2.4vw, 36px); background: var(--bg-raised); border: 1px solid var(--line); border-radius: 32px; }
.ms-msg { margin: 0; max-width: 88%; padding: 16px 20px; border-radius: 22px; font-size: clamp(18px, 1.45vw, 24px); line-height: 1.35; }
.ms-user { align-self: flex-end; background: var(--bg-tint); border-bottom-right-radius: 6px; }
.ms-agent { align-self: flex-start; background: var(--bg-tint); border-bottom-left-radius: 6px;
  max-width: min(calc(30ch + 40px), 100%); }   /* narrow on purpose: both the average and the great reply then run to three lines, so the bubble is the same height for each (measured: 3 and 3 from 28 to 32 characters wide at every desktop size) */
.ms-avg, .ms-great { display: block; }
.ms-avg { color: var(--ink-2); margin-bottom: 10px; }
.ms-avg::before, .ms-great::before { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.ms-avg::before { content: "Average"; }
.ms-great::before { content: "Great"; color: var(--accent); }

/* the dots and the count (steps 2 to 4): 200 dots, six lit and jittering at first (the small pool); the lit ones then light their neighbours
   (the people who are trained); then the rest light in a sweep. The number is how many are lit. */
.ms-viz { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 24px); width: min(100%, 660px); }
.ms-num { margin: 0; display: flex; align-items: baseline; gap: 14px; }
.ms-count { font-size: clamp(56px, 6vw, 104px); font-weight: var(--w-large); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ms-unit { font-size: clamp(14px, 1.2vw, 19px); color: var(--ink-muted); }
.ms-dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: clamp(4px, .5vw, 8px); width: 100%; }
.ms-dots:empty { display: none; }
.ms-dot { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 26%, transparent); transition: background-color .35s, border-color .35s, transform .35s var(--ease); }
.ms-dot.lit { background: var(--accent); border-color: var(--accent); }
.ms-dot.pool { animation: ms-jitter 2.6s ease-in-out infinite; animation-delay: var(--j, 0s); }
.ms-sweeping .ms-dot.pool { animation: none; }
@keyframes ms-jitter { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(2px, -1px); } 45% { transform: translate(-1px, 2px); } 70% { transform: translate(1px, 1px); } }

/* Pinned. The heading and the text hold on the left, the picture on the right, with a hairline between that is also the progress line. */
.mission.is-pinned { padding-top: 0; padding-bottom: 0; }
.mission.is-pinned .ms-pin { position: sticky; top: 0; height: 100vh; align-items: start; align-content: center; padding: var(--space-small) 0 var(--dock-clear); /* clear of the Ask dock */ }
.mission.is-pinned .ms-stage { display: grid; align-self: start; margin-left: calc(var(--ms-gap) / -2); padding-left: calc(var(--ms-gap) / 2 - 1px); border-left: 1px solid var(--line); }
.mission.is-pinned .ms-g { grid-area: 1 / 1; pointer-events: none; }
.mission.is-pinned .ms-g1 { opacity: var(--g1); transform: translateY(calc((1 - var(--g1)) * -14px)); }
.mission.is-pinned .ms-g2 { opacity: var(--g2); transform: translateY(calc((1 - var(--g2)) * 14px)); }
/* the text: one block at a time, in the same place, one fading out and then the next in. Their labels are one label in the same place (the chapter). */
.mission.is-pinned .ms-text { grid-area: 1 / 1; }
.mission.is-pinned .ms-text .ms-kicker { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* kept for screen readers, hidden here: the chapter label above is the visible one */
.mission.is-pinned .ms-kickers { display: grid; margin: 0; }
.mission.is-pinned .ms-ka, .mission.is-pinned .ms-kb { grid-area: 1 / 1; }
.mission.is-pinned .ms-ka { opacity: var(--ka); }
.mission.is-pinned .ms-kb { opacity: var(--kb); }
.mission.is-pinned .ms-copy { display: flex; flex-direction: column; gap: 10px; }
.mission.is-pinned .ms-t1 { opacity: var(--t1); transform: translateY(calc((1 - var(--t1)) * -12px)); }
.mission.is-pinned .ms-t2 { opacity: var(--t2); transform: translateY(calc((1 - var(--t2)) * 12px)); }
.mission.is-pinned .ms-t3 { opacity: var(--t3); transform: translateY(calc((1 - var(--t3)) * 12px)); }
.mission.is-pinned .ms-t4 { opacity: var(--t4); transform: translateY(calc((1 - var(--t4)) * 12px)); }
.mission.is-pinned .ms-texts { gap: 0; }
/* the chat flips from average to great: the bubble fills with the accent colour as the words rewrite (the labels Average and Great are the chat's own now) */
.mission.is-pinned .ms-agent { display: grid; background: color-mix(in srgb, var(--accent) calc(var(--flip) * 100%), var(--bg-tint)); }
.mission.is-pinned .ms-avg, .mission.is-pinned .ms-great { grid-area: 1 / 1; margin: 0; }
.mission.is-pinned .ms-avg { opacity: var(--flip-out); color: var(--ink); }   /* same ink as the user's line (the grey is for the static version, where both replies are stacked) */
.mission.is-pinned .ms-great { opacity: var(--flip-in); color: var(--on-dark); }
.mission.is-pinned .ms-great::before { color: rgb(255 255 255 / .7); }
/* the progress line: four ticks on the hairline between the columns, filling down as you scroll, and a small scroll cue that fades after the first scroll */
.mission.is-pinned .ms-ticks { display: flex; flex-direction: column; justify-content: space-between; position: absolute; left: -4px; top: 0; bottom: 0; width: 7px; }
.mission.is-pinned .ms-ticks::after { content: ""; position: absolute; left: 3px; top: 0; width: 1px; height: calc(var(--p) * 100%); background: var(--accent); }
.ms-ticks i { position: relative; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-muted); transition: background-color .3s, border-color .3s; }
.ms-ticks i.is-on { background: var(--accent); border-color: var(--accent); }

/* Tablets and phones (991px and narrower): one column, the whole block pins (heading, text, then the picture), the ticks a short row above the picture. */
@media (max-width: 991px) {
  .ms-pin { grid-template-columns: 1fr; }
  .ms-statement { font-size: clamp(20px, 5.2vw, 28px); }
  .mission.is-pinned .ms-pin { gap: 34px; align-content: center; padding-top: calc(var(--space-small) + 56px); }   /* the progress row has room above (this gap) and below (the stage's padding) */
  .mission.is-pinned .ms-stage { margin-left: 0; border-left: 0; padding-left: 0; padding-top: 42px; }
  .mission.is-pinned .ms-ticks { flex-direction: row; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 7px; }
  .mission.is-pinned .ms-ticks::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--line); }   /* the grey track the accent line fills (on a desktop it is the hairline between the columns) */
  .mission.is-pinned .ms-ticks::after { left: 0; top: 3px; width: calc(var(--p) * 100%); height: 1px; }
  .mission.is-pinned .scroll-cue--mission { display: none; }   /* no room for it on a phone-shaped layout */
  .ms-chat { padding: 20px; gap: 12px; border-radius: 26px; }
  .ms-msg { padding: 13px 16px; font-size: clamp(16px, 4.2vw, 20px); }
}
/* Short phones: the text, the label and the chat are a little tighter, so the longest step and the chat both fit above the bottom of the screen. */
@media (max-width: 991px) and (max-height: 700px) {
  .ms-statement { font-size: clamp(18px, 4.9vw, 24px); line-height: 1.28; }
  .mission.is-pinned .ms-pin { padding-top: calc(var(--space-small) + 44px); gap: 28px; }
  .mission.is-pinned .ms-stage { padding-top: 36px; }
  .ms-chat { padding: 16px; gap: 10px; }
}
/* Phones: the bubble takes the full width of the chat and the size follows the screen, so the average and the great reply both run to three lines (measured at 430, 414, 390, 375 and 360 wide; a 320 wide screen is too narrow for the great reply and gives it a fourth line). */
@media (max-width: 600px) {
  .ms-msg { font-size: clamp(13.5px, 3.9vw, 18px); padding: 12px 14px; }
  .ms-agent { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ms-dot.pool { animation: none; } }

/* Steps and principles */
.steps { counter-reset: s; }
.steps li { counter-increment: s; }
.steps .card::before { content: "0" counter(s); font-size: 14px; letter-spacing: .12em; color: var(--ink-muted); }
.principles { width: 100%; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.principles .n { font-size: clamp(28px, 2.08vw, 40px); font-weight: var(--w-large); color: var(--ink-2); }
.principles h3 { font-size: clamp(22px, 1.5vw, 30px); line-height: 1.25; }
/* Hover (devices with hover): the row fills with the accent colour and its text turns white. The fill reaches out past the row's lines into the page margin on each side (--bleed),
   so the number and the text stay exactly where they were, aligned with the lines, with room around them inside the fill. It grows from the left edge to the right (and goes
   back from the right to the left, fading as it goes) by moving a clip-path, not by scaling, so the corners keep their radius all the way: it is always a rounded rectangle, just a wider or narrower one. */
.principles { --bleed: clamp(12px, calc(var(--margin) * .4), 44px); }
.principles li { position: relative; isolation: isolate; }
.principles li::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -1px; left: calc(var(--bleed) * -1); right: calc(var(--bleed) * -1); background-color: var(--accent);
  clip-path: inset(0 100% 0 0 round 16px); opacity: 0; transition: clip-path .55s cubic-bezier(0.23, 1, 0.32, 1), opacity .38s ease; }   /* the transition here is the way OUT: it pulls back over .55 s and is gone by .38 s, a little before it has finished moving */
.principles .n, .principles h3, .principles p { transition: color .45s var(--ease); }
@media (hover: hover) {
  .principles li:hover::before { clip-path: inset(0 0 0 0 round 16px); opacity: 1; transition: clip-path .55s cubic-bezier(0.23, 1, 0.32, 1); }   /* the way IN has no fade: it is solid as it grows */
  .principles li:hover .n, .principles li:hover h3 { color: #fff; }
  .principles li:hover p { color: rgb(255 255 255 / .86); }
}
}
/* Containment, pulled up from How we think into How we engage */
.why-sub { font-size: clamp(28px, 2.2vw, 42px); font-weight: var(--w-sub); line-height: 1.15; }
@media (max-width: 767px) { .principles li { grid-template-columns: 52px 1fr; } .principles p { grid-column: 2; } }

/* Proof */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-small); width: 100%; margin-top: var(--space-small); }
.stat b { display: block; font-size: clamp(64px, 7vw, 120px); font-weight: var(--w-large); line-height: 1; letter-spacing: -.01em; }
.stat .pct { font-style: normal; font-size: .72em; }   /* the % is drawn at full cap height, so it looks bigger than the + and the lower-case "weeks" beside it; this brings it in line (baseline stays put) */
.stat span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 18px; font-weight: 500; }
.stat p { margin-top: 10px; color: var(--ink-2); font-size: 18px; max-width: 30ch; }
@media (max-width: 767px) { .stats { grid-template-columns: 1fr; } }

/* Clients and platforms */
/* Clients (Who we work with): a draggable logo carousel, ported from versa.agency's "Trusted by" (js/trusted.js).
   The logo nearest the centre is active: it scales up, shows its colour, and its sector and scope appear below.
   Base styles are the no-JS fallback (logos wrap, every client's text shows). js adds .is-enhanced. */
.tr { margin: 0 calc(var(--margin) * -1); --tile-w: clamp(170px, 15vw, 220px); }
.tr-wrap { padding: 36px var(--margin); }
.logo-track { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2vw, 32px); margin: 0; padding: 0; list-style: none; }
.logo-item { width: var(--tile-w); height: calc(var(--tile-w) * .46); display: grid; place-items: center; position: relative; padding: 0 18px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-image); color: var(--ink); }
/* Logos are sized by width (--w, a fraction of the tile set on each img), with the height following from the logo's shape.
   The fractions are chosen so every logo covers about the same visible area: wide wordmarks are capped by width, and a
   near-square one (Woolworths) is allowed to be narrower but taller. Percentage height limits proved unreliable on these SVGs. */
.logo-item .client-logo { position: relative; top: calc(var(--tile-w) * var(--dy, 0)); width: calc(var(--tile-w) * var(--w, .55)); height: auto; display: block; -webkit-user-drag: none; pointer-events: none; }
.tr-word { font-size: clamp(17px, 1.4vw, 22px); font-weight: var(--w-large); line-height: 1.15; text-align: center; pointer-events: none; }
.tr-text { position: absolute; left: 0; right: 0; top: calc(100% + 10px); font-size: 14px; line-height: 1.3; text-align: center; color: var(--ink-2); }
.tr-text b { display: block; font-weight: 400; color: var(--ink); }
.tr-kicker { margin: 0 0 8px; font-size: clamp(14px, 1.2vw, 19px); color: var(--ink-muted); }   /* the sector label: the same style as the "designers" label beside the big number in the mission (.ms-unit) */
.logo-description { margin: 0; color: var(--ink-2); text-wrap: balance; }
.logo-info { display: none; }

.tr.is-enhanced { overflow: hidden; }
.is-enhanced .tr-wrap { padding: 44px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
/* Gap between tiles. The centre tile is 1.2x and the others are scaled down, with negative side margins, so the visible space beside
   the centre tile is (gap - 10% of the tile width). Adding that 10% back here makes the space beside the centre tile a steady 16px at
   every width. (It was gap minus 10%: about 8px on desktop and an overlap of 1px on phones and tablets.) */
.is-enhanced .logo-track { gap: calc(var(--tile-w) * .1 + 16px); position: relative; flex-wrap: nowrap; justify-content: flex-start; width: max-content; margin: 0 auto; cursor: grab; will-change: transform; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.is-enhanced .logo-track:active { cursor: grabbing; }
.is-enhanced .logo-item { flex: none; cursor: pointer; transform-origin: center; transition: border-color .3s, box-shadow .3s;
  /* laid out at 1.2x; js scales the inactive ones down to 1/1.2 so the active one is at true size and sharp.
     The negative side margins keep the visible gap between resting tiles the same as the plain size would give. */
  width: calc(var(--tile-w) * 1.2); height: calc(var(--tile-w) * .552); margin-inline: calc(var(--tile-w) * -.1); padding: 0 22px; }
.is-enhanced .tr-text { display: none; }
.is-enhanced .tr-word { font-size: clamp(20px, 1.68vw, 26.4px); }
.is-enhanced .client-logo { top: calc(var(--tile-w) * 1.2 * var(--dy, 0)); width: calc(var(--tile-w) * 1.2 * var(--w, .55)); filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.is-enhanced .tr-word { color: var(--ink-muted); transition: color .3s; }
.is-enhanced .logo-item.is-active { box-shadow: 0 10px 30px rgb(10 7 30 / .10); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.is-enhanced .logo-item.is-active .client-logo { filter: none; opacity: 1; }
.is-enhanced .logo-item.is-active .tr-word { color: var(--ink); }
.is-enhanced .logo-info { display: block; min-height: 120px; padding: 0 var(--margin); text-align: center; max-width: calc(62ch + var(--margin) * 2); margin: 0 auto; }

.also { color: var(--ink-2); }
/* Platform marquee: two rows of tiles drifting in opposite directions, forever (js/marquee.js clones each row's tiles and sets --shift, the width of one set, so the loop is seamless).
   Full width of the screen, fading out at both edges. Slow and calm; it pauses off screen (data-paused), and holds still with reduced motion.
   Without the script it is a plain wrapped grid. */
.marquee { --gap: 20px; display: grid; gap: var(--gap); margin-inline: calc(var(--margin) * -1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-wrap: wrap; gap: var(--gap); padding-inline: var(--margin); }
.marquee.is-live .marquee-track { flex-wrap: nowrap; width: max-content; padding-inline: 0; animation: marquee-run var(--dur, 90s) linear infinite; will-change: transform; }
.marquee.is-live .marquee-row--rev .marquee-track { animation-direction: reverse; --dur: 105s; }   /* a different pace, so the rows never line up */
.marquee.is-live .marquee-track > .logo { margin-right: 0; }
.marquee[data-paused] .marquee-track { animation-play-state: paused; }
@keyframes marquee-run { from { transform: translateX(0); } to { transform: translateX(calc(var(--shift, 1000px) * -1)); } }
@media (prefers-reduced-motion: reduce) { .marquee.is-live .marquee-track { animation: none; } }
@media (max-width: 767px) { .marquee { --gap: 14px; } }
.logo { flex: none; width: 200px; height: 90px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); font-size: 16px; }
/* A symbol with the name beside it, for the platforms that have no wordmark file (Amazon Connect, Pipecat) */
.logo--mark { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; }
.logo--mark img { flex: none; width: calc(var(--w) * 100%); max-height: 46%; }
.logo--mark span { color: var(--ink-2); font-size: 15px; font-weight: 400; white-space: nowrap; }
@media (max-width: 767px) { .logo--mark { gap: 6px; padding: 0 10px; } .logo--mark span { font-size: 13px; } }   /* the tiles are 150px wide on a phone */
@media (max-width: 767px) { .logo { width: 150px; height: 76px; } }
.logo img { position: relative; top: var(--dy, 0px); display: block; width: calc(var(--w, .55) * 100%); height: auto; max-height: 56%; object-fit: contain; filter: brightness(0); opacity: .78; }   /* the logos are all dark single-colour files; brightness(0) makes them one black, and the opacity matches the text tiles' grey */

/* Contact and footer */
/* Contact: details and one form for three actions (js/enquiry.js). Bottom padding keeps room for the Ask dock when it is on. */
html[data-ask="on"] .contact { padding-bottom: calc(var(--space-main) + 68px + var(--space-medium)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-main); align-items: start; }
.contact-details { list-style: none; margin: var(--space-small) 0 0; padding: 0; display: grid; gap: 18px; }
.contact-details li { display: grid; grid-template-columns: 65px 1fr; gap: 16px; align-items: center; }
.contact-icon { width: 65px; height: 65px; display: block; object-fit: contain; filter: drop-shadow(4px 9px 6px rgb(20 12 70 / .3)); }   /* the 3D icons (assets/3d-icon-*.avif, white, 260px square, four times their size on screen) */
.contact-details a { justify-self: start; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }   /* justify-self: the underline runs under the text only, not the grid cell */
.contact-details address { font-style: normal; }
.enquiry { display: flex; flex-direction: column; gap: 18px; overflow-anchor: none; }   /* as tall as its content; js/enquiry.js animates the change between choices */
.enquiry [hidden] { display: none; }
.enq-actions .btn { overflow: hidden; }   /* while the button's width follows the retyped label */
.enq-choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.enq-choice legend { padding: 0; margin-bottom: 12px; font-size: 18px; color: var(--ink); }
.enq-choice label { position: relative; }
.enq-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.enq-choice span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); border-radius: var(--radius-button); font-size: 16px; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.enq-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.enq-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.enq-field { display: block; }
.enq-field input, .enq-field textarea { font: inherit; font-size: 18px; color: var(--ink); background: rgb(255 255 255 / .07); border: 1px solid var(--line); border-radius: var(--radius-round); padding: 18px 28px; width: 100%; transition: border-color .2s var(--ease); }
.enq-field textarea { display: block; border-radius: 28px; resize: vertical; min-height: 150px; }
.enq-field input::placeholder, .enq-field textarea::placeholder { color: var(--ink); opacity: .8; }
.enq-field input:focus, .enq-field textarea:focus { outline: none; border-color: var(--accent); }
.enq-check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.enq-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #1b1450; cursor: pointer; }
.enq-note { margin: 0; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.enq-trap { position: absolute; left: -9999px; }
.enq-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.enq-status { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }

/* Calls to action: the pair of buttons repeated around the page, pointing at the form */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero .cta-row { justify-content: center; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: var(--space-medium); padding-top: 40px; border-top: 1px solid var(--line); }   /* 40px above the line of text, the same in both bands */
.cta-band p { margin: 0; }
@media (max-width: 767px) { .cta-band { justify-content: center; text-align: center; } .cta-band .cta-row { justify-content: center; } }   /* on a phone the line and the pair stack, so both sit in the middle (both bands: under How we think and in Voice at scale) */
.footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding: var(--space-small) var(--margin); color: var(--ink-2); font-size: 16px; }
.footer .wordmark { font-size: 22px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }   /* the copyright, privacy and cookie settings sit together; they stack on a phone (below) */
@media (max-width: 767px) { .footer { flex-direction: column; align-items: center; text-align: center; padding-bottom: calc(var(--space-small) + 48px + env(safe-area-inset-bottom, 0px)); } .footer-legal { flex-direction: column; align-items: center; gap: 10px; } }
.footer .wordmark svg { width: 120px; }

/* Hover: the card grows a touch and reverses to dark glass with white text (the tokens are re-pointed, so the text, numbers and counters inside follow) */
@media (hover: hover) {
  .card:hover, html[data-shapes="on"] .card:hover { transform: scale(1.02); background: rgb(10 7 30 / .78); border-color: rgb(255 255 255 / .16); color: #fff;
    --ink: #fff; --ink-2: rgb(255 255 255 / .86); --ink-muted: rgb(255 255 255 / .7); --line: rgb(255 255 255 / .16); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}

/* Background shapes (experiment, js/shapes.js, ?shapes=on): the canvas is fixed behind the content (also z-index 2, but the canvas comes first) and above the gradients and the grain,
   and the cards turn to glass so the shapes show through them and blur as they pass behind. */
.shapes-canvas { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; z-index: 2; pointer-events: none; }   /* above the grain (z-index 1), so the shapes are clean; the page's content is also z-index 2 but later in the page, so it is above the shapes */
html[data-shapes="on"] .card { background: rgb(255 255 255 / .3); border: 1px solid rgb(255 255 255 / .6); -webkit-backdrop-filter: blur(10px) saturate(2); backdrop-filter: blur(18px) saturate(1.25); box-shadow: 0 10px 40px rgb(92 88 210 / .08); }

/* Scroll reveals (js/reveal.js): a quiet fade and a 14px rise, once, the first time something comes into view. The hidden state needs .js-reveal on <html>,
   which the inline script in index.html only sets when the reveal can run (so never with reduced motion). It uses the individual `translate` property so it does not
   fight the cards' hover `transform`, and the animation is a one-off, so the cards' own transitions are untouched. Same easing as the header and dock. */
.js-reveal [data-reveal]:not(.is-in) { opacity: 0; translate: 0 14px; }
.js-reveal [data-reveal].is-in { animation: reveal-in .5s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: var(--rd, 0ms); }
.js-reveal [data-reveal].is-in.is-done { animation: none; }
@keyframes reveal-in { from { opacity: 0; translate: 0 14px; } }

/* Gradient mesh (.mesh): slow, soft blobs of warm colour (peach, rose, a little ice-blue) behind a section, the complement of the violet. Each blob is one big soft oval (a radial gradient that
   fades to nothing), tilted and drifting very slowly. (A twirling version with two layers of orbiting lobes, and an earlier conic one, were tried on 4 Nov 2026 and dropped: Ash preferred the plain blobs.)
   It fills the same box as the section's gradient (::before) where there is one (the glow sections) and the section otherwise, sits above the gradient and below the grain
   and the content, and fades out at the top and bottom with a mask so it has no edges. Only transform moves. It pauses when off screen (js/mesh.js) and shows two blobs, not three, on a phone.
   Per blob: --o strength, --t seconds for one drift, --dx and --dy how far it drifts, --r its tilt, --c its colour, --l and --y where it sits. --k scales a whole mesh's strength (lower on the pale sections).
   ?mesh=off hides them all. */
.mesh { --k: 1; position: absolute; z-index: 0; left: 0; right: 0; top: calc(var(--ov-top, var(--ov, 0px)) * -1); bottom: calc(var(--ov-bottom, var(--ov, 0px)) * -1); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 62%, transparent 100%); }
.mesh i { position: absolute; left: var(--l); top: var(--y); width: 64vw; height: 46vw; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: calc(var(--o, .4) * var(--k)); will-change: transform;
  animation: mesh-drift var(--t, 60s) ease-in-out infinite alternate; animation-delay: calc(var(--t, 60s) * -0.4); }
.mesh i:nth-child(1) { --c: rgb(255 170 135); --o: .5;  --t: 58s; --dx: 7vw;  --dy: -4vw; --r: 14deg;  --l: 44%;  --y: 44%; }    /* peach, low right (under the knot) */
.mesh i:nth-child(2) { --c: rgb(255 105 160); --o: .42; --t: 71s; --dx: -6vw; --dy: 5vw;  --r: -18deg; --l: -16%; --y: 50%; }    /* rose, low left */
.mesh i:nth-child(3) { --c: rgb(125 165 255); --o: .32; --t: 83s; --dx: 5vw;  --dy: 4vw;  --r: 10deg;  --l: 30%;  --y: 8%;  }    /* ice-blue, high, kept faint */
@keyframes mesh-drift {
  from { transform: translate3d(calc(var(--dx) * -1), calc(var(--dy) * -1), 0) rotate(calc(var(--r) * -1)) scale(.94); }
  to   { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r)) scale(1.08); }
}
/* Variants. The pale sections get a fainter mesh (--k); the others sit in different places, so the page does not repeat itself. */
.mesh--cool i:nth-child(1) { --c: rgb(125 165 255); --o: .42; --l: -10%; --y: 40%; }
.mesh--cool i:nth-child(2) { --c: rgb(255 105 160); --o: .34; --l: 52%; --y: 52%; }
.mesh--cool i:nth-child(3) { --c: rgb(255 170 135); --o: .3; --l: 24%; --y: 4%; }
.mesh--light { --k: .5; }
.mesh--flip i:nth-child(1) { --l: -14%; --y: 46%; }
.mesh--flip i:nth-child(2) { --l: 48%; --y: 40%; }
.mesh--flip i:nth-child(3) { --l: 56%; --y: 6%; }
.mesh:not([data-live]) i { animation-play-state: paused; }
@media (max-width: 767px) { .mesh i { width: 90vw; height: 65vw; } .mesh i:nth-child(3) { display: none; } }
html[data-mesh="off"] .mesh { display: none; }
/* ?mesh=fold (js/fold.js): every mesh's blobs give way to a canvas, drawn by the shader, that fills the same box (the fade mask still applies). If the shader cannot run, .has-fold is never set and the blobs stay. */
.mesh canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mesh.has-fold i { display: none; }

/* Diagnostics (js/diag.js, ?grain=off and ?glass=off): for finding what slows a phone down. Not used otherwise. */
html[data-diag-grain="off"] .section::after, html[data-diag-grain="off"] .footer::after { display: none; }
html[data-diag-glass="off"] *, html[data-diag-glass="off"] *::before, html[data-diag-glass="off"] *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Hero text animation (js/hero.js): the heading, body and buttons are hidden until the script has split the text and is ready to bring it in. .js-hero is only set when it can run
   (not with reduced motion), and is taken off when the animation ends or after 3 s. */
.js-hero .hero h1, .js-hero .hero .hero-sub, .js-hero .hero .cta-row > *, .js-hero .hero .door { visibility: hidden; }

/* What we do: hovering one practice card covers the other with a peek (js/practices.js). The covered card fades away (its background, border and text), and in its place two pictures and a small
   feature card come in one after the other, then drift a little with the mouse. Only where there is a real hover and room for two columns; elsewhere the peeks are not there at all.
   The pictures are placeholders (gradient tiles): to use a photo, set --src on the element. The peeks are decoration, so they hold nothing that is not already on the page. */
.card { position: relative; }
.peek { display: none; }
@media (hover: hover) and (min-width: 768px) {
  .peek { display: block; position: absolute; inset: 0; pointer-events: none; container-type: inline-size; }
  .card > :not(.peek) { transition: opacity .3s var(--ease) .12s; }                                    /* back in, a beat after the peek has gone */
  .card.is-covered > :not(.peek) { opacity: 0; transition-delay: 0s; }
  html .card.is-covered { background-color: transparent !important; border-color: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transform: none !important; }
  .peek > * { position: absolute; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s ease, transform .3s ease;
    translate: calc(var(--px, 0) * var(--d) * -1px) calc(var(--py, 0) * var(--d) * -1px); }            /* the drift: opposite to the mouse, more for the ones in front (--d, in px) */
  .card.is-covered .peek > * { opacity: 1; transform: none; transition: opacity .55s ease calc(var(--i) * .11s + .18s), transform .75s cubic-bezier(0.23, 1, 0.32, 1) calc(var(--i) * .11s + .18s); }
  .peek-img { border-radius: var(--radius-image); background: var(--src, none) center / cover no-repeat, linear-gradient(145deg, #d9d3fb, #8f8df0 55%, #f3c9ca); box-shadow: 0 18px 40px rgb(30 24 90 / .18); }
  .peek-a { top: 4%; left: 22%; width: 35%; aspect-ratio: 4 / 3; background-image: var(--src, none), linear-gradient(145deg, #f0d4cc, #c9b8f5 60%, #8f8df0); }
  .peek-b { top: calc(4% + 26.25cqw - 50px); left: 1%; width: 40%; aspect-ratio: 5 / 4;   /* hangs from picture A (35cqw wide, 4:3, so 26.25cqw tall) and overlaps it by 50px at any card height */
   background-image: var(--src, none), linear-gradient(145deg, #8f8df0, #c9c3f8 55%, #f7e3d4); }
  .peek-feature { right: 2%; bottom: 8%; width: 40%; min-height: 40%; box-sizing: border-box; padding: clamp(16px, 1.6vw, 28px); border-radius: var(--radius-image); background: #1b1450; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 6px; box-shadow: 0 18px 40px rgb(30 24 90 / .22); }
  .peek-feature b { font-size: clamp(40px, 3.8vw, 64px); font-weight: var(--w-large); line-height: 1; letter-spacing: -.01em; }
  .peek-feature span { font-size: clamp(14px, 1.15vw, 18px); line-height: 1.3; color: rgb(255 255 255 / .86); }
}
@media (prefers-reduced-motion: reduce) { .peek > * { translate: none; } }

/* Trial: a looping video fills one of the Conversational AI peek's pictures. */
@media (hover: hover) and (min-width: 768px) {
  .peek-img:has(.peek-video) { overflow: hidden; }
  .peek-video { display: block; width: 100%; height: 100%; object-fit: cover; }
}

/* The Conversational AI peek's feature card: a tiny scripted example, played once each time the peek appears (the animations only exist under .is-covered, so they restart every time).
   Times below are from the moment of hovering: the card is in at about .4 s, then the customer's line, the typing dots, the reply and the "Resolved" chip, each a beat apart, and it holds.
   The reply and the dots share one grid cell, so nothing moves when one gives way to the other. Reduced motion shows the finished state. */
@media (hover: hover) and (min-width: 768px) {
  .peek-chat { width: 50%; min-height: 0; right: 2%; bottom: 4%; align-items: stretch; gap: 8px; padding: clamp(12px, 1.2vw, 18px); }
  .peek-chat > :not(.pc-reply) { margin: 0; opacity: 0; }   /* the reply cell is not hidden itself: its two children take turns */
  .pc-reply, .pc-reply > * { margin: 0; }
  .pc-agent, .pc-typing { opacity: 0; }
  .pc-msg { max-width: 92%; padding: 8px 11px; border-radius: 14px; font-size: clamp(12px, .95vw, 14px); line-height: 1.3; color: #fff; }
  .pc-user { align-self: flex-end; background: rgb(255 255 255 / .16); border-bottom-right-radius: 4px; }
  .pc-reply { display: grid; }
  .pc-reply > * { grid-area: 1 / 1; }
  .pc-agent { justify-self: start; background: #5c58d2; border-bottom-left-radius: 4px; }
  .pc-typing { justify-self: start; align-self: start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; border-bottom-left-radius: 4px; background: rgb(255 255 255 / .14); }
  .pc-typing i { width: 5px; height: 5px; border-radius: 50%; background: rgb(255 255 255 / .75); animation: pc-dot .9s ease-in-out infinite; }
  .pc-typing i:nth-child(2) { animation-delay: .15s; } .pc-typing i:nth-child(3) { animation-delay: .3s; }
  .pc-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgb(255 255 255 / .14); font-size: 11.5px; line-height: 1; color: rgb(255 255 255 / .9); }
  .pc-status svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .card.is-shown .pc-user   { animation: pc-in .55s cubic-bezier(0.23, 1, 0.32, 1) .95s both; }
  .card.is-shown .pc-typing { animation: pc-typing 1s ease 1.75s both; }
  .card.is-shown .pc-agent  { animation: pc-in .6s cubic-bezier(0.23, 1, 0.32, 1) 2.55s both; }
  .card.is-shown .pc-status { animation: pc-in .5s cubic-bezier(0.23, 1, 0.32, 1) 3.4s both; }
}
@keyframes pc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pc-typing { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pc-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .peek-chat > *, .pc-reply > .pc-agent { opacity: 1 !important; } .pc-typing { display: none; } }

/* Scroll indicator (hero and mission): a mouse-shaped outline with a wheel that draws down from the top of it, again and again. It sits in the middle, near the bottom of the section.
   Hero: it comes in once the hero's text animation has finished (js-hero is taken off then), and fades as you scroll (--fade, set by js/scroll-cue.js).
   Mission: while the section is pinned it fades in after a few seconds without scrolling and out as soon as they scroll again (.is-on, js/mission.js). Both sit at the left, on the page's margin. Reduced motion: the wheel is drawn and still. */
.scroll-cue { --w: 22px; --h: 36px; display: block; position: absolute; z-index: 2; width: var(--w); height: var(--h); box-sizing: border-box; border: 1.5px solid currentColor; border-radius: calc(var(--w) / 2);
  pointer-events: none; color: var(--ink-2); }
.scroll-cue i { position: absolute; left: 50%; top: 6px; width: 2px; height: 9px; margin-left: -1px; border-radius: 1px; background: currentColor; transform-origin: top; animation: scroll-wheel 2.2s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
@keyframes scroll-wheel { 0% { transform: scaleY(0); opacity: 1; } 50% { transform: scaleY(1); opacity: 1; } 80%, 100% { transform: scaleY(1); opacity: 0; } }
.scroll-cue--hero { left: var(--margin); bottom: clamp(20px, 4.5svh, 44px); opacity: calc(var(--fade, 1) * var(--show, 1)); transition: opacity .9s ease .15s; }
.js-hero .hero .scroll-cue--hero { --show: 0; }
.scroll-cue--mission { display: none; }
.mission.is-pinned .scroll-cue--mission { display: block; left: 0; bottom: calc(var(--dock-clear) - 6px); opacity: 0; transition: opacity .35s ease; }
.mission.is-pinned .scroll-cue--mission.is-on { opacity: 1; transition: opacity 1s ease; }   /* in slowly, out quickly */
@media (max-width: 991px) { .mission.is-pinned .scroll-cue--mission { display: none; } }   /* the stacked (phone and tablet) layout has no room for it, as before */
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; transform: none; opacity: 1; } }

/* Land small, expand through outcomes: an arrow in a circle between each pair of cards, so the four read as steps in order. The arrows are inside the first three cards and sit in the gap to the right
   of each (centred on it). With two columns (a tablet) only the left-hand cards of each row have one (1 to 2, 3 to 4: the step from the end of a row to the start of the next has no arrow);
   with one column (a phone) they sit below the card and point down. */
.step-arrow { display: grid; place-items: center; position: absolute; z-index: 3; top: 50%; right: calc(var(--space-small) / -2 - 22px); translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--accent); pointer-events: none; }
.step-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Always above the cards: each card's arrow hangs over the next card, and a later card would paint over it, so the cards are stacked in reverse (the first on top), and the arrow then sits above the next one */
.steps > li { z-index: 1; }
.steps > li:nth-child(1) { z-index: 4; } .steps > li:nth-child(2) { z-index: 3; } .steps > li:nth-child(3) { z-index: 2; }
@media (min-width: 768px) and (max-width: 991px) { .steps > li:nth-child(2) > .step-arrow { display: none; } }
@media (max-width: 767px) {
  .step-arrow { top: auto; right: 50%; bottom: calc(var(--space-small) / -2 - 22px); translate: 50% 0; }
  .step-arrow svg { transform: rotate(90deg); }
}

/* Cookie consent (js/consent.js): a dark glass bar centred at the bottom of the screen, the text on the left and the two buttons on the right (stacked on a phone). Both buttons look the same,
   so neither choice is pushed. It fades in a beat after the page settles. "Cookie settings" in the footer reopens it. */
.consent { position: fixed; z-index: 30; left: 0; right: 0; margin-inline: auto; bottom: 24px; width: min(760px, calc(100vw - 32px)); padding: 16px 16px 16px 26px; border-radius: 999px; color: #fff;
  display: flex; align-items: center; gap: 12px 28px;
  background: rgb(10 7 30 / .78); border: 1px solid var(--line-on-dark); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.consent.is-in { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; font-size: 15px; line-height: 1.4; color: #fff; }
.consent a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent .btn-small { justify-content: center; background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.consent .btn-small:hover { background: #fff; color: var(--bg-dark); border-color: #fff; }
@media (max-width: 767px) { .consent { bottom: 16px; width: calc(100vw - 32px); flex-direction: column; align-items: stretch; border-radius: 24px; padding: 18px 18px 16px; }
  .consent .consent-actions .btn-small { flex: 1; }
  .consent p br { display: none; } }   /* one flowing paragraph on a phone (the break between the two sentences stays on a wider screen) */
@media (prefers-reduced-motion: reduce) { .consent { transition: none; transform: none; } }
button.link { border: 0; background-color: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0 0 2px; }

/* Underlined links (.link, the contact details, the links in the consent bar and the policy): on hover or focus the line draws off to the right, then immediately draws back on from the left. */
@keyframes underline-redraw {
  0%      { background-size: 100% 1px; background-position: 100% 100%; }
  50%     { background-size: 0 1px;    background-position: 100% 100%; }
  50.01%  { background-size: 0 1px;    background-position: 0 100%; }
  100%    { background-size: 100% 1px; background-position: 0 100%; }
}
.link:hover, .link:focus-visible, .contact-details a:hover, .contact-details a:focus-visible, .consent a:hover, .consent a:focus-visible { animation: underline-redraw .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .link:hover, .link:focus-visible, .contact-details a:hover, .contact-details a:focus-visible, .consent a:hover, .consent a:focus-visible { animation: none; } }

/* The two scripted peeks (the chat and the search tile) play from .is-shown, not .is-covered: js/practices.js keeps .is-shown for a moment after the pointer leaves, so the picture does not snap back to its first frame while the peek is still fading out. */
/* The agentic search tile (the second picture when Agentic-first interfaces is hovered): a website that rearranges around a request. It starts as a small site (a search box and a few content tiles).
   The placeholder "How can I help?" is replaced by a typed request, the tiles fold away and the result takes their place. Played once each time the peek appears (the timings sit a beat after the
   tile itself arrives). CSS only, decoration. Each row folds with grid-template-rows (1fr to 0fr), so the height animates without being measured; the spacing lives inside the rows so it folds with them. */
@media (hover: hover) and (min-width: 768px) {
  .peek-search { background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: clamp(12px, 1.2vw, 18px); box-sizing: border-box; overflow: hidden; }
  .ps-row { display: grid; grid-template-rows: 1fr; }
  .ps-row > div { min-height: 0; overflow: hidden; }
  .ps-field { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding: 10px 12px 10px 14px; border-radius: 999px; background: rgb(255 255 255 / .88); box-shadow: 0 6px 18px rgb(30 24 90 / .12); font-size: clamp(12px, .95vw, 14px); line-height: 1.2; color: #1b1450; }
  .ps-field svg { grid-column: 2; grid-row: 1; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .55; }
  .ps-hint, .ps-typed { grid-column: 1; grid-row: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* on a narrow window the line is cut with an ellipsis, not allowed to spill */
  .ps-hint { color: #6b6a85; }
  .ps-typed { clip-path: inset(0 100% 0 0); }
  .ps-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 10px; }
  .ps-tiles i { height: clamp(30px, 3vw, 44px); border-radius: 8px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
  .ps-result { grid-template-rows: 0fr; opacity: 0; }
  .ps-card { margin-top: 10px; padding: 10px 12px 12px; border-radius: 14px; background: #1b1450; color: #fff; }
  .ps-title { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; font-size: clamp(11px, .9vw, 13px); line-height: 1; white-space: nowrap; }
  .ps-title svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .ps-card i { display: block; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .2); }
  .ps-card i + i { margin-top: 6px; } .ps-card i:nth-of-type(2) { width: 84%; } .ps-card i:nth-of-type(3) { width: 58%; }
  .ps-field .ps-cursor { position: absolute; right: 52px; top: 50%; width: 15px; height: 19px; margin-top: -2px; opacity: 0; fill: #000; stroke: none; pointer-events: none; }
  .card.is-shown .ps-cursor { animation: ps-cursor 1.3s linear .8s both; }     /* a pointer swoops in from outside the tile (the tile clips it) and clicks the field (at about 1.8s)... */
  .card.is-shown .ps-field  { animation: ps-focus .3s ease 1.8s both; }                                  /* ...which takes focus, then the request is typed */
  .card.is-shown .ps-hint   { animation: ps-out .35s ease 1.85s both; }
  .card.is-shown .ps-typed  { animation: ps-type 1.4s steps(17, end) 2s both; }
  .card.is-shown .ps-fold   { animation: ps-fold .8s cubic-bezier(0.65, 0, 0.35, 1) 3.75s both; }      /* the tiles fold away... */
  .card.is-shown .ps-result { animation: ps-grow .8s cubic-bezier(0.65, 0, 0.35, 1) 3.95s both; }      /* ...and the result takes the room */
}
@keyframes ps-cursor {
  0% { opacity: 1; transform: translate(130px, 170px); animation-timing-function: cubic-bezier(0.4, 0, 0.7, 1); }
  28% { transform: translate(78px, 46px); animation-timing-function: cubic-bezier(0.2, 0.55, 0.3, 1); }
  68% { transform: none; }
  76% { transform: scale(.84); }
  84% { opacity: 1; transform: none; }
  92% { opacity: 1; }
  100% { opacity: 0; transform: none; }
}
@keyframes ps-focus { from { box-shadow: 0 6px 18px rgb(30 24 90 / .12), 0 0 0 0 #5c58d2; } to { box-shadow: 0 6px 18px rgb(30 24 90 / .12), 0 0 0 2px #5c58d2; } }
@keyframes ps-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ps-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ps-fold { from { grid-template-rows: 1fr; opacity: 1; } to { grid-template-rows: 0fr; opacity: 0; } }
@keyframes ps-grow { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ps-hint, .ps-fold, .ps-cursor { display: none; } .ps-typed { clip-path: none; } .ps-result { grid-template-rows: 1fr; opacity: 1; } }

/* The voice tile (the first picture when Conversational AI is hovered): a circle is tapped, rings out once and becomes a voice waveform. No words; white on the gradient. Plays from .is-shown like the others. */
@media (hover: hover) and (min-width: 768px) {
  .peek-voice { --pv: clamp(44px, 4.2vw, 60px); display: grid; place-items: center; }
  .pv-btn { position: relative; width: var(--pv); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgb(255 255 255 / .28); border: 1.5px solid rgb(255 255 255 / .85); box-sizing: border-box; }
  .pv-mic { width: 44%; height: 44%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .pv-wave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; opacity: 0; }
  .pv-wave i { display: block; width: 3px; border-radius: 2px; background: #5c58d2; }
  .pv-wave i:nth-child(1) { height: 16%; } .pv-wave i:nth-child(2) { height: 30%; } .pv-wave i:nth-child(3) { height: 44%; } .pv-wave i:nth-child(4) { height: 28%; } .pv-wave i:nth-child(5) { height: 14%; }
  .pv-ring { position: absolute; left: 50%; top: 50%; width: var(--pv); aspect-ratio: 1; margin: calc(var(--pv) / -2) 0 0 calc(var(--pv) / -2); border-radius: 50%; border: 2px solid #fff; opacity: 0; box-sizing: border-box; }
  .card.is-shown .pv-btn  { animation: pv-tap .5s ease 1.3s both; }                  /* the circle is there as the tile arrives (no entrance of its own), then it is tapped */
  .card.is-shown .pv-ring { animation: pv-ring .9s ease-out 1.3s both; }
  .card.is-shown .pv-mic  { animation: ps-out .25s ease 1.35s both; }
  .card.is-shown .pv-wave { animation: pv-show .3s ease 1.4s both; }
  .card.is-shown .pv-wave i { animation: pv-bar 1.4s ease-in-out 1.8s infinite; }
  .card.is-shown .pv-wave i:nth-child(2) { animation-delay: 1.95s; } .card.is-shown .pv-wave i:nth-child(3) { animation-delay: 2.1s; } .card.is-shown .pv-wave i:nth-child(4) { animation-delay: 1.85s; } .card.is-shown .pv-wave i:nth-child(5) { animation-delay: 2s; }
}
@keyframes pv-tap { 0% { transform: none; } 35% { transform: scale(.92); } 100% { transform: none; background: #fff; border-color: #fff; } }
@keyframes pv-ring { 0% { opacity: 0; transform: scale(.8); } 15% { opacity: .9; } 100% { opacity: 0; transform: scale(2); } }
@keyframes pv-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes pv-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .pv-btn { background: #fff; border-color: #fff; } .pv-mic, .pv-ring { display: none; } .pv-wave { opacity: 1; } }

/* The agent tile (the first picture when Agentic-first interfaces is hovered, beside the search tile): a flat orb with a sparkle, the same circle as the voice tile. As the request is sent (3.4s, when the typing ends) its sparkle
   turns (two small ones twinkle inside it from the start); then it gives way to a three-stop route that draws itself as the "ready" card lands in the search tile. No words, no glow; white on the gradient. Plays from .is-shown. */
@media (hover: hover) and (min-width: 768px) {
  .peek-agent { --pv: clamp(44px, 4.2vw, 60px); display: grid; place-items: center; }
  .peek-agent > * { grid-area: 1 / 1; }
  .pa-orb { width: var(--pv); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgb(255 255 255 / .28); border: 1.5px solid rgb(255 255 255 / .85); box-sizing: border-box; }
  .pa-orb { position: relative; }
  .pa-spark { display: grid; place-items: center; width: 50%; height: 50%; }
  .pa-spark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .pa-twin { position: absolute; width: 24%; height: 24%; fill: #fff; stroke: none; opacity: 0; }
  .pa-t1 { top: 15%; right: 21%; } .pa-t2 { bottom: 15%; left: 21%; }
  .pa-route { width: 62%; height: auto; overflow: visible; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .pa-line { stroke-dasharray: 1 2; stroke-dashoffset: 1; }   /* 1 2, not 1: with a gap of 1 a zero-length dash starts at the end of the line and the round cap draws a stray dot there */
  .pa-stop { fill: #fff; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
  .pa-c path { fill: none; stroke: #5c58d2; stroke-width: 2.2; }
  .card.is-shown .pa-spark svg { animation: pa-pulse 2.2s ease-in-out infinite; }                      /* a slow, small pulse while it waits for the request */
  .card.is-shown .pa-spark { animation: pa-turn .9s cubic-bezier(0.45, 0, 0.3, 1) 3.4s both; }          /* the request is sent: the sparkle makes a quarter turn (it looks the same, so it is seamless) */
  .card.is-shown .pa-t1 { animation: pa-twinkle 1.8s ease-in-out .3s infinite; }                          /* two small ones twinkle inside the circle from the start... */
  .card.is-shown .pa-t2 { animation: pa-twinkle 1.8s ease-in-out 1.2s infinite; }
  .card.is-shown .pa-orb   { animation: pa-away .3s ease 4.15s both; }
  .card.is-shown .pa-line  { animation: pa-draw .75s cubic-bezier(0.45, 0, 0.3, 1) 4.25s both; }
  .card.is-shown .pa-a { animation: pa-pop .3s cubic-bezier(0.23, 1, 0.32, 1) 4.25s both; }
  .card.is-shown .pa-b { animation: pa-pop .3s cubic-bezier(0.23, 1, 0.32, 1) 4.5s both; }
  .card.is-shown .pa-c { animation: pa-pop .35s cubic-bezier(0.23, 1, 0.32, 1) 4.9s both; }
}
@keyframes pa-turn { from { transform: rotate(0deg); } to { transform: rotate(90deg); } }
@keyframes pa-twinkle { 0% { opacity: 0; transform: scale(.3); } 45% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.3); } }
@keyframes pa-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.86); } }
@keyframes pa-away { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.8); } }
@keyframes pa-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pa-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pa-orb { display: none; } .pa-line { stroke-dashoffset: 0; } .pa-stop { opacity: 1; } }
