/* Easton Technology mockup, third version: the engagement letter.
   Layout: a letterhead, then one narrow column on a 940px sheet with a wide right margin
   for notes. Wider items (the figures, schedules, results, the example report) span the sheet.
   Two close navy tones, one per section in turn; Newsreader for headings and Libre Caslon Text
   for everything else, always upright;
   ice blue only for the signature line, links and focus; red, yellow and green only as ratings;
   one brighter red only for the dot and label of the security emergency line. */

:root {
  color-scheme: dark;

  --ground: #0b1f36;
  --ground-alt: #12304f;    /* every second section sits on this */
  --rule: #2a4560;
  --rule-strong: #64849f;
  --text: #eef2f6;
  --text-body: #d5dfe8;
  --text-2: #a9bccd;
  --accent: #8fd0ea;
  --alert: #ff5a4d;         /* the emergency line's dot and label, and nothing else */
  --rate-red: #ff7a6b;
  --rate-yellow: #f3c654;
  --rate-green: #5fd39a;
  --note: #f2cf74;
  --note-ground: #2a240f;
  --note-line: #7a6424;

  --display: 'Newsreader', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --text-face: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;

  --sheet: 940px;
  --col: 600px;
  --margin-note: 230px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gap: clamp(3.75rem, 8vw, 6.5rem);
  /* The space under an opening. The first section follows in the same navy with its own full
     gap above its rule, so the opening ends on a short one: together they make one clear break,
     not two stacked into an empty stretch. */
  --gap-opening-end: clamp(1.5rem, 3.5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule-strong) var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--text-face);
  font-size: 1.125rem;
  line-height: 1.7;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--ground); }

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 13.5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--text-face);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}
p { text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}
a:hover { text-decoration-thickness: 2px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 30;
  background: var(--text);
  color: var(--ground);
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* The sheet: every band keeps its side gutter here. */
.sheet {
  max-width: calc(var(--sheet) + 80px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .sheet {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}
.col { max-width: var(--col); }
.col > * + * { margin-top: 1.1rem; }

/* ---------- Review banner and notes (mockup only) ---------- */

.draft-banner {
  background: var(--note-ground);
  color: var(--note);
  border-bottom: 1px solid var(--note-line);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
}
.draft-banner .sheet { padding-block: 0.55rem; }

.mock-note {
  color: var(--note);
  border: 1px dashed var(--note-line);
  padding: 0.7rem 0.95rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: var(--col);
}

/* The security emergency line: the label and the number, above the firm's own place and
   number in the letterhead. The label is in the same small spaced capitals as the firm's name;
   only the dot and the label are red. Plain text, never a link in the mockup. */
.alert-bar { border-bottom: 1px solid var(--rule); font-variant-numeric: lining-nums; }
.alert-bar .sheet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 2rem;
  padding-block: 0.6rem;
}
@media (min-width: 620px) {
  .alert-bar .sheet { justify-content: flex-end; }
}
.alert-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.9rem; }
.alert-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--display);
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--alert);
}
.alert-label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--alert);
}
.alert-number {
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule-strong);
  font-family: var(--display);
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--text);
}
@media (max-width: 359px) {
  .alert-number { padding-left: 0; border-left: 0; }
}

/* ---------- Letterhead ---------- */

.letterhead .sheet { padding-block: clamp(1.75rem, 4vw, 3rem) 0; }
.lh-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-bottom: 1.3rem;
  position: relative;
}
.lh-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: 0 50%;
  transform: scaleX(var(--lh-draw, 1));
}
.logo {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.lh-where {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
  font-variant-numeric: lining-nums;
}
@media (min-width: 620px) {
  .lh-where { text-align: right; }
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2rem;
  padding-top: 0.5rem;
}
.site-nav a:not(.btn),
.site-nav summary,
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  color: var(--text-2);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: color 0.4s var(--ease), background-size 0.6s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav summary:hover,
.foot-nav a:hover,
.site-nav summary.is-current,
.site-nav details[open] > summary,
.site-nav a[aria-current="page"] { color: var(--text); background-size: 100% 1px; }
.nav-cta { margin-left: auto; padding-block: 0.4rem; }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.98rem; }

/* Industries: a short list that opens under its heading. It is a plain details element,
   so it opens and closes without the script. */
.nav-group { position: relative; }
.site-nav summary { list-style: none; cursor: pointer; gap: 0.5rem; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 0.4s var(--ease);
}
.site-nav details[open] > summary::after { transform: translateY(0.1rem) rotate(225deg); }
.nav-group ul { padding: 0.2rem 0 0.4rem 1.2rem; border-left: 1px solid var(--rule-strong); }
@media (min-width: 1011px) {
  .nav-group ul {
    position: absolute;
    left: -1.2rem;
    top: 100%;
    z-index: 20;
    min-width: 15.5rem;
    padding: 0.4rem 1.2rem 0.5rem;
    background: var(--ground);
    border: 1px solid var(--rule-strong);
  }
}

/* Narrow screens: the menu is a list, folded behind a Menu button once the script is running. */
.nav-toggle {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  margin-top: 0.9rem;
  cursor: pointer;
}
/* (Up to 1010px wide the button would drop to a row of its own, so the menu stays folded until there is room.) */
@media (min-width: 1011px) {
  .nav-toggle { display: none; }
}
@media (max-width: 1010px) {
  .nav-list { display: block; padding-top: 0.6rem; }
  .nav-list > li + li { border-top: 1px solid var(--rule); }
  .nav-cta { margin: 0; padding-block: 0.9rem 0.2rem; }
  .nav-ready:not(.is-open) .nav-list { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--text);
  color: var(--ground);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.25;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--text);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-quiet {
  background: none;
  color: var(--text);
  border-color: var(--rule-strong);
}
.btn-quiet:hover { background: none; color: var(--accent); border-color: var(--accent); }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}

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

/* Each section is its own band: the two navy tones take turns, and a strong rule sits
   directly over the heading. */
.part .sheet { padding-block: var(--gap); }
/* The first section keeps the opening's navy, so the opening and its light run into it with no
   edge; from there the two tones take turns. Counting sections only (not other elements) keeps
   this the same on every page and in the single-file link version. */
