

/* ---------- #desktop-hero-title ---------- */
/* What We Do, desktop (901px and up): the hero heading centred */
@media (min-width: 760px) {
  section.pg-hero--box .hb-copy { text-align: center; }
  section.pg-hero--box .pg-hero__title.hb-title { max-width: none; text-align: center; }
  section.pg-hero--box .hb-copy .pg-hero__sub { margin-inline: auto; }
  section.pg-hero--box .hb-copy .ctas { justify-content: center; }
  section.pg-hero--box .hb-copy .btn { margin-inline: auto; }
}

/* ---------- #hb-legend ---------- */

/* ---------- #tablet-numbered ---------- */
/* What We Do, tablet (561px to 900px): the numbered services stack in one centred column: the title and text, then the diagram centred under them */
@media (min-width: 560px) and (max-width: 759px) {
  /* ---------- #tablet-whatwedo ---------- */
  /* What We Do, tablet only (561px to 900px): centered hero and sections with buttons in a row, the frame lines 12px in, and the same prefooter and footer as the home */
  section.pg-hero--box { position: relative; background-image: linear-gradient(var(--color-border), var(--color-border)), linear-gradient(var(--color-border), var(--color-border)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 36px, 0 calc(100% - 16px); }
  section.pg-hero--box::before, section.pg-hero--box::after { content: ""; display: block; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--color-border); border: 0; pointer-events: none; z-index: 1; }
  section.pg-hero--box::before { left: 12px; right: auto; }
  section.pg-hero--box::after { left: auto; right: 12px; }
  section.pg-hero--box .hlines--spot { display: none !important; }
  section.pg-hero--box .hb-copy { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 36px; }
  section.pg-hero--box .hb-copy h1, section.pg-hero--box .hb-copy p { text-align: center !important; margin-inline: auto; }
  section.pg-hero--box .hb-copy .ctas { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
  section h1, section h2, section h3, section p { text-align: center !important; }
  section.v3-svc--page > .v3-svc__head { position: relative !important; top: auto !important; height: auto !important; display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 36px; }
  section.v3-svc--page .v3-svc__text { text-align: center; }
  /* hero spacing: 48px above the heading and 48px between the buttons and the graphic line; 24px heading to text, 32px text to buttons */
  section.pg-hero--box .hb-copy { padding-top: 92px !important; }
  /* ---------- #gap-fixes ---------- */
  /* 821px to 900px: the services stack is one column, as it already is up to 820px (the desktop 3-column grid was showing here) */
  /* ---------- #tablet-fixes ---------- */
  /* tablet (561px to 900px): the footer box has a hairline on its bottom edge and one on the top edge of the footer, both across the whole screen width (as on Contact); the hero's script-drawn hairlines are hidden (the frame is the 12px lines only) */
  section.pg-hero .hlines { display: none !important; }
  main > section:not(.hscroll) > .hlines > i:not([class]) { display: none !important; }
  /* ---------- #tablet-from-mobile-whatwedo ---------- */
  /* What We Do, phones only (max-width 560px) */
  /* one rhythm: 48px between sections */
  main > section { padding-block: 48px !important; }

  /* hero: centered title, copy and buttons; the title fits the width; the graphic fills the space under the button */
  section.pg-hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - 72px); padding-top: 32px !important; background-image: linear-gradient(var(--color-border), var(--color-border)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 36px; }   /* one hairline at the top of the next block */
  .hlines--spot { display: none !important; }
  section.pg-hero > .hb-box { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; padding-inline: 0 !important; margin-inline: 0 !important; }
  .hb-copy { flex: none; padding-inline: 20px !important; max-width: 100% !important; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hb-copy h1, .hb-copy p { text-align: center !important; margin-inline: auto; }
  .hb-title { font-size: clamp(28px, 9.2vw, 40px) !important; overflow-wrap: break-word; }
  .hb-copy .pg-hero__sub { margin-top: 12px; }
  .hb-copy .ctas { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

  /* the hero frame: 12px side lines, and the hairlines at 36px and 16px from the edges */
  section.pg-hero::before, section.pg-hero::after, section.v3-svc--page > .v3-svc__head::before, section.v3-svc--page > .v3-svc__head::after { content: ""; display: block; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--color-border); border: 0; pointer-events: none; z-index: 1; }
  section.pg-hero::before, section.v3-svc--page > .v3-svc__head::before { left: 12px; right: auto; }
  section.pg-hero::after, section.v3-svc--page > .v3-svc__head::after { left: auto; right: 12px; }

  /* the header of the next section: centered, its own frame, no lines around the cards */
  section.v3-svc--page { padding-top: 0 !important; display: block !important; }
  section.v3-svc--page .v3-svc__row:first-child { border-top: 0 !important; }
  section.v3-svc--page .v3-svc__row:last-child { border-bottom: 0 !important; }   /* the next section's top line is the only one */   /* the header's bottom line is the only one */
  section.v3-svc--page > .v3-svc__head { position: relative !important; top: auto !important; height: auto !important; padding: 48px var(--gutter) 24px !important; border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px !important; }
  section.v3-svc--page .v3-svc__stack { padding-top: 0 !important; margin-top: 24px !important; }
  section h1, section h2, section h3 { text-align: center !important; }
   /* the diagram box outline, measured */   /* the gray cards get the same outline as the diagram boxes */
  section p { text-align: center !important; }
  section h2 + p, section h1 + p, section h2 + .v3-svc__lead { margin-top: 12px; }
  section p + .ctas, section p + .btn { margin-top: 24px !important; }
  .ctas { display: flex; flex-direction: column; align-items: center; gap: 16px; }

  /* service cards: title and text above each graphic */
  section.v3-svc--page .v3-svc__text { grid-row: 2 !important; }
  section.v3-svc--page .v3-svc__viz { grid-row: 3 !important; margin-top: 16px !important; min-height: 0 !important; height: 200px !important; }
  /* ---------- #tablet-from-service-head-lines ---------- */
  /* phones: the service box's side lines start at the horizontal line above it; the 48px space moves inside the box, under the line */
  main > section.v3-svc--page { padding-top: 0 !important; padding-bottom: 0 !important; }
  section.v3-svc--page > .v3-svc__head { padding-top: 48px !important; }
  /* phones: every service card has the same 24px space on all sides, and 24px between its text and its diagram */
  section.v3-svc--page .v3-svc__row { padding-left: 24px !important; padding-right: 24px !important; }
  section.v3-svc--page .v3-svc__viz { margin-top: 24px !important; }
  section.v3-svc--page .v3-svc__row { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; }
  section.v3-svc--page .v3-svc__text { grid-column: 1 !important; grid-row: 2 !important; text-align: center !important; }
  section.v3-svc--page .v3-svc__text h3, section.v3-svc--page .v3-svc__text p { text-align: center !important; }
  section.v3-svc--page .v3-svc__row { grid-template-rows: auto auto auto !important; }
  section.v3-svc--page .v3-svc__top { display: flex !important; justify-content: space-between !important; align-items: center; width: 100%; grid-column: 1 / -1; }
  section.v3-svc--page .v3-svc__text { width: 100%; max-width: none; }
  section.v3-svc--page .v3-svc__viz { grid-column: 1 !important; grid-row: 3 !important; width: 100%; min-height: 340px; margin: 24px 0 0 !important; }
  section.v3-svc--page .v3-svc__viz { min-height: 340px !important; height: 340px !important; overflow: hidden; }
  section.v3-svc--page .v3-svc__viz canvas { height: 100% !important; }
}
/* the closing section, with the footer frame and lines it shares, stays stacked up to 939px, where its button first fits two columns (a section breakpoint) */
@media (min-width: 560px) and (max-width: 939px) {
  section.closing .closing__cell { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; column-gap: 16px !important; grid-template-columns: none !important; }
  section.closing .closing__cell > .closing__art, section.closing .closing__cell > .closing__main { flex: 0 0 100% !important; width: 100% !important; grid-area: auto !important; }
  section.closing .closing__cell > .closing__cta, section.closing .closing__cell > .closing__cta--2 { flex: 0 0 auto !important; grid-area: auto !important; padding: 48px 24px 24px !important; }
  section.closing .closing__cta .btn, section.closing .closing__cta--2 .btn { width: auto !important; }
  section.closing .closing__art { min-height: 0 !important; height: 160px; margin-inline: -12px !important; border-bottom: 1px solid var(--color-border) !important; }
  section.closing .closing__main { padding-bottom: 0 !important; text-align: center; }
  .endgrid > .hlines > .hl--h:nth-child(2) { display: none !important; }
  .endgrid > .hlines > .hl--h:nth-child(3), .endgrid > .hlines > .hl--v:not(.hl--edge) { display: none !important; }
  .endgrid > .hlines > .hl--v.hl--edge:nth-child(6) { left: 12px !important; right: auto !important; top: 0 !important; bottom: 0 !important; height: auto !important; translate: none !important; }
  .endgrid > .hlines > .hl--v.hl--edge:nth-child(7) { left: auto !important; right: 12px !important; top: 0 !important; bottom: 0 !important; height: auto !important; translate: none !important; }
  footer { position: relative !important; padding-top: 24px !important; padding-bottom: 48px !important; }
  footer::before { content: ""; display: block; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-border); pointer-events: none; }
  footer::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 48px; height: 1px; background: var(--color-border); pointer-events: none; }

  /* closing (pre-footer): graphic on the top hairline, buttons 24px apart, no box lines */
  section.closing:not(.hero):not(.hscroll) { position: relative; padding-top: 0 !important; padding-bottom: 0 !important; }
  section.closing:not(.hero):not(.hscroll)::before { content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--color-border); z-index: 3; pointer-events: none; }
  section.closing .closing__cell, section.closing .closing__cell.is-in { clip-path: none !important; }
  section.closing .closing__art { min-height: 0 !important; height: 160px; margin-inline: -12px !important; }
  section.closing .closing__main { padding-bottom: 0 !important; text-align: center; align-items: center; }
  section.closing .closing__main p { text-align: center !important; }
  .closing__cta, .closing__cta--2 { padding-inline: var(--gutter) !important; }
  .closing__cta { padding: 24px var(--gutter) 12px !important; }
  .closing__cta--2 { padding: 12px var(--gutter) 24px !important; }
  .endgrid .hl--h[style*="left:"] { display: none !important; }
  .endgrid .hl--v.hl--edge[style*="left: 24px"] { left: 12px !important; }
  .endgrid .hl--v.hl--edge[style*="left: 351px"] { left: calc(100% - 13px) !important; }

  /* footer: box between the side lines, one hairline at the page edge */
  footer { padding-top: 24px !important; padding-bottom: 48px !important; background-image: linear-gradient(var(--color-border), var(--color-border)) !important; background-repeat: no-repeat !important; background-size: 100% 1px !important; background-position: 0 100% !important; }
  .footer__inner { margin-inline: 12px !important; width: auto !important; }
  /* ---------- #prefooter-phone-look ---------- */
  /* What We Do, 561px to 635px: the pre-footer buttons look as they do on the phone: stacked, the same width, 24px apart */
  /* ---------- #prefooter-art-full ---------- */
  /* What We Do, 561px to 900px: the pre-footer graphic fills the space between the two 12px edge lines */
  section.closing .closing__cell > .closing__art { flex: none !important; align-self: stretch !important; width: calc(100% + 24px) !important; margin-inline: -12px !important; }
  section.closing .closing__art canvas { left: 1px !important; right: 1px !important; width: calc(100% - 2px) !important; }
  /* no empty space between the pre-footer buttons and the footer box */
  footer { padding-top: 0 !important; }
  /* the two 12px edge lines: the left one stays on the left, whatever its position in the list */
  .endgrid > .hlines > .hl--v.hl--edge[style*="left: 12px"] { left: 12px !important; right: auto !important; }
  .endgrid > .hlines > .hl--v.hl--edge:not([style*="left: 12px"]) { left: auto !important; right: 12px !important; }
}

