/*
  Virtual Concept Technologies: self-hosted type.
  Schibsted Grotesk (SIL OFL 1.1) and IBM Plex Mono (SIL OFL 1.1). Licences sit beside these files.
  Latin subset only. URLs are relative to this file.
*/

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk-Variable-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk-Italic-Variable-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  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: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}

/* Metric-matched fallback so text does not shift when the web font arrives. Measured against Arial. */
@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 105.69%;
  ascent-override: 92.4%;
  descent-override: 24.39%;
  line-gap-override: 0%;
}

/*
  Virtual Concept Technologies: design tokens.
  Load brand/fonts/fonts.css first for the typefaces named here.
  Every text and interface colour pair is checked by brand/tools/contrast.mjs; ratios are listed in BRAND.md.
  The system is a working drawing: paper, ink, one drafting colour (signal), drawn column guides and mono annotations.
*/

:root {
  /* Colour: the sheet */
  --vc-paper: #f4f3ee;            /* page ground, warm drafting paper */
  --vc-ink: #121413;              /* text, headings, the wordmark, links */
  --vc-muted: #5c605d;            /* second tone of a statement, supporting text, legal line */
  --vc-rule-strong: #7d807c;      /* control boundaries that must reach 3:1 */

  /* Colour: hairlines and guides. Decorative only: never the sole boundary of a control. */
  --vc-rule: rgb(18 20 19 / 0.14);       /* section hairlines, table rules */
  --vc-rule-hover: rgb(18 20 19 / 0.55); /* a rule under the pointer */
  --vc-guide: rgb(18 20 19 / 0.06);      /* the drawn column guides */

  /* Colour: the drafting colour, signal vermilion. Marks, numerals, focus and the current page; never a fill. */
  --vc-signal: #b93a1a;
  --vc-signal-on-dark: #ec7a58;   /* the mark and signal on ink, such as a dark browser tab */
  --vc-selection: #f2d9cd;        /* text selection, ink on top */
  --vc-focus: #b93a1a;            /* focus ring */

  /* Colour: inverse (dark tiles in the brand sheet, video caption chip on dark frames) */
  --vc-inverse: #121413;
  --vc-inverse-ink: #f4f3ee;

  /* Type: families, one job each */
  --vc-font-sans: "Schibsted Grotesk", "Schibsted Grotesk Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; /* statements and reading */
  --vc-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;                                      /* every annotation */

  /* Type: five steps, big jumps */
  --vc-text-mono: 0.75rem;                                   /* 12 px: labels, numerals, navigation, legal line (uppercase, tracked) */
  --vc-text-body: 1.0625rem;                                 /* 17 px: reading */
  --vc-text-lead: 1.5rem;                                    /* 24 px: lead paragraph, service family names */
  --vc-text-statement: clamp(1.875rem, 0.94rem + 3.82vw, 4rem); /* 30 to 64 px: the sentence that opens each section */
  --vc-text-display: clamp(3rem, 1.2rem + 7.4vw, 9rem);     /* 48 to 144 px: once per page */

  --vc-leading-display: 0.95;
  --vc-leading-statement: 1.08;
  --vc-leading-lead: 1.3;
  --vc-leading-body: 1.55;
  --vc-leading-mono: 1.4;

  --vc-tracking-display: -0.035em;
  --vc-tracking-statement: -0.025em;
  --vc-tracking-lead: -0.01em;
  --vc-tracking-mono: 0.06em;

  --vc-weight-regular: 400;
  --vc-weight-medium: 500;

  --vc-measure: 66ch;             /* body line length */

  /* Space: 4 px base */
  --vc-space-1: 0.25rem;  /* 4 */
  --vc-space-2: 0.5rem;   /* 8 */
  --vc-space-3: 0.75rem;  /* 12 */
  --vc-space-4: 1rem;     /* 16 */
  --vc-space-5: 1.5rem;   /* 24 */
  --vc-space-6: 2rem;     /* 32 */
  --vc-space-7: 3rem;     /* 48 */
  --vc-space-8: 4rem;     /* 64 */
  --vc-space-9: 6rem;     /* 96 */
  --vc-space-10: 8rem;    /* 128 */
  --vc-section: clamp(4.5rem, 2.6rem + 7.8vw, 9rem); /* 72 to 144 px between sections */

  /* Grid: 12 columns from 60rem, 4 below, with the column guides drawn */
  --vc-container: 77rem;                                  /* 1232 px of columns inside a 1280 px sheet */
  --vc-gutter: clamp(1.25rem, 0.95rem + 1.2vw, 1.5rem);   /* 20 to 24 px page margin */
  --vc-gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);          /* 16 to 24 px between columns */

  /* Radius: the sheet is square-cornered; only the focus ring softens */
  --vc-radius-xs: 2px;

  /* Focus */
  --vc-focus-ring: 0 0 0 2px var(--vc-paper), 0 0 0 4px var(--vc-focus);

  /* Motion: the drawing assembles once, then stays still */
  --vc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* entering, responding */
  --vc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* moving on screen */
  --vc-duration-hover: 160ms;    /* numeral colour, rule darkening */
  --vc-duration-quick: 240ms;    /* underline draw */
  --vc-duration-enter: 480ms;    /* a line rising into place */
  --vc-duration-draw: 600ms;     /* a hairline drawing across */
  --vc-stagger: 60ms;            /* between lines of one entrance */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --vc-duration-quick: 0ms;
    --vc-duration-enter: 0ms;
    --vc-duration-draw: 0ms;
    --vc-stagger: 0ms;
  }
}