.part:nth-child(even) { background: var(--ground-alt); --rule: #3a5875; }
@supports selector(:nth-child(1 of .part)) {
  .part:nth-child(even) { background: none; --rule: #2a4560; }
  .part:nth-child(even of .part) { background: var(--ground-alt); --rule: #3a5875; }
}
.part-ruled .sheet::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--rule-strong);
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
  transform-origin: 0 50%;
  transform: scaleX(var(--rule-draw, 1));
}

/* Arrival: when a section is scrolled to, its rule is drawn from the left and its heading,
   rows and paragraphs settle in beneath it, one after another. The script runs this with
   GSAP and only holds back sections that start off screen. This file never hides a section,
   so without the script, or with reduced motion, everything is simply on the page. */
[id] { scroll-margin-top: 2rem; }

.part h2 { max-width: 20ch; }
.part h2 + * { margin-top: clamp(1.5rem, 3.5vw, 2.25rem); }
.lead {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  max-width: var(--col);
  text-wrap: balance;
}
.nb { white-space: nowrap; }
.lead + * { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.col p { color: var(--text-body); }
.item + .item { margin-top: 1.15rem; }
.item h3,
.item p { display: inline; }
.item h3 { font-size: inherit; line-height: inherit; color: var(--text); }
.item h3::after { content: "."; }
.item-q h3::after { content: none; }

/* A column with a note in the margin beside it. */
.with-note {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}
.note {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  border-left: 1px solid var(--rule-strong);
  padding-left: 1.2rem;
  max-width: 34ch;
}
@media (min-width: 900px) {
  .with-note {
    grid-template-columns: minmax(0, var(--col)) minmax(0, var(--margin-note));
    justify-content: space-between;
    gap: 3rem;
  }
}

/* ---------- Opening ---------- */

/* The first screen arrives: the letterhead rule is drawn, the headline rises line by line,
   and the rest settles in after it. The script runs this as one GSAP timeline. A soft light
   sits in the navy, drifts slowly, and follows the pointer or a tap.
   While the motion library is loading, the head script holds the first screen back with
   .motion-wait so it does not flash before it arrives. That class is removed as soon as the
   script is ready, when the library fails to load, and in any case after 2.5 seconds. */
.motion-wait .letterhead .sheet,
.motion-wait .opening .sheet,
.motion-wait .opening .stage { visibility: hidden; }
/* Moving from one page of the site to another: the letterhead is already there and holds still. */
.motion-wait.came-from-site .letterhead .sheet { visibility: visible; }

/* Page to page, in browsers that support it: the old page fades into the new one, so the
   letterhead, which is the same on both, does not flicker. Other browsers load the page as usual. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 0.3s; }
  ::view-transition-new(root) { animation-duration: 0.45s; }
}

.opening { position: relative; overflow: hidden; isolation: isolate; }
/* The still light: shown when the script or the motion library is not running. */
.opening::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(46rem 30rem at 74% 44%, rgba(143, 208, 234, 0.14), rgba(143, 208, 234, 0) 70%);
  /* Faded out at the top and again before the bottom edge of the opening (which is 85.7% of the
     way down this taller layer), so the light never ends in a hard line where the next section starts. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 40%, #000 60%, transparent 85.7%);
  mask-image: linear-gradient(to bottom, transparent 15%, #000 40%, #000 60%, transparent 85.7%);
}
/* The moving light: the script swaps the still one for an element it can move by transform. */
.opening.lit::before { content: none; }
.light {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* The light fades out before the bottom edge of the opening as well as at the top, so it is
     never cut off in a line where the next section starts. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 1%, #000 36%, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 1%, #000 36%, #000 66%, transparent 100%);
}
.light-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: 92rem;
  height: 60rem;
  margin: -30rem 0 0 -46rem;
  background: radial-gradient(closest-side, rgba(143, 208, 234, 0.14), rgba(143, 208, 234, 0) 70%);
  will-change: transform;
}
.opening .sheet { padding-block: clamp(2.5rem, 6vw, 4.25rem) var(--gap-opening-end); }
.opening h1 .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.opening h1 .line > span { display: block; }

/* The home page's first screen: one sentence, one supporting line, two buttons, then the figures. */
.opening h1 {
  font-size: clamp(2.2rem, 6.3vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.opening .sub {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-body);
  max-width: 40rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.9rem);
}
.opening .actions { margin-top: 2rem; }

/* The figures directly under the first screen's buttons. */
.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  position: relative;
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
  padding-top: 1.4rem;
}
.proof::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: 0 50%;
  transform: scaleX(var(--proof-draw, 1));
}
@media (min-width: 760px) {
  .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem; }
}
.proof li { display: grid; gap: 0.3rem; align-content: start; }
.proof-figure {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: lining-nums;
}
.proof-label { font-size: 0.98rem; line-height: 1.4; color: var(--text-2); }
/* Contact: the phone number and email address under the opening line, two to a row (one on a phone).
   They are words to read, not figures, so they are set smaller. */
.proof-two { grid-template-columns: minmax(0, 1fr); }
.proof-two .proof-figure { font-size: clamp(1.4rem, 2.9vw, 2.1rem); line-height: 1.2; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .proof-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.opening-plain .lead { margin-top: clamp(1.25rem, 2.5vw, 1.9rem); }
/* Inner pages open centred at every width, as the home page does. The figures keep their left edge.
   (The Free IT Assessment page's opening is with its report, further down.) */
.opening-plain:not(.opening-report) .sheet { text-align: center; }
.opening-plain:not(.opening-report) .lead { margin-inline: auto; }
.opening-plain:not(.opening-report) .proof { text-align: left; }

/* ---------- Home page B: the report on the desk ---------- */

/* A second opening to compare with the first. The headline is centred; under it the example
   report sits as the thing a client is handed, and the firm's own figures and lines sit around
   it at different depths. On a wide screen they drift past it as the page is scrolled. These
   small panels and their soft shadows are allowed here and nowhere else. */
/* The spacing and the headline give a little on a short screen, so the top of the report
   shows under the buttons when the page opens. */
.opening-b .sheet { text-align: center; padding-block: clamp(1.5rem, 5vh, 4.25rem) 0; }
.opening-b h1 { font-size: clamp(2.2rem, min(6.3vw, 8.4vh), 4.6rem); }
.opening-b .sub { margin-inline: auto; margin-top: clamp(1rem, 2.6vh, 1.9rem); }
.opening-b .actions { justify-content: center; margin-top: clamp(1.25rem, 3.4vh, 2rem); }
.opening-b::before {
  background: radial-gradient(46rem 30rem at 50% 70%, rgba(143, 208, 234, 0.14), rgba(143, 208, 234, 0) 70%);
}

.stage {
  --rule: #3a5875;
  --doc-half: 13rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 1180px;
  margin: clamp(2rem, 5vh, 3.5rem) auto 0;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) clamp(2rem, 4vw, 3rem) max(20px, env(safe-area-inset-left, 0px));
  text-align: left;
}

/* The report: a sheet in the second navy, lit from behind by the opening's light. */
.docsheet {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  width: min(calc(var(--doc-half) * 2), 100%);
  margin: 0 auto 1rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  background: var(--ground-alt);
  border: 1px solid var(--rule);
  box-shadow: 0 2.5rem 5rem -2.5rem rgba(2, 8, 18, 0.85);
}
.doc-firm {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule-strong);
}
.doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding-block: 1.1rem 0.9rem;
}
.doc-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: 0;
  max-width: none;
}
.doc-rows { border-top: 1px solid var(--rule-strong); }
.doc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.72rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.5s var(--ease);
}
.doc-caption { margin-top: 1rem; font-size: 0.92rem; line-height: 1.5; color: var(--text-2); }