/* ---------- #ai-ready-viz-below-901 ---------- */
/* "What AI-ready data requires", 560px and up: in each item the heading, body and graphic fill the item's width, the graphic under the body text */
@media (min-width: 560px) {
  section.v3-svc--page .v3-svc__text { grid-column: 1 !important; grid-row: 2 !important; }
  section.v3-svc--page .v3-svc__viz { grid-column: 1 !important; grid-row: 3 !important; margin-top: 24px !important; height: 260px !important; min-height: 260px !important; }
  section.v3-svc--page .v3-svc__stack { grid-template-rows: none !important; grid-auto-rows: auto !important; }
  section.v3-svc--page .v3-svc__row { grid-template-columns: minmax(0, 1fr) !important; }
  section.v3-svc--page .v3-svc__text, section.v3-svc--page .v3-svc__viz { width: 100% !important; }
}

/* ---------- #rq-css ---------- */
/* "What AI-ready data requires" (fix list P-WWD-7, G-DS2). Overrides the earlier rules for this section at every width.
   1180 px and up: heading column left, cards staggered by half a card in columns 2-3.
   560-1179: heading on top in the left half, the same stagger as one ruled grid across the full width, no button.
   559 and under: one column, no button. Both widths are this section's own (tests/breakpoints.json). Below 1180 each graphic keeps an 8:5 shape up to 380 px wide.
   Tune with --box (card height) and --gap (space under each card); both are set again under 1180. */