/*
  virtualconcepts.org: site styles. Loaded after brand/fonts/fonts.css and brand/tokens.css.
  The page is a working drawing: drawn column guides, hairlines with registration crosshairs,
  decimal-numbered sections in mono, and one display statement per page.
  Motion uses transform and opacity only, runs once, and is off under prefers-reduced-motion.
  Without JavaScript every element is shown in its final state.
*/

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--vc-paper);
  color: var(--vc-ink);
  color-scheme: light;
  accent-color: var(--vc-signal);
  caret-color: var(--vc-signal);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  font-family: var(--vc-font-sans);
  font-size: var(--vc-text-body);
  line-height: var(--vc-leading-body);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--vc-selection);
  color: var(--vc-ink);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: var(--vc-weight-medium);
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: currentColor;
}

a:hover {
  text-decoration-color: var(--vc-signal);
}

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

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Grid and the drawn column guides ---------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--vc-gutter), var(--vc-container));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--vc-gap);
}

.grid > * {
  grid-column: 1 / -1;
}

.guides {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.guides__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--vc-gap);
  width: min(100% - 2 * var(--vc-gutter), var(--vc-container));
  height: 100%;
  margin-inline: auto;
}

/* Below 60rem only the two outer guides show. */
.guides__grid i {
  display: none;
}

.guides__grid i:first-child {
  display: block;
  grid-column: 1 / -1;
  border-inline: 1px solid var(--vc-guide);
}

@media (min-width: 60rem) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .guides__grid i,
  .guides__grid i:first-child {
    display: block;
    grid-column: auto;
    border-inline: 0;
    border-left: 1px solid var(--vc-guide);
  }

  .guides__grid i:last-child {
    border-right: 1px solid var(--vc-guide);
  }
}

/* Annotation: mono, uppercase, tracked ------------------------------------ */

.label {
  font-family: var(--vc-font-mono);
  font-size: var(--vc-text-mono);
  font-weight: var(--vc-weight-regular);
  line-height: var(--vc-leading-mono);
  letter-spacing: var(--vc-tracking-mono);
  text-transform: uppercase;
}

.num {
  color: var(--vc-signal);
  font-family: var(--vc-font-mono);
  font-variant-numeric: tabular-nums;
}

/* The numeral is followed directly by its heading or label text, so names would read "2Areas of work".
   The alternative text after the slash adds a space for assistive technology only; nothing is drawn. */
.num::after {
  content: "" / " ";
}

.label .num {
  margin-right: 1.5ch;
}

.muted {
  color: var(--vc-muted);
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--vc-space-2) var(--vc-space-5);
  padding-top: var(--vc-space-3);
}

