/* Schedule: a Line and Grid template for plant hire. The site is set out like
   a drawing sheet: a white sheet with a frame line down each side, every
   section ruled off from the next, and the fleet as a schedule of machines.
   To set it up for a firm, change the tokens below (--brand does most of the
   work), swap the photos in img/, and edit the copy.
   Every size and space comes from these tokens. Rules are 1px, in --rule, and
   each one runs from one line of the frame to another: the sheet's frame, a
   column rule, or the edge of the screen on a phone. */

@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("/fonts/red-hat-mono.woff2") format("woff2-variations");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --brand: #1746D1;        /* the firm's colour: buttons, links, ticks, the breakdown band */
  --brand-ink: #FFFFFF;    /* text on the brand colour */
  --ink: #12161C;
  --paper: #EEF0EC;        /* round the sheet, and the quiet panels on it */
  --sheet: #FFFFFF;        /* the sheet itself */
  --muted: #535B64;
  --rule: #C9CEC8;
  --rule-on-brand: rgba(255, 255, 255, .32);
  --gutter: clamp(20px, 3.2vw, 44px);
  --max: 1320px;
  --radius: 3px;
  --header: 72px;

  /* Type: eight sizes. */
  --fs-hero: clamp(42px, 6.2vw, 88px);     /* the home page h1 */
  --fs-h2: clamp(28px, 3.3vw, 44px);       /* section and page titles */
  --fs-fig: clamp(28px, 3vw, 42px);        /* figures, the phone number */
  --fs-h3: clamp(19px, 1.5vw, 22px);       /* group names, card titles, questions */
  --fs-lead: clamp(18px, 1.45vw, 20px);    /* the paragraph under a title */
  --fs-body: 17px;
  --fs-small: 15px;                        /* buttons, labels, the footer */
  --fs-data: 14px;                         /* references and figures, in the mono face */

  /* Space: seven steps, and the two section spaces built from them. */
  --s0: 4px;
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s-top: clamp(48px, 6vw, 80px);         /* above a section's heading */
  --s-end: clamp(40px, 5vw, 64px);         /* under a section's last block */

  --sans: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + var(--s3)); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: var(--fs-h2); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: -80px; background: var(--brand); color: var(--brand-ink); padding: var(--s2) var(--s3); z-index: 40; }
.skip:focus { top: var(--s2); }

/* ---------- The sheet ---------- */
/* .wrap is the sheet: white, with a frame line down each side and no padding
   of its own, so a rule drawn inside it runs frame to frame. Blocks pad
   themselves with --gutter. Each section's sheet is ruled off at the top. */
.wrap { max-width: var(--max); margin: 0 auto; background: var(--sheet); border-inline: 1px solid var(--rule); }
.sec > .wrap { border-top: 1px solid var(--rule); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 34em; }
.no { font-family: var(--mono); font-size: var(--fs-data); color: var(--brand); font-weight: 500; }