main > section.v3-svc.v3-svc--page { --box: 330px; --gap: 36px; padding-top: 0 !important; padding-bottom: 0 !important; }
main > section.v3-svc.v3-svc--page .v3-svc__stack { padding-top: 0 !important; grid-template-rows: none !important;
  grid-auto-rows: calc((var(--box) + var(--gap)) / 2) !important; }
main > section.v3-svc.v3-svc--page .v3-svc__row { display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important; margin-bottom: var(--gap) !important; padding: 24px var(--pad) !important; }
main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(1) { grid-area: 1 / 1 / 3 / 2 !important; }
main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(2) { grid-area: 2 / 2 / 4 / 3 !important; }
main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(3) { grid-area: 3 / 1 / 5 / 2 !important; }
main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(4) { grid-area: 4 / 2 / 6 / 3 !important; }
main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(5) { grid-area: 5 / 1 / 7 / 2 !important; }
main > section.v3-svc.v3-svc--page .v3-svc__row + .v3-svc__row { border-top: 1px solid var(--rule) !important; }
main > section.v3-svc.v3-svc--page .v3-svc__top { margin-bottom: 14px !important; }
main > section.v3-svc.v3-svc--page .v3-svc__text { grid-column: 1 !important; grid-row: 2 !important; text-align: left !important; }
main > section.v3-svc.v3-svc--page .v3-svc__text h3, main > section.v3-svc.v3-svc--page .v3-svc__text p { text-align: left !important; }
main > section.v3-svc.v3-svc--page .v3-svc__viz { grid-column: 1 !important; grid-row: 3 !important; height: auto !important;
  min-height: 110px !important; margin: 18px 0 0 !important; }