/* Scan states for the sheet's rows, set by the script (the same ones the full report uses). */
.doc-row.is-pending { color: var(--text-body); }
.doc-row.is-pending .rating { color: transparent; }
.doc-row.is-pending .rating::before { background: var(--rule); }
.doc-row.is-checking .rating::before { background: var(--text-2); }
/* Beside the Free IT Assessment headline the rows are set waiting as the page opens. That change is
   immediate, so a rating can never be seen fading away before its row is ticked; the tick itself
   still fades in (the transition comes back when the waiting class is removed). */
.opening-report .doc-row.is-pending .rating,
.opening-report .doc-row.is-pending .rating::before { transition: none; }

/* The pieces around the report. On narrow screens they are a tidy grid under it. */
.slip-wide { grid-column: 1 / -1; }
.slip-in {
  height: 100%;
  padding: 0.95rem 1.1rem 1rem;
  background: var(--ground);
  border: 1px solid var(--rule);
  font-variant-numeric: lining-nums;
}
.slip-figure {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}
.slip-label { display: block; margin-top: 0.3rem; font-size: 0.92rem; line-height: 1.35; color: var(--text-2); }
.slip-in p { font-size: 1rem; line-height: 1.5; color: var(--text-body); text-wrap: balance; }

@media (min-width: 900px) {
  .stage { display: block; }
  .docsheet { margin-bottom: 0; }
  .slip {
    position: absolute;
    width: max-content;
    max-width: clamp(10.5rem, 17vw, 15rem);
    will-change: transform;
  }
  .slip-fig { min-width: 9.75rem; }
  /* Far pieces sit behind the sheet and are quieter; near ones overlap its edge and carry a shadow. */
  .slip-far { z-index: 1; }
  .slip-far .slip-in { background: none; }
  .slip-far .slip-figure { font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--text-body); }
  .slip-wide { z-index: 1; }
  .slip-near { z-index: 3; }
  .slip-near .slip-in {
    border-color: var(--rule-strong);
    box-shadow: 0 1.5rem 3rem -1.25rem rgba(2, 8, 18, 0.9);
  }
  .slip-a { right: calc(50% + var(--doc-half) + clamp(1rem, 4vw, 4.5rem)); top: 2%; }
  .slip-b { right: calc(50% + var(--doc-half) + clamp(1rem, 2.5vw, 2.75rem)); top: 33%; }
  .slip-c { right: calc(50% + var(--doc-half) - 1.25rem); top: 66%; }
  .slip-d { left: calc(50% + var(--doc-half) - 1rem); top: 11%; }
  .slip-e { left: calc(50% + var(--doc-half) + clamp(1rem, 3vw, 3.5rem)); top: 43%; }
  .slip-f { left: calc(50% + var(--doc-half) + clamp(1.25rem, 5vw, 6rem)); top: 72%; }
}

/* ---------- Home page D: the annotated report ---------- */

/* The notes round the report are about its rows: the area's name and one of the firm's own
   sentences about it. On a wide screen each is tied to its row by a thin line that the script
   draws, and appears as that row is checked. On a narrow screen they are a list under the report. */
.stage-d { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.pins { display: contents; }
.pin {
  grid-column: 1 / -1;
  padding: 0.85rem 1rem 0.95rem;
  background: var(--ground);
  border: 1px solid var(--rule);
  transition: opacity 0.8s var(--ease);
}
.pin h3 { font-size: 0.98rem; line-height: 1.35; color: var(--text); }
.pin p { margin-top: 0.2rem; font-size: 0.95rem; line-height: 1.45; color: var(--text-body); }
.pin[data-row="1"] { order: 1; } .pin[data-row="2"] { order: 2; } .pin[data-row="3"] { order: 3; }
.pin[data-row="4"] { order: 4; } .pin[data-row="5"] { order: 5; } .pin[data-row="6"] { order: 6; }
.pin-lines { display: none; }
@media (min-width: 620px) and (max-width: 899px) {
  .pin { grid-column: auto; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .stage {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}
.opening-b .sheet.after-stage { text-align: left; padding-block: 0 var(--gap-opening-end); }
.after-stage .proof { margin-top: 0; }

@media (min-width: 900px) {
  .pins {
    position: absolute;
    top: 0;
    bottom: clamp(2.5rem, 5vw, 3.5rem);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    width: clamp(11rem, 19vw, 16rem);
  }
  .pins-left { right: calc(50% + var(--doc-half) + clamp(2rem, 5vw, 5.5rem)); }
  .pins-right { left: calc(50% + var(--doc-half) + clamp(2rem, 5vw, 5.5rem)); }
  .pin.is-waiting { opacity: 0; }
  .pin-lines {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .pin-lines path {
    fill: none;
    stroke: var(--rule-strong);
    stroke-width: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.9s var(--ease);
  }
  .pin-lines circle { fill: var(--text-2); transition: opacity 0.4s var(--ease); }
  .pin-lines .is-waiting path { stroke-dashoffset: 1; }
  .pin-lines .is-waiting circle { opacity: 0; }
}

/* ---------- Home page C: a picture of the pricing idea ---------- */

/* The visitor moves the team-size line. The per-user bill grows with every hire; the
   outcome-based bill stays where it was. No prices are shown. */
/* The whole picture keeps to the text column, so the control, the people and the two bills read
   as one thing and each figure sits close to the bar it describes. */
.hire { display: grid; gap: 1.4rem; max-width: var(--col); }
.hire-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
  max-width: var(--col);
}
html:not(.js) .hire-control { display: none; }
.hire-control label { color: var(--text-2); }
.hire-count {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 1.9rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.hire-control input {
  grid-column: 1 / -1;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) 0 50% / 100% 1px no-repeat;
  cursor: pointer;
}
.hire-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: var(--text);
  transition: background-color 0.4s var(--ease);
}
.hire-control input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: var(--text);
}
.hire-control input::-moz-range-track { background: none; }
.hire-control input:hover::-webkit-slider-thumb,
.hire-control input:focus-visible::-webkit-slider-thumb { background: var(--accent); }
.hire-people { display: flex; flex-wrap: wrap; gap: 6px; max-width: var(--col); }
.hire-people span {
  width: 11px;
  height: 11px;
  border: 1px solid var(--rule-strong);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hire-people .is-on { background: var(--text-2); border-color: var(--text-2); }
.hire-people .is-new { background: var(--text); border-color: var(--text); }
.hire-head { font-size: 0.98rem; color: var(--text-2); margin-bottom: -0.7rem; }
.hire-bills { border-top: 1px solid var(--rule-strong); }
.hire-bills > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.6rem 1.5rem;
  padding-block: 1rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.hire-bills dt { color: var(--text); white-space: nowrap; }
.hire-track { grid-column: 1 / -1; grid-row: 2; position: relative; height: 12px; }
.hire-track::after {            /* where the bill stands today */
  content: "";
  position: absolute;
  left: 33.333%;
  top: -5px;
  bottom: -5px;
  width: 1px;
  background: var(--rule-strong);
}
.hire-bar {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--w, 0.3333));
  background: var(--text-2);
  transition: transform 0.6s var(--ease);
}
.hire-bar-flat { background: var(--text); }
.hire-value { font-variant-numeric: lining-nums tabular-nums; color: var(--text); text-align: right; white-space: nowrap; }
.hire-bills > div:first-child .hire-value { font-weight: 700; }
@media (max-width: 359px) {
  .hire-bills dt { white-space: normal; }   /* the narrowest phones: a long name wraps instead of meeting its figure */
}
@media (min-width: 760px) {
  .hire-bills > div { grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 1.25rem; align-items: center; }
  .hire-bills dt { min-width: 12.75rem; }
  .hire-value { min-width: 5.75rem; }
  .hire-track { grid-column: auto; grid-row: auto; }
}
.hire + .with-note { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* Review furniture: the note that switches between the home pages being compared. */
.ab-switch {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: min(21rem, calc(100vw - 32px));
  padding: 0.6rem 0.85rem;
  background: var(--note-ground);
  color: var(--note);
  border: 1px solid var(--note-line);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
}
body:has(.ab-switch) .site-footer .sheet { padding-bottom: 6rem; }
.ab-switch a { color: inherit; font-weight: 700; display: inline-block; min-width: 1.6em; padding: 0.1rem 0.25rem; text-align: center; }
.opening-plain .lead strong { font-weight: 700; }

/* ---------- Results: one figure and one line each ---------- */

.results {
  display: grid;
  border-top: 1px solid var(--rule-strong);
}
.results li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding-block: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .results { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
  .results li { border-bottom: 0; padding-bottom: 0; }
}
.result-label { font-size: 0.98rem; color: var(--text-2); }
.result-figure { font-size: 1.05rem; line-height: 1.4; color: var(--text-body); font-variant-numeric: lining-nums; }
.result-number {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}
.result-who { margin-top: 0.6rem; font-size: 1rem; line-height: 1.5; color: var(--text-2); }
.result-client { display: block; font-weight: 700; color: var(--text); }
.sheet > .results:last-child > li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Schedules: a term and its account, ruled ---------- */

.schedule { border-top: 1px solid var(--rule-strong); }
.schedule > div {
  display: grid;
  gap: 0.4rem 3rem;
  padding-block: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .schedule > div { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); }
}
.schedule dt {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}
.schedule dt small {
  display: block;
  font-family: var(--text-face);
  font-size: 0.98rem;
  color: var(--text-2);
  margin-top: 0.3rem;
}
.schedule dd { color: var(--text-body); max-width: 34rem; }
.schedule dt a { color: inherit; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease), color 0.4s var(--ease); }
.schedule dt a:hover { color: var(--accent); background-size: 100% 1px; }
.schedule .figure {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: lining-nums;
}
.sheet > .schedule:last-child > div:last-child,
.sheet > .details:last-child > div:last-child { border-bottom: 0; padding-bottom: 0; }
.sheet > .split:last-child > div:last-child > .details > div:last-child { border-bottom: 0; padding-bottom: 0; }

.vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 2.4rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--text-2);
}

.steps { max-width: var(--col); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps li + li { margin-top: 1.5rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: lining-nums;
}
.steps h3,
.steps p { display: inline; }
.steps h3 { font-size: inherit; line-height: inherit; color: var(--text); }
.steps h3::after { content: "."; }
.steps p { color: var(--text-body); }

.aside-line { color: var(--text-2); margin-top: 1.5rem; }
/* Short links on a line of their own: the target is taller than the words. */
.logo,
.aside-line a,
.schedule dt a { position: relative; }
.logo::after,
.aside-line a::after,
.schedule dt a::after { content: ""; position: absolute; inset: -0.7rem 0; }

/* ---------- The example report (an enclosure) ---------- */

.report { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.report-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.9rem;
  max-width: var(--col);
}
.report-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.2;
}
.tag {
  font-family: var(--text-face);
  font-size: 0.95rem;
  color: var(--text-2);
}
.replay {
  font: inherit;
  font-size: 0.98rem;
  color: var(--text-2);
  background: none;
  border: 0;
  padding: 0.3rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 0.4s var(--ease);
}
.replay:hover { color: var(--accent); }
html:not(.js) .replay { display: none; }
.report-caption {
  margin-top: 1.1rem;
  font-size: 0.98rem;
  color: var(--text-2);
  max-width: var(--col);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule-strong);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--text-face);
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.9s var(--ease);
}
.rating::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  transition: background-color 0.9s var(--ease);
}
.rating-red { color: var(--rate-red); }
.rating-yellow { color: var(--rate-yellow); }
.rating-green { color: var(--rate-green); }
.rating-red::before { background: var(--rate-red); }
.rating-yellow::before { background: var(--rate-yellow); }
.rating-green::before { background: var(--rate-green); }

/* Scan states, set by the script. Quiet: a waiting mark, then the rating fades in. */
.entry.is-pending .rating { color: transparent; }
.entry.is-pending .rating::before { background: var(--rule); }
.entry.is-checking .rating::before { background: var(--text-2); }
.js .entry.is-checking .entry-head { color: var(--text); }

.ledger { border-top: 1px solid var(--rule-strong); }
.entry { border-bottom: 1px solid var(--rule); }
.entry > h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.2;
}
.entry-head {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  font: inherit;
  color: var(--text);
  transition: color 0.5s var(--ease);
}
.entry-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34rem;
  padding-bottom: 1.2rem;
}

.js .entry-head { color: var(--text-body); }
.js .entry.is-active .entry-head,
.js .entry-head:hover { color: var(--text); }
.js .entry-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease);
}
.js .entry-body > * { overflow: hidden; min-height: 0; transition: padding-bottom 0.7s var(--ease); }
.js .entry:not(.is-active) .entry-body > * { padding-bottom: 0; }
.js .entry.is-active .entry-body { grid-template-rows: 1fr; }

@media (min-width: 900px) {
  /* Wide screens: the rows hold the column, and the active row's account sits in the margin. */
  .js .ledger {
    display: grid;
    grid-template-columns: minmax(0, var(--col)) minmax(0, var(--margin-note));
    justify-content: space-between;
    column-gap: 3rem;
    border-top: 0;
  }
  .js .entry { display: contents; }
  .js .entry > h3 { grid-column: 1; border-bottom: 1px solid var(--rule); }
  .js .entry:first-child > h3 { border-top: 1px solid var(--rule-strong); }
  .js .entry.is-active > h3 { border-bottom-color: var(--rule-strong); }
  .js .entry-body {
    grid-column: 2;
    grid-row: 1 / span 12;
    align-self: start;
    display: block;
    margin-top: 1rem;
    border-left: 1px solid var(--rule-strong);
    padding-left: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
  }
  .js .entry.is-active .entry-body {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.9s var(--ease) 0.1s, visibility 0s;
  }
  .js .entry-body p { padding-bottom: 0; font-size: 0.98rem; }
}

/* ---------- Pieces used on the service, industry, compare and case-study pages ---------- */