.label-row > :last-child:not(:first-child) {
  color: var(--vc-muted);
}

/* A section heading set as an annotation keeps the label's type. */
.label-row h2 {
  font: inherit;
  letter-spacing: inherit;
}

/* Hairline with registration crosshairs ---------------------------------- */
/* Two halves, so a section can open from its centre. */

.rule {
  position: relative;
  display: flex;
  height: 1px;
}

.rule i {
  flex: 1;
  height: 1px;
  background: var(--vc-rule);
}

.rule i:first-child {
  transform-origin: 100% 50%;
}

.rule i:last-child {
  transform-origin: 0 50%;
}

.rule::before,
.rule::after,
.x {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(var(--vc-signal) 0 0) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--vc-signal) 0 0) 0 50% / 100% 1px no-repeat;
}

.rule::before,
.rule::after {
  top: -4px;
}

.rule::before {
  left: -4px;
}

.rule::after {
  right: -4px;
}

/* Type ------------------------------------------------------------------ */

.display {
  font-size: var(--vc-text-display);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-display);
  letter-spacing: var(--vc-tracking-display);
  overflow-wrap: break-word;
  hyphens: manual;
}

/* Each line of a page title rises through its own mask. Opacity never changes, so the text is painted from the first frame. */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.line > span {
  display: block;
}

.statement {
  font-size: var(--vc-text-statement);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-statement);
  letter-spacing: var(--vc-tracking-statement);
  max-width: 26ch;
}

.lead {
  font-size: var(--vc-text-lead);
  line-height: var(--vc-leading-lead);
  letter-spacing: var(--vc-tracking-lead);
}

.prose {
  max-width: var(--vc-measure);
}

.prose > * + * {
  margin-top: var(--vc-space-4);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: var(--vc-space-8);
  font-size: var(--vc-text-lead);
  line-height: var(--vc-leading-lead);
  letter-spacing: var(--vc-tracking-lead);
}

.prose h2 + * {
  margin-top: var(--vc-space-3);
}

.prose ul {
  padding-left: 1.25em;
  list-style: square;
}

.prose li::marker {
  color: var(--vc-signal);
}

.prose li + li {
  margin-top: var(--vc-space-2);
}

@media (min-width: 60rem) {
  /* The first line of every statement hangs from column 4. */
  .statement--hang {
    max-width: none;
    padding-right: calc(25% + var(--vc-gap) / 4);
    text-indent: calc(25% + var(--vc-gap) / 4);
  }
}

/* Skip link --------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: var(--vc-space-3);
  left: var(--vc-space-3);
  z-index: 10;
  padding: var(--vc-space-2) var(--vc-space-4);
  background: var(--vc-ink);
  color: var(--vc-paper);
  font-family: var(--vc-font-mono);
  font-size: var(--vc-text-mono);
  letter-spacing: var(--vc-tracking-mono);
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Header ------------------------------------------------------------------ */

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--vc-space-3) var(--vc-space-6);
  padding-block: var(--vc-space-5);
}

.site-header__home {
  display: block;
  padding-block: var(--vc-space-2);
  color: var(--vc-ink);
}

.logo {
  width: 15rem;
  height: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--vc-space-5);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--vc-font-mono);
  font-size: var(--vc-text-mono);
  letter-spacing: var(--vc-tracking-mono);
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--vc-signal);
}

/* The current page carries a registration mark. */
.site-nav a[aria-current]::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: var(--vc-space-2);
  background:
    linear-gradient(var(--vc-signal) 0 0) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--vc-signal) 0 0) 0 50% / 100% 1px no-repeat;
}

@media (max-width: 39.99rem) {
  .site-nav {
    width: 100%;
  }

  /* Five items fit one line at 390 px; at 320 px they wrap. */
  .site-nav ul {
    justify-content: space-between;
    gap: 0 var(--vc-space-3);
  }

  .site-nav a {
    letter-spacing: 0.02em;
  }
}

/* Sections ----------------------------------------------------------------- */

.section {
  padding-bottom: var(--vc-section);
}

.section > .grid {
  row-gap: 0;
}