.btn { display: inline-flex; align-items: center; gap: var(--s1); min-height: 48px; padding: 0 var(--s4); background: var(--brand); color: var(--brand-ink); border: 1.5px solid var(--brand); border-radius: var(--radius); font: inherit; font-size: var(--fs-small); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn.line { background: none; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #FFFFFF; }
.btn.small { min-height: 44px; padding: 0 var(--s3); }
.arr { width: 16px; height: 16px; flex: none; transition: transform 160ms ease-out; }
a:hover > .arr, .btn:hover .arr { transform: translateX(3px); }
.more { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; font-size: var(--fs-small); font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.more:hover { color: var(--brand); }
.phone { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-fig); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-decoration: none; font-variant-numeric: tabular-nums; }
.phone:hover { color: var(--brand); }

/* ---------- Demo only ---------- */
.example { color: var(--muted); font-size: var(--fs-small); }
.example .wrap { display: flex; flex-wrap: wrap; gap: var(--s0) var(--s3); align-items: center; justify-content: space-between; padding: var(--s2) var(--gutter); background: var(--paper); border-bottom: 1px solid var(--rule); }
.example a { color: var(--ink); font-weight: 700; }
.example .back { margin-left: auto; font-weight: 450; }
.demo-note { position: fixed; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 30; max-width: 560px; margin: 0 auto; display: flex; gap: var(--s3); align-items: flex-start; justify-content: space-between; background: var(--ink); color: #FFFFFF; padding: var(--s3); border-radius: var(--radius); font-size: var(--fs-small); }
.demo-note[hidden] { display: none; }
.demo-note a { color: #FFFFFF; font-weight: 700; }
.demo-note button { flex: none; background: none; border: 0; color: #FFFFFF; font: inherit; font-size: var(--fs-h3); line-height: 1; padding: 0 var(--s0); cursor: pointer; }

/* ---------- Header: a title block ---------- */
/* Four cells in a row, ruled apart like the title block on a drawing: the
   firm, the pages, the phone number and the ask. */
.top { position: sticky; top: 0; z-index: 20; }
.title-block { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; min-height: var(--header); box-shadow: 0 1px 0 var(--rule); }
.title-block > * { display: flex; align-items: center; }
.tb-logo { padding: 0 var(--gutter); border-right: 1px solid var(--rule); }
.logo { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; font-weight: 800; font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.02em; }
.logo .mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); font-size: var(--fs-h3); }
.logo .mark.svg { background: none; color: var(--brand); }
.logo .mark svg { width: 100%; height: 100%; }
.logo small { display: block; margin-top: var(--s0); font-size: var(--fs-data); font-weight: 450; letter-spacing: 0; color: var(--muted); }
.nav { gap: var(--s4); padding: 0 var(--gutter); font-size: var(--fs-small); font-weight: 600; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
.tb-tel { flex-direction: column; align-items: flex-start !important; justify-content: center; padding: 0 var(--s4); border-left: 1px solid var(--rule); text-decoration: none; font-weight: 800; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tb-tel small { font-size: var(--fs-data); font-weight: 450; letter-spacing: 0; color: var(--muted); }
.tb-tel:hover { color: var(--brand); }
.tb-cta { padding: 0 var(--s5); background: var(--brand); color: var(--brand-ink); font-size: var(--fs-small); font-weight: 700; text-decoration: none; }
.tb-cta:hover { background: var(--ink); color: #FFFFFF; }
.menu { display: none !important; }
@media (max-width: 1080px) { .tb-tel { display: none; } }
@media (max-width: 860px) {
  .title-block { grid-template-columns: minmax(0, 1fr) auto; }
  .tb-logo { border-right: 0; padding-right: var(--s3); }
  .nav, .tb-cta { display: none; }
  .menu { display: flex !important; position: static; padding-right: var(--gutter); }
  .menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 700; list-style: none; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet); border-block: 1px solid var(--rule); }
  .menu[open] .menu-list { display: grid; }
  .menu-list a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--gutter); border-top: 1px solid var(--rule); font-weight: 700; text-decoration: none; }
  .menu-list a:first-child { border-top: 0; }
}
@media (max-width: 420px) { .logo small { display: none; } }

/* ---------- Section headings ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s5); align-items: end; padding: var(--s-top) var(--gutter) var(--s5); }
.sec-head .no { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1; }
.sec-head .lead { grid-column: 1; margin-top: var(--s1); }
.sec-head .more { grid-column: 2; grid-row: 2; align-self: end; }
@media (max-width: 700px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head .more { grid-column: 1; grid-row: auto; }
}

/* ---------- Home: hero ---------- */
/* Words on the left with the four figures along the foot, a tall photo on the
   right running to the frame, and the schedule's contents cut into its corner. */
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero-copy { display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.hero-copy > .intro { padding: var(--s-top) var(--gutter) 0; font-family: var(--mono); font-size: var(--fs-data); font-weight: 500; color: var(--brand); }
.hero-copy h1 { padding: var(--s3) var(--gutter) 0; font-size: var(--fs-hero); font-weight: 900; letter-spacing: -0.04em; line-height: 0.96; max-width: 9.5em; }
.hero-copy > .lead { padding: var(--s4) var(--gutter) 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s5) var(--gutter) var(--s-end); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: auto; border-top: 1px solid var(--rule); }
.facts li { padding: var(--s4) var(--s3) var(--s4) var(--gutter); }
.facts li + li { border-left: 1px solid var(--rule); padding-left: var(--s3); }
.facts b { display: block; font-size: var(--fs-fig); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts span { display: block; margin-top: var(--s1); font-size: var(--fs-small); line-height: 1.35; color: var(--muted); }
.hero-photo { position: relative; min-height: 640px; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.sheet-note { position: absolute; left: 0; bottom: 0; min-width: 240px; background: var(--sheet); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); font-size: var(--fs-small); }
.sheet-note > p { padding: var(--s2) var(--s3); font-weight: 700; border-bottom: 1px solid var(--rule); }
.sheet-note li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s1) var(--s3); }
.sheet-note li + li { border-top: 1px solid var(--rule); }
.sheet-note b { font-family: var(--mono); font-size: var(--fs-data); font-weight: 500; }
@media (max-width: 980px) {
  .hero > .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { border-right: 0; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; border-top: 1px solid var(--rule); }
}
@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: var(--gutter); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .hero-photo { aspect-ratio: 4 / 5; }
}

