/* MyGen Informatics
   ------------------------------------------------------------------
   One stylesheet, no framework. The site it replaces was a 2019 Bootstrap
   template carrying jQuery for a menu and a set of modals; none of that is
   needed for a page that does not change.

   A restrained blue palette gives the consultancy a clear scientific
   identity: cool page paper, bright cards and tiles, deep navy feature
   sections, and one confident blue accent.
   ------------------------------------------------------------------ */

/* Inter, served from here rather than from Google: a visitor's address
   never goes to a third party just to draw the type. One variable file per
   range covers every weight; the licence is beside the files. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #eff5fa;
  --card: #fcfdff;
  --ink: #18344a;
  --ink-deep: #123752;
  --muted: #526c80;
  --line: #dce8f0;
  --line-strong: #b8ccda;
  --accent: #286f9d;
  --accent-deep: #1e587e;
  --accent-soft: #e6f1f8;
  --accent-line: #a9cee5;

  /* The one warm note: the mark on an ongoing project, which has to differ
     from Completed by more than wording. An ochre rather than the rust it was
     under the blue palette — that read as a leftover on a mint page. It
     clears AA on its own tint at 5.73:1. */
  --warm: #7d5313;
  /* The one warm note on a wholly blue page: who said it. Burnt sienna rather
     than the ochre above, which is close enough to yellow to read as a warning
     rather than as a name. 6.31:1 on a card, 5.85:1 on the page. */
  --cozy: #8c4f2b;
  /* The service icons' own square. A soft rose against the pale blue card —
     it reads by hue rather than by weight, but it is 1.25:1 lighter-different
     from the tile so it still has edges, and the plum carries 4.87:1 on it,
     well past the 3:1 a line drawing needs. */
  --mark-bg: #f3ccd9;
  --mark-ink: #8c3f58;
  --mark-edge: #e8b3c6;

  /* The canopy's greens, one a letter of CANOPY: light and deep in turn.
     Services wears them, and the hero's BASE borrows the first four. */
  --leaf-1: #a6e36f;
  --leaf-2: #4fc490;
  --leaf-3: #cde27a;
  --leaf-4: #5fb8a0;
  --leaf-5: #93d67e;
  --leaf-6: #3fae7a;

  /* Service tiles are a distinct pale blue surface, with navy copy and a
     stronger blue number for a calm, readable contrast against the page. */
  --tile: #e5eff6;
  --tile-line: #cbdde9;
  --tile-line-strong: #a8c8dd;
  --tile-number: #1e587e;
  --tile-hover: #dbeaf4;
  --tile-ink: #304f65;

  --measure: 68ch;
  /* Two steps, from the design: 24px for a panel you could put a hand on,
     16px for the smaller things inside one. */
  --radius: 24px;
  --radius-sm: 16px;
  --shell: 1180px;

  --shadow: 0 12px 32px rgba(18, 55, 82, 0.08);
  --shadow-lift: 0 20px 42px rgba(18, 55, 82, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* The fixed masthead must not sit on top of whatever you jumped to. Its
     height exactly (79-80px), so the browser's own anchor jumps land where
     the menu's do, flush under it. */
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* One family for everything, as the design has it. The serif that was here
   read as a journal; Inter set tight and heavy reads as a studio, which is
   what the rest of the design is doing. Tracking tightens as the size grows,
   because letter-spacing that suits 20px opens up badly at 60px. */
h1,
h2,
h3,
h4 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1,
.section__head h2 {
  letter-spacing: -0.035em;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Anything a screen reader should hear but nobody should see. */
.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --- masthead ------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  /* No backdrop-filter: it cost a fifth of every frame during a scroll
     (dropped frames went from 23% to 3% with it gone). Solid, not 94%: the
     big white headings of the navy sections showed through the last 6%. */
  background: #eff5fa;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* The menu folds into the button below 1180px. Folded, the button sits at
   the far end of the masthead. */
@media (max-width: 1180px) {
  .nav-toggle {
    order: 3;
    margin-left: auto;
  }
}

/* Only once the page has moved — a rule under the header of an unscrolled
   page is a line drawn for no reason. */
.masthead.is-stuck {
  border-bottom-color: var(--line);
}

/* No space-between: that threw the menu to the far edge and left 200px of
   empty bar between it and the mark. The links now sit beside the logo, and
   only the Get in touch button is pushed right. */
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}

/* The logo alone now — the wordmark beside it was removed, and the logo image
   itself already reads "MyGen Informatics", so it was saying it twice. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

/* The logo, the links and the button read as one bar: the logo the
   largest thing in it, the 16px links next, the button lighter than both. */
.brand img {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:not(.btn):hover {
  color: var(--ink);
  background: rgba(40, 111, 157, 0.08);
}

/* The section you are looking at, marked as you scroll.

   This was --accent-soft sitting on the masthead, which measured 1.04:1
   against it — the same colour to the eye, so the marker was invisible. A tint
   cannot fix that: the strongest one that still reads as a tint only reaches
   1.20:1. So it is solid.

   Deliberately --accent-deep rather than --accent: the Get in touch button is
   solid --accent, and two identical pills in one bar would read as two buttons
   rather than as a button and a position. Deep is 6.94:1 on the masthead and
   carries white at 7.63:1. */
.nav a[aria-current='true'] {
  color: #fff;
  background: var(--accent-deep);
  font-weight: 600;
}

/* Beside Blog, not flung to the far edge. `margin-left: auto` put the whole
   width of the bar between the last link and the button. */
.nav__cta {
  margin-left: 18px;
  /* "Neem contact op" is three words; it stays one button-wide line. */
  white-space: nowrap;
}

/* A little shorter than a menu link's pill, its text two steps under
   theirs: its solid fill already makes it the heaviest thing in the bar. */
.nav .nav__cta {
  padding: 6px 15px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: relative;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 4.2px;
}

.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span::after {
  transform: translateY(-4.2px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    gap: 2px;
    padding: 16px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a:not(.btn) {
    padding: 13px 14px;
    font-size: 16px;
  }

  .nav__cta {
    margin: 10px 0 0;
    text-align: center;
  }
}

/* --- buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    transform 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.btn--onink {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: transparent;
}

.btn--onink:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* --- sections ------------------------------------------------------- */

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--ink {
  background: var(--ink-deep);
  color: #e5eef5;
}

.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section--ink p {
  color: #c2d2df;
}

.section--card {
  background: var(--card);
  border-block: 1px solid var(--line);
}

/* Contact is the one section people arrive at by clicking rather than by
   scrolling, and when they arrive they need the whole thing at once: the
   paragraph that says who this is for, and every field they are about to fill
   in. Measured at 1440x900, section top to submit button was 962px against
   822px of usable height below the sticky header — 140px too tall. Everything
   below takes that back out of padding and gaps rather than out of the form,
   which stays the same size to type into. */
#contact {
  padding-block: clamp(48px, 6vh, 72px);
}

#contact .section__head {
  margin-bottom: clamp(22px, 3.2vh, 30px);
}

#contact .field {
  margin-bottom: 11px;
}

/* Still four comfortable lines to type into; it was 130px. */
#contact .field textarea {
  min-height: 92px;
}

/* The logo beside the heading, built piece by piece (brandmark.js). Without
   the script, or with reduced motion, it simply stands there finished. */
.brandplay {
  display: none;
}

@media (min-width: 1100px) {
  .contact-top {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: clamp(22px, 3.2vh, 30px);
  }

  /* 700px still holds the paragraph to four lines and gives the logo 400px. */
  #contact .contact-top .section__head {
    flex: none;
    max-width: 700px;
    margin-bottom: 0;
  }

  /* Its right edge lines up with the office cards below. */
  .brandplay {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: 460px;
    margin-left: auto;
    overflow: visible;
  }
}

.brandplay__line {
  fill: none;
  stroke-miterlimit: 10;
}

/* The mark turns on the centre of its ring. */
.brandplay__mark,
.brandplay__arc {
  transform-box: view-box;
  transform-origin: 16.4px 31.2px;
}

.brandplay__l {
  transform-box: fill-box;
  transform-origin: 50% 60%;
}

/* Armed: everything waits, hidden, for the play. */
.brandplay.is-armed .brandplay__line {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.brandplay.is-armed .brandplay__line,
.brandplay.is-armed .brandplay__arc,
.brandplay.is-armed .brandplay__l {
  opacity: 0;
}

.brandplay.is-playing .brandplay__line {
  animation: brand-line 0.8s cubic-bezier(0.45, 0, 0.25, 1) var(--d) both;
}

.brandplay.is-playing .brandplay__arc {
  animation: brand-arc 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d) both;
}

.brandplay.is-playing .brandplay__l {
  animation: brand-letter 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d) both;
}

.brandplay.is-playing .brandplay__mark {
  animation: brand-sway 4.8s linear var(--sway) both;
}

@keyframes brand-line {
  from { stroke-dashoffset: 1; opacity: 0; }
  12% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* Each part of the ring glides round into its place. */
@keyframes brand-arc {
  from { opacity: 0; transform: rotate(-40deg); }
  to { opacity: 1; transform: none; }
}

@keyframes brand-letter {
  from { opacity: 0; transform: translateY(3px) scale(1.06); filter: blur(1.6px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* +15 and -15, three times, each turn eased in and out, then upright. */
@keyframes brand-sway {
  0% { transform: rotate(0deg); animation-timing-function: ease-in-out; }
  8.33% { transform: rotate(15deg); animation-timing-function: ease-in-out; }
  25% { transform: rotate(-15deg); animation-timing-function: ease-in-out; }
  41.67% { transform: rotate(15deg); animation-timing-function: ease-in-out; }
  58.33% { transform: rotate(-15deg); animation-timing-function: ease-in-out; }
  75% { transform: rotate(15deg); animation-timing-function: ease-in-out; }
  91.67% { transform: rotate(-15deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(0deg); }
}

.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--ink .eyebrow {
  color: var(--accent-line);
}

.section__head h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 18px;
}

.section__head p {
  font-size: 17.5px;
  color: var(--muted);
  margin-bottom: 0;
}

.section--ink .section__head p {
  color: #b4c7d6;
}

/* --- hero ----------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: #fff;
  /* Padding keyed to the viewport's HEIGHT, not its width. It was 13vw, which
     is the wrong axis: a wide-but-short laptop window got the maximum 150px of
     top padding precisely where there was least room for it, pushing the
     headline down and cutting the buttons off the bottom — measured, 30px of
     them were below the fold at 1280x720. With vh the hero gives room back on
     exactly the screens that are short of it. */
  /* The top is 30px less than it was: that is the line of fields above the
     kicker, so the hero still ends at the fold on a 730px screen. */
  padding: clamp(32px, calc(8.5vh - 30px), 118px) 0 clamp(40px, 7.5vh, 104px);
}

/* A faint helix-ish field, drawn in CSS rather than shipped as an image:
   two offset radial washes, no file to download. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(40, 111, 157, 0.42), transparent 62%),
    radial-gradient(48% 60% at 96% 88%, rgba(169, 206, 229, 0.16), transparent 70%);
  pointer-events: none;
}

.hero .shell {
  position: relative;
}

/* The first screen is the hero and nothing else: at least the height of the
   window under the masthead, content centred in it. Short windows are not
   affected - there the content is already taller than this. */
@media (min-width: 721px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 79px);
  }
}

/* A small line above the headline saying what and where. */
.hero__kicker {
  margin: 0 0 clamp(10px, 2vh, 18px);
  font: 600 13px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-line);
}

/* What the consultancy does, on the line above where it is: each in a colour
   of its own idea - data cyan, the living genome in the canopy's green, the
   amber light a sequencer reads. */
.hero__fields,
.hero__where {
  display: block;
}

.hero__fields {
  margin-bottom: 6px;
}

/* Tighter on phones so the three stay on one line; on the narrowest, a dot
   wraps down with the word after it, never left hanging at a line end. */
@media (max-width: 520px) {
  .hero__fields {
    letter-spacing: 0.06em;
  }
}

.hero__leaf--bix { color: #7ed2f8; }
.hero__leaf--gen { color: #8fe3c0; }
.hero__leaf--seq { color: #f2c46d; }

/* The two countries in their flags: the stripes run across the letters,
   top to bottom as on the flags themselves. The band edges are placed on the
   capitals (which fill roughly the middle 56% of the line), in thirds. Each
   colour is lifted from the flag's own so it holds on the navy - the Dutch
   blue especially, which as printed would vanish into it. */
.flag {
  font-weight: 700;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.flag--nl {
  background-image: linear-gradient(
    to bottom,
    #f0606a 0 41%,
    #ffffff 41% 59%,
    #6f9ef0 59% 100%
  );
}

.flag--in {
  background-image: linear-gradient(
    to bottom,
    #ffa040 0 41%,
    #ffffff 41% 59%,
    #3fc35a 59% 100%
  );
}

/* Bold: bigger and tighter than before. Each line sits in a mask of its own
   (.hero__line) for the entrance below. */
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: none;
  margin-bottom: clamp(12px, 2.2vh, 22px);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-line);
}

.hero__line {
  display: block;
  overflow: hidden;
  /* Room for descenders inside the mask. */
  padding-bottom: 0.06em;
}

.hero__line > span {
  display: inline-block;
}

/* "with expertise in", then the specialism, large, with an accent bar under
   it that draws out again for each new word. */
.hero__expertise {
  max-width: none;
  margin: 0 0 clamp(8px, 1.6vh, 14px);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #c2d2df;
}

.hero__rot {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  white-space: nowrap;
}

.hero__word {
  display: inline-block;
  font-weight: 650;
  color: #fff;
}

.hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #7ed2f8, var(--mark-bg));
  transform-origin: left;
}

/* The eight specialisms, all of them, as a quiet index under the big line:
   the one being shown up there is lit here. Soft by design - the bold part is
   the line above. Pointing at one shows it there. */
.specialisms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  max-width: 820px;
  margin: 0 0 clamp(16px, 2.8vh, 28px);
  padding: 0;
  list-style: none;
  font: 500 11px/1.5 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(194, 214, 230, 0.6);
}

.specialisms li {
  position: relative;
  padding: 2px 0 2px 11px;
  transition: color 0.4s ease;
}