.section .statement {
  margin-top: var(--vc-space-7);
}

.section__body {
  margin-top: var(--vc-space-8);
}

.section__body--flush {
  margin-top: 0;
}

@media (min-width: 60rem) {
  .section__body {
    grid-column: 4 / -1;
  }
}

/* Page head (every page but home) ------------------------------------------ */

.page-head {
  padding-top: var(--vc-space-6);
  padding-bottom: var(--vc-section);
}

.page-head .display {
  margin-top: var(--vc-space-8);
}

.page-head .statement {
  margin-top: var(--vc-space-7);
}

.page-head__title {
  margin-top: var(--vc-space-8);
  font-size: var(--vc-text-statement);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-statement);
  letter-spacing: var(--vc-tracking-statement);
}

.page-head .lead {
  margin-top: var(--vc-space-6);
  max-width: 34ch;
  color: var(--vc-muted);
}

.page-head .label-row + .lead,
.page-head__date {
  margin-top: var(--vc-space-5);
}

@media (min-width: 60rem) {
  .page-head .lead,
  .page-head__date {
    grid-column: 4 / -1;
  }
}

/* Home hero: a framed sheet with the film behind the display line ---------- */

.hero {
  padding-top: var(--vc-space-2);
  padding-bottom: var(--vc-section);
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e9e7df;
}

/* Anchored to the top, so the darker foot of the film falls outside the frame on wide screens. */
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* Two paper leaves that part from the centre once, on load. At rest they sit outside the frame. */
.hero__media::before,
.hero__media::after,
.plate__media::before,
.plate__media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 50.5%;
  background: var(--vc-paper);
  pointer-events: none;
}

.hero__media::before,
.plate__media::before {
  left: 0;
  transform: translateX(-101%);
}

.hero__media::after,
.plate__media::after {
  right: 0;
  transform: translateX(101%);
}

/* The title sits in the upper, lighter part of the frame, clear of the film controls. */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--vc-space-7);
  height: 100%;
  padding: var(--vc-space-4);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--vc-space-2);
}

/* Annotations over the film sit on a paper tab, so small text keeps its contrast in every frame. */
.tab {
  display: inline-block;
  padding: var(--vc-space-1) var(--vc-space-2);
  background: var(--vc-paper);
}

.hero__toggle {
  position: absolute;
  right: var(--vc-space-4);
  bottom: var(--vc-space-4);
  z-index: 3;
  min-height: 2.75rem;
  padding: var(--vc-space-2) var(--vc-space-4);
  border: 1px solid var(--vc-ink);
  border-radius: 0;
  background: var(--vc-paper);
  color: var(--vc-ink);
  cursor: pointer;
}

.hero__toggle:hover {
  background: var(--vc-ink);
  color: var(--vc-paper);
}

.hero__toggle[hidden] {
  display: none;
}

.x--tl {
  top: -4px;
  left: -4px;
}

.x--tr {
  top: -4px;
  right: -4px;
}

.x--bl {
  bottom: -4px;
  left: -4px;
}

.x--br {
  right: -4px;
  bottom: -4px;
}

.hero__foot {
  margin-top: var(--vc-space-7);
  row-gap: var(--vc-space-5);
}

.hero__foot .lead {
  max-width: 36ch;
}

.hero__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--vc-space-3);
}

@media (min-width: 40rem) {
  .hero__frame {
    aspect-ratio: 16 / 10;
  }

  .hero__content {
    padding: var(--vc-space-6);
  }

  .hero__toggle {
    right: var(--vc-space-6);
    bottom: var(--vc-space-6);
  }
}

@media (min-width: 60rem) {
  .hero__frame {
    aspect-ratio: 2 / 1;
  }

  .hero__foot .lead {
    grid-column: 4 / 10;
  }

  .hero__links {
    grid-column: 10 / -1;
    align-self: end;
  }
}

/* Links with a direction ---------------------------------------------------- */

.go {
  display: inline-flex;
  align-items: center;
  gap: var(--vc-space-2);
  min-height: 2.75rem;
  font-family: var(--vc-font-mono);
  font-size: var(--vc-text-mono);
  letter-spacing: var(--vc-tracking-mono);
  text-transform: uppercase;
}