/* ---------- The fleet schedule ---------- */
.sched-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); padding: var(--s3) var(--gutter); border-top: 1px solid var(--rule); background: var(--paper); }
.page-head + .sec .sched-bar { border-top: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s1); }
.tabs button { min-height: 44px; padding: 0 var(--s3); background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.enq { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: var(--fs-small); font-weight: 600; }
html:not(.js) .tabs, html:not(.js) .enq, html:not(.js) .c-pick { display: none; }

.group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); border-top: 1px solid var(--rule); }
.group[hidden] { display: none; }
.group-side { display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.group-side img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--rule); }
.group-text { display: grid; gap: var(--s2); align-content: start; padding: var(--s4) var(--s4) var(--s5) var(--gutter); }
.group-text h2 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; }
.group-text p { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.group-text .count { font-family: var(--mono); font-size: var(--fs-data); color: var(--ink); }

.sched { width: 100%; border-collapse: collapse; align-self: start; }
.sched th, .sched td { padding: var(--s3); text-align: left; vertical-align: middle; font-weight: 450; }
.sched thead th { padding-block: var(--s2); font-size: var(--fs-small); font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.sched tbody tr + tr > * { border-top: 1px solid var(--rule); }
.sched tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.sched tbody tr:hover > * { background: color-mix(in oklab, var(--brand) 5%, var(--sheet)); }
.sched tbody tr:has(input:checked) > * { background: color-mix(in oklab, var(--brand) 9%, var(--sheet)); }
.sched .c-ref { width: 4.5em; padding-left: var(--s4); padding-right: 0; font-family: var(--mono); font-size: var(--fs-data); color: var(--muted); white-space: nowrap; }
.sched tbody .c-name { font-weight: 700; font-size: var(--fs-body); letter-spacing: -0.01em; }
.sched tbody .c-spec { font-family: var(--mono); font-size: var(--fs-data); font-variant-numeric: tabular-nums; }
.sched .c-spec { width: 19%; }
.sched .c-pick { width: 1%; padding-right: var(--gutter); text-align: right; white-space: nowrap; }
.pick { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.pick .box { width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--sheet) center / 16px no-repeat; }
.pick input:checked + .box { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.6' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E"); }
.pick input:focus-visible + .box { outline: 2px solid var(--brand); outline-offset: 3px; }
.sched-note { padding: var(--s3) var(--gutter) var(--s-end); border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--muted); }
.group + .sched-note { margin-top: 0; }
@media (max-width: 980px) {
  .group { grid-template-columns: minmax(0, 1fr); }
  .group-side { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--rule); }
  .group-side img { width: 34%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--rule); }
  .group-text { flex: 1; padding: var(--s4) var(--gutter); }
  .sched .c-ref { padding-left: var(--gutter); }
}
@media (max-width: 700px) {
  /* Each machine becomes a block: its reference and name, the tick beside
     them, and its three figures in a row underneath, each under its label. */
  .group-side { flex-direction: column; }
  .group-side img { width: 100%; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--rule); }
  .sched, .sched tbody { display: block; }
  .sched thead { display: none; }
  .sched tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--s3) var(--gutter); gap: 0 var(--s2); }
  .sched tbody tr + tr { border-top: 1px solid var(--rule); }
  .sched tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .sched tbody tr > *, .sched tbody tr > .c-ref, .sched tbody tr > .c-spec, .sched tbody tr > .c-pick { display: block; width: auto; padding: 0; border: 0 !important; background: none !important; }
  .sched tbody tr:has(input:checked) { background: color-mix(in oklab, var(--brand) 9%, var(--sheet)); }
  .sched tbody .c-ref { grid-column: 1 / 3; padding: 0; }
  .sched tbody .c-name { grid-column: 1 / 3; }
  .sched tbody .c-pick { grid-column: 3; grid-row: 1 / 3; justify-self: end; align-self: center; padding: 0; }
  .sched tbody .c-spec { margin-top: var(--s2); }
  .sched tbody .c-spec::before { content: attr(data-l); display: block; font-family: var(--sans); font-size: var(--fs-data); color: var(--muted); }
}

