/* drystar.ca stylesheet, on the DRYSTAR design system (Version 8). */

/* Tokens from the DRYSTAR design system, https://claude.ai/artifact/MUFf24WcaFDzbAZzUEdyuC
   (project/tokens.json). Change the design system first, then this block. */
:root {
  --steel-navy: #21455a;
  --navy-deep: #183242;
  --steel-blue: #2e5e78;
  --logo-blue: #426f8d;
  --silver: #6e7378;
  --silver-light: #a7a8aa;
  --bronze: #a8843f;
  --mist: #f1f4f6;
  --surface: #ffffff;
  --surface-alt: var(--mist);
  --band: var(--navy-deep);
  --on-band: #ffffff;
  --on-band-muted: #c4cfd6;
  --bronze-on-band: #c9a867;
  --overlay: rgba(24, 50, 66, 0.72);
  --ink: #1b2a33;
  --ink-muted: #5b6166;
  --accent: var(--steel-navy);
  --accent-hover: var(--navy-deep);
  --on-accent: #ffffff;
  --bronze-text: #86662a;
  --danger: #a33a2f;
  --rule: #d3d9dd;
  --rule-on-band: rgba(255, 255, 255, 0.18);
  --focus: var(--steel-blue);
  --focus-on-band: var(--on-band);

  --font: "Archivo", Arial, Helvetica, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-0: 0; --radius-1: 2px;
  --stroke-hairline: 1px; --stroke-rule: 2px; --stroke-focus: 2px;
  --max: 1200px;
  --gutter: var(--space-6);
  --page-pad: clamp(16px, 4vw, 48px);
  /* Running text at most 70 characters a line: in Archivo that is about 54ch (Version 10). */
  --measure: 54ch;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
/* A photo wider than 1600px comes in a <picture> whose phone source stops at the 1600px copy
   (lib/layout.js). The <picture> has no box of its own, so its <img> is laid out as it would be
   alone; Home's reel gives its own a box (.mx-shot picture). */
picture { display: contents; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--steel-navy); color: var(--on-band); }
h1, h2, h3, h4, p, ul, ol, figure, table { margin: 0; }
p, li, figcaption, td { text-wrap: pretty; }
.plain { list-style: none; padding: 0; }
.wrap { max-width: calc(var(--max) + 2 * var(--page-pad)); margin: 0 auto; padding: 0 var(--page-pad); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: var(--space-3) var(--space-4); z-index: 100; }
.skip-link:focus { left: var(--space-4); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus: a 2px steel blue ring, offset 2px. On a navy band and on a photo overlay the ring is
   on-band (white): steel blue on navy is 1.9:1 and cannot be seen (Version 8). */
:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: 2px; }
.band :focus-visible, .ds-hero :focus-visible, .hero-plain :focus-visible, .feature-panel :focus-visible { outline-color: var(--focus-on-band); }
.form-alert:focus { outline: var(--stroke-focus) solid var(--focus); outline-offset: 2px; }

/* Type classes */
.display-xl { font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -0.01em; font-stretch: 125%; text-wrap: balance; }
.display-l { font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -0.005em; font-stretch: 125%; text-wrap: balance; }
.figure { font-size: 40px; line-height: 44px; font-weight: 700; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; font-stretch: 125%; text-transform: uppercase; color: var(--bronze-text); }
.heading { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.005em; text-wrap: balance; }
.subheading { font-size: 20px; line-height: 28px; font-weight: 700; text-wrap: balance; }
.body { font-size: 16px; line-height: 26px; }
.small { font-size: 14px; line-height: 22px; }
.label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.measure { max-width: var(--measure); }
.measure > * + * { margin-top: var(--space-4); }