@media (min-width: 1180px) {
  main > section.v3-svc.v3-svc--page { display: grid !important; }
  main > section.v3-svc.v3-svc--page > .v3-svc__head { position: sticky !important; top: calc(var(--nav-h, 100px) + 48px) !important;
    height: auto !important; align-self: start; justify-content: flex-start; padding: 64px var(--pad) !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__stack { margin-top: 64px !important; margin-bottom: 28px; }
}
@media (max-width: 1179px) {
  main > section.v3-svc.v3-svc--page { display: block !important; }
  main > section.v3-svc.v3-svc--page::before, main > section.v3-svc.v3-svc--page::after,
  main > section.v3-svc.v3-svc--page .hl--v:not(.hl--edge) { display: none !important; }
  main > section.v3-svc.v3-svc--page > .v3-svc__head { position: relative !important; top: auto !important; height: auto !important;
    align-items: flex-start !important; text-align: left !important; gap: 16px; padding: 56px var(--gutter, 24px) 0 !important; border-bottom: 0 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__head h2 { max-width: none; }
  main > section.v3-svc.v3-svc--page .v3-svc__head h2, main > section.v3-svc.v3-svc--page .v3-svc__head .v3-svc__lead { text-align: left !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__text p { max-width: none !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__head .v3-svc__lead { margin: 0 !important; max-width: 36em; }
  main > section.v3-svc.v3-svc--page .v3-svc__cta { display: none !important; }
  /* one ruled grid: no gaps, cards in a column share a line, a rule down the middle and across the top and bottom,
     so every line ends on another line and the stagger's empty half-cells are framed */
  main > section.v3-svc.v3-svc--page { --box: 420px; --gap: 0px; }
  main > section.v3-svc.v3-svc--page .v3-svc__stack { position: relative; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 0; margin: 40px 0 0 !important; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  /* the middle rule runs the section's full height, like the guides at 1180 and up; the heading keeps to the left half */
  main > section.v3-svc.v3-svc--page { position: relative; }
  main > section.v3-svc.v3-svc--page::before { display: block !important; content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--rule); pointer-events: none; }
  main > section.v3-svc.v3-svc--page > .v3-svc__head { width: 50%; box-sizing: border-box; }
  main > section.v3-svc.v3-svc--page .v3-svc__row { border-top: 0 !important; border-bottom: 0 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(n+2) { border-top: 1px solid var(--rule) !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(4) { border-bottom: 1px solid var(--rule) !important; }
  /* the graphic keeps its 8:5 shape, so curves and lanes don't flatten */
  main > section.v3-svc.v3-svc--page .v3-svc__viz { width: 100%; max-width: 380px; aspect-ratio: 8 / 5; height: auto !important; min-height: 0 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row { grid-template-rows: auto auto auto !important; align-content: start; }
}
@media (max-width: 559px) {
  /* ---------- #mobile-whatwedo ---------- */
  /* What We Do, phones only (max-width 560px) */
  /* one rhythm: 48px between sections */
  main > section { padding-block: 48px !important; }

  /* hero: centered title, copy and buttons; the title fits the width; the graphic fills the space under the button */
  section.pg-hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - 72px); padding-top: 32px !important; background-image: linear-gradient(var(--color-border), var(--color-border)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 36px; }   /* one hairline at the top of the next block */
  .hlines--spot { display: none !important; }
  section.pg-hero > .hb-box { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; padding-inline: 0 !important; margin-inline: 0 !important; }
  .hb-copy { flex: none; padding-inline: 20px !important; max-width: 100% !important; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hb-copy h1, .hb-copy p { text-align: center !important; margin-inline: auto; }
  .hb-title { font-size: clamp(28px, 9.2vw, 40px) !important; overflow-wrap: break-word; }
  .hb-copy .pg-hero__sub { margin-top: 12px; }
  .hb-copy .ctas { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

  /* the hero frame: 12px side lines, and the hairlines at 36px and 16px from the edges */
  section.pg-hero::before, section.pg-hero::after, section.v3-svc--page > .v3-svc__head::before, section.v3-svc--page > .v3-svc__head::after { content: ""; display: block; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--color-border); border: 0; pointer-events: none; z-index: 1; }
  section.pg-hero::before, section.v3-svc--page > .v3-svc__head::before { left: 12px; right: auto; }
  section.pg-hero::after, section.v3-svc--page > .v3-svc__head::after { left: auto; right: 12px; }

  /* the header of the next section: centered, its own frame, no lines around the cards */
  section.v3-svc--page { padding-top: 0 !important; display: block !important; }
  section.v3-svc--page .v3-svc__row:first-child { border-top: 0 !important; }
  section.v3-svc--page .v3-svc__row:last-child { border-bottom: 0 !important; }   /* the next section's top line is the only one */   /* the header's bottom line is the only one */
  section.v3-svc--page > .v3-svc__head { position: relative !important; top: auto !important; height: auto !important; padding: 48px var(--gutter) 24px !important; border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px !important; }
  section.v3-svc--page .v3-svc__stack { padding-top: 0 !important; margin-top: 24px !important; }
  section h1, section h2, section h3 { text-align: center !important; }
   /* the diagram box outline, measured */   /* the gray cards get the same outline as the diagram boxes */
  section p { text-align: center !important; }
  section h2 + p, section h1 + p, section h2 + .v3-svc__lead { margin-top: 12px; }
  section p + .ctas, section p + .btn { margin-top: 24px !important; }
  .ctas { display: flex; flex-direction: column; align-items: center; gap: 16px; }

  /* service cards: title and text above each graphic */
  section.v3-svc--page .v3-svc__text { grid-row: 2 !important; }
  section.v3-svc--page .v3-svc__viz { grid-row: 3 !important; margin-top: 16px !important; min-height: 0 !important; height: 200px !important; }

  /* closing (pre-footer): graphic on the top hairline, buttons 24px apart, no box lines */
  section.closing:not(.hero):not(.hscroll) { position: relative; padding-top: 0 !important; padding-bottom: 0 !important; }
  section.closing:not(.hero):not(.hscroll)::before { content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--color-border); z-index: 3; pointer-events: none; }
  section.closing .closing__cell, section.closing .closing__cell.is-in { clip-path: none !important; }
  section.closing .closing__art { min-height: 0 !important; height: 160px; margin-inline: -12px !important; }
  section.closing .closing__main { padding-bottom: 0 !important; text-align: center; align-items: center; }
  section.closing .closing__main p { text-align: center !important; }
  .closing__cta, .closing__cta--2 { padding-inline: var(--gutter) !important; }
  .closing__cta { padding: 24px var(--gutter) 12px !important; }
  .closing__cta--2 { padding: 12px var(--gutter) 24px !important; }
  .endgrid .hl--h[style*="left:"] { display: none !important; }
  .endgrid .hl--v:not(.hl--edge) { display: none !important; }
  .endgrid .hl--v.hl--edge[style*="left: 24px"] { left: 12px !important; }
  .endgrid .hl--v.hl--edge[style*="left: 351px"] { left: calc(100% - 13px) !important; }

  /* footer: box between the side lines, one hairline at the page edge */
  footer { padding-top: 24px !important; padding-bottom: 48px !important; background-image: linear-gradient(var(--color-border), var(--color-border)) !important; background-repeat: no-repeat !important; background-size: 100% 1px !important; background-position: 0 100% !important; }
  .footer__inner { margin-inline: 12px !important; width: auto !important; }
  /* 821px to 900px: the same as 561px to 820px: sections are the full width with no own side borders, the stray vertical hairlines and the desktop column lines are hidden */
  /* ---------- #service-head-lines ---------- */
  /* phones: the service box's side lines start at the horizontal line above it; the 48px space moves inside the box, under the line */
  main > section.v3-svc--page { padding-top: 0 !important; padding-bottom: 0 !important; }
  section.v3-svc--page > .v3-svc__head { padding-top: 48px !important; }
  /* phones: every service card has the same 24px space on all sides, and 24px between its text and its diagram */
  section.v3-svc--page .v3-svc__row { padding-left: 24px !important; padding-right: 24px !important; }
  section.v3-svc--page .v3-svc__viz { margin-top: 24px !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__stack { grid-template-columns: minmax(0, 1fr) !important; grid-auto-rows: auto !important; margin: 32px 0 0 !important; border-bottom: 0; }
  main > section.v3-svc.v3-svc--page::before { display: none !important; }
  main > section.v3-svc.v3-svc--page > .v3-svc__head { width: auto; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(n) { grid-area: auto !important; margin-bottom: 0 !important; border-bottom: 0 !important; }
  main > section.v3-svc.v3-svc--page > .v3-svc__head { padding-top: 48px !important; }
}

/* ---------- #pl-css ---------- */
/* What AI-ready data looks like at work (fix list P-WWD-4).
   Layout: 1280 px and up, the text column beside the wide diagram; 900-1279, stacked;
   720-899, the text beside the tall diagram; under 720, the tall diagram between heading and legend. */
/* the hero lost its diagram, so it sizes to its copy instead of the screen */
main > section.pg-hero.pg-hero--box { min-height: 0 !important; height: auto !important; }
.pg-hero--box .hb-box { min-height: 0 !important; }
.pg-hero--box .hb-copy { padding-bottom: var(--space-16, 64px); }
.pl { display: block; }
.pl::before, .pl::after { display: none; }   /* the column guides would run through the diagram */
.pl-wrap { display: grid; gap: 28px 40px; padding-inline: var(--pad); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fig" "ctl"; }
.pl-head { grid-area: head; }
.pl-head .pg-intro { max-width: 34em; }
.pl-fig { grid-area: fig; min-width: 0; }
.pl-ctl { grid-area: ctl; display: grid; gap: 14px; align-content: start; }
.pl-svg { display: block; width: 100%; height: auto; }
.pl-svg--tall { display: none; max-width: 440px; margin-inline: auto; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pl-legend button { font: 400 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(245,245,245,.62);
  background: #242424; border: 1px solid rgba(245,245,245,.14); padding: 9px 12px; min-height: 40px; cursor: pointer; text-align: left; border-radius: 0; }
.pl-legend button b { color: #F5F5F5; font-weight: 400; margin-right: 6px; }
.pl-legend button:hover { color: #F5F5F5; border-color: rgba(245,245,245,.3); }
.pl-legend button[aria-pressed="true"] { color: #1D1D1D; background: #FFAF36; border-color: #FFAF36; }
.pl-legend button[aria-pressed="true"] b { color: #1D1D1D; }
.pl-legend button:focus-visible { outline: 2px solid #60C9B2; outline-offset: 2px; }
.pl-legend .pl-s { display: none; }

@media (min-width: 1280px) {
  .pl-wrap { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "head fig" "ctl fig"; align-items: start; }
  .pl-legend { flex-direction: column; }
  .pl-legend button { width: 100%; }
}
@media (min-width: 760px) and (max-width: 1279px) {
  .pl-head { text-align: center; }
  .pl-head .pg-intro { margin-inline: auto; }
  .pl-legend { justify-content: center; }
}
@media (max-width: 759px) {
  .pl-svg--wide { display: none; }
  .pl-svg--tall { display: block; }
  .pl-legend { display: grid; grid-template-columns: 1fr 1fr; }
  .pl-legend button { padding: 8px 10px; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
  .pl-legend button { width: 100%; }
  .pl-legend .pl-l { display: none; }
  .pl-legend .pl-s { display: inline; }
}

/* the drawing */
.pl-svg text { font-family: var(--font-mono); }
.pl-face { fill: #1D1D1D; stroke: rgba(245,245,245,.30); stroke-width: 1; transition: stroke .3s; }
.pl-top { fill: #222; }
.pl-inset { fill: #191919; stroke: rgba(245,245,245,.30); stroke-width: 1; transition: stroke .3s; }
.pl-lbl { fill: #F5F5F5; font-size: 11px; letter-spacing: .08em; transition: fill .3s; }
.pl-svg text.pl-sub { fill: rgba(245,245,245,.62); font-family: var(--font-body); font-size: 11.5px; }
.pl-svg--wide .pl-lbl { font-size: 12px; }
.pl-svg--wide text.pl-sub { font-size: 12px; }
.pl-tag { fill: rgba(245,245,245,.62); font-size: 10.5px; letter-spacing: .12em; }
.pl-ltag { font-size: 9.5px; letter-spacing: .12em; }
.pl-gran { fill: rgba(245,245,245,.30); }
.pl-hit { fill: #FFAF36; opacity: .15; }
.pl-box { fill: #1D1D1D; stroke: rgba(245,245,245,.30); }
.pl-frame { fill: none; stroke: rgba(245,245,245,.30); stroke-dasharray: 2 3; }
.pl-ico { fill: none; stroke: #F5F5F5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pl-ico .pl-f { fill: #F5F5F5; stroke: none; }
.pl-ico.pl-agent { stroke: #60C9B2; }
.pl-ico.pl-agent .pl-f { fill: #60C9B2; }
.pl-ico.pl-app { stroke: rgba(245,245,245,.62); stroke-width: 1.3; transition: stroke .3s; }
.pl-ico.pl-app .pl-f { fill: rgba(245,245,245,.62); }
.pl-wire { fill: none; stroke: rgba(245,245,245,.30); stroke-width: 1; }
.pl-dash { stroke-dasharray: 3 5; }
.pl-read { fill: none; stroke: #60C9B2; stroke-width: 1.4; }
.pl-act { fill: none; stroke: #F5F5F5; stroke-width: 1.4; }
.pl-sig { fill: none; stroke: #FFAF36; stroke-width: 1.3; stroke-dasharray: 7 5; }
.pl-sig.pl-quiet { stroke: rgba(255,175,54,.32); }
.pl-t-read { fill: #60C9B2; } .pl-t-act { fill: #F5F5F5; } .pl-t-sig { fill: #FFAF36; } .pl-t-quiet { fill: rgba(255,175,54,.4); }
.pl-dot { fill: #F5F5F5; }
.pl-spike { fill: none; stroke: rgba(245,245,245,.62); stroke-width: 1.2; stroke-linejoin: round; transition: stroke .3s; }
.pl-ch .pl-face { fill: #23211F; stroke: rgba(255,175,54,.16); }
.pl-ch .pl-top { fill: #252320; }
.pl-ch .pl-lbl { fill: rgba(255,175,54,.48); font-family: var(--font-display); font-size: 17px; letter-spacing: 0; }
.pl-svg .pl-ch text.pl-sub { fill: rgba(245,245,245,.45); }
.pl-ch .pl-gran { fill: rgba(255,175,54,.18); }
.pl-mute .pl-face { fill: #222; stroke: rgba(245,245,245,.14); }
.pl-mute .pl-lbl { fill: rgba(245,245,245,.62); }
.pl-gov .pl-face { fill: rgba(96,201,178,.07); stroke: rgba(96,201,178,.5); }
.pl-gov .pl-top { fill: rgba(96,201,178,.05); }
.pl-gov .pl-lbl { fill: #60C9B2; font-size: 10px; }
.pl-g { transition: opacity .35s; }
.pl-svg.pl-dim .pl-g:not(.pl-on):not(.pl-keep) { opacity: .26; }
.pl-g.pl-on .pl-face, .pl-g.pl-on .pl-inset { stroke: #FFAF36; }
.pl-g.pl-on .pl-lbl { fill: #FFAF36; }
/* the semantics and policy layer stays teal when lit, full strength instead of faint: it is the layer agents read through (fix G21) */
.pl-g.pl-gov.pl-on .pl-face, .pl-g.pl-gov.pl-on .pl-inset { stroke: #60C9B2; }
.pl-g.pl-gov.pl-on .pl-lbl { fill: #60C9B2; }
.pl-g.pl-on .pl-spike { stroke: #FFAF36; }
.pl-g.pl-on .pl-ico.pl-app { stroke: #FFAF36; }
.pl-g.pl-on .pl-ico.pl-app .pl-f { fill: #FFAF36; }
/* the whole platform lit (the last step of the cycle): ClickHouse, ingestion and the incoming signals light with the services */
.pl-svg.pl-all .pl-ch .pl-face, .pl-svg.pl-all .pl-mute .pl-face { stroke: #FFAF36; }
.pl-svg.pl-all .pl-ch .pl-lbl, .pl-svg.pl-all .pl-mute .pl-lbl { fill: #FFAF36; }
.pl-svg.pl-all .pl-ch .pl-gran { fill: rgba(255,175,54,.5); }
.pl-svg.pl-all .pl-sig.pl-quiet { stroke: #FFAF36; } .pl-svg.pl-all .pl-t-quiet { fill: #FFAF36; }
.pl-svg.pl-all .pl-box { stroke: #FFAF36; }
.pl-legend--all button { color: #1D1D1D; background: #FFAF36; border-color: #FFAF36; }
.pl-legend--all button b { color: #1D1D1D; }

/* ---------- diagram text colors and sizes (were style attributes in the generated SVG; !important keeps them as strong) ---------- */
.pl-svg .pl-fill-w { fill: #F5F5F5 !important; }
.pl-svg .pl-fill-o { fill: #FFAF36 !important; }
.pl-svg .pl-fs85 { font-size: 8.5px !important; }
.pl-svg .pl-fs95 { font-size: 9.5px !important; }

/* "What AI-ready data requires", 560-1179px (two columns): the heading is the first cell on the left, 01 starts at the
   top on the right, and the cards alternate down, each column half a card behind the other; a granule pattern closes
   the cell left over at the bottom left. The section is the grid; the card list's own box steps aside. */
.v3-svc__fill { display: none; }
@media (min-width: 560px) and (max-width: 1179px) {
  main > section.v3-svc.v3-svc--page { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(calc(var(--box) / 2), auto);
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  main > section.v3-svc.v3-svc--page > .v3-svc__head { grid-area: 1 / 1 / 2 / 2; width: auto; padding-bottom: 32px !important; }
  main > section.v3-svc.v3-svc--page > .v3-svc__stack { display: contents !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(n) { margin: 0 !important; border-top: 1px solid var(--rule) !important; border-bottom: 0 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(1) { grid-area: 1 / 2 / 3 / 3 !important; border-top: 0 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(2) { grid-area: 2 / 1 / 4 / 2 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(3) { grid-area: 3 / 2 / 5 / 3 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(4) { grid-area: 4 / 1 / 6 / 2 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__row:nth-child(5) { grid-area: 5 / 2 / 7 / 3 !important; }
  main > section.v3-svc.v3-svc--page .v3-svc__fill { display: block; grid-area: 6 / 1 / 7 / 2; border-top: 1px solid var(--rule);
    background: radial-gradient(circle, color-mix(in srgb, var(--color-orange) 55%, transparent) 1.2px, transparent 1.7px) 0 0 / 18px 18px;
    -webkit-mask-image: linear-gradient(135deg, transparent 15%, #000 85%); mask-image: linear-gradient(135deg, transparent 15%, #000 85%); }
}

/* ---------- Offerings (fix list P-WWD-16) ----------
   Tabs pick an offering. Each panel: its graphic, name and promise, two cards (the gap today, what Granule delivers;
   five one-line points each) and the type of work (four, in two rows). All four panels share one grid cell, so the
   section is as tall as the tallest and nothing moves when the tab changes; the graphic runs the panel's full height.
   1180px and up: the cards keep their own width (380px), the graphic takes the rest and runs the panel's full height,
   and the type of work sits under the cards, never wider than them. The type of work always takes as few lines as it
   needs, and a line under the panel closes it. 1100-1179: graphic left, the type of work in two rows under the cards. 760-1099: graphic as a band
   on top, the cards side by side. Under 760: an accordion; the open offering's row stays pinned under the nav. */
.offers { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); }
.offers::before, .offers::after { display: none; }
.offers > .pg-head { grid-column: 1; }
.offers > .pg-head .pg-intro { max-width: none; }   /* runs the width of the heading above it, so it doesn't wrap early */
.offers__wrap { display: grid; gap: var(--space-6); padding: 0 var(--pad); min-width: 0; }
.offers__tabs { display: flex; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.offers__tabs::-webkit-scrollbar { display: none; }
.offers__tab { flex: none; display: flex; gap: 10px; padding: 14px 18px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--color-text-muted); font: 400 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .2s; }
.offers__tab b { font-weight: 400; color: color-mix(in srgb, var(--color-off-white) 50%, transparent); }   /* 4.8:1, WCAG AA for small text */
.offers__tab:hover { color: var(--color-text); }
.offers__tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-orange); }
.offers__tab[aria-selected="true"] b { color: var(--color-orange); }
.offers__tab:focus-visible { outline: 2px solid var(--color-orange); outline-offset: -2px; }
.offers__panels { display: grid; min-width: 0; }
.offers__acc { display: none; }
.offers__panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 28px; min-width: 0;
  visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.offers__panel.is-on { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.offers__viz { position: relative; min-height: 0; border: 1px solid var(--rule); background: var(--color-surface-1); }
.offers__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.offers__main { display: grid; gap: var(--space-5, 20px); align-content: start; min-width: 0; }
.offers__name { display: grid; gap: 6px; }
.offers__name h3 { margin: 0; font: var(--weight-headline, 400) clamp(20px, 1.6vw, 24px)/1.15 var(--font-display); }
.offers__name p { margin: 0; color: var(--color-text-muted); font-size: 16px; line-height: 1.5; }
.offers__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.offers__card { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 20px 22px; border: 1px solid var(--rule); background: var(--color-surface-2); }
.offers__card h3 { margin: 0; font: var(--weight-headline, 400) 18px/1.25 var(--font-display); }
.offers__lab { font: 400 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.offers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; line-height: 1.45; }
.offers__list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: baseline; text-wrap: pretty; }   /* one line wherever it fits; on the narrowest phones a long item wraps under its own text instead of running past the card */
.offers__list--gap li { color: var(--color-text-muted); }
/* the marks are decoration: alt text "" keeps screen readers from saying "multiplication x" or "check mark" (the line before is the fallback) */
.offers__list--gap li::before { content: "\2715"; content: "\2715" / ""; font-size: 11px; color: color-mix(in srgb, var(--color-off-white) 38%, transparent); }
.offers__list--do li::before { content: "\2713"; content: "\2713" / ""; font-size: 12px; color: var(--color-orange); }
.offers__work { display: grid; gap: 10px; }
.offers__work ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px;   /* as few lines as the four need */
  font: 400 12px/1.6 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.offers__work li { white-space: nowrap; }
/* a line under the panel closes it; the type of work sits above it, part of the offering */
.offers__panels { border-bottom: 1px solid var(--rule); padding-bottom: var(--space-8); }
@media (max-width: 1099px) {
  .offers__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 400px; gap: 24px; }   /* the graphics are drawn tall: under ~340-420px they clip or squash */
  .offers__main { display: contents; } .offers__name { order: -1; }   /* stacked: the tagline above the graphic */
}
@media (max-width: 759px) {
  .offers__wrap { padding: 0; }
  .offers__cards { grid-template-columns: minmax(0, 1fr); }
  .offers__name h3 { font-size: 22px; }
  .offers__name h3, .offers__name p { text-align: left !important; }
  .offers__name h3 { display: none; }   /* the accordion row already names it */   /* the panel reads as one block with its cards, not centered like the page's other phone headings */
  .offers__tab { padding: 12px 14px; }
}
@media (max-width: 559px) { .offers__card { padding: 18px 16px; } }   /* the smallest phones: room for the longest point on one line */
@media (prefers-reduced-motion: reduce) { .offers__panel, .offers__panel.is-on { transition: none; } }

@media (min-width: 1180px) {
  .offers__panel { grid-template-columns: minmax(0, 1fr) 380px 380px; grid-template-areas: "viz name name" "viz gap do" "viz work work"; column-gap: 16px; row-gap: 20px; }
  .offers__viz { grid-area: viz; margin-right: 12px; }
  .offers__main, .offers__cards { display: contents; }
  .offers__name { grid-area: name; }
  .offers__card:first-child { grid-area: gap; } .offers__card:last-child { grid-area: do; }
  .offers__work { grid-area: work; }
}
@media (max-width: 759px) {
  .offers__tabs { display: none; }
  .offers__wrap { gap: 0; }
  .offers__panels { display: block; border-top: 1px solid var(--rule); border-bottom: 0; padding-bottom: 0; }
  .offers__panel { display: block; visibility: visible; opacity: 1; transition: none; border-bottom: 1px solid var(--rule); }
  .offers__acc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 4px; background: var(--color-surface-1, #1D1D1D); border: 0;
    color: var(--color-text); font: 400 18px/1.25 var(--font-display); text-align: left; cursor: pointer; position: sticky; top: var(--nav-h, 72px); z-index: 2; }
  .offers__acc b { font: 400 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--color-orange); }
  .offers__acc span { flex: 1; }
  .offers__acc i { width: 14px; height: 14px; position: relative; flex: none; }
  .offers__acc i::before, .offers__acc i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--color-orange); }
  .offers__acc i::after { transform: rotate(90deg); transition: transform .25s; }
  .offers__acc[aria-expanded="true"] i::after { transform: rotate(0deg); }
  .offers__acc:focus-visible { outline: 2px solid var(--color-orange); outline-offset: -2px; }
  .offers__panel > .offers__viz, .offers__panel > .offers__main { display: none; }
  .offers__panel.is-on > .offers__viz { display: block; height: 380px; }
  .offers__panel.is-on { display: flex; flex-direction: column; gap: 18px; padding-bottom: 24px; }   /* the tagline above the graphic, then the cards */
  .offers__panel.is-on > .offers__acc { order: -2; margin-bottom: -8px; }
  .offers__panel.is-on > .offers__main { display: contents; }
}

/* "5 things AI needs from your data": the heading a step larger than the page's other section headings, its 5 a large
   orange numeral */
main > section.v3-svc--page > .v3-svc__head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; max-width: 12em; }
.rq-five, .v3-svc__num { color: var(--color-orange); font-weight: 600; }   /* the number in orange and bolder, at the heading's own size; "Four" and "one" in the services heading, as on the home */

/* Section spacing (fix G10): every section keeps 48px between its edge and its content on phones and 96px from 760px
   up, unless something runs to the edge. The rule is in CLAUDE.md; tests/section-spacing.spec.mjs checks it. */
@media (max-width: 759px) {
  body main > section.pg-hero--box { padding-bottom: 0 !important; }
  body main > section.pg-hero--box .hb-copy { padding-bottom: 48px !important; }
}
@media (min-width: 760px) {
  body main > section.pg-hero--box .hb-copy { padding-bottom: 96px !important; }
}
/* "5 things": from 1180px its heading column is sticky; between 560 and 1179 the section's own border lines meet its edges */
@media (min-width: 1180px) {
  body main > section.v3-svc.v3-svc--page > .v3-svc__head { padding-block: 96px !important; }
  body main > section.v3-svc.v3-svc--page .v3-svc__stack { margin-top: 96px !important; margin-bottom: 60px; }   /* + the last card's own 36 */
}
/* phones (fix G12): the simplified drawing's labels, sized for a phone's width */
.pl-svg--tall .pl-lbl { font-size: 12px; }
.pl-svg--tall .pl-tag { font-size: 11px; }
