@font-face { font-family: 'Atkinson Hyperlegible Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/AtkinsonHyperlegibleMono_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/AtkinsonHyperlegibleMono_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/AtkinsonHyperlegibleNext_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/AtkinsonHyperlegibleNext_400Regular_Italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/AtkinsonHyperlegibleNext_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/AtkinsonHyperlegibleNext_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/AtkinsonHyperlegibleNext_700Bold.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Lexend_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/Lexend_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Lexend_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Lexend_700Bold.woff2') format('woff2'); }
:root {
  --red: #FE2730; --plum: #800A67; --indigo: #220483; --deep: #160259; --night: #0F0640;
  --ink: #16141F; --grey: #6B6880; --line: #E4E1F0; --band: #F3F1FA; --tint: #ECEAF8; --plasma: #FBFAFE; --white: #fff;
  --good: #1F9D6E; --amber: #9A4A00; --amber-band: #FFF2DE;
  --flow: linear-gradient(90deg, #FE2730 0%, #800A67 55%, #220483 100%);
  --display: 'Lexend', system-ui, sans-serif; --text: 'Atkinson Hyperlegible Next', system-ui, sans-serif; --mono: 'Atkinson Hyperlegible Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--text); color: var(--ink); background: var(--plasma); }
h1, h2, h3 { font-family: var(--display); color: var(--deep); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
a { color: var(--indigo); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font: 500 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--plum); }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 36ch; }
.muted { color: var(--grey); }

/* Buttons: indigo for the main action; the flow's gradient kept for one moment, the closing call. */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font: 600 16px var(--display); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.btn.primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -14px rgba(34, 4, 131, .8); }
.btn.primary:hover { background: var(--deep); transform: translateY(-1px); box-shadow: inset 0 -3px 0 var(--red), 0 14px 28px -14px rgba(34, 4, 131, .9); }
.btn.second { background: #fff; color: var(--indigo); box-shadow: inset 0 0 0 1.5px var(--indigo); }
.btn.second:hover { background: var(--tint); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 254, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 76px; }
.bar .logo svg { height: 42px; width: auto; display: block; }
.bar nav { display: flex; gap: 26px; margin-left: auto; }
.bar nav a { font: 500 15px var(--display); color: var(--ink); text-decoration: none; position: relative; }
.bar nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.bar nav a:hover::after { transform: scaleX(1); }
.bar .signin { font: 500 15px var(--display); color: var(--indigo); text-decoration: none; }
.bar .btn { padding: 11px 18px; font-size: 15px; }
.menu { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.menu span, .menu span::before, .menu span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--deep); margin: 0 auto; position: relative; content: ''; }
.menu span::before { position: absolute; top: -7px; } .menu span::after { position: absolute; top: 7px; }