/* A small dot before every item, the first included, so a wrapped second
   line starts the same way as the first rather than with a stray separator.
   Drawn rather than typed, so it is never read out. */
.specialisms li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: rgba(169, 206, 229, 0.35);
}

.specialisms li.is-on {
  color: #fff;
}

.specialisms li.is-on::before {
  background: #7ed2f8;
}

/* On a phone the eight run one per line, seven lines of small print that
   push the buttons off the first screen; the rotating line already shows
   them there. Kept for screen readers, which never hear the rotating line. */
@media (max-width: 720px) {
  .specialisms {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.js .specialisms li {
  cursor: default;
}

/* --- the entrance, once, on load ----------------------------------------
   Soft: the two headline lines rise out of their masks, then everything else
   eases up a few pixels as it fades in. Done in about 1.3s. A plain CSS
   animation, not tied to any class the scripts toggle, so menu jumps back to
   the top do not replay it. */
.hero__line > span {
  animation: hero-rise 0.95s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero__line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.hero__line:nth-child(3) > span {
  animation-delay: 0.24s;
}

.hero__kicker,
.hero__expertise,
.specialisms,
.hero__foot {
  animation: hero-fade 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero__kicker {
  animation-delay: 0.05s;
}

.hero__expertise {
  animation-delay: 0.35s;
}

.specialisms {
  animation-delay: 0.45s;
}

.hero__foot {
  animation-delay: 0.65s;
}

@keyframes hero-rise {
  from {
    transform: translateY(105%);
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__line > span,
  .hero__kicker,
  .hero__expertise,
  .specialisms,
  .hero__foot {
    animation: none;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

/* --- clients (under the Work cases) ------------------------------------ */

.trusted-band {
  background: var(--ink-deep);
  padding-block: clamp(32px, 5.5vh, 56px);
}

/* The label above the row rather than beside it, so the seven cards get the
   full width and stay on one line on a laptop screen. */
.trusted {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.trusted__label {
  flex: none;
  margin: 0;
  font: 600 15px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b4c7d6;
}

/* In full colour, each on a white card of the same size: the cards give seven
   house styles one common frame, so they sit together without being greyed.
   They rise in one after another when the strip arrives, and lift on hover. */
.logos {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos li {
  position: relative;
  display: grid;
  place-items: center;
  height: 108px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 10px 26px rgba(4, 18, 30, 0.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease;
}

.logos li:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(4, 18, 30, 0.42);
}

.logos img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* The name over the card on hover, from data-name, so a seal or icon that
   does not spell its owner out is still named. No wider than the card plus
   the gap on each side, so at the screen edge it never widens the page. */
.logos li::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: calc(100% + 32px);
  padding: 7px 12px;
  border-radius: 8px;
  background: #7ed2f8;
  color: var(--ink-deep);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 22px rgba(4, 18, 30, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.logos li:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Two to a row on phones; the seventh would sit alone, so it takes the row. */
@media (max-width: 640px) {
  .logos {
    grid-template-columns: 1fr 1fr;
  }

  .logos li:last-child {
    grid-column: 1 / -1;
  }
}

/* Round seals and square icons: as tall as a wordmark they read too small. */
.logos .logo--emblem img {
  max-height: 78px;
}

/* Backwards fill only, so once a card has risen its transform is free again
   for the hover lift. */
.js .trusted:not(.is-in) .logos li {
  opacity: 0;
}

.js .trusted.is-in .logos li {
  animation: logo-rise 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
  animation-delay: calc(0.15s + var(--i) * 0.08s);
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .trusted:not(.is-in) .logos li {
    opacity: 1;
  }

  .js .trusted.is-in .logos li {
    animation: none;
  }

  .logos li:hover {
    transform: none;
  }
}

/* --- testimonials --------------------------------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote blockquote {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.7;
}

.quote blockquote p {
  max-width: none;
  margin-bottom: 0;
}

/* The institute is the line that carries the warm colour — it is the part that
   says whose opinion this is, and it was the quieter of the two. */
.quote figcaption {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--cozy);
}

/* The name sits above it in the page's own ink, so the two read as a hierarchy
   rather than as one warm block. */
.quote figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

/* With voices.js: the quote large on the left, the four clients as tabs on
   the right. Every quote sits in the same grid cell, so the panel is as tall
   as the longest and does not jump between them. */
.quotes.is-live {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.voices__stage {
  display: grid;
}

.quotes.is-live .quote {
  position: relative;
  grid-area: 1 / 1;
  padding: 54px 36px 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.quotes.is-live .quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

.quotes.is-live .quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 32px;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: var(--mark-bg);
}

.quotes.is-live .quote blockquote {
  font-size: 16.5px;
  line-height: 1.7;
}

/* Who said it follows the words, rather than sitting at the foot of a card
   sized for the longest quote, a long way below a short one. */
.quotes.is-live .quote figcaption {
  margin-top: 0;
}

.voices__tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.voice-tab {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.voice-tab:hover {
  background: var(--tile);
}

.voice-tab__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 56px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.voice-tab__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.voice-tab[aria-selected='true'] .voice-tab__logo {
  border-color: var(--accent-line);
}

.voice-tab[aria-selected='true'] .voice-tab__logo img,
.voice-tab:hover .voice-tab__logo img {
  filter: none;
  opacity: 1;
}

.voice-tab__who b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  transition: color 0.2s ease;
}

.voice-tab__who span {
  font-size: 13px;
  color: var(--cozy);
}

.voice-tab[aria-selected='true'] .voice-tab__who b {
  color: var(--accent);
}

/* The countdown to the next quote, under the current tab; voices.js moves on
   when it ends. Paused, it stops where it is. Once a visitor has picked a
   tab there is no countdown, and the line simply marks the current one. */
.voice-tab__time {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.voice-tab.is-timing .voice-tab__time {
  animation: voice-time 11s linear forwards;
}

.quotes.is-paused .voice-tab__time,
.quotes.is-held .voice-tab__time,
.quotes.is-offscreen .voice-tab__time {
  animation-play-state: paused;
}

.quotes.is-chosen .voice-tab[aria-selected='true'] .voice-tab__time {
  transform: none;
}

@keyframes voice-time {
  to {
    transform: none;
  }
}

/* Narrow: the four clients as a row of logos above the quote. */
@media (max-width: 900px) {
  .quotes.is-live {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .voices__tabs {
    order: -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 0;
  }

  .voice-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 10px 4px 12px;
    text-align: center;
  }

  .voice-tab__who b {
    display: none;
  }

  .voice-tab__who span {
    font-size: 12px;
  }

  /* Each quote at its own height here: one column is narrow enough that the
     longest quote is twice the shortest, and holding every quote to the
     longest left half the card empty. voices.js does not move on by itself
     at this width, so the height only changes when the reader taps. */
  .quotes.is-live .quote {
    padding: 56px 22px 24px;
  }

  .quotes.is-live .quote:not(.is-active) {
    display: none;
  }

  .quotes.is-live .quote::before {
    left: 18px;
  }

  .quotes.is-live .quote blockquote {
    font-size: 16px;
  }
}

/* On navy, like Sequencing: the quote on a lighter navy card, the names
   white, who said it in the rose Services uses for what is marked, the
   countdown in cyan. The logos keep their small white tiles - two of them are
   grey on transparent and would vanish on navy. */
#testimonials .quote {
  background: #1a4562;
  border-color: rgba(169, 206, 229, 0.16);
  box-shadow: none;
}

#testimonials .quote blockquote {
  color: #e5eef5;
}

#testimonials .quote figcaption {
  border-top-color: rgba(169, 206, 229, 0.16);
  color: #f3ccd9;
}

#testimonials .quote figcaption strong,
#testimonials .voice-tab__who b {
  color: #fff;
}

#testimonials .quotes.is-live .quote::before {
  color: rgba(243, 204, 217, 0.35);
}

#testimonials .voices__tabs,
#testimonials .voice-tab {
  border-color: rgba(169, 206, 229, 0.38);
}

#testimonials .voice-tab:hover {
  background: rgba(169, 206, 229, 0.08);
}

#testimonials .voice-tab__logo {
  border-color: transparent;
}

#testimonials .voice-tab[aria-selected='true'] .voice-tab__logo {
  border-color: #7ed2f8;
}

#testimonials .voice-tab__who span {
  color: #b4c7d6;
}

#testimonials .voice-tab[aria-selected='true'] .voice-tab__who b {
  color: #7ed2f8;
}

#testimonials .voice-tab__time {
  background: #7ed2f8;
}

/* --- prose (the privacy page) ------------------------------------- */

.prose p {
  color: var(--muted);
  font-size: 16.5px;
}

.prose {
  max-width: 760px;
}

.prose h3 {
  margin: 36px 0 10px;
  font-size: 19px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16.5px;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
}

.prose .prose__date {
  font-size: 14px;
}

/* --- contact -------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 111, 157, 0.16);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.consent input {
  width: auto;
  margin: 4px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.offices {
  display: grid;
  gap: 20px;
}

.office {
  padding: 26px 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.office__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.office__head img {
  width: 26px;
  height: auto;
  border-radius: 3px;
}

.office__head h3 {
  font-size: 17px;
}

.office address {
  font-style: normal;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

.office address a {
  color: var(--accent);
}

.office__reg {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  max-width: none;
}

/* --- footer --------------------------------------------------------- */

.footer {
  padding: 44px 0;
  background: var(--ink-deep);
  color: #b4c7d6;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer a {
  color: #d5e2ed;
}

.footer a:hover {
  color: #fff;
}

/* Whose trademarks the platforms and tools named on the page are: small,
   under the footer's row. */
.footer__marks {
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #9fb6c8;
}

.footer__social {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

/* --- entrances ------------------------------------------------------ */

.is-nav-target .eyebrow,
.is-nav-target h1,
.is-nav-target h2,
.is-nav-target:is(h1, h2) {
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  will-change: clip-path, opacity, transform;
}

/* Sections lift slightly as they arrive. Held behind a class the script adds,
   so with JavaScript off everything is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal.is-nav-target {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .quote,
  .office {
    padding: 24px 22px;
  }
}

/* What the form says back. Silent until there is something to report. */
.form-note {
  margin: 14px 0 0;
  font-size: 14.5px;
  min-height: 1.4em;
}

.form-note.is-info {
  color: var(--muted);
}

.form-note.is-ok {
  color: var(--accent-deep);
  font-weight: 500;
}

.form-note.is-bad {
  color: #a2402c;
  font-weight: 500;
}

/* --- capabilities --------------------------------------------------------- */

/* Two columns: the capabilities on the left, whichever one you are pointing at
   described on the right. The old site drew these as floating bubbles with D3 —
   a quarter of a megabyte of library to move some text into a box. */
.caps-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}

.caps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.cap {
  display: contents;
}

.caps dt {
  margin: 0;
}

.cap__name {
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cap__name:hover,
.cap__name:focus-visible,
.cap__name.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Without the script this is a definition list and reads as one. The script
   sets .js on <html>, which folds the definitions away and lifts the panel in. */
.cap__text {
  margin: 0 0 4px;
  flex: 1 0 100%;
  font-size: 14.5px;
  color: var(--muted);
}

.cap-panel {
  display: none;
}

.js .cap__text {
  display: none;
}

.js .cap-panel {
  display: block;
  position: sticky;
  top: 104px;
  padding: 28px 30px;
  min-height: 150px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cap-panel__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  max-width: none;
}

/* Until something is chosen, the panel is an instruction rather than a fact. */
.cap-panel__text.is-hint {
  color: var(--muted);
}

@media (max-width: 820px) {
  .caps-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .js .cap-panel {
    position: static;
    min-height: 0;
  }
}

/* --- the live genome field (genome.js) ------------------------------- */

/* Behind everything in the hero; the text sits above it. */
.genome-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero .shell {
  z-index: 1;
}

/* Room at the foot of the hero for the instrument line. */
.hero:has(.genome-status) {
  padding-bottom: calc(clamp(40px, 7.5vh, 104px) + 34px);
}

.genome-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 11px max(20px, calc((100vw - var(--shell)) / 2));
  border-top: 1px solid rgba(169, 206, 229, 0.16);
  /* Nearly solid, so the helix running behind it never collides with the
     text. Not frosted: a backdrop blur costs frames on every scroll (see the
     masthead). */
  background: rgba(18, 55, 82, 0.9);
  font: 500 11px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(194, 210, 223, 0.62);
}

/* BASE in the canopy's greens, a letter each, like "canopy" in Services. */
.genome-status__leafy b {
  font-weight: 600;
}

.genome-status__leafy > :nth-child(1) { color: var(--leaf-1); }
.genome-status__leafy > :nth-child(2) { color: var(--leaf-2); }
.genome-status__leafy > :nth-child(3) { color: var(--leaf-3); }
.genome-status__leafy > :nth-child(4) { color: var(--leaf-4); }

/* All it says is the cursor hint, which means nothing on a phone. */
@media (max-width: 720px) {
  .genome-status {
    display: none;
  }

  .hero:has(.genome-status) {
    padding-bottom: clamp(40px, 7.5vh, 104px);
  }
}

/* The cursor over the hero: a nanopore - a ring in a membrane, with the
   strand's bases passing through it. Only with a real mouse and motion
   allowed, and only while the pointer is in the hero - genome.js adds
   .has-genome-cursor then, and takes it off again on the way out. */
.has-genome-cursor,
.has-genome-cursor a,
.has-genome-cursor button,
.has-genome-cursor summary,
.has-genome-cursor label {
  cursor: none;
}

.genome-cursor {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.genome-cursor.is-on {
  opacity: 1;
}

/* Everything is placed by genome.js at the pointer. The pore turns with the
   way of travel; the letters never turn, so they stay upright. */
.genome-cursor__pore,
.genome-cursor__base,
.genome-cursor__beads > b {
  position: absolute;
  top: 0;
  left: 0;
}

.genome-cursor__pore,
.genome-cursor__base {
  will-change: transform;
}

.genome-cursor__pore > span {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.15s ease, background-color 0.2s, border-color 0.2s;
}

.genome-cursor__ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 2.5px solid rgba(126, 210, 248, 0.9);
  border-radius: 50%;
}