/* ---------- Text beside a figure: delivery, careers page, about ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.split-text { display: grid; gap: var(--s3); align-content: start; justify-items: start; padding: var(--s-top) var(--gutter) var(--s-end); }
.split-fig { border-left: 1px solid var(--rule); display: grid; place-items: center; padding: var(--s5) var(--gutter); background: var(--paper); }
.split-fig.photo { padding: 0; }
.split-fig.photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.towns { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.towns li { padding: var(--s1) var(--s2); border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 600; }
.plan { width: 100%; max-width: 520px; height: auto; font-family: var(--sans); }
.plan .rings circle { fill: none; stroke: var(--rule); stroke-width: 1; }
.plan .axis { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; }
.plan .towns circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.plan text { font-size: 13px; font-weight: 600; fill: var(--ink); }
.plan .yard rect { fill: var(--brand); }
.plan .yard text { font-weight: 800; fill: var(--brand); }
.plan .north path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.plan .nts { font-family: var(--mono); font-size: 11px; font-weight: 400; fill: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-fig { border-left: 0; border-top: 1px solid var(--rule); }
  .split-fig.photo img { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Self-drive beside operated ---------- */
.hire { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.hire-img { border-right: 1px solid var(--rule); }
.hire-img img { width: 100%; height: 100%; object-fit: cover; }
.hire-text { display: flex; flex-direction: column; }
.hire-head { display: grid; gap: var(--s2); padding: var(--s-top) var(--gutter) var(--s5); }
.compare { width: 100%; margin-top: auto; border-collapse: collapse; table-layout: fixed; }
.compare th, .compare td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; border-top: 1px solid var(--rule); font-weight: 450; }
.compare thead th { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.015em; border-top-color: var(--ink); }
.compare thead td { border-top-color: var(--ink); }
.compare thead > tr > * { padding-block: var(--s3); }
.compare tbody th { width: 22%; padding-left: var(--gutter); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.compare thead td { width: 22%; }
.compare td + td, .compare th + th, .compare th + td { border-left: 1px solid var(--rule); }
.compare tr > :last-child { padding-right: var(--gutter); }
@media (max-width: 860px) {
  .hire { grid-template-columns: minmax(0, 1fr); }
  .hire-img { display: none; }
}
@media (max-width: 600px) {
  .compare, .compare tbody, .compare tr { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { padding: var(--s3) var(--gutter); border-top: 1px solid var(--rule); }
  .compare tbody tr > * { display: block; width: auto; padding: 0; border: 0 !important; }
  .compare tbody td { margin-top: var(--s2); }
  .compare tbody td::before { content: attr(data-l); display: block; font-size: var(--fs-data); font-weight: 700; color: var(--brand); }
}

/* ---------- The one band of colour: breakdowns, how we work ---------- */
.band > .wrap { background: var(--brand); color: var(--brand-ink); border-color: var(--rule); }
.band .no { color: inherit; opacity: .8; }
.band-head { display: grid; gap: var(--s3); justify-items: start; padding: var(--s-top) var(--gutter) var(--s5); }
.band .lead { color: inherit; opacity: .88; }
.band .phone:hover { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-on-brand); }
.points li { display: grid; gap: var(--s1); align-content: start; padding: var(--s4) var(--gutter) var(--s-end); }
.points li + li { border-left: 1px solid var(--rule-on-brand); }
.points p { font-size: var(--fs-small); opacity: .88; }
@media (max-width: 760px) {
  .points { grid-template-columns: minmax(0, 1fr); }
  .points li { padding-bottom: var(--s4); }
  .points li + li { border-left: 0; border-top: 1px solid var(--rule-on-brand); }
}

/* ---------- Projects ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.card { display: flex; flex-direction: column; }
.card + .card { border-left: 1px solid var(--rule); }
.card-img { position: relative; border-bottom: 1px solid var(--rule); }
.card-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tag { position: absolute; left: 0; bottom: 0; padding: var(--s1) var(--s2); background: var(--sheet); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); font-family: var(--mono); font-size: var(--fs-data); }
.tag.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.card-text { display: grid; gap: var(--s1); align-content: start; padding: var(--s4) var(--s4) var(--s-end); }
.card:first-child .card-text { padding-left: var(--gutter); }
.card h2 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; }
.card h3 a, .card h2 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card .where { font-family: var(--mono); font-size: var(--fs-data); color: var(--muted); }
.card-text > p:last-child { font-size: var(--fs-small); color: var(--muted); }
.page-head + .sec .cards { border-top: 0; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.two .card { flex-direction: row; }
.cards.two .card:nth-child(n+3) { border-top: 1px solid var(--rule); }
.cards.two .card:nth-child(odd) { border-left: 0; }
.cards.two .card-img { flex: 0 0 42%; border-bottom: 0; border-right: 1px solid var(--rule); }
.cards.two .card-img img { height: 100%; aspect-ratio: 4 / 5; }
.cards.two .card-text { padding: var(--s5) var(--gutter) var(--s5) var(--s4); }
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(odd) { border-left: 0; }
  .card:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .card:nth-child(odd) .card-text { padding-left: var(--gutter); }
  .cards.two { grid-template-columns: minmax(0, 1fr); }
  .cards.two .card + .card { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card + .card { border-left: 0; border-top: 1px solid var(--rule); }
  .card-text, .cards.two .card-text { padding: var(--s4) var(--gutter) var(--s5); }
  .card-img img { aspect-ratio: 3 / 2; }
  .cards.two .card { flex-direction: column; }
  .cards.two .card-img { flex: none; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cards.two .card-img img { aspect-ratio: 3 / 2; height: auto; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.review { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s4) var(--s-end); }
.review:first-child { padding-left: var(--gutter); }
.review + .review { border-left: 1px solid var(--rule); }
.stars { display: flex; gap: 2px; color: var(--brand); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: var(--fs-lead); line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.who { margin-top: auto; font-size: var(--fs-small); font-weight: 700; }
.who span { display: block; font-weight: 450; color: var(--muted); }
@media (max-width: 860px) {
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review, .review:first-child { padding: var(--s4) var(--gutter) var(--s5); }
  .review + .review { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- Careers ---------- */
.careers { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.careers-img { border-right: 1px solid var(--rule); }
.careers-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.careers-text { display: flex; flex-direction: column; }
.careers-head { display: grid; gap: var(--s3); padding: var(--s-top) var(--gutter) var(--s5); }
.jobs { margin-top: auto; border-top: 1px solid var(--rule); }
.jobs li + li { border-top: 1px solid var(--rule); }
.jobs a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: var(--s3); align-items: center; min-height: 64px; padding: var(--s2) var(--gutter); text-decoration: none; }
.jobs a:hover { background: color-mix(in oklab, var(--brand) 6%, var(--sheet)); }
.jobs b { font-weight: 700; letter-spacing: -0.01em; }
.jobs span { font-family: var(--mono); font-size: var(--fs-data); color: var(--muted); }
@media (max-width: 860px) {
  .careers { grid-template-columns: minmax(0, 1fr); }
  .careers-img { border-right: 0; border-bottom: 1px solid var(--rule); }
  .careers-img img { min-height: 0; aspect-ratio: 16 / 9; }
  .jobs a { grid-template-columns: minmax(0, 1fr) auto; }
  .jobs span { grid-column: 1; grid-row: 2; }
  .jobs .arr { grid-column: 2; grid-row: 1 / 3; }
}

/* ---------- Questions ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.faq-head { display: grid; gap: var(--s2); align-content: start; padding: var(--s-top) var(--gutter) var(--s-end); }
.faq { border-left: 1px solid var(--rule); }
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s3) var(--gutter) var(--s3) var(--s4); list-style: none; cursor: pointer; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--brand); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.faq summary:hover { color: var(--brand); }
.faq details p { padding: 0 var(--gutter) var(--s4) var(--s4); color: var(--muted); max-width: 44em; }
@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-head { padding-bottom: var(--s5); }
  .faq { border-left: 0; border-top: 1px solid var(--rule); }
  .faq summary, .faq details p { padding-left: var(--gutter); }
}

/* ---------- The quote form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.contact-text { display: grid; gap: var(--s3); align-content: start; justify-items: start; padding: var(--s-top) var(--gutter) var(--s-end); }
.contact dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s1) var(--s4); margin-top: var(--s3); font-size: var(--fs-small); }
.contact dt { color: var(--muted); }
.contact dd a { font-weight: 700; }
.quote { display: grid; gap: var(--s3); align-content: start; padding: var(--s-top) var(--gutter) var(--s-end); background: var(--paper); border-left: 1px solid var(--rule); }
.quote label { display: grid; gap: var(--s1); font-size: var(--fs-small); font-weight: 600; }
.quote input:not([type=radio]), .quote textarea { width: 100%; min-height: 48px; padding: var(--s2) var(--s3); background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); font: inherit; font-size: var(--fs-body); }
.quote input:focus, .quote textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.quote .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.kind { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); min-width: 0; }
.kind legend { padding: 0; margin-bottom: var(--s1); font-size: var(--fs-small); font-weight: 600; }
.kind label { position: relative; display: inline-flex; }
.kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.kind input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.kind input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chosen { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--fs-small); }
.chosen[hidden] { display: none; }
.chosen-h { padding: var(--s2) var(--s3); font-weight: 700; border-bottom: 1px solid var(--rule); }
.chosen ul:empty { display: none; }
.chosen li { padding: var(--s1) var(--s3); font-family: var(--mono); font-size: var(--fs-data); white-space: pre-wrap; }
.chosen li + li { border-top: 1px solid var(--rule); }
.chosen [data-none] { padding: var(--s2) var(--s3); color: var(--muted); }
.chosen [data-none][hidden] { display: none; }
.quote .done { font-weight: 700; color: var(--brand); }
.quote .done:empty { display: none; }
@media (max-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-text { padding-bottom: var(--s5); }
  .quote { border-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s5); }
}
@media (max-width: 480px) { .quote .pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner pages ---------- */
.page-head > .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.ph-text { display: grid; gap: var(--s3); align-content: end; padding: var(--s-top) var(--gutter) var(--s-end); }
.ph-text h1 { font-size: var(--fs-hero); font-weight: 900; letter-spacing: -0.04em; line-height: 0.96; }
.ph-text .lead a { color: var(--ink); font-weight: 700; }
.ph-img { border-left: 1px solid var(--rule); }
.ph-img img { width: 100%; height: 100%; min-height: 300px; max-height: 460px; object-fit: cover; }
@media (max-width: 860px) {
  .page-head > .wrap { grid-template-columns: minmax(0, 1fr); }
  .ph-img { border-left: 0; border-top: 1px solid var(--rule); }
  .ph-img img { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
}

.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); padding: var(--s-top) var(--gutter); }
.cta-side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }

.story { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.story-text { display: grid; gap: var(--s3); align-content: start; padding: var(--s-top) var(--gutter) var(--s-end); }
.story-text p { max-width: 38em; }
.story-facts { border-left: 1px solid var(--rule); display: grid; }
.story-facts li { display: grid; align-content: center; gap: var(--s0); padding: var(--s4) var(--gutter) var(--s4) var(--s4); }
.story-facts li + li { border-top: 1px solid var(--rule); }
.story-facts b { font-size: var(--fs-fig); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.story-facts span { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 760px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-facts { border-left: 0; border-top: 1px solid var(--rule); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-facts li { padding: var(--s4) var(--s2) var(--s4) var(--gutter); }
  .story-facts li + li { border-top: 0; border-left: 1px solid var(--rule); padding-left: var(--s3); }
}

.job { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.job + .job { border-top: 1px solid var(--rule); }
.job-head { display: grid; gap: var(--s3); align-content: start; padding: var(--s6) var(--gutter); }
.job-facts li { font-family: var(--mono); font-size: var(--fs-data); color: var(--muted); }
.job-body { display: grid; gap: var(--s3); align-content: start; justify-items: start; padding: var(--s6) var(--gutter) var(--s6) var(--s4); border-left: 1px solid var(--rule); }
.job-body ul { display: grid; gap: var(--s1); }
.job-body li { position: relative; padding-left: var(--s4); }
.job-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: var(--s2); height: 2px; background: var(--brand); }
@media (max-width: 760px) {
  .job { grid-template-columns: minmax(0, 1fr); }
  .job-head { padding-bottom: var(--s3); }
  .job-body { border-left: 0; padding: 0 var(--gutter) var(--s6); }
}

/* ---------- Footer ---------- */
.foot { font-size: var(--fs-small); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); border-top: 1px solid var(--ink); }
.foot-cols > div { display: grid; gap: var(--s2); align-content: start; padding: var(--s6) var(--s4) var(--s6) var(--s4); }
.foot-cols > div:first-child { padding-left: var(--gutter); }
.foot-cols > div + div { border-left: 1px solid var(--rule); }
.foot h2 { font-size: var(--fs-small); font-weight: 800; letter-spacing: 0; }
.foot ul { display: grid; gap: var(--s0); }
.foot li a { display: inline-flex; align-items: center; min-height: 32px; }
.foot p { color: var(--muted); max-width: 26em; }
.base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); padding: var(--s3) var(--gutter); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); }
.foot { padding-bottom: var(--s5); }
@media (max-width: 860px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols > div { padding: var(--s5) var(--gutter); }
  .foot-cols > div:nth-child(odd) { border-left: 0; }
  .foot-cols > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-cols > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .foot li a { min-height: 44px; }
}

/* ---------- Phones: the sheet is the screen; call or ask, always in reach ---------- */
@media (max-width: 700px) {
  .wrap { border-inline: 0; }
}
.callbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 65px; }
  .foot { padding-bottom: 0; }
  .callbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s1); padding: var(--s1) var(--gutter); background: var(--sheet); border-top: 1px solid var(--ink); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius); font-size: var(--fs-small); font-weight: 700; text-decoration: none; white-space: nowrap; }
  .cb-call { background: var(--brand); color: var(--brand-ink); }
  .cb-quote { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .demo-note { bottom: calc(65px + var(--s2)); }
}

@media (prefers-reduced-motion: reduce) {
  .arr { transition: none; }
}