/* Button */
.ds-btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-family: var(--font); font-size: 15px; line-height: 20px; font-weight: 700; padding: var(--space-3) var(--space-6); border-radius: var(--radius-1); border: var(--stroke-hairline) solid var(--accent); background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ds-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.ds-btn-secondary { background: transparent; color: var(--accent); }
.ds-btn-secondary:hover { background: var(--accent); color: var(--on-accent); }
.ds-btn-on-band { background: transparent; border-color: var(--on-band); color: var(--on-band); }
.ds-btn-on-band:hover { background: var(--on-band); border-color: var(--on-band); color: var(--navy-deep); }
.ds-btn-light { background: var(--on-band); border-color: var(--on-band); color: var(--navy-deep); }
.ds-btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--navy-deep); }
.ds-btn-on-band:focus-visible, .ds-btn-light:focus-visible { outline-color: var(--focus-on-band); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
p.actions { gap: var(--space-3) var(--space-6); }
.text-link { display: inline-block; min-height: 24px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

/* SectionHeading: the bronze rule, then the heading. An eyebrow sits between them only when it
   states a fact the heading does not. Once per section. */
.ds-section-head { display: flex; flex-direction: column; align-items: flex-start; }
.ds-section-head::before { content: ""; width: 80px; height: var(--stroke-rule); background: var(--bronze); margin-bottom: var(--space-3); }
.ds-section-head .eyebrow { margin-bottom: var(--space-2); }
.ds-section-head .meta { margin-top: var(--space-2); color: var(--bronze-text); }
.section-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-6); margin-bottom: var(--space-12); }
/* A lede follows its heading with 16px between them, wherever it sits. */
.lede { max-width: var(--measure); margin-top: var(--space-4); }

/* Sections */
.section { padding: var(--space-16) 0; }
.section-alt { background: var(--surface-alt); }
.section + .section:not(.section-alt):not(.band) { border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .section { padding: var(--space-24) 0; } }
.section-tight { padding-top: var(--space-12); }
.section.section-flush { padding-top: var(--space-8); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 80px; }
.site-logo { display: block; padding: var(--space-3) 0; }
.site-logo img { width: 168px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: 28px 0 26px; font-size: 15px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"], .nav-links > li.current-parent > a { border-bottom-color: var(--bronze); color: var(--ink); }
.nav-links > li.nav-cta > a { border: 0; padding: var(--space-3) var(--space-6); }
.nav-links .ds-btn { color: var(--on-accent); }
/* Services: a link to the page and a button that opens the trades (aria-expanded). */
.has-sub { display: flex; align-items: center; gap: var(--space-1); }
.sub-toggle { width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--radius-1); background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.sub-menu { position: absolute; top: 100%; left: -16px; min-width: 280px; background: var(--surface); border: 1px solid var(--rule); padding: var(--space-2) 0; display: none; }
.has-sub:hover > .sub-menu, .has-sub.open > .sub-menu, .no-js .has-sub:focus-within > .sub-menu { display: block; }
.sub-menu a { display: block; padding: var(--space-2) var(--space-4); font-size: 15px; line-height: 22px; color: var(--ink); text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--surface-alt); }
.nav-toggle { display: none; min-height: 44px; background: none; border: 1px solid var(--rule); border-radius: var(--radius-1); padding: var(--space-2) var(--space-4); font: 700 14px/20px var(--font); color: var(--ink); cursor: pointer; }
@media (max-width: 1023px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: relative; }
  .nav-links { display: none; position: absolute; right: calc(-1 * var(--page-pad)); top: calc(100% + 18px); width: min(360px, 100vw); flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--rule); padding: var(--space-2) 0 var(--space-4); }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: var(--space-3) var(--space-6); border: 0; }
  .nav-links > li > a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--bronze); }
  /* On a phone the menu lists Services only; the Services page lists the nine trades. */
  .has-sub { display: block; }
  .sub-toggle, .sub-menu, .has-sub:hover > .sub-menu, .has-sub.open > .sub-menu, .no-js .has-sub:focus-within > .sub-menu { display: none; }
  .nav-links > li.nav-cta { padding: var(--space-3) var(--space-6) 0; }
}
/* Home's header sits on the hero's photo on the overlay, with the white logo and white links, and
   turns to the white header once the hero has gone by or the phone menu is open (site.js adds
   is-solid; Version 14). With no script it stays the white header above the hero. */