/* The strand, along the way of travel, faint and fading at both ends. */
.genome-cursor__strand {
  width: 96px;
  height: 1px;
  margin: -0.5px 0 0 -48px;
  background: linear-gradient(90deg, transparent, rgba(126, 210, 248, 0.32) 30%, rgba(126, 210, 248, 0.32) 70%, transparent);
}

/* The membrane, across it on both sides of the pore: two rows of dots,
   like the heads of a lipid bilayer. */
.genome-cursor__membrane::before,
.genome-cursor__membrane::after {
  content: '';
  position: absolute;
  left: -5px;
  width: 10px;
  height: 26px;
  border-inline: 2px dotted rgba(169, 206, 229, 0.5);
}

.genome-cursor__membrane::before {
  top: -44px;
}

.genome-cursor__membrane::after {
  top: 18px;
}

.genome-cursor__base,
.genome-cursor__beads > b {
  width: 20px;
  margin: -8px 0 0 -10px;
  font: 600 17px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  text-align: center;
}

.genome-cursor__beads > b {
  opacity: 0;
}

/* While a passing base is in the pore, the waiting one makes room. */
.genome-cursor__base {
  transition: opacity 0.1s ease;
}

.genome-cursor__base.is-away {
  opacity: 0;
}

/* Over a link or button it all makes way and the ring fills, so it reads
   as "this can be clicked". */
.genome-cursor.is-over .genome-cursor__ring {
  border-color: #7ed2f8;
  background: rgba(126, 210, 248, 0.22);
}

.genome-cursor.is-over .genome-cursor__base,
.genome-cursor.is-over .genome-cursor__strand,
.genome-cursor.is-over .genome-cursor__membrane {
  opacity: 0;
}

.genome-cursor.is-over .genome-cursor__beads {
  visibility: hidden;
}

/* --- the Technologies ring (ring.js) ---------------------------------- */

/* With the ring built, the plain list it was built from steps aside. */
#technologies.has-ring .caps-wrap {
  display: none;
}

/* Cards swinging out past the screen edge are cut off at the section, not at
   the content column, so they reach the edges without widening the page. */
#technologies.has-ring {
  overflow-x: clip;
}

/* The cards stand round the rim of a wheel tipped towards the visitor
   (ring.js): its radius, and how far it is tipped. */
.tring-stage {
  --wheel-radius: 520px;
  --wheel-tip: 14deg;
  position: relative;
  height: 600px; /* until ring.js fits it to the screen */
  perspective: 2000px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.tring-stage.is-dragging {
  cursor: grabbing;
}

/* ring.js sets --s (the scale that fits the screen) and --lift (how far the
   middle of the cards sits below the centre of the wheel), so the cards are
   centred in the stage at any size. */
.tring {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--lift, 40px) * var(--s, 1));
  width: 0;
  height: 0;
  transform: scale(var(--s, 1));
  transform-style: preserve-3d;
}

/* The little helix the cards turn around. */
.tring-core {
  position: absolute;
  left: -60px;
  top: -200px;
  width: 120px;
  height: 240px;
  pointer-events: none;
}

/* Each card is centred on its place on the rim by ring.js's transform. */
.tcard {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  height: 290px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: inherit;
  will-change: transform;
}

/* How far the navy has spread from a card's centre (ring.js animates it):
   registered so it can be animated at all. */
@property --spread {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -28%;
}

/* The front card in navy: a second copy of the card's face, laid exactly over
   it (the border's 1px plus the card's 16px of padding), shown through a soft
   round window that grows from the card's centre as it comes to the front and
   draws back into it as it leaves (ring.js wipe()). Hidden until then. */
.tcard__night {
  position: absolute;
  inset: -1px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
  border-radius: inherit;
  /* A softer navy than the ink: the front card stands out without weighing. */
  background: #21506f;
  pointer-events: none;
  --spread: -28%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 var(--spread), transparent calc(var(--spread) + 26%));
  mask-image: radial-gradient(circle at 50% 50%, #000 var(--spread), transparent calc(var(--spread) + 26%));
}

/* Each field's own colour, on the small label only. */
.tcard[data-field='genomics'] { --field: #286f9d; }
.tcard[data-field='transcriptomics'] { --field: #6a4fa3; }
.tcard[data-field='single-cell'] { --field: #a8456a; }
.tcard[data-field='evolution'] { --field: #3f7d3c; }
.tcard[data-field='variation'] { --field: #94650f; }
.tcard[data-field='systems'] { --field: #5b6b7a; }
.tcard[data-field='structure'] { --field: #4a5d8a; }
.tcard[data-field='data'] { --field: #8a5a2b; }

/* Further round the ring, further into the page colour. ring.js sets its
   opacity directly. */
.tcard__fog {
  position: absolute;
  z-index: 2;
  inset: -1px;
  border-radius: inherit;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
}

.tcard.is-front {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lift);
}

/* The lift of the front card's shadow eases with the wipe, not in one step. */
.tcard {
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.tcard:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.tcard__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font: 600 11.5px/1.2 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tcard__top span:first-child {
  color: var(--field, var(--accent));
}

/* On the navy copy: light text and a see-through drawing panel. */
.tcard__night .tcard__top span:first-child {
  color: color-mix(in srgb, var(--field, #8fd3f2) 45%, white);
}

.tcard__night .tcard__name {
  color: #ffffff;
}

.tcard__night .tcard__text {
  color: #c9dbe8;
}

.tcard__night .tcard__viz {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.tcard__night .tcard__viz circle {
  fill: #5d89a8;
}

.tcard__night .tcard__viz circle.hi {
  fill: #8fd3f2;
}

.tcard__night .tcard__viz circle.rose {
  fill: #f0a9c0;
}

.tcard__night .tcard__viz .line {
  stroke: #5d89a8;
}

.tcard__viz {
  width: 100%;
  height: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
}

.tcard__viz circle {
  fill: #9bbcd2;
}

.tcard__viz circle.hi {
  fill: var(--accent);
}

.tcard__viz circle.rose {
  fill: var(--mark-ink);
}

.tcard__viz .line {
  fill: none;
  stroke: #9bbcd2;
  stroke-width: 1.4;
}

.tcard__name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
}

.tcard__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.tring-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 4px;
}

/* The capability at the front, by name - in the page's own type, not as a
   code. */
.tring-now {
  min-width: 18ch;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
}

.tring-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.tring-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 1000px) {
  .tring-stage {
    --wheel-radius: 360px;
    --wheel-tip: 21deg;
    perspective: 1700px;
  }
}

@media (max-width: 640px) {
  .tring-stage {
    --wheel-radius: 190px;
    --wheel-tip: 32deg;
    height: 500px;
    perspective: 740px;
  }

  .tcard {
    width: 172px;
    height: 252px;
    padding: 12px;
    gap: 8px;
  }

  .tcard__name {
    font-size: 1.08rem;
  }

  .tcard__text {
    font-size: 13px;
  }

  .tring-core {
    left: -45px;
    top: -170px;
    width: 90px;
    height: 180px;
  }
}



/* --- sequencing, as it happens (sequencing.js) ---------------------------- */

/* Without the script: the platforms as a list, every one open. */
.seqx h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.seqx__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.seqx__lead {
  text-wrap: pretty;
  max-width: 52ch;
  margin-bottom: 22px;
}

.seqx__list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(169, 206, 229, 0.2);
}

.seqx__item {
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid rgba(169, 206, 229, 0.1);
}

.seqx__name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.seqx__n,
.seqx__kind {
  font: 600 11px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seqx__n {
  color: var(--accent-line);
}

.seqx__kind {
  margin-left: auto;
  color: #8fa7ba;
}

.seqx__body p {
  margin: 8px 0 10px;
  font-size: 15px;
  line-height: 1.55;
}

.seqx__specs {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 13.5px;
}

.seqx__specs div {
  display: flex;
  gap: 12px;
}

.seqx__specs dt {
  flex: 0 0 74px;
  font: 600 10.5px/1.9 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa7ba;
}

.seqx__specs dd {
  margin: 0;
  color: #e5eef5;
}

.seqx__cta {
  margin: 0;
}

.seqx__stage {
  display: none;
}

/* With the script: one screen, the platforms played in turn by the clock in
   sequencing.js. It used to pin through four screens of scrolling. */
.seqx.is-live {
  padding-block: clamp(36px, 6vh, 80px);
}

.seqx.is-live .seqx__grid,
.seqx.is-tabs .seqx__grid {
  width: 100%;
}

/* The picture takes the height the screen has left under the masthead, the
   heading and the padding, so the whole section arrives in one screen. */
.seqx.is-live .seqx__stage,
.seqx.is-tabs .seqx__stage {
  display: block;
  position: relative;
  height: clamp(300px, calc(100svh - 330px), 520px);
}

/* Also the .shell: keep the shell's width, which the split head's
   max-width: none (later in the file) would otherwise undo. */
.shell.seqx__head {
  max-width: var(--shell);
  margin-bottom: clamp(16px, 3vh, 36px);
  /* The lead and button are taller than the title, so start both columns at
     the top: the eyebrow lines up with the lead's first line. */
  align-items: start;
}

.seqx__head > div:last-child {
  justify-self: end;
  max-width: 54ch;
}

.seqx__head .seqx__lead {
  margin-bottom: 14px;
  font-size: 16.5px;
}

.seqx__head .seqx__cta {
  margin: 0;
}

/* Sequencing only, beside the picture: two stacks, not two rows. The title
   and the platforms on the left, the lead and picture on the right. The head
   and grid step aside (display: contents) and the pin lays out all four: the
   title and the lead share row 1, the platforms and the picture share row 2,
   so the picture starts level with the list and stretches to its height. */
@media (min-width: 901px) {
  #sequencing:is(.is-live, .is-tabs) .seqx__pin {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto;
    column-gap: 48px;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
  }

  #sequencing:is(.is-live, .is-tabs) :is(.seqx__head, .seqx__grid) {
    display: contents;
  }

  #sequencing:is(.is-live, .is-tabs) .seqx__head > div:first-child {
    grid-area: 1 / 1;
  }

  #sequencing:is(.is-live, .is-tabs) .seqx__head > div:last-child {
    grid-area: 1 / 2;
  }

  #sequencing:is(.is-live, .is-tabs) .seqx__text {
    grid-area: 2 / 1;
    align-self: start;
    margin-top: clamp(20px, 3.5vh, 36px);
  }

  /* No height of its own: it takes the list's (the row's), and the list's
     22px bottom margin holds the caption, so the drawing ends with the list. */
  #sequencing:is(.is-live, .is-tabs) .seqx__stage {
    grid-area: 2 / 2;
    height: auto;
    margin-top: clamp(20px, 3.5vh, 36px);
  }

  #sequencing .seqx__shot {
    inset: 0 0 22px;
    height: calc(100% - 22px);
    object-position: center;
  }

  #sequencing .seqx__fig {
    bottom: -10px;
  }
}

/* The countdown to the next platform: the rule beside the current one fills
   from the top. Drawn by the same clock as the scene. Once a platform has
   been picked there is no countdown; the rule simply marks it. */
.seqx__time {
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #7ed2f8;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

.seqx.is-chosen .seqx__item.is-active .seqx__time {
  transform: none;
}

.seqx.is-tabs .seqx__time {
  display: none;
}

/* Only the platform in view stays open; the rest fold to their names. */
.seqx.is-live .seqx__item,
.seqx.is-tabs .seqx__item {
  position: relative;
}

.seqx.is-live .seqx__item .seqx__body,
.seqx.is-tabs .seqx__item .seqx__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s ease, opacity 0.35s ease;
}

.seqx.is-live .seqx__item .seqx__body > *,
.seqx.is-tabs .seqx__item .seqx__body > * {
  min-height: 0;
  overflow: hidden;
}

.seqx.is-live .seqx__item.is-active .seqx__body,
.seqx.is-tabs .seqx__item.is-active .seqx__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.seqx.is-live .seqx__body {
  grid-template-columns: 1fr;
}

.seqx.is-live .seqx__name,
.seqx.is-tabs .seqx__name {
  cursor: pointer;
  color: #8fa7ba;
  transition: color 0.3s;
}

.seqx.is-live .seqx__item.is-active .seqx__name,
.seqx.is-tabs .seqx__item.is-active .seqx__name {
  color: #fff;
}

/* A rule on the left marks the platform in view: the track the countdown
   fills (with the clock running), or the mark itself (tabs). */
.seqx.is-live .seqx__item.is-active::before,
.seqx.is-tabs .seqx__item.is-active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-line);
}

.seqx.is-live .seqx__item.is-active::before {
  background: rgba(169, 206, 229, 0.25);
}

.seqx.is-live .seqx__name:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 4px;
}

/* The stills (sequencing.js), one per platform, stacked in the space above
   the caption; the current one fades in over the last. */
.seqx__shot {
  position: absolute;
  inset: 0 0 34px;
  width: 100%;
  height: calc(100% - 34px);
  object-fit: contain;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.seqx__shot.is-on {
  opacity: 1;
}

.seqx__fig {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  font: 500 11px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(194, 210, 223, 0.62) !important;
}

.seqx.is-tabs {
  padding-block: clamp(56px, 9vh, 96px);
}

@media (max-width: 900px) {
  .seqx__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* On a phone the picture follows the list. */
  .seqx.is-live .seqx__stage {
    height: 280px;
    min-height: 0;
  }

  .seqx.is-live .seqx__specs div:last-child,
  .seqx.is-live .seqx__fig {
    display: none;
  }

  /* No caption under the picture here, so the still takes its space. */
  .seqx__shot {
    inset: 0;
    height: 100%;
    object-position: center;
  }

  .seqx.is-live .seqx__item {
    padding-block: 6px;
  }

  .seqx.is-live .seqx__name {
    font-size: 1.05rem;
  }

  .seqx.is-live .seqx__body p {
    font-size: 13.5px;
    margin: 4px 0 6px;
  }
}

/* --- a section head in two columns ------------------------------------------ */

/* Title on the left, the paragraph beside it on the right. Used where the
   content below needs the height: the Technologies ring, the Work index. */
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 64px;
  align-items: end;
  margin-bottom: 40px;
}