.go::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .go:hover::after {
    transform: translateX(3px) rotate(45deg);
  }
}

/* Service rows: decimal number, family name, outcome, what it covers ------- */

.services {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  margin-top: var(--vc-space-8);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  row-gap: var(--vc-space-3);
  padding-block: var(--vc-space-5) var(--vc-space-6);
}

/* The row's hairline, and a darker one that fades in over it on hover. */
.service-row::before,
.service-row::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--vc-rule);
}

.service-row::after {
  background: var(--vc-rule-hover);
  opacity: 0;
  transition: opacity var(--vc-duration-hover) var(--vc-ease-out);
}

.service-row__num {
  grid-column: 1 / -1;
  transition: color var(--vc-duration-hover) var(--vc-ease-out);
}

.service-row__name {
  grid-column: 1 / -1;
  font-size: var(--vc-text-lead);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-lead);
  letter-spacing: var(--vc-tracking-lead);
}

.service-row__name a {
  text-decoration: none;
}

/* The whole row is the link's target. */
.service-row__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-row__name a:focus-visible {
  outline: none;
}

.service-row__name a:focus-visible::after {
  outline: 2px solid var(--vc-focus);
  outline-offset: 2px;
}

.service-row__text {
  grid-column: 1 / -1;
  max-width: 34rem;
}

.service-row__covers {
  margin-top: var(--vc-space-3);
  color: var(--vc-muted);
}

.service-row__more {
  margin-top: var(--vc-space-3);
  color: var(--vc-ink);
}

.service-row:not(.service-row--static):hover .service-row__num {
  color: var(--vc-ink);
}

.service-row:not(.service-row--static):hover::after {
  opacity: 1;
}

.service-row:hover .service-row__name a {
  text-decoration: underline;
  text-decoration-color: var(--vc-signal);
}

@media (min-width: 60rem) {
  .service-row {
    row-gap: 0;
  }

  .service-row__num {
    grid-column: 1 / 4;
    padding-top: 0.55em;
  }

  .service-row__name {
    grid-column: 4 / 8;
  }

  .service-row__text {
    grid-column: 8 / -1;
    padding-top: 0.3em;
  }
}

/* Numbered items in two columns (principles, steps) -------------------------- */

.items {
  display: grid;
  gap: var(--vc-space-7) var(--vc-gap);
}

.items > li {
  padding-top: var(--vc-space-3);
  border-top: 1px solid var(--vc-rule);
}

.items h3 {
  font-family: var(--vc-font-mono);
  font-size: var(--vc-text-mono);
  font-weight: var(--vc-weight-regular);
  line-height: var(--vc-leading-mono);
  letter-spacing: var(--vc-tracking-mono);
  text-transform: uppercase;
}

.items h3 .num,
.facts dt .num {
  margin-right: 1.5ch;
}

.items p {
  margin-top: var(--vc-space-5);
  max-width: 34ch;
  font-size: var(--vc-text-lead);
  line-height: var(--vc-leading-lead);
  letter-spacing: var(--vc-tracking-lead);
}

@media (min-width: 40rem) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.after-items {
  margin-top: var(--vc-space-7);
}

/* Ruled spec sheet: company facts, what a service covers -------------------- */

.facts > div {
  display: grid;
  gap: var(--vc-space-1) var(--vc-gap);
  padding-block: var(--vc-space-4);
  border-top: 1px solid var(--vc-rule);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--vc-rule);
}

.facts dt {
  font-family: var(--vc-font-mono);
  font-size: var(--vc-text-mono);
  line-height: var(--vc-leading-mono);
  letter-spacing: var(--vc-tracking-mono);
  text-transform: uppercase;
  color: var(--vc-muted);
  padding-top: 0.3em;
}

.facts dd {
  max-width: 40rem;
}

.facts--lead dd {
  font-size: var(--vc-text-lead);
  line-height: var(--vc-leading-lead);
  letter-spacing: var(--vc-tracking-lead);
}