.site-logo .logo-white { display: none; }
html:not(.no-js) .site-header.on-photo { position: fixed; left: 0; right: 0; background: var(--overlay); border-bottom-color: var(--rule-on-band); transition: background-color .2s ease, border-color .2s ease; }
html:not(.no-js) .site-header.on-photo.is-solid { background: var(--surface); border-bottom-color: var(--rule); }
html:not(.no-js) .site-header.on-photo:not(.is-solid) .site-logo img:first-child { display: none; }
html:not(.no-js) .site-header.on-photo:not(.is-solid) .site-logo .logo-white { display: block; }
html:not(.no-js) .site-header.on-photo:not(.is-solid) .nav-toggle { color: var(--on-band); border-color: var(--rule-on-band); }
html:not(.no-js) .site-header.on-photo:not(.is-solid) :focus-visible { outline-color: var(--focus-on-band); }
html:not(.no-js) .site-header.on-photo:not(.is-solid) .sub-menu :focus-visible { outline-color: var(--focus); }
@media (min-width: 1024px) {
  html:not(.no-js) .site-header.on-photo:not(.is-solid) .nav-links > li > a { color: var(--on-band); }
  html:not(.no-js) .site-header.on-photo:not(.is-solid) .nav-links > li > a:hover { color: var(--on-band); border-bottom-color: var(--bronze-on-band); }
  html:not(.no-js) .site-header.on-photo:not(.is-solid) .sub-toggle::before { border-color: var(--on-band); }
  html:not(.no-js) .site-header.on-photo:not(.is-solid) .nav-cta .ds-btn { background: var(--on-band); border-color: var(--on-band); color: var(--navy-deep); }
}

/* PhotoHero: the photo full-bleed, an overlay band along its foot as tall as its content, opened
   by the bronze rule. Everything on the overlay is white (Version 8). */
.ds-hero { position: relative; overflow: hidden; background: var(--band); color: var(--on-band); }
.ds-hero > img, .ds-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-hero .ds-hero-band { position: relative; background: var(--overlay); }
.ds-hero .eyebrow, .ds-hero h1, .ds-hero h2, .ds-hero p, .ds-hero .eyebrow a { color: var(--on-band); }
.ds-hero .credit { position: absolute; top: var(--space-4); right: var(--space-4); background: var(--overlay); color: var(--on-band); padding: var(--space-1) var(--space-3); font-size: 12px; line-height: 18px; }
.ds-hero .credit a { color: var(--on-band); display: inline-block; min-height: 18px; }
.hero-page .ds-hero-band .wrap::before, .hero-home-head > .eyebrow::before, .hero-plain .wrap::before {
  content: ""; display: block; width: 80px; height: var(--stroke-rule); background: var(--bronze-on-band); margin-bottom: var(--space-3); }
/* The stacked hero (Version 11, Derek 2026-11-15: "let's go solid A for now"). Where the band holds
   more than a title (Home; About), the photo runs the full width above and the words sit below it
   on solid band, on the grid, so no photo shows behind them. A band with a title alone stays the
   overlay band on the photo (the trade pages, Projects). */
.hero-stack { display: flex; flex-direction: column; }
.hero-stack > img, .hero-stack > picture > img { position: relative; inset: auto; display: block; width: 100%; object-fit: cover; }
.hero-stack .ds-hero-band { background: var(--band); }
/* Home's hero (Version 14, Derek 2026-11-16: "A, moving picture"). The first screen is one window
   tall: the photo, a reel of finished jobs, takes what the band leaves, with the header on it; the
   words sit below on solid band. The rule, the eyebrow and the headline at the left; the lede, the
   buttons and the age at the right. The class names are concept A's (ca-, and mx- for the moving
   photos), which the coordinator's check reads. */
.ca-hero { display: flex; flex-direction: column; min-height: min(100vh, 1300px); min-height: min(100svh, 1300px); }
.ca-stage { position: relative; flex: 1 1 auto; min-height: 340px; overflow: hidden; }
.ca-band { position: relative; background: var(--band); padding: var(--space-12) 0; }
/* The caption names the job in the photo and links to it, below the header on the photo. */
.ca-caption { position: absolute; z-index: 3; top: 96px; right: var(--page-pad); background: var(--overlay); padding: var(--space-1) var(--space-3); font-size: 12px; line-height: 18px; }
.ca-caption a { color: var(--on-band); display: inline-block; min-height: 18px; }
.no-js .ca-caption { top: var(--space-4); }
/* The strip names the jobs on the overlay along the photo's foot, each with its market over its
   name. A bronze bar over the current job fills as its turn runs; the pause control at the right. */