.section__head--split h2 {
  margin-bottom: 0;
}

.section__head--split > p {
  justify-self: end;
  max-width: 54ch;
  font-size: 16.5px;
}

/* The claim is the heading, one line per span, with a small line naming the
   section under it. */
.section__head--claim {
  max-width: none;
}

.section__head--claim h2 {
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.12;
  margin-bottom: 10px;
}

.section__claim > span {
  display: block;
  text-wrap: balance;
}

.section__head--claim .section__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
}

@media (max-width: 900px) {
  .section__head--split {
    grid-template-columns: 1fr;
  }

  .section__head--split > p {
    justify-self: start;
  }
}

/* Technologies, with the ring: the whole section fits one screen below the
   masthead, so a menu jump lands on all of it. ring.js sizes the stage to
   whatever height is left. */
#technologies.has-ring {
  padding-block: clamp(28px, 5vh, 56px) clamp(20px, 3.5vh, 40px);
}

#technologies.has-ring .section__head {
  margin-bottom: clamp(4px, 1.5vh, 20px);
}

/* --- Work: the case files (work.js) ------------------------------------------ */

/* Like Technologies, these are menu destinations that should arrive with
   their content in view, on a short laptop screen too: for Work, the index
   and the open case together; for Testimonials, the quote with its tabs.
   About takes the same top so its heading does not start lower than theirs. */
#work,
#about,
#testimonials {
  padding-top: clamp(40px, 7vh, 96px);
}

#work .section__head,
#testimonials .section__head {
  margin-bottom: clamp(20px, 3.5vh, 40px);
}

.cases {
  border-top: 1px solid var(--line-strong);
}

.case__head {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}