/* A plain ruled checklist. */
.ticks { max-width: var(--col); border-top: 1px solid var(--rule); }
.ticks li {
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text-body);
}
.col + .ticks,
.col > .ticks,
.with-note + .ticks { margin-top: 1.6rem; }
.sheet > .ticks:last-child > li:last-child,
.sheet > .with-note:last-child > .col > .ticks:last-child > li:last-child { border-bottom: 0; }

/* A small heading inside a section. */
.sub-head {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  margin-top: 2.25rem;
}
.sub-head + * { margin-top: 0.8rem; }

/* Two lists side by side. */
.pair { display: grid; gap: 0 3rem; }
.pair .sub-head { margin-top: 0; }
.pair > div + div { margin-top: 2.25rem; }
@media (min-width: 760px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair > div + div { margin-top: 0; }
}

/* Plans: three columns of ruled lines, no boxes. */
.plans { display: grid; border-top: 1px solid var(--rule-strong); }
.plans > li { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
  /* Room is kept above every plan's name, so the one flagged plan lines up with the others. */
  .plans > li { position: relative; border-bottom: 0; padding-block: 3rem 0; }
  .plan-flag { position: absolute; left: 0; top: 1.35rem; margin: 0; }
  /* The three plans share their rows (name, who it is for, checklist), so a line that wraps in
     one column does not push that column's checklist out of step with the others. */
  @supports (grid-template-rows: subgrid) {
    .plans > li { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
  }
}
.plans h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.2;
}
.plan-flag { font-size: 0.82rem; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.35rem; }
.plan-for { font-size: 1rem; color: var(--text-2); margin-top: 0.25rem; }
.plans .ticks { margin-top: 1.1rem; }
@media (max-width: 759px) {
  /* Stacked, each plan is closed by its own rule, so its checklist's last line needs none:
     two rules sat a few pixels apart between one plan and the next. */
  .plans .ticks li:last-child { border-bottom: 0; }
}

/* Comparison tables. On narrow screens each row becomes a short block and every value
   carries its column heading. */
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.compare th,
.compare td { text-align: left; vertical-align: top; padding: 0.85rem 1.5rem 0.85rem 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-weight: 700; color: var(--text-2); border-bottom-color: var(--rule-strong); padding-top: 0; }
.compare tbody th { font-weight: 700; color: var(--text); }
.compare td { color: var(--text-body); }
.compare tr > :last-child { padding-right: 0; }
@media (max-width: 759px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { display: block; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
  .compare tbody tr:first-child { border-top: 1px solid var(--rule-strong); }
  .compare th,
  .compare td { display: block; border: 0; padding: 0; }
  .compare tbody th { font-size: 1.1rem; padding-bottom: 0.5rem; }
  .compare td + td { margin-top: 0.5rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.9rem; color: var(--text-2); }
}

/* The calculator: two lines to write on, and three figures that follow them. */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; max-width: var(--sheet); }
.calc-in { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 760px) {
  .calc { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); }
}
.calc-out { min-width: 0; border-left: 1px solid var(--rule-strong); padding-left: 1.2rem; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.calc-label { font-size: 0.98rem; color: var(--text-2); }
.calc-label + * { margin-top: 0.2rem; }
.calc-figure {
  font-variant-numeric: lining-nums tabular-nums;   /* the figures roll without shifting sideways */
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}
/* A figure of a hundred million or more is set smaller, so it stays on one line in its column. */
.calc.is-long .calc-figure { font-size: clamp(1.45rem, 2.9vw, 2.1rem); line-height: 1.2; }
.calc-line { color: var(--text-body); max-width: 30rem; }
.calc-line + .calc-label { margin-top: 1.4rem; }
.calc-figure + .calc-line { margin-top: 0.4rem; }

/* ---------- Contact details ---------- */

.details { border-top: 1px solid var(--rule-strong); max-width: var(--col); }
.details > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 520px) {
  .details > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .details dd { grid-column: 2; }
}
.details dt { color: var(--text-2); }
@media (min-width: 520px) {
  .details-wide > div { grid-template-columns: 12.5rem minmax(0, 1fr); }
}
.details dd { font-variant-numeric: lining-nums; }
.details dd.big {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* ---------- The Free IT Assessment page opens on the example report ---------- */
/* The home page's report sheet, beside the headline on a wide screen and under the button on a
   narrow one, so the thing being offered is in view where the visitor decides. */
.opening-report .docsheet { width: auto; max-width: 28rem; margin: 2.5rem 0 0; }
/* While the report sits under the headline, the opening is centred like the other pages'. */
@media (max-width: 899px) {
  .opening-report .sheet { text-align: center; }
  .opening-report .lead { margin-inline: auto; }
  .opening-report .actions { justify-content: center; }
  .opening-report .docsheet { margin-inline: auto; text-align: left; }
}
@media (min-width: 900px) {
  .opening-report > .sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
  .opening-report .docsheet { grid-column: 2; max-width: none; margin: 0; }
}
/* A short line of reassurance that sits with a section's heading. */
/* A case study's headline result, with its heading: the figure at the size the home page shows it. */
.rail-figure .result-label, .rail-figure .result-rest { display: block; }
.rail-figure .result-rest { color: var(--text-body); font-variant-numeric: lining-nums; }
.rail-figure .result-number { margin-top: 0.3rem; }
.rail-figure .result-rest { margin-top: 0.25rem; }
/* Below the one-screen size the note sits in the column, so what follows needs its own space. */
.part .sheet > .rail-note + * { margin-top: 1.75rem; }
.quiz, .form-done { scroll-margin-top: 1.5rem; }
.rail-note { max-width: var(--col); margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); color: var(--text-body); font-size: 1.02rem; line-height: 1.5; }

/* ---------- The 5-minute assessment (Advisory): ruled questions, one at a time ---------- */

.quiz { max-width: var(--col); }
.quiz-title { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; line-height: 1.2; }
.quiz-intro { color: var(--text-body); margin-top: 0.5rem; }
.quiz-step { font-size: 0.98rem; color: var(--text-2); margin-top: 1.2rem; font-variant-numeric: lining-nums; }
.quiz-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.quiz-step:not([hidden]) + .quiz-list { margin-top: 0.4rem; }
.quiz-q + .quiz-q { margin-top: 2.25rem; }
.quiz-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-q legend { padding: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.25; color: var(--text); }
.quiz-options { display: grid; margin-top: 0.9rem; border-top: 1px solid var(--rule); }
.quiz-options label { display: flex; align-items: center; gap: 0.8rem; min-height: 44px; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); color: var(--text-body); cursor: pointer; transition: color 0.4s var(--ease); }
.quiz-options label:hover,
.quiz-options label:has(input:checked) { color: var(--text); }
/* The answer mark is drawn in the page's own line: a ring that fills when chosen. */
.quiz-options input { flex: none; appearance: none; -webkit-appearance: none; width: 1.1rem; height: 1.1rem; margin: 0; border: 1px solid var(--text-2); border-radius: 50%; background: none; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.quiz-options label:hover input { border-color: var(--text); }
.quiz-options input:checked { border-color: var(--text); background: radial-gradient(circle, var(--text) 0 44%, transparent 50%); }
.quiz-options label:has(input:checked) { border-bottom-color: var(--rule-strong); }
@media (forced-colors: active) { .quiz-options input { appearance: auto; -webkit-appearance: auto; } }
@media (min-width: 620px) {
  .quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 3rem); }
  /* Room for two lines, so the answers do not jump when a longer question follows a short one. */
  .quiz-q[hidden] ~ .quiz-q legend, .quiz-q:has(~ .quiz-q[hidden]) legend { min-height: 2.5em; }
}
.quiz-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.3rem; }
.quiz .btn:disabled { opacity: 0.45; cursor: default; }
.quiz .btn:disabled:hover { background: var(--text); border-color: var(--text); }
.quiz-result { margin-top: 1.5rem; }
.quiz-result:focus { outline: none; }
.quiz-result-title { font-size: 0.98rem; font-weight: 400; color: var(--text-2); }
.quiz-score { margin-top: 0.35rem; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.25; font-variant-numeric: lining-nums; }
.quiz-figure { font-size: 1.6em; }
/* The result: a small report. Each area, the answer given, and its mark: a filled red dot for
   "needs a closer look", a green ring for "fine", so the two differ by shape as well as colour. */