.ca-strip { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; background: var(--overlay); }
.no-js .ca-strip { display: none; }
.ca-index { display: flex; align-items: center; gap: var(--space-6); }
.ca-index ol { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ca-dot { display: block; width: 100%; min-height: 44px; padding: 0 0 var(--space-4); border: 0; background: none; text-align: left; cursor: pointer; font: 500 14px/20px var(--font); color: var(--on-band); }
.ca-dot[aria-current="true"] { font-weight: 700; }
.ca-dot:hover .ca-dot-text { text-decoration: underline; text-underline-offset: 3px; }
.ca-bar { position: relative; display: block; height: var(--stroke-rule); background: var(--rule-on-band); margin-bottom: var(--space-3); overflow: hidden; }
.ca-bar span { position: absolute; inset: 0; background: var(--bronze-on-band); transform: scaleX(0); transform-origin: left; }
.ca-dot:not([aria-current="true"]) .ca-bar span { transform: scaleX(0) !important; }
.ca-dot-market { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
/* The photos lie one over another; the current one is on top. The next fades in over the one
   leaving, which stays whole underneath until it is covered, so the picture never dips to navy. */
.mx-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.mx-shot.is-leaving { opacity: 1; }
.mx-shot.is-on { opacity: 1; z-index: 1; }
.mx-shot picture, .mx-shot img { display: block; width: 100%; height: 100%; max-width: none; }
.mx-shot img { object-fit: cover; }
/* One slow camera move while a photo is up, 16% of scale at most (the README's motion rule). */
.mx-root.is-live .mx-shot.is-on img, .mx-root.is-live .mx-shot.is-leaving img { animation-name: var(--mx-move); animation-duration: 9s; animation-timing-function: linear; animation-fill-mode: forwards; will-change: transform; }
/* Pressing pause, the hero off screen or a hidden tab (is-paused) holds the move where it is. The
   rule above sets no play state, and this one follows it with the same reach. */
.mx-root.is-live.is-paused .mx-shot.is-on img, .mx-root.is-live.is-paused .mx-shot.is-leaving img { animation-play-state: paused; }
[data-move="push"] { --mx-move: mx-push; } [data-move="pull"] { --mx-move: mx-pull; } [data-move="rise"] { --mx-move: mx-rise; }
[data-move="pan-l"] { --mx-move: mx-pan-l; } [data-move="pan-r"] { --mx-move: mx-pan-r; }
@keyframes mx-push { from { transform: scale(1.02); } to { transform: scale(1.15); } }
@keyframes mx-pull { from { transform: scale(1.16); } to { transform: scale(1.02); } }
@keyframes mx-pan-l { from { transform: scale(1.14) translateX(4%); } to { transform: scale(1.14) translateX(-4%); } }
@keyframes mx-pan-r { from { transform: scale(1.14) translateX(-4%); } to { transform: scale(1.14) translateX(4%); } }
@keyframes mx-rise { from { transform: scale(1.14) translateY(4%); } to { transform: scale(1.14) translateY(-4%); } }
/* The pause control: 44px, on the photo whenever the photo is in view. Its label says what
   pressing it does; the icon shows two bars while the photos play and a triangle once paused. */
.mx-pause { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule-on-band); border-radius: var(--radius-1); background: none; color: var(--on-band); cursor: pointer; }
.mx-pause:hover { border-color: var(--on-band); }
.no-js .mx-pause { display: none; }
.mx-pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.mx-root.is-held .mx-pause-icon { width: 0; height: 0; border: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
.mx-pause-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Reduced motion (Version 15, Derek 2026-11-16: "Yes, keep the fade"): the camera moves stop and
   the current job's bar shows whole; the photos still change by the same fade, and the pause
   control stays. */
@media (prefers-reduced-motion: reduce) {
  .mx-shot img { animation: none !important; }
  .ca-dot[aria-current="true"] .ca-bar span { transform: scaleX(1) !important; }
}
.hero-home-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8) var(--space-16); align-items: end; }
.hero-home-head > .eyebrow { margin-bottom: var(--space-3); }
.ca-band .hero-home-head > .eyebrow { color: var(--bronze-on-band); }
.hero-home-side p.body { max-width: 46ch; }
.hero-home-side .actions { margin-top: var(--space-6); }
.hero-age { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--rule-on-band); font-size: 16px; line-height: 24px; font-weight: 700; }
/* An inner page's PhotoHero: the overlay band along the photo's foot, for a title alone. */
.hero-page { min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-page .ds-hero-band { padding: var(--space-8) 0; }
.hero-page .eyebrow { margin-bottom: var(--space-2); }
.hero-page .eyebrow a { text-decoration: none; }
.hero-page .hero-lede { margin-top: var(--space-3); max-width: var(--measure); }
/* About: stacked, the photo a strip of its own above the band. */
.hero-stack.hero-page { min-height: 0; justify-content: flex-start; }
.hero-stack.hero-page > img, .hero-stack.hero-page > picture > img { height: clamp(220px, 26vw, 400px); }
.hero-stack.hero-page .ds-hero-band { padding: var(--space-12) 0; }
/* A page with no photo of our scope opens on a plain band, with the same rule. */
.hero-plain { background: var(--band); color: var(--on-band); padding: var(--space-16) 0 var(--space-12); }
.hero-plain .eyebrow { color: var(--bronze-on-band); margin-bottom: var(--space-2); }
.hero-plain .eyebrow a { color: inherit; text-decoration: none; }
.hero-plain h1 { color: var(--on-band); max-width: 22ch; }
.hero-plain p.body { margin-top: var(--space-4); max-width: var(--measure); color: var(--on-band-muted); }
@media (max-width: 899px) {
  .display-xl { font-size: 40px; line-height: 44px; }
  .display-l { font-size: 32px; line-height: 36px; }
  /* Home on a phone: the reel takes about two thirds of the screen, then the band. The strip keeps
     its bars and the pause control and drops the names, which stay as the buttons' names. */
  .ca-hero { min-height: 0; }
  .ca-stage { flex: none; height: 64vh; height: 64svh; min-height: 380px; max-height: 600px; }
  .ca-band { padding: var(--space-8) 0; }
  .ca-caption { top: auto; bottom: 72px; left: var(--page-pad); right: auto; max-width: calc(100% - 2 * var(--page-pad)); }
  .ca-index { gap: var(--space-3); }
  .ca-index ol { gap: var(--space-2); }
  .ca-dot { padding: 21px 0; }
  .ca-bar { margin: 0; }
  .ca-dot-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mx-pause { margin: var(--space-2) 0; }
  .hero-home-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-age span { display: block; }
  /* An overlay page hero on a phone: the band's words are taller than the hero, so the photo gets
     its own 200px above the band instead of sitting hidden under the overlay. */
  .hero-page { min-height: 0; padding-top: 200px; }
  .hero-page > img, .hero-page > picture > img { bottom: auto; height: 200px; }
  .hero-stack.hero-page { padding-top: 0; }
  .hero-stack.hero-page > img, .hero-stack.hero-page > picture > img { height: 200px; }
  .hero-stack.hero-page .ds-hero-band { padding: var(--space-8) 0; }
  .ds-hero .credit { display: none; }
}

/* Grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-8) var(--gutter); }
@media (min-width: 700px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: var(--space-12) var(--gutter); }
.split > * { min-width: 0; }
@media (min-width: 1024px) { .split { grid-template-columns: 7fr 5fr; } }

/* Ruled items: a hairline on top, a subheading, a line of text, and where one is on record, a fact */
.ruled { border-top: 1px solid var(--rule); padding-top: var(--space-4); }
.ruled h3 { margin-bottom: var(--space-2); }
.ruled p { color: var(--ink-muted); }
.ruled p.fact { color: var(--ink); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--rule); }