.case__btn {
  position: relative;
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  width: 100%;
  padding: 18px 14px 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.case__btn:hover {
  background: var(--tile);
}

/* The open case is marked by a bar at the edge, not only by colour. */
.case__btn::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.case.is-active .case__btn::before {
  transform: scaleY(1);
}

/* The countdown to the next case, under the open one (work.js moves on when
   it ends). Stopped where it is while the pointer is over the cases or the
   section is off screen; gone once a case has been clicked. */
.case__time {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.case__btn.is-timing .case__time {
  animation: voice-time 6s linear forwards;
}

.cases.is-paused .case__time,
.cases.is-offscreen .case__time {
  animation-play-state: paused;
}

.case__n {
  grid-row: 1 / span 2;
  font: 600 12px/1.6 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-deep);
  transition: color 0.2s ease;
}

.case__what {
  grid-column: 2;
  font-size: 14px;
  color: var(--muted);
}

.case.is-active .case__n,
.case.is-active .case__name {
  color: var(--accent);
}

.case__status {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font: 600 10.5px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.case__status.is-ongoing {
  color: var(--warm);
  background: #f4ead9;
}

.case__status.is-complete {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.case__body {
  padding: 18px 4px 26px 3em;
}

.case__lead {
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--muted);
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0 0 16px;
}

.case__meta dt {
  font: 600 10.5px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case__meta dd {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case__tags li {
  padding: 3px 11px;
  border: 1px solid var(--tile-line-strong);
  border-radius: 999px;
  background: var(--tile);
  font-size: 13px;
  color: var(--tile-ink);
}

/* The drawing at the head of each case. */
.case__fig {
  margin: 0 0 20px;
  padding: 12px 14px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.case__figtop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  margin: 0 0 4px;
  font: 600 10.5px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.case__figtop span:last-child {
  color: var(--muted);
}

.case__fig svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Wide, the drawing gives way first when the screen is short, so the text
   of the case is never what gets cut off. */
@media (min-width: 901px) {
  .case__fig svg {
    max-height: max(150px, calc(100svh - 540px));
  }
}

.case__fig circle {
  fill: var(--fig-dot, #9bbcd2);
}

.case__fig circle.hi {
  fill: var(--accent);
}

.case__fig circle.rose {
  fill: var(--mark-ink);
}

.case__fig circle.hub {
  stroke: var(--card);
  stroke-width: 2;
}

.case__fig .line {
  fill: none;
  stroke: var(--fig-line, #a9c5d8);
  stroke-width: 1.3;
}

.case__fig .line.hot {
  stroke: var(--accent);
  stroke-width: 1.8;
}

.case__fig .line.dash {
  stroke: var(--mark-ink);
  stroke-dasharray: 3 5;
  opacity: 0.55;
}

.case__fig .tick {
  stroke: var(--mark-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.case__fig .figcap {
  font: 600 9.5px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  fill: var(--muted);
}

/* Opening a case builds its drawing: the dots come in group by group, each
   group with its own delay (--d), so it reads in order rather than appearing
   all at once. About a second. */
.case.is-active .case__fig .dots,
.case.is-active .case__fig .tick,
.sx.is-playing .case__fig .dots {
  animation: case-dot 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
}

.case.is-active .case__fig .line,
.sx.is-playing .case__fig .line {
  animation: case-line 0.5s ease both;
}

@keyframes case-dot {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

/* A line that draws itself out (the QTL bracket, the chromosomes). */
.case__fig .line.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.case.is-active .case__fig .line.draw,
.sx.is-playing .case__fig .line.draw {
  animation: case-draw var(--t, 600ms) cubic-bezier(0.45, 0, 0.25, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes case-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Parts that drift into place (Moringa's reads, contigs and exons). */
.case__fig .move {
  opacity: 0;
}

.case.is-active .case__fig .move,
.sx.is-playing .case__fig .move {
  animation: case-move 0.85s cubic-bezier(0.45, 0, 0.25, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes case-move {
  from {
    opacity: 0;
    transform: translate(var(--fx, 0px), var(--fy, 0px));
  }
  35% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Parts that simply fade in, in their turn. */
.case.is-active .case__fig .fadein,
.sx.is-playing .case__fig .fadein {
  animation: case-line 0.6s ease both;
  animation-delay: var(--d, 0ms);
}

/* The figure parts of Rice and Moringa. */
.case__fig .chrom {
  fill: var(--fig-chrom, #dbe7ef);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.case__fig .band {
  fill: var(--accent);
  opacity: 0.1;
}

.case__fig .pick {
  fill: var(--mark-bg);
  opacity: 0.6;
}

.case__fig .contig {
  fill: var(--accent);
  fill-opacity: 0.85;
}

.case__fig .contig.alt {
  fill-opacity: 0.5;
}

.case__fig .exon {
  fill: var(--accent);
}

.case__fig .exon.rose {
  fill: var(--mark-ink);
}

.case__fig .line.lead {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.case__fig .line.gene {
  stroke-width: 1.6;
}

.case__fig .figcap.rank {
  fill: var(--mark-ink);
}

@keyframes case-line {
  from {
    opacity: 0;
  }
}

/* Wide: the index on the left, the open case beside it. Every case body sits
   in the same grid cell, so the panel is as tall as the longest one and never
   jumps when you move between them. */
@media (min-width: 901px) {
  .cases.is-live {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: repeat(6, auto) 1fr;
    column-gap: 48px;
    border-top: 0;
  }

  .cases.is-live .case {
    display: contents;
  }

  .cases.is-live .case__head {
    grid-column: 1;
  }

  .cases.is-live .case:first-child .case__btn {
    border-top: 1px solid var(--line-strong);
  }

  .cases.is-live .case__body {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    padding: 22px 26px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  }

  .cases.is-live .case.is-active .case__body {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s;
  }

  .cases.is-live .case__lead {
    font-size: 15.5px;
  }

  /* Six rows: tighter on a short screen, so the last one still arrives in
     view after a menu jump (12px at 730 tall, the full 18px from ~920). */
  .cases.is-live .case__btn {
    padding-block: clamp(11px, 3.4vh - 13px, 18px);
  }
}

/* Narrow: an accordion. */
@media (max-width: 900px) {
  .cases.is-live .case__body {
    display: none;
  }

  .cases.is-live .case.is-active .case__body {
    display: block;
  }

  .case__body {
    padding-left: 4px;
  }

  .case__name {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .case__btn {
    grid-template-columns: 2.2em minmax(0, 1fr);
  }

  .case__status {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }
}

/* --- What we sequence (catalogue.js) ------------------------------------------ */

/* On the navy of Sequencing: one big card with the
   open service, the fields listed beside it, the field's services as a rail
   along the card's top. The drawings take Sequencing's palette - cyan, rose for
   what is marked, pale blue dots - by resetting the tokens they draw with,
   here only, so Work's drawings stay as they are. */
#catalogue {
  --accent: #7ed2f8;
  --accent-deep: #e6f3fb;
  --accent-soft: #15405f;
  --mark-ink: #f3ccd9;
  --mark-bg: rgba(243, 204, 217, 0.35);
  --ink: #e5eef5;
  --muted: #8fb0c7;
  --line: rgba(169, 206, 229, 0.16);
  --line-strong: rgba(169, 206, 229, 0.38);
  --card: #15405f;
  --tile-ink: #cfe0ec;
  --mint: #8fe3c0;
  --fig-dot: rgba(198, 224, 240, 0.78);
  --fig-line: rgba(169, 206, 229, 0.42);
  --fig-chrom: rgba(169, 206, 229, 0.12);
  --fig-glow: 126, 210, 248;
  --fig-glow-rose: 243, 204, 217;
  --fig-note-ink: #123752;
  padding-block: clamp(40px, 7vh, 96px);
}

#catalogue .section__head {
  margin-bottom: clamp(18px, 3vh, 36px);
}

#catalogue .section__head > p {
  font-size: 17.5px;
  text-wrap: pretty;
}

/* How many there are: the number the intro leads with stands out. */
#catalogue .cat__total {
  font-weight: 700;
  color: var(--mark-ink);
}

/* The intro's two sentences, a line each on a wide screen. */
@media (max-width: 900px) {
  #catalogue .cat__br {
    display: none;
  }
}

#catalogue .cat__all {
  color: var(--mark-ink);
}

/* The open service's place among the 25, beside the heading (wide only). */
#catalogue .cat__count {
  display: none;
}

/* Without the script: each field a heading over its list. */
.cat__field + .cat__field {
  margin-top: 40px;
}

#catalogue .cat__name {
  margin-bottom: 12px;
  font-size: 22px;
  color: #fff;
}

.sxs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.sx__head {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}

.sx__btn,
.sx__row {
  position: relative;
  display: grid;
  grid-template-columns: 2.1em minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: baseline;
  width: 100%;
  padding: 8px 12px 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.sx__btn {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sx__btn:hover {
  background: rgba(169, 206, 229, 0.08);
}

/* The open service is marked by a bar at the edge, as in Work. */
.sx__btn::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.sx.is-active .sx__btn::before {
  transform: scaleY(1);
}

.sx__n {
  font: 600 11px/1.6 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sx__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  transition: color 0.2s ease;
}

.sx.is-active .sx__n,
.sx.is-active .sx__name {
  color: var(--accent);
}

/* The rail's short name: wide only. */
.sx__short {
  display: none;
}

/* A service listed in two fields says so, so it does not read as a slip. */
.sx__also {
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  font: 600 9.5px/1.5 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-deep);
}

.sx__body {
  padding: 16px 4px 22px 2.4em;
}

#catalogue .sx__lead {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #b4c8d8;
}

.sx__meta {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.sx__meta dt {
  font: 600 10px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sx__meta dd {
  margin: 1px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

#catalogue .case__figtop {
  color: var(--accent-line);
}

#catalogue .case__figtop span:last-child {
  color: var(--muted);
}

/* Only HOW IT WORKS above the drawing, at the right: the rail names it. */
#catalogue .case__figtop {
  justify-content: flex-end;
}

/* What to know about the service: five rows (catalogue.js), one open at a
   time - an icon tile, the title, and
   the open one's few lines under it, its title in the canopy's mint. Its text replaces the lead and the
   sample / platforms / you get list the page carries. */
.cat.is-live .sx__lead,
.cat.is-live .sx__meta {
  display: none;
}

.sx__facts {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(169, 206, 229, 0.18);
}

.sx__fact {
  border-bottom: 1px solid rgba(169, 206, 229, 0.18);
  transition: background-color 0.4s ease;
}

.sx__fact.is-open {
  background: rgba(255, 255, 255, 0.05);
}

.sx__factbtn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 11px 10px 11px 4px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: #e5eef5;
  cursor: pointer;
}

.sx__factbtn svg {
  width: 40px;
  height: auto;
  padding: 3px;
  border-radius: 9px;
  background: rgba(126, 210, 248, 0.1);
  transition: background-color 0.4s ease;
}

.sx__factbtn svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx__factbtn svg path.hot {
  stroke: var(--mark-ink);
}

.sx__factbtn b {
  font-size: 16px;
  font-weight: 600;
  color: #c2d2df;
  transition: color 0.3s ease;
}

.sx__factbtn:hover b {
  color: #fff;
}

.sx__fact.is-open .sx__factbtn b {
  color: #8fe3c0;
}

.sx__fact.is-open .sx__factbtn svg {
  background: rgba(126, 210, 248, 0.2);
}

/* Opening and closing by its height, softly. */
.sx__factmore {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.3, 0, 0.2, 1);
}

.sx__fact.is-open .sx__factmore {
  grid-template-rows: 1fr;
}

#catalogue .sx__factmore p {
  min-height: 0;
  overflow: hidden;
  max-width: none;
  margin: 0;
  padding: 0 10px 0 58px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #b4c8d8;
  transition: padding-bottom 0.45s ease;
}

#catalogue .sx__fact.is-open .sx__factmore p {
  padding-bottom: 10px;
}

/* On to the whole text, on services.html. */
#catalogue .sx__know {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

#catalogue .sx__know::after {
  content: ' \2192';
}

#catalogue .sx__know:hover {
  color: #fff;
  text-decoration: underline;
}

#catalogue .sx__factmore p.is-nodata {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mark-ink);
}

/* The fields: number, name, and the count under the name. The chosen one in
   Sequencing's mint. */
#catalogue .cat__sidehead {
  display: none;
}

/* The canopy is for wide screens only (below); phones keep the tabs. */
.cat__fan {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cat__dot.is-now {
    animation: none;
  }
}

.cat__tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: clamp(16px, 2.6vh, 28px);
}

.cat__tab {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  align-items: baseline;
  gap: 1px 6px;
  padding: 10px 12px;
  border: 1px solid rgba(169, 206, 229, 0.18);
  border-radius: 12px;
  background: transparent;
  color: #e5eef5;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cat__tab:hover {
  border-color: rgba(169, 206, 229, 0.3);
  background: rgba(169, 206, 229, 0.08);
}

.cat__tab[aria-selected='true'] {
  border-color: rgba(143, 227, 192, 0.6);
  background: rgba(143, 227, 192, 0.1);
  color: #fff;
}

.cat__tabn,
.cat__tabcount {
  font: 600 10.5px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cat__tabname {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.cat__tabcount {
  grid-column: 2;
  font-size: 10px;
  text-transform: uppercase;
}

.cat__tab[aria-selected='true'] .cat__tabn,
.cat__tab[aria-selected='true'] .cat__tabcount {
  color: var(--mint);
}

/* With the script: one field at a time; its tile carries its name. */
.cat.is-live .cat__field {
  margin: 0;
}

.cat.is-live .cat__field:not(.is-active),
.cat.is-live .cat__name {
  display: none;
}

/* A field whose drawings are still to come says so, in the place they will
   take. */
.sx-soon {
  display: none;
}

/* A label that sits over dots keeps a rim of the figure's ground round it. */
.case__fig .figcap.halo {
  paint-order: stroke;
  stroke: var(--accent-soft);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* The drawings' own parts (with the Work figure's dots, lines and bars). */
.case__fig .line.thick {
  stroke-width: 3;
}

.case__fig .line.primer {
  stroke: var(--mark-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case__fig .line.probe {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.case__fig .line.amp {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.45;
}

.case__fig .line.read {
  stroke: var(--fig-dot, #9bbcd2);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.case__fig .line.garc {
  stroke: var(--accent);
  stroke-width: 7;
  opacity: 0.8;
}

.case__fig .line.garc.rose {
  stroke: var(--mark-ink);
}

.case__fig .line.mob {
  stroke: var(--mark-ink);
  stroke-width: 7;
  stroke-dasharray: 2 3;
  opacity: 0.45;
}

.case__fig .line.link {
  stroke: var(--mark-ink);
  stroke-width: 1.4;
  stroke-dasharray: 2 3;
}

.case__fig .line.copy {
  stroke: var(--accent);
  stroke-width: 2;
}

.case__fig .line.copy.rose {
  stroke: var(--mark-ink);
}

.case__fig .tile {
  fill: var(--accent);
  opacity: 0.55;
}

.case__fig .hm {
  fill: var(--accent);
}

.case__fig .hm.rose {
  fill: var(--mark-ink);
}

/* Bases written out: a sequence, a trace's calls, a motif. */
.case__fig .seq {
  font: 700 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  fill: var(--accent);
}

.case__fig .seq.rank {
  fill: var(--mark-ink);
}

.case__fig .seq.kept {
  fill: var(--ink);
  text-decoration: underline;
}

.case__fig .seq.logo {
  font-weight: 800;
  fill: var(--accent-deep);
}

/* Parts that show where they start, wait, then glide home (the exons as
   they are pulled out, the contigs put in order). */
.case__fig .place {
  opacity: 0;
}

.sx.is-playing .case__fig .place {
  animation:
    sx-appear 0.5s ease var(--d, 0ms) both,
    sx-glide var(--t, 900ms) cubic-bezier(0.45, 0, 0.25, 1) var(--g, 1s) both;
}

@keyframes sx-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sx-glide {
  from {
    transform: translate(var(--fx, 0px), var(--fy, 0px));
  }
  to {
    transform: none;
  }
}

/* Parts that step back once they have done their work (the genome the reads
   came from, the tiles the consensus was made of). */
.sx.is-playing .case__fig .gone {
  animation: sx-gone 0.7s ease var(--d, 0ms) both;
}

@keyframes sx-gone {
  to {
    opacity: var(--to, 0.15);
  }
}

/* Wide: the section is one screen under the masthead. The fields are listed
   on the left; the big card on the right holds the field's services as a
   rail of stops along its top, then the open service - its drawing as large
   as the screen allows (catalogue.js fits --figh), what it is in a band
   under it. Every open service sits in the same cell, so the card never
   jumps between them. */
@media (min-width: 901px) {
  /* Scrolling by hand rarely stops exactly on it, and a little short cuts
     the rail off the bottom. Stopping near enough settles it flush under the
     masthead (scroll-padding-top), where it fits; anywhere else on the page
     scrolls freely, since this is the only snap point. */
  html {
    scroll-snap-type: y proximity;
  }

  #catalogue {
    scroll-snap-align: start;
    min-height: calc(100svh - 80px);
    padding-block: clamp(16px, 2.2vh, 40px) clamp(14px, 2vh, 32px);
  }

  #catalogue .shell {
    max-width: 1440px;
    padding-inline: 32px;
  }

  /* Title, intro beside it, the count at the far end. */
  #catalogue .section__head {
    display: flex;
    align-items: end;
    gap: 32px;
    margin-bottom: 12px;
  }

  #catalogue .section__head > div {
    flex: none;
  }

  #catalogue .eyebrow {
    margin-bottom: 2px;
  }

  #catalogue .section__head h2 {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
  }

  #catalogue .section__head > p {
    flex: 1;
    justify-self: auto;
    max-width: 780px;
    margin: 0 0 2px;
    font-size: 15.5px;
    line-height: 1.5;
    text-wrap: pretty;
  }

  #catalogue .section__head > .cat__count {
    display: block;
    flex: none;
    max-width: none;
    margin-left: auto;
    white-space: nowrap;
    font-size: 15px;
  }

  #catalogue .cat__count b {
    margin-right: 2px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
  }

  .cat.is-live {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 18px;
  }

  .cat.is-live .cat__field.is-active {
    grid-column: 2;
    grid-row: 1;
  }

  .cat.is-live .cat__side {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
  }

  #catalogue .cat__sidehead {
    display: block;
    margin: 0 4px 12px;
    font: 600 10.5px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-line);
  }

  .cat.is-live .cat__tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
  }

  /* The canopy in place of the list: as tall as the card beside it, but
     taking no height in the row, since catalogue.js fit() sizes the drawing
     to what the row leaves. */
  .cat.is-live.has-fan {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 26px;
  }

  .cat.is-live.has-fan .cat__side {
    position: relative;
    width: calc(var(--fan-h, 520px) * 320 / 580);
    height: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  #catalogue .cat.has-fan .cat__sidehead,
  .cat.is-live.has-fan .cat__tabs {
    display: none;
  }

  .cat.has-fan .cat__fan {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: var(--fan-h, 520px);
    aspect-ratio: 320 / 580;
    overflow: visible;
  }

  .cat__slice {
    cursor: pointer;
    outline: none;
  }

  .cat__slice path {
    fill: rgba(143, 227, 192, 0.07);
    stroke: rgba(143, 227, 192, 0.38);
    stroke-width: 1.3;
    transition: fill 0.25s, stroke 0.25s;
  }

  .cat__slice:hover path {
    fill: rgba(143, 227, 192, 0.14);
  }

  /* Its edge shows focus; the browser's ring would box the whole fan. */
  .cat__slice:focus {
    outline: none;
  }

  .cat__slice:focus-visible path {
    stroke: #fff;
    stroke-width: 2;
  }

  .cat__slice.is-active path {
    fill: rgba(126, 210, 248, 0.26);
    stroke: rgba(126, 210, 248, 0.95);
  }

  .cat__slice text {
    pointer-events: none;
  }

  .cat__slice-n {
    font: 600 13px ui-monospace, 'Cascadia Code', Consolas, monospace;
    fill: #8fa7ba;
  }

  .cat__slice-name {
    font: 500 15px Inter, system-ui, sans-serif;
    text-anchor: middle;
    fill: #e5eef5;
  }

  .cat__slice-count {
    font: 600 10px ui-monospace, 'Cascadia Code', Consolas, monospace;
    letter-spacing: 0.08em;
    text-anchor: middle;
    fill: #8fa7ba;
  }

  .cat__slice.is-active .cat__slice-n,
  .cat__slice.is-active .cat__slice-count {
    fill: #7ed2f8;
  }

  .cat__slice.is-active .cat__slice-name {
    font-weight: 700;
    fill: #fff;
  }

  .cat__dot {
    fill: rgba(143, 227, 192, 0.4);
    cursor: pointer;
    transition: fill 0.3s, r 0.3s;
  }

  .cat__dot.is-field {
    fill: rgba(143, 227, 192, 0.9);
  }

  /* The service playing: big, cyan, and breathing so the eye finds it. */
  .cat__dot.is-now {
    r: 6;
    fill: #7ed2f8;
    stroke: none;
    animation: cat-now 1.8s ease-in-out infinite;
  }

  @keyframes cat-now {
    0%,
    100% {
      filter: drop-shadow(0 0 3px rgba(126, 210, 248, 0.7));
    }
    50% {
      filter: drop-shadow(0 0 9px rgba(126, 210, 248, 1));
    }
  }

  /* The same pink as "Twenty-five" in the intro: the count, said twice. */
  .cat__canopy {
    font: 600 10.5px ui-monospace, 'Cascadia Code', Consolas, monospace;
    letter-spacing: 0.16em;
    text-anchor: middle;
    fill: var(--mark-ink);
  }

  .cat__canopy-leaf {
    font-size: 11.5px;
  }

  .cat__hub {
    font: 600 12px ui-monospace, 'Cascadia Code', Consolas, monospace;
    letter-spacing: 0.1em;
    fill: #8fe3c0;
  }

  /* The card: the rail along its top, one column a stop; the open service
     under it. */
  .cat.is-live .sxs {
    display: grid;
    grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 6px;
    padding: 14px 22px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: radial-gradient(120% 90% at 50% 35%, rgba(40, 111, 157, 0.2), rgba(13, 42, 64, 0.35));
  }

  .cat.is-live .sx {
    display: contents;
  }

  .cat.is-live .sx__body,
  .cat.is-live .sx-soon {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cat.is-live .sx__head {
    grid-row: 1;
    margin-bottom: 12px;
  }

  /* The drawing on the left, the rows beside it on the right. */
  .cat.is-live .sx__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    column-gap: 24px;
    align-self: stretch;
    padding: 6px 0 0;
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  }

  .cat.is-live .sx.is-active .sx__body {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s;
  }

  .cat.is-live .sx__fig {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin: 0;
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .cat.is-live .sx__fig svg {
    width: 100%;
    height: var(--figh, 300px);
    max-height: none;
  }

  /* The rows are as tall as the drawing, never taller (size contained), so
     opening one never moves the card. */
  .cat.is-live .sx__info {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    contain: size;
    overflow-y: auto;
    padding-top: 12px;
  }

  /* The rail: a dot a stop, a line on to the next, the short name under. */
  .cat.is-live .sx__btn {
    display: block;
    padding: 18px 4px 0 0;
    border: 0;
  }

  .cat.is-live .sx__btn:hover {
    background: none;
  }

  .cat.is-live .sx__btn::before {
    left: 0;
    top: 2px;
    bottom: auto;
    width: 11px;
    height: 11px;
    border: 1.5px solid rgba(169, 206, 229, 0.55);
    border-radius: 50%;
    background: transparent;
    transform: none;
    /* The next stop's glow comes up softly as the roll reaches it. */
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.6s ease;
  }

  .cat.is-live .sx__btn::after {
    content: '';
    position: absolute;
    left: 16px;
    right: -2px;
    top: 7.5px;
    height: 1px;
    background: rgba(169, 206, 229, 0.22);
  }

  .cat.is-live .sx:last-child .sx__btn::after {
    display: none;
  }

  .cat.is-live .sx__btn:hover::before {
    border-color: #fff;
  }

  /* The open stop: filled, with a soft ring round it so the rail reads as
     "you are here" from across the card. */
  .cat.is-live .sx.is-active .sx__btn::before {
    border-color: var(--mint);
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(143, 227, 192, 0.16), 0 0 14px rgba(143, 227, 192, 0.45);
  }

  /* Coming in: each stop rises into place after the one before, its line on
     to the next drawing out behind it. Soft, no overshoot. */
  @media (prefers-reduced-motion: no-preference) {
    .cat.is-railing .sx__head {
      animation: sx-rail-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
      animation-delay: calc(var(--k, 0) * 90ms + 120ms);
    }

    .cat.is-railing .sx__btn::after {
      transform-origin: left;
      animation: sx-rail-line 0.45s ease-out both;
      animation-delay: calc(var(--k, 0) * 90ms + 300ms);
    }
  }

  @keyframes sx-rail-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }

  @keyframes sx-rail-line {
    from {
      transform: scaleX(0);
    }
  }

  .cat.is-live .sx__n,
  .cat.is-live .sx__also {
    display: none;
  }

  /* The full name stays for screen readers. */
  .cat.is-live .sx__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cat.is-live .sx__short {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #b8cfdf;
    transition: color 0.2s ease;
  }

  .cat.is-live .sx__btn:hover .sx__short,
  .cat.is-live .sx.is-active .sx__short {
    color: #fff;
  }

  .cat.is-live .sx-soon {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    text-align: center;
  }

  #catalogue .cat.is-live .sx-soon p {
    max-width: 34ch;
    margin: 0;
    font-size: 15px;
    color: var(--muted);
  }
}

/* Narrow: an accordion, and the fields in rows of three, then two. */
@media (max-width: 900px) {
  .cat__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cat.is-live .sx__body {
    display: none;
    padding-left: 4px;
  }

  .cat.is-live .sx.is-active .sx__body {
    display: block;
  }

  .sx__fig {
    margin-bottom: 14px;
  }
}