.quiz-key { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; margin-top: 0.9rem; font-size: 0.92rem; }
.quiz-report { list-style: none; margin: 0.7rem 0 0; padding: 0; border-top: 1px solid var(--rule-strong); display: grid; }
.quiz-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: baseline; padding-block: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); }
.quiz-row-area { color: var(--text); }
.quiz-row-answer { grid-column: 1 / -1; font-size: 0.95rem; line-height: 1.4; color: var(--text-2); }
.quiz-row .rating { font-size: 0; gap: 0; position: relative; }                       /* in a row the mark is the dot; its words are in the key above */
.quiz-row-words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quiz .rating-green::before { background: none; box-shadow: inset 0 0 0 2px var(--rate-green); }
@media (min-width: 620px) {
  .quiz-report { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 3rem); }
}
/* While answering, the question area keeps one height, so the buttons stay where they are. */
@media (min-width: 620px) { .quiz.is-stepping .quiz-list { min-height: 15rem; } }
.quiz-result .actions { margin-top: 1.6rem; }
.quiz-after { margin-top: 1.6rem; color: var(--text-body); max-width: var(--col); }

/* ---------- Forms: lines to write on ---------- */

.form {
  display: grid;
  gap: 1.5rem;
  max-width: var(--col);
}
.form-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
.field { position: relative; display: grid; gap: 0.4rem; align-content: start; }
.field label {
  font-size: 1rem;
  color: var(--text-2);
  transition: color 0.4s var(--ease);
}
.field:focus-within label { color: var(--text); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1.2rem;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.45rem 0 0.7rem;
  width: 100%;
  transition: border-color 0.4s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9bccd' stroke-width='1.2'/%3E%3C/svg%3E") right 0.15rem center / 0.75rem no-repeat;
}
/* Nothing chosen yet: the prompt reads as a prompt, not as an answer. */
.field select:has(option[value=""]:checked) { color: var(--text-2); }
.field select option { background: var(--ground); color: var(--text); }
/* The message: fine lines to write on, closed by one stronger line. */
.field textarea {
  resize: vertical;
  padding: 0;
  line-height: 2;
  min-height: 8em;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2em - 1px), var(--rule) calc(2em - 1px), var(--rule) 2em);
  background-attachment: local;
  background-clip: padding-box;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: var(--text); }
/* Focus: the line under the field is drawn again in ice, from the left. */
.field > label { grid-row: 1; }
.field > :is(input, select, textarea) { grid-row: 2; grid-column: 1; }
.field > .field-error { grid-row: 3; }
.field::after {
  content: "";
  /* It shares the field's own row and sits on its bottom edge, so a message under the field
     (a missing name, an incomplete address) does not carry the line down with it. */
  grid-row: 2;
  grid-column: 1;
  align-self: end;
  position: relative;
  z-index: 1;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }
@media (forced-colors: active) {
  .field input:focus-visible,
  .field select:focus-visible,
  .field textarea:focus-visible { outline: 2px solid; outline-offset: 4px; }
}

/* The contact form: a full section heading, and fields side by side on a wide screen. */
.form-wide { max-width: none; row-gap: 2rem; }
.part h2 + .form-wide { margin-top: clamp(2rem, 4.5vw, 2.75rem); }
.form-wide .btn { margin-top: 0.5rem; }
@media (min-width: 760px) {
  .form-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2.5rem, 5vw, 4rem); row-gap: 2.25rem; }
  .form-wide .field-full,
  .form-wide .btn,
  .form-wide .form-status { grid-column: 1 / -1; }
}
.form .btn { justify-self: start; }
/* What a visitor meets on the way through a form. A missing field says so in words under its
   line, in the page's own white (red, yellow and green stay with the report ratings). */
.field-error { font-size: 0.98rem; line-height: 1.4; font-weight: 700; color: var(--text); }
.field.has-error label { color: var(--text); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom: 2px solid var(--text); padding-bottom: calc(0.7rem - 1px); }
.form-done { max-width: var(--col); }
.form-done:focus { outline: none; }
.form-done-lead { margin-top: 0.6rem; color: var(--text-body); }
.form-done .steps { margin-top: 1.4rem; }
.steps h4 { display: inline; font-size: inherit; font-weight: 700; line-height: inherit; color: var(--text); }
.steps h4::after { content: "."; }
/* Review furniture: lets Andrew see each state of a form without typing. */
.mock-try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.1rem; max-width: var(--col); margin-top: 1rem; color: var(--note); font-family: system-ui, sans-serif; font-size: 0.85rem; line-height: 1.5; }
.mock-try button { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px dashed var(--note-line); border-radius: 0; padding: 0.7rem 0 0.2rem; min-height: 44px; cursor: pointer; }
.mock-try button:hover { border-bottom-style: solid; }
.mock-try + .mock-note { margin-top: 0.6rem !important; }
@media (min-width: 900px) { .mock-try button { min-height: 0; padding-top: 0.25rem; } }