/* Trade list: links to the service pages */
.trade-list { display: grid; gap: 0 var(--gutter); }
@media (min-width: 700px) { .trade-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .trade-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trade-list a { display: block; height: 100%; border-top: 1px solid var(--rule); padding: var(--space-4) 0 var(--space-6); text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.trade-list a:hover { border-top-color: var(--accent); }
.trade-list a:hover .subheading { color: var(--accent); }
.trade-list .subheading { display: block; margin-bottom: var(--space-2); }
.trade-list .small { display: block; color: var(--ink-muted); }

/* ProjectCard */
.ds-card { display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink); text-decoration: none; }
.ds-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-0); margin-bottom: var(--space-2); background: var(--surface-alt); }
.ds-card .meta { color: var(--bronze-text); }
.ds-card p { color: var(--ink-muted); }
.ds-card .ds-scope { margin-top: var(--space-1); }
a.ds-card:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a.ds-card img { transition: opacity .15s ease; }
a.ds-card:hover img { opacity: .92; }
.go { font-weight: 700; color: var(--accent); }
.ds-card .go { margin-top: var(--space-1); }
/* A ProjectCard on its side: a trade page's single job. The photo at 3:2 on the left six columns,
   the words beside it from the top of the photo; one column on a phone. */
.ds-card.side .side-words { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.ds-card.side .side-words .also { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--rule); }
@media (min-width: 700px) {
  .ds-card.side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--gutter); align-items: start; }
  .ds-card.side img { margin-bottom: 0; }
}
.ds-card.side .side-photo { display: block; }
.ds-card.side .side-photo img { transition: opacity .15s ease; }
.ds-card.side .side-photo:hover img { opacity: .92; }