@media (max-width: 520px) {
  .cat__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* So "Transcriptomics" fits a half-width tile. */
  .cat__tab {
    grid-template-columns: 1.8em minmax(0, 1fr);
    padding-inline: 10px;
  }

  .cat__tabname {
    font-size: 14px;
  }

  .sx__btn,
  .sx__row {
    grid-template-columns: 2em minmax(0, 1fr);
  }

  .sx__also {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

/* --- About ------------------------------------------------------------------- */

.about__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 56px;
  align-items: end;
  margin-bottom: 48px;
}

.about__top .section__head {
  margin-bottom: 0;
}

/* The two offices, with the time in each now. */
.offices-now {
  padding: 22px 26px 20px;
  border-radius: var(--radius);
  background: var(--ink-deep);
  color: #e5eef5;
}

.offices-now__label {
  margin: 0 0 14px;
  font: 600 11px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-line);
}

.offices-now__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.office-now {
  display: flex;
  flex-direction: column;
}

.office-now:last-child {
  text-align: right;
}

.office-now__city {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.office-now__country {
  font-size: 13px;
  color: #a9bfd0;
}

.office-now__time {
  order: -1;
  margin-bottom: 6px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.office-now__time:empty {
  display: none;
}

.offices-now__arc {
  width: 100%;
  margin-bottom: 18px;
  overflow: visible;
}

.offices-now__arc path {
  fill: none;
  stroke: rgba(169, 206, 229, 0.65);
  stroke-width: 1.5;
  stroke-dasharray: 2 5;
}

.offices-now__arc circle {
  fill: var(--accent-line);
}

.offices-now__arc circle.rose {
  fill: var(--mark-bg);
}

/* Approach, vision, values: three short columns rather than three long
   paragraphs. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 56px;
  border-block: 1px solid var(--line-strong);
}

.pillar {
  padding: 26px 28px 28px 0;
}

.pillar + .pillar {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.pillar__n {
  margin: 0 0 12px;
  font: 600 11px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pillar h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--ink-deep);
}

.pillar p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* The team: portraits rather than avatars. */
.team-block > .eyebrow {
  display: block;
  margin-bottom: 20px;
}

.crew {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--tile);
}

.member img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  transition: filter 0.4s ease, transform 0.6s ease;
}

/* Six photos taken in six places read as one set in greyscale; pointing at
   one brings its colour back. Only where there is hover: on a phone nothing
   could bring the colour back, so there it stays. */
@media (hover: hover) {
  .member img {
    filter: grayscale(1) contrast(1.04);
  }

  .member:hover img {
    filter: none;
    transform: scale(1.03);
  }
}

.member__text {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 16px 14px;
  background: linear-gradient(to bottom, rgba(18, 55, 82, 0), rgba(18, 55, 82, 0.88));
}

.member h4 {
  font-size: 18px;
  color: #fff;
}

/* A block, so a role on two lines keeps its own line height, not the
   paragraph's. */
.member__text span {
  display: block;
  font: 600 10.5px/1.5 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfe0ec;
}

.member a {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(18, 55, 82, 0.28);
  color: var(--ink);
}

.member a:hover {
  background: #fff;
  color: var(--accent);
}

@media (max-width: 900px) {
  .about__top {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar,
  .pillar + .pillar {
    padding: 22px 0;
    border-left: 0;
  }

  .pillar + .pillar {
    border-top: 1px solid var(--line);
  }

  .crew {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* --- the drawings, alive (work.js, lens.js) ------------------- */

/* The lens: dots under the mouse swell and take the accent. */
.case__fig circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease, fill 0.25s ease;
}

.case__fig circle.is-near {
  transform: scale(1.9);
  fill: var(--accent);
}

.case__fig circle.rose.is-near {
  fill: var(--mark-ink);
}

.case__fig circle.hub.is-near {
  transform: scale(1.25);
}

/* What we sequence: the lens as a bubble. Each dot swells by how near the
   pointer is (--s, from lens.js); a small shape near it lifts, a long line
   or big ring glows. Soft, and no overshoot. */
.sx__fig circle.is-near {
  transform: scale(var(--s, 1.9));
}

.sx__fig .can-lift,
.sx__fig .can-glow {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sx__fig .can-lift {
  transform-box: fill-box;
  transform-origin: center;
}

.sx__fig .can-lift.is-near {
  transform: scale(1.18);
  filter: drop-shadow(0 0 3px rgba(var(--fig-glow, 40, 111, 157), 0.45));
}

.sx__fig .can-glow.is-near {
  filter: drop-shadow(0 0 3px rgba(var(--fig-glow, 40, 111, 157), 0.55));
}

/* The tour (catalogue.js): the same swell and lift, lit by the tour rather
   than the pointer; a part that lifts in its turn waits --i steps. */
.sx__fig circle.is-lit {
  transform: scale(var(--s, 2.2));
  fill: var(--accent);
}

.sx__fig circle.rose.is-lit {
  fill: var(--mark-ink);
}

.sx__fig .tp {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.sx__fig .tp.is-lit {
  transform: scale(1.18);
  filter: drop-shadow(0 0 3px rgba(var(--fig-glow-rose, 140, 63, 88), 0.45));
}

/* A line, a bar or a box that does not lift glows instead. */
.sx__fig path,
.sx__fig rect {
  transition: filter 0.35s ease;
}

.sx__fig .is-lit:not(circle):not(.tp) {
  filter: drop-shadow(0 0 2px rgba(var(--fig-glow, 40, 111, 157), 0.9)) drop-shadow(0 0 4px rgba(var(--fig-glow, 40, 111, 157), 0.5));
}

.sx__fig .is-lit {
  transition-delay: calc(var(--i, 0) * 320ms);
}

/* Its notes: a small dark pill beside the point, with a thin leader. */
.sx__fig .note {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.sx__fig .note.is-on {
  opacity: 1;
  transform: none;
}

.sx__fig .note rect {
  fill: var(--accent-deep);
}

.sx__fig .note path {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 1;
}

.sx__fig .note text {
  font: 600 8.5px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  fill: var(--fig-note-ink, #fff);
}

/* A click plays the story again; pointing at it says so. */
.sx__again {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .sx__fig svg {
    cursor: pointer;
  }

  .sx__fig:hover .sx__how {
    display: none;
  }

  .sx__fig:hover .sx__again {
    display: inline;
  }
}

/* One quiet motion per drawing. Each is set up here, then held paused at its
   first frame - where it is out of sight - until its tile is pointed at, or
   its case is open. */
.amb.scan {
  --o: 0.1;
  fill: var(--accent);
  animation: amb-scan 3.6s linear infinite;
}

.amb.scan--today {
  --o: 0.55;
  animation-duration: 6s;
}

/* Rose, not the accent: the flows run over lines already drawn in the accent
   (Integration's links), where blue dashes on blue could not be seen. */
.amb.flow {
  fill: none;
  stroke: var(--mark-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 3 11;
  animation: amb-flow 1.1s linear infinite;
}

.amb.pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 16 600;
  stroke-dashoffset: 16;
  animation: amb-pulse 2.6s ease-in-out infinite;
}

.amb.packet {
  fill: var(--accent);
  opacity: 0;
  animation: amb-packet 2.7s linear infinite;
  animation-delay: calc(var(--i, 0) * -0.9s);
}

@keyframes amb-scan {
  from {
    transform: translateX(-14px);
  }
  to {
    transform: translateX(var(--w, 300px));
  }
}

@keyframes amb-flow {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes amb-pulse {
  to {
    stroke-dashoffset: -420;
  }
}

@keyframes amb-packet {
  0% {
    transform: none;
    opacity: 0;
  }
  12%,
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(var(--w, 200px));
    opacity: 0;
  }
}

/* Grape KIT's scan builds the drawing as it goes, so it starts from the left
   whenever its case opens, rather than resuming wherever it was paused. */
.case__fig .amb.scan--build {
  animation: none;
}

.case.is-active .case__fig .amb.scan--build {
  animation: amb-scan 3.6s linear infinite;
}

/* A scan that waits until its drawing has built (--late), then fades in. */
.case__fig .amb.scan--late {
  animation: none;
}

.case.is-active .case__fig .amb.scan--late {
  animation: amb-scan 3.6s linear var(--late, 2.6s) infinite both, amb-arrive 0.5s ease var(--late, 2.6s) both;
}

/* Insect genomics' samples on their way in: a flow that waits the same way. */
.case__fig .amb.flow--late {
  animation: none;
}

.case.is-active .case__fig .amb.flow--late {
  animation: amb-flow 1.1s linear var(--late, 1.6s) infinite both, amb-arrive 0.5s ease var(--late, 1.6s) both;
}

@keyframes amb-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: var(--o, 1);
  }
}

/* Held until wanted. (After the animations above: their shorthand would
   otherwise set them running.) */
.case__fig .amb {
  animation-play-state: paused;
}

/* Hidden until running, so a still drawing is exactly the drawing. (The
   packets fade themselves in and out in their own keyframes.) Each motion's
   strength while running is its --o. */
.case__fig .amb:not(.packet) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case.is-active .case__fig .amb {
  animation-play-state: running;
}

.case.is-active .case__fig .amb:not(.packet) {
  opacity: var(--o, 1);
}

/* Off screen, the open case's motion waits. */
.cases.is-offscreen .case__fig .amb {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .amb {
    display: none;
  }
}

/* --- The section's name down the side (spine.js) ------------------------- */

/* One big sideways word in the left margin of each section, on a line with a
   dot where the section starts; SEQUENCING runs on through What we sequence,
   with a second dot there. The word rides under the masthead while you scroll
   and leaves with the end of its section; What we sequence steps in by the
   word's width to make room. It reads bottom to top. On navy it is
   Sequencing's pale cyan; on the light sections (.spined--light) a sky blue,
   the dot ringed in the section's own background. Below 1360px Sequencing's own text
   would meet the word, so it hides. */
.spined {
  position: relative;
  --spine-word: rgba(126, 210, 248, 0.32);
  --spine-line: rgba(169, 206, 229, 0.5);
  --spine-dot: #7ed2f8;
  --spine-bg: var(--ink-deep);
}

.spined--light {
  --spine-word: #8fc3e6;
  --spine-line: rgba(40, 111, 157, 0.3);
  --spine-dot: var(--accent);
  --spine-bg: var(--card);
}

/* Work and Testimonials sit on the page, not on a card. */
.spined--light:has(> .section:not(.section--card)) {
  --spine-bg: var(--paper);
}

.spine {
  display: none;
}

@media (min-width: 1360px) {
  .spine {
    display: block;
    position: absolute;
    z-index: 2;
    top: clamp(36px, 6vh, 80px);
    bottom: clamp(14px, 2vh, 32px);
    left: max(16px, calc((100vw - 1440px) / 2 + 8px));
    pointer-events: none;
  }

  /* The line. */
  .spine::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: linear-gradient(var(--spine-line), var(--spine-line) 85%, transparent);
  }

  .spine__dot {
    position: absolute;
    top: 0;
    left: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--spine-dot);
    box-shadow: 0 0 0 4px var(--spine-bg);
  }

  /* Level with What we sequence's title; spine.js measures where that is. */
  .spine__dot--cat {
    display: none;
    top: calc(var(--cat-top) - clamp(36px, 6vh, 80px) + clamp(16px, 2.2vh, 40px));
  }

  .spanseq.is-measured .spine__dot--cat {
    display: block;
  }

  /* Reads top to bottom, held under the masthead while the two sections pass. */
  .spine__word {
    position: sticky;
    top: 104px;
    display: block;
    margin: 34px 0 0 14px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    color: var(--spine-word);
  }

  /* Fourteen letters at 64px run past a laptop screen's foot (and past
     Technologies' own end); a little smaller and tighter, they fit. */
  .spine__word--long {
    font-size: 58px;
    letter-spacing: 0.02em;
  }

  /* The word is 64px wide and sits 8px into the card row's margin, so the
     row's content starts 120px in, clear of it at every width. */
  #catalogue .shell {
    padding-left: 120px;
  }
}

/* Sequencing's headline: the answer is the line that matters, in the accent. */
.seqx__answer {
  color: #7ed2f8;
}

/* Its kicker a size up from the other sections', and its T a capital of
   its own: larger, heavier, in the accent, as Services has its S. */
.seqx__kicker {
  font-size: 15px;
  letter-spacing: 0.14em;
}

.seqx__t {
  font-size: 1.55em;
  font-weight: 750;
  line-height: 0;
  letter-spacing: 0.06em;
  color: #7ed2f8;
}

/* Services: its S in the accent, the S it shares with SEQUENCING down the
   side. It simply stands - it used to slide out of the side word on scroll. */
.cat__s {
  color: #7ed2f8;
}

/* --- bioinformatics, end to end (bioinfo.js) --------------------------------- */

/* The list and the stage are the Sequencing section's (seqx__*); only what
   is new is here. A hairline at the top, as Services above is navy
   too and the two would otherwise run together. */
.bix {
  border-top: 1px solid rgba(169, 206, 229, 0.14);
}

/* Six layers: a little less air per row so the list still ends inside one
   screen at 1536 x 730. */
@media (min-width: 901px) {
  .bix .seqx__item {
    padding-block: 8px;
  }
}

/* No countdown here (nothing moves on by itself): the open layer is marked by
   a full rule, as a picked platform is in Sequencing. */
.bix.is-live .seqx__item.is-active::before {
  background: #7ed2f8;
}

/* Where most services stop: a dashed rule across the list, between the first
   layer and the rest, which stays in view whichever layer is open. */
.bix__stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid rgba(169, 206, 229, 0.1);
}

.bix__stop-line {
  position: absolute;
  left: -1px;
  right: 0;
  top: 50%;
  border-top: 1px dashed rgba(242, 196, 109, 0.55);
}

.bix__stop-text {
  position: relative;
  padding-right: 12px;
  background: var(--ink-deep);
  font: 600 11px/1.3 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2c46d;
}

.bix__stop-text::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #f2c46d;
  vertical-align: 0;
}

/* One canopy (bioinfo.js, wide screens only): the six layers as slices of a
   half circle with MyGen at the centre, the picked one shown in the panel
   beside it, which holds its text and drawing. The fan and panel share one
   height. */
.bix__fan,
.bix__panel .bix__copy,
.bix__panel .bix__specs {
  display: none;
}