.facts--lead dd p + p {
  margin-top: var(--vc-space-2);
  font-size: var(--vc-text-body);
  line-height: var(--vc-leading-body);
  letter-spacing: 0;
  color: var(--vc-muted);
}

@media (min-width: 40rem) {
  .facts > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.note {
  margin-top: var(--vc-space-6);
  max-width: var(--vc-measure);
  color: var(--vc-muted);
}

/* A paragraph others may quote: set off by a signal rule, nothing else. */
.quote {
  margin: 0;
  padding-left: var(--vc-space-5);
  border-left: 2px solid var(--vc-signal);
  max-width: 40rem;
  font-size: var(--vc-text-lead);
  line-height: var(--vc-leading-lead);
  letter-spacing: var(--vc-tracking-lead);
}

/* Plates: one still per page where the page is about one area of work ------- */

.plate {
  margin-bottom: var(--vc-section);
}

.plate__frame {
  position: relative;
}

.plate__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e9e7df;
}

.plate__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 60rem) {
  .plate__media {
    aspect-ratio: 21 / 9;
  }
}

/* Rail: the six areas as plates in a row that scrolls sideways ------------- */
/* It starts on the left column and runs off the right edge of the sheet. */

.rail-wrap {
  --rail-inset: max(var(--vc-gutter), (100% - var(--vc-container)) / 2);
  margin-top: var(--vc-space-6);
}

.rail {
  display: grid;
  grid-auto-columns: 82%;
  grid-auto-flow: column;
  gap: var(--vc-gap);
  padding-inline: var(--rail-inset);
  padding-bottom: var(--vc-space-5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-inset);
  scrollbar-color: var(--vc-rule-strong) transparent;
  scrollbar-width: thin;
  /* A scroller clips what overflows it, so leave room above the slides for the focus ring (2px at a 3px offset)
     and pull the rail up by the same amount, so nothing moves. */
  margin-top: calc(-1 * var(--vc-space-2));
  padding-top: var(--vc-space-2);
}

.rail:focus-visible {
  outline-offset: -2px;
}

.slide {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.slide__link {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--vc-space-4);
  align-items: baseline;
  text-decoration: none;
}

.slide__media {
  grid-column: 1 / -1;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--vc-space-4);
  background: #e9e7df;
}

.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--vc-ease-out);
}

.slide__name {
  font-size: var(--vc-text-lead);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-lead);
  letter-spacing: var(--vc-tracking-lead);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--vc-duration-hover) var(--vc-ease-out);
}

.slide__text {
  margin-top: var(--vc-space-3);
  max-width: 34rem;
  color: var(--vc-muted);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .slide__link:hover img {
    transform: scale(1.03);
  }
}

.slide__link:hover .slide__name {
  text-decoration-color: var(--vc-signal);
}

.rail-controls {
  display: flex;
  gap: var(--vc-space-2);
}

.rail-controls[hidden] {
  display: none;
}

.rail-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 var(--vc-space-3);
  border: 1px solid var(--vc-rule-strong);
  border-radius: 0;
  background: var(--vc-paper);
  color: var(--vc-ink);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.rail-button:hover:not(:disabled) {
  border-color: var(--vc-ink);
}

.rail-button:disabled {
  color: var(--vc-muted);
  cursor: default;
}

@media (min-width: 40rem) {
  .rail {
    grid-auto-columns: calc((100% - var(--vc-gap)) / 2.2);
  }
}

@media (min-width: 60rem) {
  .rail {
    grid-auto-columns: calc((100% - 2 * var(--vc-gap)) / 2.6);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rail {
    scroll-behavior: smooth;
  }
}

/* Contact: one address at statement size ------------------------------------- */

.contact__label {
  margin-top: var(--vc-space-7);
}

.contact__address {
  margin-top: var(--vc-space-3);
}

.contact__note {
  margin-top: var(--vc-space-5);
}

.contact__label::before {
  content: "(";
}

.contact__label::after {
  content: ")";
}

.contact__address {
  font-size: clamp(1.375rem, 0.62rem + 3.9vw, 4rem);
  font-weight: var(--vc-weight-medium);
  line-height: 1.1;
  letter-spacing: var(--vc-tracking-statement);
}

/* A 2 px ink underline; on hover a signal line draws across it. */
.contact__address a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
  text-decoration: none;
}