/* FactTable: a label and its value share a baseline */
.ds-facts { width: 100%; border-collapse: collapse; background: var(--surface-alt); align-self: start; }
.section-alt .ds-facts { background: var(--surface); }
.ds-facts th, .ds-facts td { text-align: left; vertical-align: baseline; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); }
.ds-facts tr:last-child th, .ds-facts tr:last-child td { border-bottom: 0; }
/* The label column never wraps (Version 9). */
.ds-facts th { width: 1%; white-space: nowrap; padding-right: var(--space-8); }
.ds-facts td { color: var(--ink); }
.ds-facts caption { text-align: left; padding-bottom: var(--space-3); }

/* ScopeLine: the dot follows a trade, so a wrapped line never starts with one (Version 8) */
.ds-scope { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin: 0; padding: 0; list-style: none; color: var(--ink); }
.ds-scope li:first-child { color: var(--ink-muted); }
.ds-scope li:not(:first-child):not(:last-child)::after { content: "\00B7"; margin-left: var(--space-3); color: var(--ink-muted); }

/* Project list: closed jobs without a photo */
.project-rows { width: 100%; border-collapse: collapse; }
.project-rows th, .project-rows td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--rule); }
.project-rows thead th { padding-top: 0; }
.project-rows td:first-child { font-weight: 700; }
@media (max-width: 699px) { .project-rows thead { display: none; } .project-rows tr { display: block; border-bottom: 1px solid var(--rule); padding: var(--space-3) 0; } .project-rows td { display: block; border: 0; padding: 0; } }

/* Band: the call to action and the footer */
.band { background: var(--band); color: var(--on-band); }
.band .eyebrow { color: var(--bronze-on-band); }
.band .ds-section-head::before { background: var(--bronze-on-band); }
.band h2, .band h3, .band p { color: var(--on-band); }
.band a:not(.ds-btn) { color: var(--on-band); }
.cta-band { padding: var(--space-16) 0; }
.cta-band .cta-grid { display: grid; gap: var(--space-8); align-items: end; }
@media (min-width: 900px) { .cta-band .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8) var(--space-16); } }
.cta-band p.body { margin-top: var(--space-4); max-width: 56ch; color: var(--on-band-muted); }
.cta-band .hiring { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--rule-on-band); color: var(--on-band-muted); max-width: var(--measure); }
.cta-band .hiring a { font-weight: 700; display: inline-block; min-height: 24px; }
.site-footer { border-top: 1px solid var(--rule-on-band); padding: var(--space-16) 0 var(--space-8); }
.footer-grid { display: grid; gap: var(--space-8) var(--gutter); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }
.footer-logo img { width: 168px; margin-bottom: var(--space-4); }
.site-footer p, .site-footer li { color: var(--on-band-muted); font-size: 14px; line-height: 22px; }
.site-footer h2 { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-band); margin-bottom: var(--space-3); }
.site-footer a { color: var(--on-band); text-decoration: none; display: inline-block; min-height: 24px; padding: 1px 0; }
.site-footer li + li { margin-top: var(--space-1); }
.site-footer a:hover { text-decoration: underline; }
.footer-members { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--rule-on-band); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); }
.site-footer .footer-members .label { font-size: 12px; line-height: 16px; color: var(--on-band-muted); }
.members { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.members img { height: 44px; width: auto; opacity: .9; }
/* CFIB's member badge (lib/data.js): CFIB's own colour file, turned black and white here, the look
   Derek chose (2026-11-17: "Black and white") and the way CFIB's own embed code does it. */
.members img.grey { filter: grayscale(100%) contrast(1.2); }
/* A badge is a box with small lettering, not a wordmark: at 56px its lettering stands about as
   tall as the wordmarks beside it. */
.members img.badge { height: 56px; }
.footer-bottom { margin-top: var(--space-8); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); font-size: 13px; color: var(--on-band-muted); }

/* Breadcrumb */
.crumbs { font-size: 14px; line-height: 22px; color: var(--ink-muted); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.crumbs a { color: var(--ink-muted); display: inline-block; min-height: 24px; }

/* Contact blocks */
.contact-block + .contact-block { margin-top: var(--space-8); }
.contact-block .label { display: block; margin-bottom: var(--space-2); }
.contact-block .figure { font-size: clamp(28px, 8vw, 40px); }
.contact-block .figure a { display: inline-block; min-height: 44px; color: var(--ink); text-decoration: none; }
.contact-block p.figure { margin-bottom: var(--space-2); }
.split > div > .ruled + .contact-block { margin-top: var(--space-8); }

/* Motion: fades of 150 to 200 ms on first view of a section */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .sub-toggle::before { transition: none; } * { scroll-behavior: auto !important; } }