/* The specs' labels wear the rose of "Twenty-five" in Services. */
.bix .seqx__specs dt {
  flex-basis: 84px;
  font-size: 12px;
  line-height: 1.6;
  color: #f3ccd9;
}

@media (min-width: 901px) {
  /* As tall as the screen allows under the masthead (79), the padding and
     the heading (138), 16px clear at the bottom, so the drawing gets every
     pixel; less 14px, the room the canopy dots over the fan need under the
     heading. */
  .bix.is-fan {
    --fan-h: clamp(360px, calc(96.5svh - 247px), 620px);
    padding-top: 3.5svh;
  }

  .bix.is-fan .seqx__head {
    margin-bottom: calc(clamp(16px, 3vh, 36px) + 14px);
  }

  .bix.is-fan .seqx__grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .bix.is-fan .seqx__text {
    display: none;
  }

  /* The heading above both; the fan as tall as the panel beside it, its
     slices' top and bottom on the panel's (the box is 320 x 472 units). */
  .bix.is-fan .seqx__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .bix.is-fan .seqx__head > div {
    justify-self: start;
  }

  .bix__fan {
    display: block;
    width: calc(var(--fan-h) * 320 / 472);
    height: var(--fan-h);
    overflow: visible;
  }

  .bix__slice {
    cursor: pointer;
    outline: none;
  }

  .bix__slice path {
    fill: rgba(143, 227, 192, 0.07);
    stroke: rgba(143, 227, 192, 0.38);
    stroke-width: 1.3;
    transition: fill 0.25s, stroke 0.25s;
  }

  .bix__slice:hover path {
    fill: rgba(143, 227, 192, 0.14);
  }

  /* A slice shows its focus by its own edge, never by the browser's ring:
     some browsers draw that ring as a box round the whole fan. */
  .bix__fan:focus,
  .bix__slice:focus {
    outline: none;
  }

  .bix__slice:focus-visible path {
    stroke: #7ed2f8;
    stroke-width: 2.5;
  }

  .bix__slice.is-active path {
    fill: rgba(126, 210, 248, 0.26);
    stroke: rgba(126, 210, 248, 0.95);
  }

  .bix__slice text {
    text-anchor: middle;
    pointer-events: none;
  }

  .bix__slice .bix__slice-n {
    text-anchor: start;
  }

  .bix__slice-n {
    font: 600 13px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
    fill: #8fa7ba;
  }

  .bix__slice-name {
    font: 500 17px Inter, system-ui, sans-serif;
    fill: #e5eef5;
  }

  .bix__slice.is-active .bix__slice-n {
    fill: #7ed2f8;
  }

  .bix__slice.is-active .bix__slice-name {
    font-weight: 700;
    fill: #fff;
  }

  /* The canopy: a row of mint dots. */
  .bix__crown {
    fill: rgba(143, 227, 192, 0.75);
  }

  .bix__crown-name {
    font: 600 11px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: 0.24em;
    text-anchor: middle;
    fill: #c9f5e2;
  }

  .bix__hub {
    font: 600 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: 0.1em;
    fill: #8fe3c0;
  }

  .bix__cut {
    stroke: rgba(242, 196, 109, 0.85);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
  }

  .bix__cut-dot {
    fill: #f2c46d;
  }

  /* The way in (bioinfo.js): the mint line that runs round the slices. */
  .bix__trace {
    fill: none;
    stroke: #8fe3c0;
    stroke-width: 1.5;
    stroke-linecap: round;
    pointer-events: none;
  }

  .bix__trace-head {
    fill: #8fe3c0;
    filter: drop-shadow(0 0 3px rgba(143, 227, 192, 0.45));
    pointer-events: none;
  }

  .bix__cut-pill {
    fill: var(--ink-deep);
    stroke: rgba(242, 196, 109, 0.85);
    stroke-width: 1.2;
    pointer-events: none;
  }

  .bix__cut-text {
    text-anchor: middle;
    pointer-events: none;
    font: 600 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
    letter-spacing: 0.1em;
    fill: #f2c46d;
  }

  /* Top to bottom: the summary, the drawing taking all the height left, then
     the specs side by side. */
  .bix__panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: var(--fan-h);
    padding: 16px 26px 18px;
    border: 1px solid rgba(126, 210, 248, 0.45);
    border-radius: 16px;
    background: rgba(126, 210, 248, 0.06);
  }

  .bix__panel .bix__copy {
    display: block;
  }

  .bix.is-fan .bix__panel .bix__stage {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
  }

  /* The caption repeats the title above; the drawing takes its room. */
  .bix__panel .seqx__fig {
    display: none;
  }

  .bix__title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
  }

  .bix__copy p {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .bix__panel .bix__specs {
    display: block;
  }

  .bix__specs .seqx__specs {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .bix__specs .seqx__specs div {
    flex-direction: column;
    gap: 2px;
  }

  .bix__specs .seqx__specs dt {
    flex: none;
  }

  .bix__specs .seqx__specs dd {
    font-size: 15px;
    line-height: 1.45;
  }
}

/* Small laptops: a little less type, so the longest layer still fits. */
@media (min-width: 901px) and (max-width: 1100px) {
  .bix__title {
    font-size: 1.25rem;
  }

  .bix__copy p,
  .bix__specs .seqx__specs dd {
    font-size: 14px;
  }
}

/* Five needs, one team: the usual way against ours, as two tracks under the
   five needs. On the usual track the data waits at every handover and is
   lost at one; on ours it runs straight through and is delivered while the
   other is still on its second provider. Both dots run on one 11 s clock. */
.bix__vs {
  margin-top: clamp(48px, 8vh, 80px);
}

.bix__vs-title {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.01em;
}

.bix__vs-title span {
  color: #7ed2f8;
}

.relay {
  --relay-t: 11s;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.relay__needs {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.relay__needs li {
  padding: 0 10px;
  text-align: center;
}

.relay__needs b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.3;
  color: #fff;
}

.relay__needs li > span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #b4c7d6;
}

.relay__n {
  display: block;
  margin-bottom: 6px;
  font: 600 11px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  color: #7ed2f8;
}

.relay__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  padding: 16px 0 10px;
  border-top: 1px solid rgba(169, 206, 229, 0.14);
}

/* Also .relay: .section--ink p would win otherwise. */
.relay .relay__who {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: #8fa7ba;
}

.relay__who span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #8fa7ba;
}

.relay .relay__row--us .relay__who {
  color: #7ed2f8;
}

.relay__row--us .relay__who span {
  color: #c2d2df;
}

.relay__track {
  position: relative;
  height: 58px;
}

/* The usual way: five short lines with a break between each. */
.relay__seg {
  position: absolute;
  top: 22px;
  width: 15%;
  height: 3px;
  border-radius: 2px;
  background: rgba(143, 167, 186, 0.5);
}

.relay__seg::before,
.relay__seg::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fa7ba;
}

.relay__seg::before {
  left: -3px;
}

.relay__seg::after {
  right: -3px;
}

.relay__seg:nth-child(1) { left: 2.5%; }
.relay__seg:nth-child(2) { left: 22.5%; }
.relay__seg:nth-child(3) { left: 42.5%; }
.relay__seg:nth-child(4) { left: 62.5%; }
.relay__seg:nth-child(5) { left: 82.5%; }

/* What happens at each break; lit while the data waits there. */
.relay__gap {
  position: absolute;
  top: 36px;
  transform: translateX(-50%);
  font: 600 10.5px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f2c46d;
  opacity: 0.5;
  animation: var(--relay-t) ease-in-out infinite;
}

.relay__gap--1 { left: 20%; animation-name: relay-gap1; }
.relay__gap--2 { left: 40%; animation-name: relay-gap2; }
.relay__gap--3 { left: 60%; animation-name: relay-gap3; }
.relay__gap--4 { left: 80%; animation-name: relay-gap4; }

@keyframes relay-gap1 { 0%, 10% { opacity: 0.5; } 12%, 21% { opacity: 1; } 23%, 100% { opacity: 0.5; } }
@keyframes relay-gap2 { 0%, 31% { opacity: 0.5; } 33%, 42% { opacity: 1; } 44%, 100% { opacity: 0.5; } }
@keyframes relay-gap3 { 0%, 52% { opacity: 0.5; } 54%, 65% { opacity: 1; } 67%, 100% { opacity: 0.5; } }
@keyframes relay-gap4 { 0%, 75% { opacity: 0.5; } 77%, 86% { opacity: 1; } 88%, 100% { opacity: 0.5; } }

/* Ours: one line, the five needs as stops on it, filling as the data runs. */
.relay__line,
.relay__fill {
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 2px;
  background: rgba(126, 210, 248, 0.22);
}

.relay__fill {
  background: #7ed2f8;
  transform: scaleX(0);
  transform-origin: left;
  animation: relay-fill var(--relay-t) infinite;
}

@keyframes relay-fill {
  0%, 2% { transform: scaleX(0); opacity: 1; animation-timing-function: ease-in-out; }
  40% { transform: scaleX(1); }
  92% { transform: scaleX(1); opacity: 1; }
  97%, 100% { transform: scaleX(1); opacity: 0; }
}

.relay__stop {
  position: absolute;
  top: 23.5px;
  width: 14px;
  height: 14px;
  border: 2px solid #7ed2f8;
  border-radius: 50%;
  background: var(--ink-deep);
  transform: translate(-50%, -50%);
}

.relay__stop::after {
  content: attr(data-n);
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 10px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: #7ed2f8;
}

.relay__stop:nth-child(3) { left: 10%; }
.relay__stop:nth-child(4) { left: 30%; }
.relay__stop:nth-child(5) { left: 50%; }
.relay__stop:nth-child(6) { left: 70%; }
.relay__stop:nth-child(7) { left: 90%; }

.relay__done {
  position: absolute;
  top: 36px;
  left: 90%;
  transform: translateX(-50%);
  font: 600 10.5px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #7fd6a8;
  opacity: 0;
  animation: relay-done var(--relay-t) infinite;
}