.form-status {
  color: var(--note);
  border: 1px dashed var(--note-line);
  padding: 0.7rem 0.95rem;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

/* ---------- Foot of the letter ---------- */

.site-footer { color: var(--text-2); font-size: 0.98rem; line-height: 1.65; }
.site-footer .sheet { padding-block: clamp(2.5rem, 5vw, 3.5rem) 2.5rem; }
.foot-top {
  display: grid;
  gap: 1.25rem 3rem;
  border-top: 1px solid var(--rule-strong);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}
.foot-close { font-size: 1.08rem; color: var(--text-body); max-width: 33rem; }
.foot-where { font-variant-numeric: lining-nums; }
@media (min-width: 760px) {
  .foot-top { grid-template-columns: minmax(0, 1fr) auto; }
  .foot-where { text-align: right; }
}
.foot-nav { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem 1.5rem; margin-top: 1.75rem; }
@media (min-width: 520px) {
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}
@media (min-width: 760px) {
  .foot-nav { grid-template-columns: repeat(3, minmax(0, 14rem)); }
}
.foot-head { font-weight: 700; color: var(--text-body); }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.footer-bottom { margin-top: 1.5rem; font-size: 0.9rem; }

/* ---------- Typesetting polish, inner pages (29 November 2026) ---------- */
/* Where the browser can avoid it, an account, a run-in item, a step, a checklist line or a table
   cell does not end on one stranded word, and a term that wraps is split evenly. A long intro
   line (too long for the browser to balance) gets the same care. Tokens joined by a hyphen in a
   heading, a term or an intro line stay together (the generator wraps them in .nb).
   These rules start from an inner page's opening. */
.opening-plain ~ .part :is(dd, .item, .steps li, .ticks li),
.opening-plain ~ .part .lead-long { text-wrap: pretty; }
/* The home page takes the stranded-word rule only (Rhiannon, 29 November 2026: "Yes, home too").
   Its terms and everything else there are set as they were. This is the weaker selector, so on
   the inner pages the rules above and below still decide. */
.part :is(dd, .item) { text-wrap: pretty; }
/* Short pieces (a term, a table cell, a case study's result) are split evenly instead. */
.opening-plain ~ .part :is(.schedule dt, .compare td, .details dd) { text-wrap: balance; }

/* Narrow screens: the hairline display face is kept for headings; smaller lines use the text face. */
@media (max-width: 619px) {
  .schedule dt,
  .entry > h3,
  .report-title,
  .form-title,
  .vendors,
  .details dd.big { font-family: var(--text-face); }
  .schedule dt, .entry > h3 { font-size: 1.2rem; }
  .report-title { font-size: 1.2rem; }
  .vendors { font-size: 1.15rem; }
  .details dd.big { font-size: 1.15rem; }
  .form-title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- One-screen sections (pages with <main class="fit">) ---------- */

/* On a laptop or desktop no section is taller than the screen. The heading and its intro line
   sit in a rail on the left and the rest sits to the right, so the whole section shows at once.
   The page never moves on its own. Phones, tablets and short windows keep the stacked layout.
   Nothing is hidden: a section that cannot fit a short screen is simply taller. */
@media (min-width: 1100px) and (min-height: 640px) {
  body:has(main.fit) { --sheet: 1180px; }
  main.fit {
    --rail: 20.5rem;
    --rail-gap: clamp(3rem, 5vw, 5.5rem);
    --screen: 100svh;              /* one screen; the screenshot tool sets a fixed height here */
    /* Space above and below a section's content. It grows with the height of the screen up to
       a comfortable gap, and gives way on a short screen so the longest sections still fit. */
    --fit-pad: clamp(1.75rem, calc((var(--screen) - 36.5rem) / 2), 5.75rem);
  }

  /* No section is taller than the screen, so each can be seen whole, but none is stretched to
     fill it either: a short section is followed by the start of the next one, with a steady gap
     between them, so the page never looks finished before it is. The page never moves on its
     own: the visitor scrolls freely. */
  main.fit > .part > .sheet { padding-block: var(--fit-pad); }
  main.fit > .part > .sheet::before { margin-bottom: clamp(1.25rem, 3.5svh, 2rem); }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet { display: flow-root; }

  /* The rail: heading and intro float on the left; everything else starts level with the heading. */
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > h2,
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > .lead { float: left; clear: left; width: var(--rail); max-width: none; }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > .rail-note { float: left; clear: left; width: var(--rail); max-width: none; margin-top: 1.5rem; }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > .rail-note + * { margin-top: 0.35rem; }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > .lead + .rail-note { margin-top: 1.5rem; }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > h2 { font-size: clamp(2.1rem, 2.9vw, 2.6rem); }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > .lead { font-size: 1.2rem; margin-top: 1.25rem; }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > :not(h2, .lead, .rail-note) { margin-left: calc(var(--rail) + var(--rail-gap)); }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > h2 + :not(.lead),
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > .lead + * { margin-top: 0.35rem; }

  /* A ruled list that starts the right-hand side needs no rule of its own: the section's rule is
     directly above it. Its first line starts level with the heading. */
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > :is(h2, .lead) + :is(.schedule, .results) { border-top: 0; }
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > :is(h2, .lead) + .schedule > div:first-child,
  main.fit > .part:is(:not(:last-of-type), :has(> .sheet > .form)):not(:has(> .sheet > table)) > .sheet > :is(h2, .lead) + .results > li { padding-top: 0; }

  /* ---- Inner pages: long content spends the width, not the height ---- */
  /* A long ruled list runs two-up: each term sits above its account. */
  main.fit .schedule-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  main.fit .schedule-two > div { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.45rem; padding-block: 1.15rem 1.25rem; }
  main.fit .schedule-two dt { font-size: 1.45rem; }
  main.fit .schedule-two dd { max-width: none; font-size: 1.0625rem; line-height: 1.5; }
  main.fit > .part > .sheet > :is(h2, .lead) + .schedule-two > div:nth-child(2) { padding-top: 0; }
  main.fit .sheet > .schedule-two:last-child > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; padding-bottom: 0; }
  /* An odd number of entries: the right-hand column ends without a rule under it. */
  main.fit .schedule-two > div:nth-child(even):nth-last-child(2) { border-bottom: 0; }
  /* A one-column list of long accounts: the terms take a narrower column, so each account runs to
     fewer lines and the section keeps to one screen. */
  main.fit .schedule-long > div { grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); }
  main.fit .schedule-long dd { max-width: none; }
  /* The plans start the right-hand side under the section's own rule, so they drop theirs, and
     the first line (the flag over a plan's name) sits level with the heading. */
  main.fit > .part > .sheet > :is(h2, .lead) + .plans { border-top: 0; }
  main.fit > .part > .sheet > :is(h2, .lead) + .plans > li { padding-top: 1.75rem; }
  main.fit > .part > .sheet > :is(h2, .lead) + .plans .plan-flag { top: 0.15rem; }
  /* A table needs the whole width, so its section has no rail: the heading and intro sit above
     it, and a mockup note sits in the margin beside them rather than under the table. */
  main.fit > .part:has(> .sheet > table) > .sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: var(--rail-gap); }
  main.fit > .part:has(> .sheet > table) > .sheet::before,
  main.fit > .part:has(> .sheet > table) > .sheet > table { grid-column: 1 / -1; }
  main.fit > .part:has(> .sheet > table) > .sheet > :is(h2, .lead) { grid-column: 1; }
  main.fit > .part:has(> .sheet > table) > .sheet > h2 { font-size: clamp(2.1rem, 2.9vw, 2.6rem); }
  main.fit > .part:has(> .sheet > table) > .sheet > .lead { font-size: 1.2rem; margin-top: 0.9rem; }
  main.fit > .part:has(> .sheet > table) > .sheet > table { margin-top: 1.9rem; }
  main.fit > .part:has(> .sheet > table) > .sheet > .mock-note { grid-column: 2; grid-row: 2 / span 2; align-self: end; margin-top: 0 !important; }
  main.fit > .part:has(> .sheet > table) > .sheet > h2 { max-width: none; }
  main.fit .compare :is(th, td) { padding-block: 0.6rem; }
  /* A short form sets its fields side by side, as the contact form does. */
  main.fit .form { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 3.5vw, 3rem); row-gap: 1.6rem; }
  main.fit .form > :is(.form-title, .btn, .form-status) { grid-column: 1 / -1; }
  main.fit .form > .field { grid-column: auto; }
  main.fit .form > .field:has(select, textarea) { grid-column: span 2; }
  main.fit .form-wide > .field:has(textarea) { grid-column: 1 / -1; }
  main.fit .form textarea { height: 6em; min-height: 6em; }
  /* Mockup notes sit a little closer to what they describe. */
  main.fit .sheet > .mock-note { margin-top: 1.5rem !important; }
  /* The quiz uses the full width beside the rail. */
  main.fit .quiz { max-width: none; }
  main.fit .quiz-report { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The result keeps to one screen: the key sits on the score's line, and the rows are a little closer. */
  main.fit .quiz-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; margin-top: 0; }
  main.fit .quiz-result > * { grid-column: 1 / -1; }
  main.fit .quiz-result > .quiz-score { grid-column: 1; }
  main.fit .quiz-result > .quiz-key { grid-column: 2; grid-row: 2; margin: 0 0 0.45rem; }
  main.fit .quiz-row { padding-block: 0.42rem 0.48rem; }
  main.fit .quiz-result .actions { margin-top: 1.2rem; }
  main.fit .quiz-after { margin-top: 1.1rem; max-width: none; }
  /* A case study: what was done and what came of it, side by side. */
  main.fit .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2.5rem, 4vw, 3.5rem); align-items: start; margin-top: 1.6rem; }
  main.fit .split .sub-head { margin-top: 0; }
  main.fit .split .details-wide > div { grid-template-columns: 8.75rem minmax(0, 1fr); padding-block: 0.5rem; }
  main.fit .split :is(.ticks, .details) { border-top-color: var(--rule); }
  main.fit .split .ticks li { padding-block: 0.55rem; }

  /* Beside the rail there is less width: a margin note takes a narrower column. */
  main.fit .with-note { grid-template-columns: minmax(0, 1fr) minmax(0, 12.5rem); gap: 2.5rem; }
  /* The pricing picture and the three points it illustrates sit side by side. In its narrower
     column the picture takes its phone form: each bar on a line of its own under its name. */
  main.fit .beside { display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 3.5rem); align-items: start; }
  main.fit .beside > .with-note { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 0; }
  main.fit .beside .hire-bills > div { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: baseline; }
  main.fit .beside .hire-bills dt,
  main.fit .beside .hire-value { min-width: 0; }
  main.fit .beside .hire-track { grid-column: 1 / -1; grid-row: 2; }

  /* The opening is two complete screens, so nothing is sliced at the bottom of the first one.
     Screen one: the headline and buttons, centred in the space under the letterhead.
     Screen two: the report with its notes, centred, and the four figures under it along the
     foot of that screen. The height of everything above <main> is measured by the script;
     17rem is the fallback. */
  main.fit > .opening { display: flex; flex-direction: column; }
  main.fit > .opening > .sheet:not(.after-stage) {
    width: 100%;
    min-height: calc(var(--screen) - var(--head, 17rem));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.5rem;
  }
  main.fit > .opening > .stage {
    width: 100%;
    min-height: calc(var(--screen) - 9.5rem);
    margin-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  main.fit > .opening > .sheet.after-stage {
    width: 100%;
    min-height: 9.5rem;
    display: grid;
    align-content: end;
    padding-block: 0 clamp(1.75rem, 4.5svh, 3rem);
  }
  main.fit .stage .pins { bottom: 0; }
  /* Inner pages open the way the home page does: centred, across and down, in the first screen's space. */
  main.fit > .opening.opening-plain:not(.opening-report) > .sheet:not(.after-stage) { text-align: center; align-items: center; }
  main.fit > .opening.opening-plain:not(.opening-report) .lead { margin-inline: auto; max-width: 46rem; }
  main.fit > .opening.opening-plain:not(.opening-report) .actions { justify-content: center; }
  main.fit > .opening.opening-plain:not(.opening-report) .proof { align-self: stretch; text-align: left; }
  /* The Free IT Assessment opening: headline on the left, the example report on the right, both centred on the first screen. */
  main.fit > .opening.opening-report > .sheet:not(.after-stage) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-content: center; align-items: center; }
  main.fit > .opening.opening-report .docsheet { padding: 1.5rem 1.6rem; }
  main.fit > .opening.opening-report .doc-row { padding-block: 0.6rem; }
  main.fit > .opening.opening-report .doc-head { padding-block: 0.9rem 0.7rem; }
  main.fit > .opening.opening-report .doc-caption { margin-top: 0.8rem; }
  main.fit .form-done { max-width: none; }
  main.fit .form { row-gap: 1.3rem; }
  main.fit .mock-try { margin-top: 0.6rem; }
  main.fit .sheet > .mock-try + .mock-note { margin-top: 0.4rem !important; }
  /* Review furniture: here the compare note sits in the draft banner's corner, clear of the figures. */
  body:has(main.fit) .ab-switch { top: 5px; bottom: auto; max-width: none; padding-block: 0.25rem; }

  @media (prefers-reduced-motion: no-preference) {
    /* With the motion script running, the navy blends from one section's tone to the next. */
    main.fit.blend { background-color: var(--blend, var(--ground)); }
    main.fit.blend > .part { background: none; }
  }
}