/* Spacing helpers */
.stack { margin-top: var(--space-6); }
.stack-top { margin-top: var(--space-8); }
.also { margin-top: var(--space-8); color: var(--ink-muted); }
.also .label { margin-right: var(--space-2); }
.ticks { margin-top: var(--space-4); padding-left: 1.2em; color: var(--ink-muted); }
.ticks li + li { margin-top: var(--space-1); }

/* How we deliver: a real sequence, so numbered */
.steps { display: grid; gap: var(--space-8) var(--gutter); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps .figure { display: block; color: var(--steel-blue); margin-bottom: var(--space-3); }
.steps p { color: var(--ink-muted); }

/* CaseStudy: the job's snippet, laid out for the screen. The hero runs 2:1, held under the first
   screen's height so the job's name shows on it. */
.ds-case-study { display: grid; gap: var(--space-6) var(--space-12); }
.ds-case-study > * { min-width: 0; }
.ds-case-study figure img { width: 100%; object-fit: cover; }
.ds-case-study-hero img { aspect-ratio: 2 / 1; max-height: min(600px, 56vh); }
.ds-case-study-detail img { aspect-ratio: 3 / 2; }
.ds-case-study figcaption { margin-top: var(--space-2); color: var(--ink-muted); }
.ds-case-study > .body { max-width: var(--measure); }
/* A case study's name steps down to 30/36 under 480px (Version 10). */
@media (max-width: 480px) { .ds-case-study .display-l { font-size: 30px; line-height: 36px; } }
/* On a phone the detail photo goes last, so the ScopeLine stays with the facts and does not read as
   the photo's caption. The grid areas below place it beside them on a desktop. */
@media (max-width: 1023px) { .ds-case-study-detail { order: 1; } }
@media (min-width: 1024px) {
  .ds-case-study { grid-template-columns: 7fr 5fr; grid-template-areas: "hero hero" "head detail" "body detail" "facts detail" "scope detail"; align-items: start; }
  .ds-case-study-hero { grid-area: hero; margin-bottom: var(--space-2); }
  .ds-case-study > header { grid-area: head; }
  .ds-case-study > .body { grid-area: body; }
  .ds-case-study > .ds-facts { grid-area: facts; }
  .ds-case-study > .ds-scope { grid-area: scope; }
  /* The detail photo fills the height of the words beside it, so no gap opens under its caption. */
  .ds-case-study-detail { grid-area: detail; grid-row: 2 / span 4; align-self: stretch; display: flex; flex-direction: column; }
  .ds-case-study-detail img { flex: 1 1 auto; height: 0; min-height: 320px; aspect-ratio: auto; }
}

/* Project page gallery, under the case study: every photo whole, at its own proportions, with a
   short caption. Each row's photos share one height (each figure's flex-grow is its width over its
   height, set on the server). */
.gallery { margin-top: var(--space-16); }
.gallery-row { display: flex; gap: var(--gutter); }
.gallery-row + .gallery-row { margin-top: var(--space-8); }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; border-radius: var(--radius-0); background: var(--surface-alt); }
.gallery figcaption { margin-top: var(--space-2); color: var(--ink-muted); }
@media (max-width: 699px) { .gallery-row { flex-direction: column; gap: var(--space-8); } .gallery figure { flex: none !important; } }

/* Field: label, hint, input, error line. Silver border (4.8:1 on white), at least 44px tall;
   danger for an error (Version 8). Fields sit 24px apart. */