@keyframes relay-done {
  0%, 40% { opacity: 0; }
  44%, 92% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

/* The data, a white dot on each track. */
.relay__dot {
  position: absolute;
  top: 23.5px;
  left: 2.5%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 14px rgba(126, 210, 248, 0.8);
  transform: translate(-50%, -50%);
  animation: relay-usual var(--relay-t) infinite;
}

.relay__row--us .relay__dot {
  left: 10%;
  animation-name: relay-us;
}

@keyframes relay-usual {
  0% { left: 2.5%; opacity: 0; animation-timing-function: ease-in-out; }
  2% { opacity: 1; }
  11%, 21% { left: 17.5%; animation-timing-function: ease-in-out; }
  23% { left: 22.5%; }
  32%, 42% { left: 37.5%; animation-timing-function: ease-in-out; }
  44% { left: 42.5%; }
  53% { left: 57.5%; opacity: 1; }
  55% { left: 57.5%; opacity: 0; }
  65% { left: 62.5%; opacity: 0; }
  67% { opacity: 1; }
  76%, 86% { left: 77.5%; animation-timing-function: ease-in-out; }
  88% { left: 82.5%; }
  97% { left: 97.5%; opacity: 1; }
  100% { left: 97.5%; opacity: 0; }
}

@keyframes relay-us {
  0% { left: 10%; opacity: 0; animation-timing-function: ease-in-out; }
  2% { left: 10%; opacity: 1; animation-timing-function: ease-in-out; }
  40%, 92% { left: 90%; opacity: 1; }
  97%, 100% { left: 90%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .relay__gap {
    animation: none;
    opacity: 1;
  }

  .relay__row--usual .relay__dot {
    display: none;
  }

  .relay__fill,
  .relay__done,
  .relay__row--us .relay__dot {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .relay__row--us .relay__dot {
    left: 90%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 900px) {
  .bix__stop {
    padding-block: 8px;
  }

  /* The drawing's own shape, so it fills the width with no band above or
     below it. */
  .bix.is-live .bix__stage,
  .bix.is-tabs .bix__stage {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .bix__stop-text {
    font-size: 10px;
  }

  .relay {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The needs as a numbered list; the tracks under it, full width. */
  .relay__needs {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }

  .relay__needs li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 0;
    text-align: left;
  }

  .relay__n {
    grid-row: 1 / 3;
    margin: 4px 0 0;
  }

  .relay__needs b,
  .relay__needs li > span:last-child {
    grid-column: 2;
  }

  .relay__needs li > span:last-child {
    margin-top: 2px;
  }

  .relay__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  /* Four notes in a phone's width: every other one above the line. */
  .relay__gap {
    font-size: 9.5px;
  }

  .relay__gap--2,
  .relay__gap--4 {
    top: 2px;
  }
}

/* ------------------------------------------------------------------
   services.html: one service in full, on the navy of What we sequence.
   What it is at the head, then the five parts as cards, each laid out
   for what it holds; every service at the side, by field, on a rail like
   the home page's. The colours are #catalogue's.
   ------------------------------------------------------------------ */

.svcp-page {
  background: var(--ink-deep);
}

.svcp-shell {
  max-width: 1360px;
}

.svcp-top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.svcp-top__back {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
}

.svcp-top__back::before {
  content: '← ';
}

.svcp-top__back:hover {
  color: var(--accent);
}

.svcp {
  --accent: #7ed2f8;
  --accent-deep: #e6f3fb;
  --accent-soft: #15405f;
  --mark-ink: #f3ccd9;
  --mark-bg: rgba(243, 204, 217, 0.35);
  --ink: #e5eef5;
  --muted: #8fb0c7;
  --line: rgba(169, 206, 229, 0.16);
  --line-strong: rgba(169, 206, 229, 0.38);
  --card: #15405f;
  --mint: #8fe3c0;
  --amber: #f6d28b;
  --soft-ink: #b4c8d8;
  --under: 78px;
  padding: 36px 0 80px;
  color: var(--ink);
}

.svcp p {
  max-width: none;
}

/* On navy the cyan accent is too pale to carry white type: the page's own
   buttons take the canopy's mint, with navy type. */
.svcp .btn--primary {
  background: var(--mint);
  color: var(--ink-deep);
}

.svcp .btn--primary:hover {
  background: #b5eed6;
  color: var(--ink-deep);
}

.svcp__grid {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* --- the side: every service, by field -------------------------------- */

.svcp__side {
  position: sticky;
  top: calc(var(--under) + 24px);
  max-height: calc(100vh - var(--under) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 206, 229, 0.3) transparent;
  padding-right: 6px;
}

.svcp__sidehead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 12px 12px;
  list-style: none;
  font: 600 11.5px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.svcp__sidehead::-webkit-details-marker {
  display: none;
}

.svcp__total {
  color: var(--mark-ink);
}

/* Wide, the list is always open: its head is only a label. */
@media (min-width: 901px) {
  .svcp__sidehead {
    pointer-events: none;
  }
}

.svcp__field + .svcp__field {
  margin-top: 2px;
}

.svcp__fieldbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: #c2d2df;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.svcp__fieldbtn:hover {
  background: rgba(126, 210, 248, 0.06);
  color: #fff;
}

.svcp__fieldn {
  font: 600 11px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.svcp__fieldname {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.svcp__fieldcount {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(169, 206, 229, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.svcp__fieldcount::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.svcp__field.is-open .svcp__fieldcount::after {
  transform: translateY(1px) rotate(225deg);
}

.svcp__field.is-open .svcp__fieldname {
  color: #fff;
}

/* A field's services hang off a thin rail, a dot each; the open one's dot is
   mint with a halo, as on the home page's rail. */
.svcp__field ol {
  display: none;
  margin: 4px 0 12px 24px;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}

.svcp__field.is-open ol {
  display: block;
}

.svcp__field li a {
  position: relative;
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--soft-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.svcp__field li a::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 13px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-deep);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.svcp__field li a:hover {
  color: #fff;
  background: rgba(126, 210, 248, 0.06);
}

.svcp__field li a:hover::before {
  border-color: var(--accent);
}

.svcp__field li a[aria-current] {
  font-weight: 600;
  color: var(--mint);
  background: rgba(143, 227, 192, 0.08);
}

.svcp__field li a[aria-current]::before {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(143, 227, 192, 0.18);
}

/* --- the head: what it is, and the way to ask ------------------------ */

.svcp__main {
  min-width: 0;
}

.svcp__hero {
  padding: 30px 36px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(126, 210, 248, 0.07), rgba(126, 210, 248, 0.015) 60%);
}

/* Name and lead on the left, the asking at the right of the lead. */
.svcp__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  align-items: end;
}

.svcp__crumb,
.svcp__hero h1 {
  grid-column: 1 / -1;
}

.svcp__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 600 11.5px/1.4 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.svcp__crumb span {
  color: var(--accent);
}

.svcp__crumb b {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(243, 204, 217, 0.12);
  font-weight: 600;
  color: var(--mark-ink);
}

.svcp__hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 2.7vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.svcp__lead {
  max-width: 72ch;
  margin: 0;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--soft-ink);
  text-wrap: pretty;
}

.svcp__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
}

.svcp__jump {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.svcp__jump::after {
  content: ' →';
}

.svcp__jump:hover {
  color: #fff;
}

/* --- the five parts: tabs that stay in reach, then a card each -------- */

.svcp__tabs {
  position: sticky;
  top: var(--under);
  z-index: 5;
  display: flex;
  gap: 4px;
  margin: 18px 0 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #143b58;
  overflow-x: auto;
  scrollbar-width: none;
}

.svcp__tabs a {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--soft-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.svcp__tabs a:hover {
  color: #fff;
  background: rgba(126, 210, 248, 0.07);
}

.svcp__tabs a[aria-current] {
  color: #fff;
  background: rgba(143, 227, 192, 0.12);
}

.svcp__tabs svg,
.svcp__icon svg {
  width: 30px;
  height: auto;
}

.svcp__tabs svg path,
.svcp__icon svg path,
.svcp__file svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svcp__tabs svg path.hot,
.svcp__icon svg path.hot,
.svcp__file svg path.hot {
  stroke: var(--mark-ink);
}

.svcp__tabs a[aria-current] svg path.hot {
  stroke: var(--mint);
}

.svcp__part {
  margin-top: 18px;
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(126, 210, 248, 0.025);
  /* Under the tabs: the page's scroll-padding-top already clears the
     masthead, so this adds only the tabs and a little air. */
  scroll-margin-top: 64px;
}

/* The part "Know more" came for, ringed in mint for a moment. */
.svcp__part.is-target {
  animation: svcp-target 2.6s ease-out;
}

@keyframes svcp-target {
  0%,
  45% {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(143, 227, 192, 0.22);
  }
}

.svcp__parthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 20px;
}

.svcp__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(126, 210, 248, 0.1);
}

.svcp__parthead h2 {
  font-size: 23px;
  font-weight: 650;
  color: #fff;
}

.svcp__quote {
  padding: 4px 11px;
  border: 1px solid rgba(246, 210, 139, 0.32);
  border-radius: 999px;
  background: rgba(246, 210, 139, 0.08);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--amber);
}

.svcp__n {
  margin-left: auto;
  font: 600 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.svcp__sum {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.65;
  color: #dce8f0;
  text-wrap: pretty;
}

.svcp__nodata {
  margin: 0;
  font: 700 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  color: var(--amber);
}

/* About: what it is for, as points with a mint tick. */
.svcp__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svcp__points li {
  position: relative;
  padding: 18px 20px 18px 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(126, 210, 248, 0.04);
  font-size: 15.5px;
  line-height: 1.6;
  color: #cfe0ec;
}

.svcp__points li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 19px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(143, 227, 192, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%238fe3c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 24px no-repeat;
}

/* Details and Sample Requirements: a spec sheet, label and value. */
.svcp__specs {
  margin: 0;
  border-top: 1px solid var(--line);
}

.svcp__specs div {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  gap: 28px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
}

.svcp__specs dt {
  padding-top: 3px;
  font: 600 12px/1.5 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.svcp__specs dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #e5eef5;
}

.svcp__specs .is-plain {
  grid-template-columns: 1fr;
}

/* Rows about plants: the label in leaf green with a leaf before it. */
.svcp__specs .is-plant dt {
  color: var(--mint);
}

.svcp__specs .is-plant dt::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 0 60% 0 60%;
  background: var(--mint);
  vertical-align: -0.05em;
}

.svcp__specs .is-plain dd {
  position: relative;
  padding-left: 20px;
  color: var(--soft-ink);
}

.svcp__specs .is-plain dd::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mark-ink);
}

/* Workflow: the steps along a rail, numbered; the last, the delivery, mint. */
.svcp__steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svcp__steps li {
  position: relative;
  min-width: 0;
}

.svcp__steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 44px;
  right: -14px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(169, 206, 229, 0.16));
}

.svcp__stepn {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--ink-deep);
  font: 700 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  color: var(--accent);
}

.svcp__steps li:last-child .svcp__stepn {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink-deep);
  box-shadow: 0 0 0 5px rgba(143, 227, 192, 0.16);
}

.svcp__steps b {
  display: block;
  margin: 14px 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.svcp__steps span:not(.svcp__stepn) {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: #9fb8ca;
}

/* Deliverables: a tile per thing you get, badged with its file type. */
.svcp__files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svcp__files li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(126, 210, 248, 0.035);
  font-size: 15px;
  line-height: 1.5;
  color: #cfe0ec;
}

.svcp__file {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 58px;
  height: 50px;
  border: 1px solid rgba(243, 204, 217, 0.3);
  border-radius: 11px;
  background: rgba(243, 204, 217, 0.08);
}

.svcp__file b {
  font: 700 11px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--mark-ink);
}

.svcp__file svg {
  width: 34px;
  height: auto;
}

.svcp__what b,
.svcp__extras b {
  display: block;
  font-weight: 600;
  color: #fff;
}

.svcp__what span,
.svcp__extras span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: #9fb8ca;
}

/* Basic deliverables, then Advanced analysis: a small head over each group. */
.svcp__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  font: 600 12px/1.5 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.svcp__group > span:not(.svcp__quote) {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: inherit;
  color: var(--muted);
}

.svcp__group .svcp__quote {
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.svcp__files + .svcp__group {
  margin-top: 30px;
}

/* Advanced analysis: what can be added, each with a mint plus. */
.svcp__extras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svcp__extras li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.svcp__extras li::before {
  content: '+';
  position: absolute;
  left: 4px;
  top: 8px;
  font: 700 17px/1 ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  color: var(--mint);
}

/* --- the foot: ask, then the services either side --------------------- */

.svcp__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 18px;
  padding: 32px 36px;
  border: 1px solid rgba(126, 210, 248, 0.3);
  border-radius: 22px;
  background: linear-gradient(120deg, #1d5b80, #15405f 65%);
}

.svcp__ctak {
  margin: 0;
  font: 600 11.5px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.svcp__cta h2 {
  margin: 8px 0;
  font-size: 26px;
  color: #fff;
}

.svcp__cta p:last-child {
  max-width: 62ch;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--soft-ink);
}

.svcp__cta .btn {
  flex: none;
}

.svcp__pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.svcp__pager a {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.svcp__pager a:hover {
  border-color: var(--line-strong);
  background: rgba(126, 210, 248, 0.05);
}

.svcp__pager .is-next {
  text-align: right;
}

.svcp__pager span {
  font: 600 11.5px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.svcp__pager .is-prev span::before {
  content: '← ';
}

.svcp__pager .is-next span::after {
  content: ' →';
}

.svcp__pager b {
  display: block;
  margin-top: 4px;
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
}

.svcp-foot {
  border-top: 1px solid rgba(169, 206, 229, 0.16);
}

/* A medium screen: the asking goes under the lead, and the steps wrap. */
@media (max-width: 1180px) {
  .svcp__intro {
    grid-template-columns: 1fr;
  }

  .svcp__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 24px;
  }

  .svcp__steps {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    row-gap: 26px;
  }

  .svcp__steps li::after {
    display: none;
  }
}

/* A phone or a tablet: the list folds away above the page, and the parts
   stack. */
@media (max-width: 900px) {
  .svcp {
    padding-top: 20px;
  }

  .svcp__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .svcp__side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .svcp__sidehead {
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(126, 210, 248, 0.05);
    cursor: pointer;
  }

  .svcp__total {
    margin-left: auto;
  }

  .svcp__sidehead::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .svcp__all[open] .svcp__sidehead {
    margin-bottom: 8px;
  }

  .svcp__all[open] .svcp__sidehead::after {
    transform: translateY(2px) rotate(225deg);
  }

  .svcp__hero,
  .svcp__part {
    padding: 22px 20px 24px;
  }

  .svcp__specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .svcp__steps {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .svcp__steps li {
    padding-left: 50px;
  }

  .svcp__stepn {
    position: absolute;
    left: 0;
    top: -6px;
  }

  .svcp__steps b {
    margin-top: 0;
  }

  .svcp__steps li:not(:last-child)::after {
    display: block;
    top: 34px;
    bottom: -18px;
    left: 17px;
    right: auto;
    width: 1px;
    height: auto;
    background: var(--line-strong);
  }

  .svcp__cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }
}

@media (max-width: 560px) {
  .svcp__pager {
    grid-template-columns: 1fr;
  }

  .svcp__pager .is-next {
    text-align: left;
  }

  .svcp-top .btn {
    display: none;
  }
}

/* Labels, the menu and the landing screen are for looking at, not copying:
   a drag or double-click there no longer paints a selection. Body text,
   addresses, emails and phone numbers stay selectable. */
.masthead,
.hero,
.spine,
.eyebrow,
.btn,
.tcard,
.seqx__fig,
.case__figtop {
  -webkit-user-select: none;
  user-select: none;
}

/* --- the five parts on white: the frame (side, head, tabs, foot) stays navy,
   each part is a white card with dark text; tokens are re-set inside the card. --- */

.svcp__part {
  --accent: #1d5b80;
  --ink: #0f2f45;
  --soft-ink: #3d5a70;
  --muted: #5a7488;
  --line: rgba(18, 55, 82, 0.14);
  --line-strong: rgba(18, 55, 82, 0.3);
  --mint: #1a7a55;
  --amber: #8a5a00;
  --mark-ink: #a8325c;
  background: #fff;
  border-color: rgba(18, 55, 82, 0.16);
  color: var(--ink);
}

.svcp__parthead h2,
.svcp__steps b,
.svcp__what b,
.svcp__extras b {
  color: var(--ink);
}

.svcp__sum {
  color: var(--ink);
}

.svcp__icon {
  background: rgba(29, 91, 128, 0.08);
}

.svcp__quote {
  border-color: rgba(138, 90, 0, 0.3);
  background: #fff4dc;
}

.svcp__points li,
.svcp__files li {
  background: #f3f8fc;
  color: #1f3f56;
}

.svcp__points li::before {
  background: rgba(26, 122, 85, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%231a7a55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 24px no-repeat;
}

.svcp__specs dd {
  color: var(--ink);
}

.svcp__specs .is-plain dd,
.svcp__steps span:not(.svcp__stepn),
.svcp__what span,
.svcp__extras span {
  color: var(--soft-ink);
}

.svcp__stepn {
  background: #fff;
}

.svcp__steps li:last-child .svcp__stepn {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(26, 122, 85, 0.14);
}

.svcp__file {
  border-color: rgba(168, 50, 92, 0.3);
  background: rgba(168, 50, 92, 0.07);
}


/* --- services.html: every service, by field, each a card to its own page --- */

.svcp__hubfield {
  margin-top: 30px;
}

.svcp__hubfield h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px 4px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.svcp__hubfield h2 span {
  font: 600 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.svcp__hubfield h2 b {
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(243, 204, 217, 0.12);
  font: 600 12px ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  color: var(--mark-ink);
}

.svcp__hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svcp__hub a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px 20px;
  border: 1px solid rgba(18, 55, 82, 0.16);
  border-radius: 16px;
  background: #fff;
  color: #3d5a70;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.svcp__hub a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 210, 248, 0.35);
}

.svcp__hub b {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  color: #0f2f45;
}

.svcp__hub b::after {
  content: ' →';
  color: #1d5b80;
}

.svcp__hub span {
  font-size: 14.5px;
  line-height: 1.5;
}