/* Hero: the round trip */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.hero h1 .flow { background: var(--flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; }
.hero .ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero .next-step { margin-top: 14px; font-size: 15px; color: var(--grey); max-width: 46ch; }
.hero .next-step a { color: var(--indigo); }
/* The email box that starts the sign-up (Q74): the email, Get started, Talk to us, and the unticked news box. */
.startbox { display: grid; gap: 10px; margin-top: 30px; max-width: 580px; }
.startbox-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.startbox-email { flex: 1 1 220px; display: grid; }
.startbox input[type="email"] { width: 100%; min-height: 48px; font: 16px var(--text); padding: 12px 14px; border-radius: 12px; border: 1.5px solid #8A86A6; background: #fff; color: inherit; }
.startbox input[type="email"]:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.startbox .consent { display: flex; gap: 10px; align-items: flex-start; font: 400 13.5px var(--text); color: var(--grey); }
.startbox .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--indigo); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.call.simple .startboxbox { margin-top: 0; }
.call.simple .startboxbox .consent { color: rgba(255, 255, 255, .85); }
.call.simple .startboxbox .consent input { accent-color: #fff; }
.call.simple .startboxbox .btn.second { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.loop { position: relative; }
.loop svg { width: 100%; height: auto; display: block; overflow: visible; }
.loop .card { position: absolute; left: 50%; top: 45%; translate: -50% -50%; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(34, 4, 131, .55); display: flex; gap: 12px; align-items: center; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.loop .card.on { opacity: 1; transform: none; }
.loop .card i { width: 34px; height: 34px; border-radius: 50%; background: var(--good); display: grid; place-items: center; flex: none; }
.loop .card b { display: block; font: 600 15px var(--display); color: var(--deep); }
.loop .card span { display: block; font-size: 13px; line-height: 1.4; color: var(--grey); }
.loop .card { width: max-content; max-width: 78%; }

section.block { padding: 110px 0 0; }
/* A tinted band behind a section, edge to edge, so a long page changes tone as it goes */
section.block.tone { margin-top: 110px; padding: 90px 0 96px; background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
section.block.tone + section.block { padding-top: 100px; }

/* Icons: line icons in the Q's rounded strokes (icons.py). The red accent draws in as its section arrives, then redraws
   every so often, one icon after another. */
.ic { width: var(--s, 32px); height: var(--s, 32px); flex: none; display: block; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic .m { stroke: var(--deep); }
.ic .a { stroke: var(--red); }
.ic .a > * { stroke-dasharray: 1 1.01; }
.reveal .ic .a > * { stroke-dashoffset: 1.005; }
.reveal.in .ic .a > * { animation: ic-in .9s var(--ease) calc(.35s + var(--i, 0) * .14s) forwards, ic-again 15s ease-in-out calc(5s + var(--i, 0) * 2.7s) infinite; }
@keyframes ic-in { to { stroke-dashoffset: 0; } }
@keyframes ic-again { 0%, 10%, 100% { stroke-dashoffset: 0; } 4% { stroke-dashoffset: 1.005; } }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.head p { max-width: 46ch; margin: 0; }

/* How it works: four stops along one vessel that fills as you scroll; each stop's icon draws in as the line reaches it */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps .track, .steps .fill { position: absolute; top: 27px; left: 28px; right: calc((100% - 78px) / 4 - 28px); height: 3px; border-radius: 3px; }
.steps .track { background: var(--tint); }
.steps .fill { background: var(--flow); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step .node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--plasma); box-shadow: inset 0 0 0 2px var(--tint); margin-bottom: 18px; transition: box-shadow .4s; }
.step .node .ic .m { stroke: #8A86A6; transition: stroke .4s; }
.step .node .ic .a > * { stroke-dasharray: 1 1.01; stroke-dashoffset: 1.005; transition: stroke-dashoffset .8s var(--ease) .15s; }
.step.lit .node { box-shadow: inset 0 0 0 2px var(--c); animation: beat 1.4s cubic-bezier(.3, 1.6, .5, 1) 1; }
.step.lit .node .ic .m { stroke: var(--deep); }
.step.lit .node .ic .a { stroke: var(--c); }
.step.lit .node .ic .a > * { stroke-dashoffset: 0; }
.step .num { font: 500 13px var(--mono); color: var(--grey); }
.step h3 { margin: 8px 0 8px; }
.step p { color: var(--grey); font-size: 16px; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } }

/* Who it is for: one panel at a time */
.tabs { display: inline-flex; position: relative; background: var(--band); border-radius: 14px; padding: 5px; gap: 2px; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; font: 600 15px var(--display); color: var(--grey); padding: 11px 20px; border-radius: 10px; cursor: pointer; transition: color .2s; }
.tabs button[aria-selected="true"] { color: var(--deep); }
.tabs .pill { position: absolute; z-index: 0; top: 5px; height: calc(100% - 10px); border-radius: 10px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 16px -10px rgba(34, 4, 131, .5); transition: left .35s var(--ease), width .35s var(--ease), top .35s var(--ease); }
.panels { display: grid; margin-top: 36px; }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.panel.on { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.panel[hidden] { display: none; }
.panel ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.panel .size { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--deep); }
.ticks li { padding: 12px 0 12px 34px; position: relative; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 14px; width: 21px; height: 21px; background: var(--flow); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.types { margin: 0 0 26px; padding: 18px 20px; border-radius: 16px; background: var(--band); }
.types b { display: block; font: 500 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: 8px; }
.types ul { columns: 2; column-gap: 26px; margin: 0; }
.types li { padding: 3px 0; font-size: 15px; line-height: 1.4; break-inside: avoid; }
.panel .art { background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; position: relative; }
.panel.enter .copy, .panel.enter .art { animation: rise .45s var(--ease) both; }
.panel.enter .art { animation-delay: .06s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* The portal preview: results arriving */
.portal { background: var(--night); border-radius: 28px; padding: 64px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; color: #E9E6F7; position: relative; overflow: hidden; }
.portal h2 { color: #fff; }
.portal .eyebrow { color: #F7A8C4; }
.portal p { color: #CFCAE8; }
.portal::before { content: ''; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 39, 48, .28), transparent 62%); }
.window { position: relative; background: #fff; border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); overflow: hidden; color: var(--ink); }
.window .chrome { height: 40px; background: var(--band); display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.window .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D9D5EA; }
.window .chrome span { margin-left: 14px; font: 500 13px var(--display); color: var(--grey); }
.window .body { padding: 20px 22px 24px; }
.window .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.window .top b { font: 600 18px var(--display); color: var(--deep); }
.chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 4px 11px 4px 9px; border-radius: 999px; font: 600 12.5px var(--text); background: #E5F5EE; color: #13653F; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.row { display: grid; grid-template-columns: 1.3fr .8fr 1.5fr .7fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.row:first-of-type { border-top: 0; }
.row .v { font: 600 16px var(--mono); color: var(--deep); }
.row .v small { font: 12px var(--text); color: var(--grey); margin-left: 3px; }
.rng { position: relative; height: 8px; border-radius: 8px; background: var(--band); }
.rng .ok { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: #D9D5F1; transform-origin: left; }
.rng .c { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 3px #fff; }
.rng .c.out { background: var(--amber); }
.flag { justify-self: end; font: 600 12px var(--text); color: var(--grey); }
.flag.out { color: var(--amber); background: var(--amber-band); padding: 2px 9px; border-radius: 999px; }
.window .note { font-size: 12.5px; color: var(--grey); margin: 12px 0 0; }

/* Closing call: the one place the flow moves on its own */
.call { margin: 110px 0 0; border-radius: 28px; padding: 70px 64px; background: linear-gradient(110deg, #FE2730, #800A67, #220483, #800A67, #FE2730); background-size: 300% 100%; animation: flow 18s linear infinite; color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.call h2 { color: #fff; }
.call p { color: rgba(255, 255, 255, .88); }
.call .btn.primary { background: #fff; color: var(--deep); box-shadow: none; }
.call .enquiry .btn.primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 24px -14px rgba(34, 4, 131, .8); }
.call .enquiry .btn.primary:hover { background: var(--deep); box-shadow: inset 0 -3px 0 var(--red), 0 14px 28px -14px rgba(34, 4, 131, .9); }
.call .btn.primary:hover { background: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.call .contact { display: grid; gap: 8px; font: 500 17px var(--display); }
.call .contact a { color: #fff; text-decoration: none; }
@keyframes flow { to { background-position: 300% 0; } }

footer { margin-top: 110px; background: var(--night); color: #CFCAE8; padding: 56px 0 40px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer svg { height: 40px; width: auto; display: block; margin-bottom: 18px; }
footer b { display: block; font: 600 14px var(--display); color: #fff; margin-bottom: 10px; }
footer a { display: block; color: #CFCAE8; text-decoration: none; padding: 4px 0; }
footer a:hover { color: #fff; }
footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9C97BC; font-size: 13px; }

/* Cookie choice: both answers equally easy, as the ICO asks */

/* The three audience scenes */
.art { background: linear-gradient(160deg, var(--band), #fff 70%); }
.vig { width: 78%; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(34, 4, 131, .55); padding: 20px; font-size: 14px; }
.vh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vh b, .rh b { font: 600 16px var(--display); color: var(--deep); }
.who { color: var(--grey); margin-bottom: 12px; }
.who .mono, .lab .mono { font-family: var(--mono); color: var(--deep); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--deep); font: 500 12.5px var(--display); }
.labels { display: grid; gap: 8px; margin-bottom: 14px; }
.lab { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.lab .bars { height: 24px; background: repeating-linear-gradient(90deg, #16141F 0 2px, #fff 2px 4px, #16141F 4px 5px, #fff 5px 8px, #16141F 8px 11px, #fff 11px 12px); }
.lab em { font-style: normal; font-size: 12px; color: var(--grey); }
.btn.sm { padding: 9px 14px; font-size: 13.5px; }
.rh { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rh .yourlogo { width: 48px; height: 48px; border-radius: 12px; border: 1.5px dashed #8A86A6; display: grid; place-items: center; font: 500 10.5px/1.1 var(--display); color: var(--grey); text-align: center; flex: none; }
.rh span:not(.yourlogo) { display: block; color: var(--grey); font-size: 13px; }
.rl { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rl .mono { font-family: var(--mono); font-weight: 600; color: var(--deep); }
.vfoot { margin-top: 10px; font-size: 12px; color: var(--grey); }
.vmap { position: relative; padding: 0; overflow: hidden; }
.vmap svg { display: block; width: 100%; height: auto; }
.vmap .next { position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(34, 4, 131, .6); font-size: 13px; }
.vmap .next b { display: block; font: 600 14px var(--display); color: var(--deep); }
.panel.enter .route { animation: route 1.6s cubic-bezier(.65, 0, .35, 1) .3s both; }
@keyframes route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Who we are */
.who-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }

/* Why Quantum: each problem crossed by the flow into its answer */
.pairs { display: grid; border-bottom: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 1fr 120px 1.2fr; gap: 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.pair .was { color: var(--grey); font-size: 16px; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: transparent; transition: text-decoration-color .6s var(--ease) .3s; }
.pair .flowline { height: 4px; border-radius: 4px; background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .5s; position: relative; }
.pair .flowline::after { content: ''; position: absolute; right: -3px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--indigo); }
.pair .now { font-size: 16px; color: var(--ink); }
.pair .now b { display: block; font: 600 18px var(--display); color: var(--deep); margin-bottom: 2px; }
.pairs.in .pair .was { text-decoration-color: rgba(107, 104, 128, .55); }
.pairs.in .pair .flowline { transform: scaleX(1); }
.pairs.in .pair:nth-child(2) .was::after, .pairs.in .pair:nth-child(2) .flowline { transition-delay: .45s, .65s; }
.pairs.in .pair:nth-child(3) .was::after, .pairs.in .pair:nth-child(3) .flowline { transition-delay: .6s, .8s; }
.pairs.in .pair:nth-child(4) .was::after, .pairs.in .pair:nth-child(4) .flowline { transition-delay: .75s, .95s; }

/* Rows: icon, heading and words across the page, ruled, no boxes (services, trust). A linked row draws the flow under
   itself on hover. */
.rows { border-bottom: 1px solid var(--line); }
.rows .r { position: relative; display: grid; grid-template-columns: 64px minmax(0, .85fr) minmax(0, 1.6fr) 36px; gap: 26px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rows.plain .r { grid-template-columns: 64px minmax(0, .85fr) minmax(0, 1.6fr); }
.rows h3 { font-size: 23px; }
.rows p { margin: 0; color: var(--grey); font-size: 16.5px; max-width: 60ch; }
.rows .go { justify-self: end; font: 600 22px var(--display); color: var(--indigo); transition: transform .2s var(--ease); }
a.r::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
a.r:hover::after { transform: scaleX(1); }
a.r:hover .go { transform: translateX(4px); }
a.r:hover h3 { color: var(--indigo); }
.more { font: 600 15px var(--display); color: var(--indigo); }
.more .arrow, .quote .arrow { display: inline-block; transition: transform .2s var(--ease); }
a:hover .more .arrow, .quote:hover .arrow { transform: translateX(3px); }

/* Getting started */
.start { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.start::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--tint); }
.start li { position: relative; padding: 0 18px 0 0; }
.start li span { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--indigo); font: 600 13px var(--mono); color: var(--indigo); margin-bottom: 16px; }
.start h3 { font-size: 18px; margin-bottom: 6px; }
.start p { font-size: 15px; color: var(--grey); }

/* Questions */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 600 18px var(--display); color: var(--deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--indigo); border-bottom: 2.5px solid var(--indigo); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--ink); max-width: 70ch; animation: rise .35s var(--ease); }
.faq details p + p { margin-top: -8px; }

/* Updates: an index, one line each */
.journal { border-bottom: 1px solid var(--line); }
.journal a { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px 30px; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.journal .tag { font: 500 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.journal h3 { font-size: 20px; transition: color .2s; }
.journal .date { font-size: 14px; color: var(--grey); }
.journal .go { font: 600 18px var(--display); color: var(--indigo); transition: transform .2s var(--ease); justify-self: end; }
.journal a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.journal a:hover::after { transform: scaleX(1); }
.journal a:hover h3 { color: var(--indigo); }
.journal a:hover .go { transform: translateX(4px); }

/* Contact: the enquiry form inside the closing panel */
.call .contact { margin-top: 26px; }
.call .quote { font: 500 16px var(--display); opacity: .92; margin-top: 6px; }
.enquiry { background: #fff; border-radius: 20px; padding: 24px; display: grid; gap: 12px; color: var(--ink); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
.enquiry .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.enquiry label { display: grid; gap: 5px; font: 500 13px var(--display); color: var(--deep); }
.enquiry input:not([type="checkbox"]), .enquiry textarea { font: 16px var(--text); padding: 11px 13px; border-radius: 12px; border: 1.5px solid #8A86A6; background: #fff; color: var(--ink); resize: vertical; }
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.enquiry .consent { display: flex; gap: 10px; align-items: flex-start; font: 400 13.5px var(--text); color: var(--grey); }
.enquiry .opt { font: 400 12.5px var(--text); color: var(--grey); }
.enquiry .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--indigo); }
.enquiry .btn { justify-self: start; }

@media (max-width: 960px) {
  .who-grid { grid-template-columns: 1fr; gap: 16px; }
  .pair { grid-template-columns: 1fr; gap: 10px; }
  .pair .flowline { width: 80px; }
  .rows .r, .rows.plain .r { grid-template-columns: 52px 1fr 24px; gap: 6px 18px; align-items: start; padding: 24px 0; }
  .rows .r .ic { grid-row: span 2; --s: 34px; }
  .rows .r p { grid-column: 2 / -1; }
  .rows .go { grid-row: 1; grid-column: 3; }
  .rows h3 { font-size: 20px; }
  .journal a { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .journal .tag, .journal .date { grid-column: 1; }
  .journal h3 { grid-column: 1; grid-row: 2; }
  .journal .date { grid-row: 3; }
  .journal .go { grid-column: 2; grid-row: 2; }
  .types ul { columns: 1; }
  .start { grid-template-columns: 1fr; gap: 18px; }
  .start::before { left: 19px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .start li { display: grid; grid-template-columns: 56px 1fr; padding: 0; }
  .start li span { grid-row: span 2; margin: 0; }
}
@media (max-width: 560px) {
  .enquiry .two { grid-template-columns: 1fr; }
  section.block.tone { margin-top: 80px; padding: 64px 0 70px; }
}

.kit { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin: 4px 0 6px; }
.kit .box { aspect-ratio: 1; border-radius: 14px; background: var(--band); display: grid; place-items: center; align-content: center; gap: 6px; font: 600 12px var(--display); color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.kit .box .yourlogo { width: 40px; height: 40px; border-radius: 10px; border: 1.5px dashed #8A86A6; display: grid; place-items: center; font: 500 9.5px/1.1 var(--display); color: var(--grey); text-align: center; }
.kit ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink); } .kit li { margin: 4px 0; }
.loop .node circle { transition: stroke .5s, fill .5s; }
/* Reveal as sections come into view, once */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .bar nav, .bar .signin, .bar .btn { display: none; }
  .menu { display: block; }
  .hero, .panel, .portal, .call { grid-template-columns: 1fr; }
  /* Panels share one place (the longest sets the height): a shorter one keeps its picture under its words. */
  .panel { align-content: start; }
  .hero { padding-top: 34px; }
  .steps { grid-template-columns: 1fr; gap: 30px; padding-left: 78px; }
  .steps .track, .steps .fill { top: 28px; bottom: 28px; left: 27px; right: auto; width: 3px; height: auto; }
  .steps .fill { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step .node { position: absolute; left: -78px; top: -6px; margin: 0; }
  .portal, .call { padding: 40px 24px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  section.block { padding-top: 80px; }
  .row { grid-template-columns: 1.2fr .8fr .9fr; }
  .row .rng { grid-column: 1 / -1; order: 4; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tabs button { padding: 11px 6px; font-size: 14px; }
}
@media (max-width: 960px) {
  .panel .art { aspect-ratio: auto; padding: 28px 0; }
  .vig { width: 90%; }
}
@media (max-width: 560px) {
  .loop svg text { font-size: 21px; }
  #n0 text { font-size: 22px; }
  #n0 circle, #n3 circle { r: 60px; }
  #n3 text { font-size: 19px; }
  .loop .card { position: static; translate: none; margin: 18px auto 0; max-width: 100%; }
  .lab { grid-template-columns: 60px 1fr auto; gap: 8px; }
  .lab .mono { white-space: nowrap; font-size: 12.5px; }
  .lab em { white-space: nowrap; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* The inner pages, the phone menu and the test finder, on top of base.css. */
body.locked { overflow: hidden; }
.bar nav a[aria-current="page"] { color: var(--indigo); }
.bar nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The phone menu: a sheet from the top with every page and the two actions. */
#drawer { position: fixed; inset: 0; z-index: 40; background: rgba(15, 6, 64, .35); opacity: 0; pointer-events: none; transition: opacity .25s; }
#drawer.open { opacity: 1; pointer-events: auto; }
#drawer .sheet { background: var(--plasma); padding: 18px 22px 26px; border-radius: 0 0 24px 24px; transform: translateY(-16px); transition: transform .3s var(--ease); box-shadow: 0 20px 40px -20px rgba(15, 6, 64, .5); }
#drawer.open .sheet { transform: none; }
#drawer .sheet-top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
#drawer .sheet-top svg { height: 36px; width: auto; }
#drawer nav { display: grid; margin: 10px 0 18px; }
#drawer nav a { font: 600 20px var(--display); color: var(--deep); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
#drawer nav a[aria-current="page"] { color: var(--indigo); }
#drawer .actions { display: grid; gap: 10px; }
#drawer .actions .btn { justify-content: center; }
.menu[aria-expanded="true"] span { background: transparent; }
.menu[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.menu span, .menu span::before, .menu span::after { transition: transform .25s var(--ease), background .2s; }

/* A page's own heading block */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--grey); margin: 34px 0 0; flex-wrap: wrap; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--indigo); }
.crumbs span[aria-hidden] { opacity: .6; }
.page-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: end; padding: 22px 0 10px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); margin-top: 14px; }
.page-hero .lead { max-width: 46ch; margin-top: 18px; }
/* The page's emblem: its icon drawn large inside a ring, one red cell going slowly round */
.page-hero .emblem { justify-self: end; width: 190px; height: 190px; fill: none; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.emblem .ring { stroke: var(--tint); stroke-width: 2; }
.emblem .orbit { transform-origin: 100px 100px; animation: orbit 18s linear infinite; }
.emblem .cell { fill: var(--red); stroke: var(--plasma); stroke-width: 3; }
.emblem .m { stroke: var(--deep); }
.emblem .a { stroke: var(--red); }
.emblem .m > *, .emblem .a > * { stroke-width: .82; stroke-dasharray: 1 1.01; stroke-dashoffset: 1.005; animation: ic-in 1.4s var(--ease) .2s forwards; }
.emblem .a > * { animation-delay: 1s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.page-hero .vessel { height: 5px; width: 110px; border-radius: 5px; background: var(--flow); margin-top: 26px; }

/* Points: ruled columns for the points on every inner page, with an icon where one says something. No boxes. */
.points { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 40px; }
.point { border-top: 1px solid var(--line); padding: 28px 0 14px; }
.point .ic { margin-bottom: 18px; }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--grey); font-size: 16px; margin: 0; }
.point ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; }
.point li { padding: 3px 0; }

/* Two columns of words and a supporting panel */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.split .lead { max-width: none; }
.aside { background: var(--deep); color: #E9E6F7; border-radius: 24px; padding: 30px; }
.aside h3 { color: #fff; margin-bottom: 12px; }
.aside ul { margin: 0; padding: 0; list-style: none; }
.aside li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid rgba(255, 255, 255, .12); }
.aside li:first-child { border-top: 0; }
.aside li::before { content: ''; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; background: #F7A8C4; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }

/* Stops on a line (how it works, the service model, transport): the icon on the line, the words beside it */
.timeline-list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
.timeline-list::before { content: ''; position: absolute; left: 26px; top: 28px; bottom: 40px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--red), var(--plum) 55%, var(--indigo)); opacity: .45; }
.timeline-list li { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 26px; padding: 0 0 34px; }
.timeline-list .node { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--plasma); box-shadow: inset 0 0 0 2px var(--c, var(--indigo)); font: 600 14px var(--mono); color: var(--indigo); }
.timeline-list .node .ic .a { stroke: var(--c); }
.timeline-list em { font: 500 13px var(--mono); font-style: normal; color: var(--grey); }
.timeline-list h3 { margin: 2px 0 6px; }
.timeline-list p { margin: 0; color: var(--ink); max-width: 64ch; }

/* Related pages: three links under a rule, the flow drawing along the rule on hover */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.related a { position: relative; display: block; border-top: 1px solid var(--line); padding: 24px 0 8px; text-decoration: none; color: var(--ink); }
.related a::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.related a:hover::after { transform: scaleX(1); }
.related h3 { margin-bottom: 6px; }
.related h3 .arrow { display: inline-block; color: var(--indigo); transition: transform .2s var(--ease); }
.related a:hover h3 .arrow { transform: translateX(4px); }
.related p { color: var(--grey); font-size: 15px; margin: 0; }

/* The test list: one search line and an area menu, over an index of tests by area, like the back of a book */
.finder-bar { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: end; }
.finder-search { display: flex; align-items: center; gap: 14px; padding: 4px 2px 10px; border-bottom: 2px solid var(--deep); transition: border-color .2s, box-shadow .2s; }
.finder-search:focus-within { border-bottom-color: var(--indigo); box-shadow: 0 2px 0 var(--indigo); }
.finder-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 24px var(--display); color: var(--deep); padding: 6px 0; outline: none; }
.finder-search input::placeholder { color: #8A86A6; }
.finder-area select { width: 100%; appearance: none; -webkit-appearance: none; font: 500 16px var(--display); color: var(--deep); background: var(--band) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23220483' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; border: 0; border-radius: 12px; padding: 14px 42px 14px 16px; cursor: pointer; }
.finder-area select:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.finder-count { font: 500 14px var(--display); color: var(--grey); margin: 16px 0 28px; min-height: 20px; }
.finder-index { columns: 3 230px; column-gap: 48px; }
.ix { break-inside: avoid; margin: 0 0 32px; }
.ix h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--plum); padding-bottom: 9px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.ix h3 em { font: 500 13px var(--mono); font-style: normal; letter-spacing: 0; color: var(--grey); }
.ix ul { list-style: none; margin: 0; padding: 0; }
.ix li { padding: 4px 0; font-size: 16px; line-height: 1.45; }
.ix.one { columns: auto; }
.ix.one ul { columns: 3 220px; column-gap: 48px; }
.finder-index:has(.ix.one), .finder-index:has(.hits), .finder-index:has(.none) { columns: auto; }
.all { display: inline-block; margin-top: 8px; font: 600 14px var(--display); color: var(--indigo); text-decoration: none; }
.hits { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 48px; }
.hits li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hits b { font-weight: 600; color: var(--deep); }
.hits span { font-size: 13.5px; color: var(--grey); text-align: right; }
.hits mark { background: none; color: var(--indigo); box-shadow: inset 0 -2px 0 var(--red); }
.finder .none { color: var(--grey); font-size: 17px; }
.finder-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Long text: the legal pages and the articles */
.prose { max-width: 74ch; overflow-wrap: anywhere; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose ul { padding-left: 22px; }

/* Contact and quote pages: the form on a white card */
.form-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.form-page .enquiry { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(34, 4, 131, .45); }
.form-page .enquiry select { font: 16px var(--text); padding: 11px 13px; border-radius: 12px; border: 1.5px solid #8A86A6; background: #fff; color: var(--ink); }
.contact-list { display: grid; margin-top: 28px; border-bottom: 1px solid var(--line); }
.contact-list a { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-list a:hover b { color: var(--indigo); }
.contact-list b { display: block; font: 600 16px var(--display); color: var(--deep); }
.form-note { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--deep); font-size: 14.5px; }

/* The closing call on inner pages: words and two buttons, no form */
.call.simple { grid-template-columns: 1.4fr auto; }
.call.simple .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.call.simple .btn.second { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.call.simple .btn.second:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 960px) {
  .page-hero, .split, .form-page, .finder-bar { grid-template-columns: 1fr; }
  .page-hero .emblem { display: none; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: 1fr 1fr; }
  .call.simple { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .points, .related { grid-template-columns: 1fr; }
  .finder-search input { font-size: 19px; }
  .timeline-list li { grid-template-columns: 46px minmax(0, 1fr); gap: 18px; }
  .timeline-list .node { width: 46px; height: 46px; }
  .timeline-list::before { left: 22px; }
}

/* Read by assistive technology, not shown */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The real site (21 Oct 2026): the skip link, keyboard focus, forms that send, the updates, the sample report. */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--deep); color: #fff; font: 600 15px var(--display); text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.call a:focus-visible, footer a:focus-visible, .call button:focus-visible { outline-color: #fff; }
.enquiry select { font: 16px var(--text); padding: 11px 13px; border-radius: 12px; border: 1.5px solid #8A86A6; background: #fff; color: var(--ink); }
.enquiry .opt { font-weight: 400; color: var(--grey); }
.enquiry .form-title { font-size: 24px; }
.enquiry .cf-turnstile:empty { display: none; }
.enquiry button[disabled] { opacity: .7; cursor: progress; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note.bad { background: #FDECEE; color: #7A0014; }
.form-note a { color: inherit; }
.form-done { background: #fff; border-radius: 20px; padding: 28px; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(34, 4, 131, .45); }
.form-done h3 { font-size: 26px; margin-bottom: 10px; }
.form-done:focus { outline: 2px solid var(--indigo); outline-offset: 3px; }
.call .form-done h3 { color: var(--deep); }
.journal a > div p { margin: 6px 0 0; color: var(--grey); font-size: 15.5px; }
.journal time.tag { white-space: nowrap; }
.journal a { grid-template-columns: 150px minmax(0, 1fr) 30px; }
.article-picture { margin: 0 0 30px; max-width: 900px; }
.article-picture img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 22px; background: var(--band); }
.article-picture.small img { width: auto; max-width: 100%; }
.prose a { overflow-wrap: anywhere; }
.prose .updated { color: var(--grey); font-size: 15px; }
.prose .table { overflow-x: auto; margin: 0 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font: 600 14px var(--display); color: var(--deep); }
.article .back { margin-top: 30px; font: 500 16px var(--display); }
.article .back a { text-decoration: none; }
.report-preview { margin: 28px 0 0; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(34, 4, 131, .45); }
.report-preview .rp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--deep); }
.report-preview .rp-head svg { height: 34px; width: auto; }
.report-preview .rp-head span { font: 600 14px var(--display); color: var(--grey); text-transform: uppercase; letter-spacing: .12em; }
.report-preview .rp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0; font-size: 14px; color: var(--grey); }
.report-preview .rp-meta b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.report-preview .rp-key { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--amber-band); color: #5A2C00; font-size: 15px; }
.report-preview .rp-key b { display: block; font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .1em; }
.report-preview table { width: 100%; border-collapse: collapse; font-size: 15px; }
.report-preview th, .report-preview td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.report-preview thead th { font: 600 12.5px var(--display); color: var(--grey); text-transform: uppercase; letter-spacing: .08em; }
.report-preview tbody th { font-weight: 600; color: var(--deep); }
.report-preview .v { font-family: var(--mono); font-weight: 600; }
.report-preview small { color: var(--grey); font-weight: 400; }
.report-preview .flag { color: var(--amber); }
.report-preview figcaption { margin-top: 12px; font-size: 13.5px; color: var(--grey); }
@media (max-width: 960px) {
  .journal a { grid-template-columns: 1fr 24px; }
  .journal a > div { grid-column: 1; grid-row: 2; }
}
@media (max-width: 560px) {
  .report-preview { padding: 16px; }
  .report-preview th:nth-child(3), .report-preview td:nth-child(3) { display: none; }
}

/* The portal demonstration (demo.html): five steps beside a window that plays each one. The screens follow the portal's
   own layout and words, simplified. */
.demo { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 44px; align-items: start; }
.demo-side { position: sticky; top: 100px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.demo-steps button { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 15px 16px 19px 14px; border-radius: 14px; cursor: pointer; color: var(--ink); font: inherit; overflow: hidden; transition: background .2s; }
.demo-steps button:hover { background: var(--band); }
.demo-steps button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.demo-steps .n { font: 600 13px var(--mono); color: var(--grey); padding-top: 4px; }
.demo-steps b { display: block; font: 600 19px var(--display); color: var(--deep); }
/* Every step's words stay in place, so nothing moves as the steps change: only colour and the bar do. */
.demo-steps em { display: block; font-style: normal; font-size: 15px; line-height: 1.5; color: var(--grey); margin-top: 4px; transition: color .3s; }
.demo-steps [aria-selected="true"] { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(34, 4, 131, .5); }
.demo-steps [aria-selected="true"] .n { color: var(--plum); }
.demo-steps [aria-selected="true"] em { color: var(--ink); }
.demo-steps .bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--flow); transform: scaleX(0); transform-origin: left; }
.demo.run .demo-steps [aria-selected="true"] .bar { animation: demo-bar 8.5s linear forwards; }
@keyframes demo-bar { to { transform: scaleX(1); } }
.demo-caption { display: none; }
.demo-play { margin: 12px 0 0 14px; border: 0; background: none; font: 600 14px var(--display); color: var(--indigo); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

.demo-window { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -46px rgba(34, 4, 131, .55); }
.demo-window .chrome { height: 38px; background: var(--band); display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.demo-window .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D9D5EA; }
.demo-window .chrome span { margin-left: 14px; font: 500 12.5px var(--mono); color: var(--grey); }
.app { display: grid; grid-template-columns: 148px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 480px; background: var(--plasma); }
.app-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: #fff; border-top: 3px solid transparent; border-image: var(--flow) 1; border-bottom: 1px solid var(--line); }
.app-top svg { height: 26px; width: auto; display: block; }
.app-top span { font: 500 13px var(--display); color: var(--grey); }
.app-top em { margin-left: auto; font: 600 13px var(--display); font-style: normal; color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.app-nav { display: grid; align-content: start; gap: 2px; padding: 14px 10px; background: #fff; border-right: 1px solid var(--line); }
.app-nav span { font: 500 13.5px var(--display); color: var(--ink); padding: 8px 10px; border-radius: 9px; transition: background .3s, box-shadow .3s; }
.app-nav .here { background: var(--tint); color: var(--deep); font-weight: 600; box-shadow: inset 3px 0 0 var(--red); }
/* The five screens share one place, so the window keeps the height of the tallest and never jumps; one fades into the next. */
.app-main { padding: 20px 24px 24px; min-width: 0; display: grid; }
.scr { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.scr.on { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
/* A scene starting again puts itself back without playing its transitions backwards. */
.snap *, .snap *::before, .snap *::after { transition: none !important; }
.scr h4 { font: 600 22px var(--display); color: var(--deep); margin: 0; letter-spacing: -.01em; }
.scr h5 { font: 600 15px var(--display); color: var(--deep); margin: 0 0 10px; }
.scr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.st { font: 600 12px var(--text); padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--deep); }
.scr .mono { font-family: var(--mono); }
.hint { font-size: 13px; color: var(--grey); margin: 12px 0 0; }

/* 1 Order */
.fld { background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 9px 14px; margin-bottom: 14px; }
.fld span { display: block; font: 500 11.5px var(--display); color: var(--grey); }
.fld b { font: 500 15px var(--text); color: var(--grey); }
.fld b.set { color: var(--ink); font-weight: 600; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.pane { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.checks li:first-child { border-top: 0; }
.checks i { position: relative; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #8A86A6; flex: none; margin-top: 2px; transition: background .2s, box-shadow .2s; }
.checks li.on i { background: var(--indigo); box-shadow: none; animation: tick-pop .3s cubic-bezier(.34, 1.4, .64, 1); }
.checks li.on i::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks small { display: block; font-size: 12px; color: var(--grey); }
@keyframes tick-pop { from { transform: scale(.6); } }
.side .empty { font-size: 13.5px; color: var(--grey); margin: 0; }
.tubes { position: relative; }
.empty { position: absolute; top: 0; left: 0; right: 0; margin: 6px 0; transition: opacity .2s; }
.empty.gone { opacity: 0; }
.tube { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin: 6px 0; }
.tube, .placed { visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
.tube.show, .placed.show { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.tube i { width: 12px; height: 26px; border-radius: 3px 3px 6px 6px; box-shadow: inset 0 0 0 1px rgba(22, 20, 31, .15); }
.t-gold i { background: linear-gradient(#E3B230 0 30%, #F6E7B8 30%); }
.t-lav i { background: linear-gradient(#8E6CC8 0 30%, #E6DDF5 30%); }
.pbtn { display: inline-block; margin-top: 12px; padding: 9px 16px; border-radius: 10px; background: var(--tint); color: var(--grey); font: 600 13.5px var(--display); transition: background .25s, color .25s, transform .12s; }
.pbtn.ready, [data-print], .pbtn.ghost { background: var(--indigo); color: #fff; }
.pbtn.press { transform: scale(.94); background: var(--deep); }
.pbtn.ghost { margin: 0; }
.placed { margin: 10px 0 0; font: 600 13.5px var(--display); color: #13653F; background: #E5F5EE; padding: 8px 10px; border-radius: 10px; }

/* 2 Label */
.tbl { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; font-size: 14px; }
.tr { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.tr.th { background: var(--band); font: 600 12.5px var(--display); color: var(--deep); border-top: 0; }
.sheet { margin-top: 14px; padding: 6px 14px 14px; border-radius: 12px; background: var(--band); box-shadow: inset 0 4px 0 var(--deep); min-height: 120px; }
.lbl { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 8px; padding: 10px 12px; margin-top: 8px; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -14px rgba(34, 4, 131, .6); opacity: 0; transform: translateY(-18px); transition: opacity .3s, transform .5s var(--ease); }
.lbl.out { opacity: 1; transform: none; }
.lbl .bars { height: 26px; background: repeating-linear-gradient(90deg, #16141F 0 2px, #fff 2px 4px, #16141F 4px 5px, #fff 5px 8px, #16141F 8px 11px, #fff 11px 12px); }
.lbl .mono { font-size: 13.5px; font-weight: 600; color: var(--deep); }
.lbl em { font-style: normal; font-size: 12.5px; color: var(--grey); }

/* 3 Track */
.prog { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.prog li { position: relative; padding-top: 30px; font: 500 12.5px/1.3 var(--display); color: var(--grey); text-align: center; transition: color .3s; }
.prog li::before { content: ''; position: absolute; top: 10px; left: -50%; right: 50%; height: 2px; background: linear-gradient(to right, var(--indigo) 50%, var(--line) 50%) 100% 0 / 200% 100% no-repeat; transition: background-position .6s var(--ease); }
.prog li:first-child::before { display: none; }
.prog li::after { content: ''; position: absolute; top: 3px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: background .3s, box-shadow .3s; }
.prog li.done, .prog li.now { color: var(--deep); }
/* The line between two steps fills from the left as the sample moves on. */
.prog li.done::before, .prog li.now::before { background-position: 0 0; }
.prog li.done::after { background: var(--indigo); box-shadow: none; }
.prog li.now { font-weight: 600; }
.prog li.now::after { box-shadow: inset 0 0 0 3px var(--red); animation: now-pulse 1.6s ease-out infinite; }
@keyframes now-pulse { 0% { box-shadow: inset 0 0 0 3px var(--red), 0 0 0 0 rgba(254, 39, 48, .35); } 100% { box-shadow: inset 0 0 0 3px var(--red), 0 0 0 10px rgba(254, 39, 48, 0); } }
.boxline { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.boxline b { display: block; font: 600 15px var(--display); color: var(--deep); }
.boxline em { font-style: normal; font-size: 14px; color: var(--grey); }

/* 4 Results */
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--grey); margin-bottom: 12px; }
.meta b { color: var(--ink); font-weight: 600; }
.res { background: #fff; border-radius: 12px; padding: 4px 16px; box-shadow: 0 0 0 1px var(--line); }

/* 5 Report */
.pdf { background: #fff; width: min(450px, 100%); margin: 0 auto; border-radius: 6px; padding: 22px 24px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(34, 4, 131, .6); opacity: 0; transform: translateY(16px) rotate(-1deg); transition: transform .6s var(--ease), opacity .5s; }
.pdf.in { opacity: 1; transform: none; }
.pdf-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--deep); }
.pdf-head .yourlogo { width: 44px; height: 44px; border-radius: 10px; border: 1.5px dashed #8A86A6; display: grid; place-items: center; font: 500 10px/1.1 var(--display); color: var(--grey); text-align: center; flex: none; }
.pdf-head b { display: block; font: 600 16px var(--display); color: var(--deep); }
.pdf-head span:not(.yourlogo) { font-size: 12.5px; color: var(--grey); }
.pdf-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; color: var(--grey); padding: 10px 0; border-bottom: 1px solid var(--line); }
.pdf-meta b { color: var(--ink); font-weight: 600; }
.pdf-rows div { display: grid; grid-template-columns: 1.3fr .6fr .9fr 1fr 40px; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.pdf-rows b { font: 600 13px var(--mono); color: var(--deep); }
.pdf-rows em { font-style: normal; color: var(--grey); font-size: 12px; }
.pdf-rows i { font: 600 11.5px var(--text); font-style: normal; color: var(--amber); }
.pdf-foot { font-size: 11.5px; color: var(--grey); margin: 10px 0 0; }
.crit { max-width: 450px; margin: 16px auto 0; display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: #FDE8EA; box-shadow: inset 0 0 0 1.5px #E58A95; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.crit.in { opacity: 1; transform: none; }
.crit b { font: 600 14.5px var(--display); color: #A0001C; }
.crit span { font-size: 13.5px; color: #6B1020; }

@media (max-width: 960px) {
  .demo { grid-template-columns: 1fr; gap: 24px; }
  .demo-side { position: static; }
  /* On a narrow screen the steps sit in one row above the window, with the step's words in a line of their own below
     them: every step's words share one place, so the line keeps the height of the longest. */
  .demo-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .demo-steps button { grid-template-columns: 1fr; gap: 2px; padding: 10px 4px 15px; text-align: center; }
  .demo-steps .n { padding-top: 0; }
  .demo-steps b { font-size: 15px; }
  .demo-steps em { display: none; }
  .demo-steps .bar { left: 8px; right: 8px; bottom: 6px; }
  .demo-caption { display: grid; margin: 12px 4px 0; font-size: 15px; line-height: 1.5; color: var(--grey); }
  .demo-caption span { grid-area: 1 / 1; opacity: 0; transition: opacity .3s; }
  .demo-caption span.on { opacity: 1; }
  .demo-play { margin-left: 4px; }
}
@media (max-width: 640px) {
  .app { grid-template-columns: 1fr; min-height: 440px; }
  .app-nav { display: none; }
  .app-main { padding: 16px 14px 18px; }
  .two { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1.2fr 1fr .9fr; font-size: 12.5px; padding: 9px 10px; }
  .prog li { font-size: 10.5px; padding-top: 28px; }
  .lbl { grid-template-columns: 64px 1fr; }
  .lbl em { grid-column: 2; }
  .pdf { padding: 16px; }
  .pdf-rows div { grid-template-columns: 1.2fr .7fr 1fr 34px; }
  .pdf-rows div em:first-of-type { display: none; }
  .scr h4 { font-size: 19px; }
}