.form-panel { background: var(--surface-alt); padding: var(--space-8); scroll-margin-top: 96px; }
@media (max-width: 699px) { .form-panel { padding: var(--space-6) var(--space-4); } }
.form-panel > * + * { margin-top: var(--space-6); }
.grid-2.tight { gap: var(--space-6) var(--gutter); }
/* No margin on .ds-field itself: the panel's 24px rhythm above sets the space between fields. */
.ds-field { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); min-width: 0; padding: 0; border: 0; }
fieldset.ds-field { margin-inline: 0; margin-bottom: 0; }
.ds-field > label, .ds-field > legend { padding: 0; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
.ds-field > legend { margin-bottom: var(--space-2); }
.ds-field .req { font-weight: 400; color: var(--ink-muted); }
.ds-field .hint { margin: 0; color: var(--ink-muted); }
.ds-field input[type="text"], .ds-field input[type="email"], .ds-field input[type="tel"], .ds-field input[type="url"], .ds-field textarea {
  display: block; width: 100%; min-height: 44px; font: 400 16px/24px var(--font); color: var(--ink);
  background: var(--surface); border: var(--stroke-hairline) solid var(--silver); border-radius: var(--radius-1); padding: var(--space-3) var(--space-4); }
.ds-field input[type="file"] { display: block; width: 100%; max-width: 100%; min-height: 44px; font: 400 15px/22px var(--font); color: var(--ink); }
.ds-field textarea { resize: vertical; }
.ds-field [aria-invalid="true"] { border-color: var(--danger); }
.ds-field .error { margin: 0; color: var(--danger); }
.checks { display: grid; gap: var(--space-2) var(--gutter); margin-top: var(--space-2); }
@media (min-width: 700px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; gap: var(--space-2); align-items: flex-start; min-height: 24px; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--ink); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ds-field > .consent { font-size: 13px; line-height: 20px; font-weight: 400; color: var(--ink-muted); }
.form-alert { border: 1px solid var(--danger); background: var(--surface); padding: var(--space-3) var(--space-4); font-size: 15px; color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-panel .ds-btn { margin-top: var(--space-8); }

/* Home's lead project: the photo at the grid's full width, the words on an overlay panel at its
   lower left, all in white. On a phone the panel sits under the photo on the band colour. */
.feature-card { position: relative; display: block; background: var(--band); color: var(--on-band); text-decoration: none; }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-0); }
.feature-panel { position: absolute; left: 0; bottom: 0; max-width: 560px; background: var(--overlay); padding: var(--space-6) var(--space-8) var(--space-8); }
.feature-panel .meta, .feature-panel .heading, .feature-panel p.small, .feature-panel .go { color: var(--on-band); }
.feature-panel .heading { margin: var(--space-2) 0; }
.feature-panel .go { display: inline-block; margin-top: var(--space-3); }
a.feature-card:hover .heading { text-decoration: underline; text-underline-offset: 4px; }
a.feature-card img { transition: opacity .15s ease; }
a.feature-card:hover img { opacity: .94; }
@media (max-width: 699px) {
  .feature-card img { aspect-ratio: 3 / 2; }
  .feature-panel { position: static; max-width: none; background: var(--band); padding: var(--space-4) var(--space-4) var(--space-6); }
}

/* Two photo tiles across, larger than the three-across cards. With an odd number of tiles the
   first runs across both columns at 2:1 (the case study hero's proportion), so no row ends on an
   empty cell. One column on a phone, where every tile keeps 3:2. */
.photo-grid { gap: var(--space-12) var(--gutter); }
@media (min-width: 700px) {
  .photo-grid > .lead { grid-column: 1 / -1; }
  .photo-grid > .lead img { aspect-ratio: 2 / 1; }
}

/* Projects: the sector filter, plain links the server answers. Two columns of 44px rows on a phone. */
.sector-filter ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); border-bottom: 1px solid var(--rule); margin-bottom: var(--space-8); }
.sector-filter a { display: block; padding: var(--space-3) 0 10px; margin-bottom: -1px; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.sector-filter a:hover, .sector-filter a[aria-current="page"] { border-bottom-color: var(--bronze); }
.sector-filter .count { font-weight: 400; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .sector-filter ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); border-bottom: 0; }
  .sector-filter li { border-bottom: 1px solid var(--rule); }
  .sector-filter a { display: block; min-height: 44px; padding: 11px 0; margin-bottom: -1px; }
}
.filter-note { margin: calc(-1 * var(--space-4)) 0 var(--space-8); }
.photo-grid + .project-list { margin-top: var(--space-16); }
.project-list > .subheading { margin-bottom: var(--space-6); }
.exterior-grid + .project-rows { margin-top: var(--space-12); }
/* Exterior tiles stay smaller than our work on a phone too: two across */
@media (max-width: 699px) {
  .exterior-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
  .exterior-grid .subheading { font-size: 16px; line-height: 22px; }
  .exterior-grid .meta { font-size: 12px; line-height: 18px; }
  .exterior-grid .ds-scope { font-size: 11px; letter-spacing: 0.04em; }
}