/* A short laptop window (about 640 to 760px tall): the example report beside the Free IT Assessment
   headline is set tighter, without its caption (the same sentence is in "How It Works" below), so the
   whole sheet shows on the first screen. */
@media (min-width: 1100px) and (min-height: 640px) and (max-height: 759px) {
  main.fit > .opening.opening-report > .sheet:not(.after-stage) { padding-block: 0.75rem; }
  main.fit > .opening.opening-report h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
  main.fit > .opening.opening-report .lead { margin-top: 1rem; }
  main.fit > .opening.opening-report .actions { margin-top: 1.4rem; }
  main.fit > .opening.opening-report .docsheet { padding: 1rem 1.3rem 1.1rem; }
  main.fit > .opening.opening-report .doc-firm { padding-bottom: 0.6rem; }
  main.fit > .opening.opening-report .doc-head { padding-block: 0.6rem 0.5rem; }
  main.fit > .opening.opening-report .doc-row { padding-block: 0.4rem; font-size: 1rem; }
  main.fit > .opening.opening-report .doc-caption { display: none; }
}


/* ---- Live site only (added by live/build_live.py) ----
   Contact details are links. They look as they did as plain text until pointed at or focused. */
a.plain { color: inherit; text-decoration: none; }
a.plain:hover, a.plain:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