.contact__address a::before,
.contact__address a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--vc-ink);
}

.contact__address a::after {
  background: var(--vc-signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--vc-duration-quick) var(--vc-ease-out);
}

.contact__address a:hover::after {
  transform: scaleX(1);
}

.contact__note {
  max-width: 36ch;
  color: var(--vc-muted);
}

@media (min-width: 60rem) {
  .contact__label {
    grid-column: 1 / 4;
    padding-top: 0.9em;
  }

  .contact__address {
    margin-top: var(--vc-space-7);
  }

  .contact__address,
  .contact__note {
    grid-column: 4 / -1;
  }
}

/* Previous and next on service pages ---------------------------------------- */

.pager {
  display: grid;
  gap: 0 var(--vc-gap);
  margin-bottom: var(--vc-section);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: var(--vc-space-2);
  padding-block: var(--vc-space-4) var(--vc-space-5);
  border-top: 1px solid var(--vc-rule);
  text-decoration: none;
}

.pager a:hover .pager__name {
  text-decoration: underline;
  text-decoration-color: var(--vc-signal);
}

.pager__name {
  font-size: var(--vc-text-lead);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-lead);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.pager__next {
  text-align: right;
  align-items: flex-end;
}

@media (min-width: 40rem) {
  .pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Footer: the wordmark across the full width, the legal line beneath --------- */

.site-footer {
  padding-top: var(--vc-space-4);
  padding-bottom: var(--vc-space-6);
}

.site-footer__wordmark {
  display: block;
  color: var(--vc-ink);
}

.wordmark {
  width: 100%;
  height: auto;
}

.site-footer__cols {
  display: grid;
  gap: var(--vc-space-5) var(--vc-gap);
  margin-top: var(--vc-space-6);
  padding-top: var(--vc-space-4);
  border-top: 1px solid var(--vc-rule);
  font-family: var(--vc-font-mono);
  font-size: var(--vc-text-mono);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.site-footer__legal {
  color: var(--vc-muted);
}

.site-footer__legal p + p {
  margin-top: var(--vc-space-2);
}

.site-footer__nav a,
.site-footer__mail a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  letter-spacing: var(--vc-tracking-mono);
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__mail a:hover {
  text-decoration: underline;
  text-decoration-color: var(--vc-signal);
}

.site-footer__mail a {
  text-transform: none;
  letter-spacing: 0.02em;
  text-decoration: underline;
}

@media (min-width: 40rem) {
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .site-footer__cols {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .site-footer__legal {
    grid-column: 1 / 6;
    max-width: 46ch;
  }

  .site-footer__nav:first-of-type {
    grid-column: 7 / 9;
  }

  .site-footer__nav:last-of-type {
    grid-column: 9 / 12;
  }

  .site-footer__mail {
    grid-column: 1 / 6;
  }
}

/* Motion: one entrance per page, then sections draw in once ------------------ */

@media (prefers-reduced-motion: no-preference) {
  /* Page load. Nothing waits on a network request; the first frame is painted at once. */
  .hero .line > span,
  .page-head .line > span {
    animation: line-rise var(--vc-duration-enter) var(--vc-ease-out) both;
  }

  .hero .line:nth-child(2) > span,
  .page-head .line:nth-child(2) > span {
    animation-delay: calc(var(--vc-stagger) * 1);
  }

  .hero .line:nth-child(3) > span,
  .page-head .line:nth-child(3) > span {
    animation-delay: calc(var(--vc-stagger) * 2);
  }

  .hero .line:nth-child(4) > span,
  .page-head .line:nth-child(4) > span {
    animation-delay: calc(var(--vc-stagger) * 3);
  }

  .page-head > .rule i,
  .hero .rule i {
    animation: draw var(--vc-duration-draw) var(--vc-ease-in-out) both;
  }

  .hero__media::before {
    animation: leaf-left 900ms var(--vc-ease-in-out) 240ms both;
  }

  .hero__media::after {
    animation: leaf-right 900ms var(--vc-ease-in-out) 240ms both;
  }

  .hero .x,
  .hero__tags,
  .hero__foot,
  .page-head .rise {
    animation: settle var(--vc-duration-enter) var(--vc-ease-out) 300ms both;
  }

  .hero .x,
  .hero__foot {
    animation-delay: 700ms;
  }

  /* Focus cuts the entrance short, so a control focused in the first second is not drawn faded. */
  .hero__tags:focus-within,
  .hero__foot:focus-within,
  .page-head .rise:focus-within {
    animation: none;
  }

  /* Sections below the fold: the script adds .reveal to <html> and .is-in to each section once. */
  .reveal [data-reveal] .rule i {
    transition: transform var(--vc-duration-draw) var(--vc-ease-in-out);
  }

  .reveal [data-reveal] .rule::before,
  .reveal [data-reveal] .rule::after,
  .reveal [data-reveal] .rise {
    transition:
      opacity var(--vc-duration-enter) var(--vc-ease-out),
      transform var(--vc-duration-enter) var(--vc-ease-out);
  }

  .reveal [data-reveal] .rule::before,
  .reveal [data-reveal] .rule::after {
    transition-delay: 360ms;
  }

  .reveal [data-reveal] .rise--2 {
    transition-delay: 120ms;
  }

  .reveal [data-reveal] .rise--3 {
    transition-delay: 220ms;
  }

  /* A section that holds keyboard focus is always shown, so focus is never on something invisible. */
  .reveal [data-reveal]:not(.is-in, :focus-within) .rule i {
    transform: scaleX(0);
  }

  .reveal [data-reveal]:not(.is-in, :focus-within) .rule::before,
  .reveal [data-reveal]:not(.is-in, :focus-within) .rule::after,
  .reveal [data-reveal]:not(.is-in, :focus-within) .rise {
    opacity: 0;
  }

  .reveal [data-reveal]:not(.is-in, :focus-within) .rise {
    transform: translateY(12px);
  }

  /* Focus shows a section at once, and cuts short a fade already running, so the focused control is
     never drawn half transparent. */
  .reveal [data-reveal]:focus-within .rule i,
  .reveal [data-reveal]:focus-within .rule::before,
  .reveal [data-reveal]:focus-within .rule::after,
  .reveal [data-reveal]:focus-within .rise {
    transition: none;
  }

  /* Plates open like the hero: two paper leaves part from the centre. */
  .reveal [data-reveal] .plate__media::before,
  .reveal [data-reveal] .plate__media::after {
    transition: transform 900ms var(--vc-ease-in-out) 120ms;
  }

  .reveal [data-reveal]:not(.is-in) .plate__media::before,
  .reveal [data-reveal]:not(.is-in) .plate__media::after {
    transform: none;
  }
}

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

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes leaf-left {
  from {
    transform: none;
  }
}

@keyframes leaf-right {
  from {
    transform: none;
  }
}

/* Forced colours and print ------------------------------------------------------ */

@media (forced-colors: active) {
  .guides,
  .hero__media::before,
  .hero__media::after,
  .plate__media::before,
  .plate__media::after {
    display: none;
  }

  .rule i,
  .service-row::before {
    background: CanvasText;
  }

  /* The logo's lettering has a fixed ink fill, which forced colours leave alone: ink on a dark Canvas.
     The vermilion mark (the first path) keeps its colour. */
  .logo path + path {
    fill: currentColor;
  }

  .rule::before,
  .rule::after,
  .x,
  .site-nav a[aria-current]::before {
    forced-color-adjust: none;
    background:
      linear-gradient(CanvasText 0 0) 50% 0 / 1px 100% no-repeat,
      linear-gradient(CanvasText 0 0) 0 50% / 100% 1px no-repeat;
  }

  .tab {
    border: 1px solid CanvasText;
  }

  .contact__address a::before {
    background: CanvasText;
  }
}

@media print {
  .guides,
  .skip-link,
  .site-nav,
  .hero__media,
  .hero__toggle {
    display: none;
  }

  .hero__frame {
    aspect-ratio: auto;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
  }
}
