/* site.css: styles for the generated inner pages. Loads after style.css. */

/* ---------- header menu: show the full page list on desktop too ---------- */
.site-page .menu { display: block; }
.site-page .nav { position: static; }
.site-page .menu-panel { max-height: calc(100vh - 110px); overflow-y: auto; z-index: 30; }
@media (min-width: 761px) {
  .site-page .menu summary { min-height: 48px; }
  .site-page .menu-panel {
    left: auto; right: 0; width: min(560px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px;
  }
  .site-page .menu-panel a + a { border-top: 0; }
  .site-page .menu-panel a { border-bottom: 1px solid rgba(127, 155, 163, 0.28); }
  .site-page .navlink[aria-current] { text-decoration: none; }
}

/* ---------- hero ---------- */
.site-page .hero { padding: 64px 0 40px; }
.site-page .hero-grid { align-items: end; }
.site-page .hero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.site-page .hero h1 { font-size: 60px; overflow-wrap: break-word; }
.site-page .hero .label { margin-bottom: 18px; }
.site-page .hero .lede { max-width: 32em; }
.site-page .hero-rest { margin-top: 18px; }
.site-page .hero-rest p { font-size: 18px; color: var(--muted); max-width: 34em; }
.site-page .hero-rest p + p { margin-top: 12px; }
.site-page .hero-rest a:not(.btn) { color: var(--mint); }
.site-page .hero-rest ul { margin-top: 14px; display: grid; gap: 8px; }
.site-page .hero-rest li { position: relative; padding-left: 22px; font-size: 17px; color: var(--muted); }
.site-page .hero-rest li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.site-page .hero .actions { margin-top: 24px; }
.site-page .hero-rest + .actions { margin-top: 20px; }

/* ---------- generic body blocks ---------- */
.blk .inner, .blk > .wrap { min-width: 0; }
.blk .wrap > * + * { margin-top: 36px; }
.blk .inner > * + * { margin-top: 28px; }
.blk h2 { font-size: 44px; line-height: 1.05; margin: 0 0 18px; overflow-wrap: break-word; }
.blk h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 8px; }
.blk h4 { font-size: 20px; margin: 0 0 6px; }
.blk p { font-size: 19px; line-height: 1.55; max-width: 44em; }
.sec.blk p, .sec.blk li, .sec.blk dd { color: var(--muted); }
.sec.blk h2, .sec.blk h3, .sec.blk h4, .sec.blk dt { color: var(--cream); }
.panel.blk li, .panel.blk dd { color: var(--body); }
.panel.blk h2, .panel.blk h3, .panel.blk h4, .panel.blk dt { color: var(--ink); }
.blk p + p, .blk p + ul, .blk ul + p, .blk h2 + p, .blk h3 + p { margin-top: 12px; }
.blk .label { margin-bottom: 14px; }
.sec.blk a:not(.btn):not(.card):not(.text-link) { color: var(--mint); }
.panel.blk a:not(.btn):not(.card):not(.text-link) { color: var(--accent); }
.blk .more, .blk .text-link { margin-top: 14px; }
.sec.blk .text-link { color: var(--mint); }
.panel.blk .text-link { color: var(--accent); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #0F2E29; }
.blk .btn, .doc .btn { margin-top: 18px; }
.blk .actions .btn { margin-top: 0; }
.note { font-size: 15px !important; color: var(--muted); margin-top: 12px; }
.panel .note { color: var(--body); }
.services-line { font-size: 16px !important; font-weight: 400; }
.proof { font-size: 22px !important; line-height: 1.35 !important; max-width: 30em !important; }
.eyebrow { font-size: 14px; font-weight: 400; letter-spacing: .01em; }

/* anchor chips (services index etc.) */
.blk nav { display: flex; flex-wrap: wrap; gap: 10px; }
.blk nav > a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid #7F9BA3; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--cream) !important; }
.blk nav > a:hover { border-color: var(--cream); background: rgba(241, 244, 233, .07); }
.panel.blk nav > a { border-color: #7C978A; color: var(--ink) !important; }

/* two columns */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.cols > * + * { margin-top: 0 !important; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split > * + * { margin-top: 0 !important; }

/* media */
.blk figure, .doc figure { margin: 0; }
.blk figure img, .doc figure img { width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(24, 61, 54, .18); background: #fff; }
.blk figure a { display: block; text-decoration: none; }
.blk figcaption { font-size: 14px; line-height: 1.45; margin-top: 10px; color: var(--muted); }
.panel.blk figcaption { color: var(--body); }
.blk img { max-width: 100%; height: auto; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare figure + figure { margin-top: 0; }
.compare figure { margin: 0; }
.compare img { aspect-ratio: 16/10; object-fit: cover; object-position: top; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.cards.two, .cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards:has(> :nth-child(4)):not(:has(> :nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > * { margin-top: 0 !important; }
.card, .cards > li, .cards > a, .cards > div, .cards > article {
  display: flex; flex-direction: column; gap: 0; padding: 26px 28px; border-radius: 20px; text-decoration: none; min-width: 0;
}
.sec.blk .card, .sec.blk .cards > li { background: var(--bar); border: 1px solid #2C4A5E; color: var(--cream); }
.panel.blk .card, .panel.blk .cards > li { background: var(--surface); border: 1px solid var(--line-s); color: var(--ink); }
.cards a.card, .cards > a { transition: border-color .15s ease, background-color .15s ease; }
.sec.blk a.card:hover { border-color: var(--mint); background: #21435A; }
.panel.blk a.card:hover { border-color: var(--accent); background: #E3EBDD; }
.card h2, .card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.15; }
.sec.blk a.card, .sec.blk a.card h3, .sec.blk a.card h2 { color: var(--cream); }
.panel.blk a.card, .panel.blk a.card h3, .panel.blk a.card h2 { color: var(--ink); }
.sec.blk a.card p { color: var(--muted); }
.panel.blk a.card p { color: var(--body); }
.card p { font-size: 17px; line-height: 1.45; }
.card p + p { margin-top: 10px; }
.card .text-link { margin-top: auto; padding-top: 10px; }
.card > a:last-child:not(.btn) { margin-top: auto; padding-top: 12px; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 12px; margin-bottom: 18px; border: 1px solid rgba(24, 61, 54, .15); }
.card figure { margin: 0 0 16px; }
.card span:first-child:not(:only-child) { font-size: 14px; font-weight: 400; margin-bottom: 8px; display: block; }
.card strong { margin-top: auto; padding-top: 12px; color: var(--mint); font-size: 16px; }
.panel .card strong { color: var(--accent); }
.card > a:only-child, .card > a { font-weight: 600; }
.cards > li > span.num, .num { font-size: 28px; font-weight: 400; letter-spacing: -.03em; color: var(--mint); display: block; margin-bottom: 10px; }
.panel .num { color: var(--accent); }

/* bullet lists */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 18px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--i-yes) center / contain no-repeat; }
.blk ul:not(.ticks):not(.cards), .doc ul:not(.ticks):not(.cards) { display: grid; gap: 8px; }
.blk ul:not(.ticks):not(.cards) > li, .doc ul:not(.ticks):not(.cards) > li { position: relative; padding-left: 22px; font-size: 18px; line-height: 1.5; }
.blk ul:not(.ticks):not(.cards) > li::before, .doc ul:not(.ticks):not(.cards) > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sec.blk ul:not(.ticks):not(.cards) > li::before { background: var(--mint); }
.cards > li { font-size: 17px; line-height: 1.45; }

/* ordered steps */
.steps { counter-reset: s; display: grid; gap: 20px; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 0 64px; font-size: 18px; line-height: 1.5; min-height: 44px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; background: var(--mint); color: var(--ink); }
.steps h3, .steps h4 { margin-bottom: 4px; }
.steps > li > span.num { display: none; }

/* definition lists */
.defs { display: grid; gap: 0; border-top: 1px solid var(--line-s); }
.sec .defs { border-color: var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-s); }
.sec .defs > div { border-color: var(--line); }
.defs > * + * { margin-top: 0 !important; }
.defs dt { font-weight: 600; font-size: 19px; line-height: 1.3; }
.defs dd { margin: 0; font-size: 17px; line-height: 1.5; }

/* FAQ / details */
.qa, .blk details, .doc details { display: block; }
.qa { margin-top: 8px; }
details:not(.menu) { border-bottom: 1px solid var(--line-s); }
.sec details:not(.menu) { border-color: var(--line); }
details:not(.menu) > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; min-height: 48px; }
details:not(.menu) > summary::-webkit-details-marker { display: none; }
details:not(.menu) > summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(var(--cream), var(--cream)) center / 12px 2px no-repeat, linear-gradient(var(--cream), var(--cream)) center / 2px 12px no-repeat, var(--ink); }
details:not(.menu)[open] > summary::after { background: linear-gradient(var(--cream), var(--cream)) center / 12px 2px no-repeat, var(--accent); }
.sec details:not(.menu) > summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--mint); }
.sec details:not(.menu)[open] > summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, var(--mint); }
details:not(.menu) > :not(summary) { padding-bottom: 20px; }
details:not(.menu) h3 { font-size: 20px; margin: 0; font-weight: 600; }
.toggle-title { font-weight: 600; font-size: 20px; }

/* forms */
form { display: grid; gap: 22px; margin-top: 8px; }
form div { margin-top: 0; }
form label { display: block; font-size: 14px; font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; color: var(--ink); }
form label span { font-weight: 400; color: var(--body); }
form input, form select, form textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #F7F9F2; border: 1px solid var(--line-s); border-radius: 12px; padding: 13px 14px; min-height: 52px; }
form select { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230F2A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; }
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid var(--mint); outline-offset: 2px; border-color: var(--accent); }
form button { cursor: pointer; font-family: inherit; width: 100%; }
form p { font-size: 15px !important; }

/* ---------- prose pages (articles, legal, contact) ---------- */
.doc { padding: 56px 0 64px; }
.doc .wrap.narrow { width: min(100% - 2 * 32px, 720px); }
.doc.panel > .wrap.narrow { width: min(100% - 2 * 32px, 720px); }
.doc .wrap > * + * { margin-top: 0; }
.doc p, .doc li { font-size: 19px; line-height: 1.65; color: var(--body); }
.doc h2 { font-size: 34px; line-height: 1.1; margin: 52px 0 16px; }
.doc h3 { font-size: 24px; line-height: 1.2; margin: 34px 0 10px; letter-spacing: -.03em; }
.doc h4 { font-size: 19px; margin: 24px 0 8px; }
.doc .wrap > :first-child, .doc .wrap > section:first-child > :first-child { margin-top: 0; }
.doc p { margin: 0 0 18px; }
.doc ul, .doc ol { margin: 0 0 22px; }
.doc ol { counter-reset: s; display: grid; gap: 16px; }
.doc ol > li { counter-increment: s; position: relative; padding-left: 52px; }
.doc ol > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; background: var(--mint); color: var(--ink); }
.doc ol > li > span.num { display: none; }
.doc li { padding-bottom: 0; }
.doc a:not(.btn):not(.text-link) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .eyebrow, .doc .label { color: var(--accent); }
.doc details:not(.menu) { border-bottom: 1px solid var(--line-s); }
.doc details:not(.menu) > summary { color: var(--ink); }
.doc details p { margin-bottom: 0; }
.doc section + section { margin-top: 8px; }
.doc .cards { margin: 24px 0; }
.doc .card { background: var(--surface); border: 1px solid var(--line-s); color: var(--ink); }
.doc .cards { grid-template-columns: minmax(0, 1fr) !important; }
.doc .card p { font-size: 17px; margin-bottom: 0; }
.doc blockquote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 21px; }
.doc .note, .doc .proof { color: var(--body); }
.doc div > p:last-child { margin-bottom: 18px; }
.doc .defs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.doc .btn { margin-top: 8px; margin-bottom: 18px; }
.doc form { margin-top: 20px; }
.doc form p:last-child { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.doc .toggle-title { margin: 0; }
.doc img { max-width: 100%; height: auto; border-radius: 12px; }

/* images and tables never overflow */
main img { max-width: 100%; height: auto; }
main table { max-width: 100%; display: block; overflow-x: auto; }
main pre { max-width: 100%; overflow-x: auto; }

/* portraits */
.portrait { margin-bottom: 18px; }
.portrait img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 0; }

/* ---------- breakpoints ---------- */
@media (max-width: 1240px) {
  .site-page .hero h1 { font-size: clamp(42px, 5.6vw, 56px); }
  .cols, .split { gap: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .site-page .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cols, .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .blk h2 { font-size: 36px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-page .hero { padding: 36px 0 24px; }
  .site-page .hero h1 { font-size: clamp(34px, 9.5vw, 40px); }
  .site-page .hero .lede { font-size: 18px; }
  .blk h2 { font-size: 30px; }
  .blk h3 { font-size: 23px; }
  .blk p { font-size: 17px; }
  .blk .wrap > * + * { margin-top: 28px; }
  .cards, .cards:has(> :nth-child(2):last-child), .cards:has(> :nth-child(4)):not(:has(> :nth-child(5))) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card, .cards > li, .cards > a, .cards > div, .cards > article { padding: 22px 20px; }
  .defs > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .doc { padding: 36px 0 44px; }
  .doc p, .doc li { font-size: 17px; line-height: 1.6; }
  .doc h2 { font-size: 28px; margin-top: 40px; }
  .doc h3 { font-size: 22px; }
  .doc .wrap.narrow, .doc.panel > .wrap.narrow { width: min(100% - 2 * 20px, 720px); }
  details:not(.menu) > summary { font-size: 18px; }
  .steps > li { padding-left: 56px; font-size: 17px; }
  .proof { font-size: 19px !important; }
  .blk nav > a { width: 100%; }
}

/* additions */
.cols > :last-child > div + div { margin-top: 22px; }
.blk a.card > span:not(:last-child), .blk a.card > span { display: block; }
.card > span + span { font-size: 16px; margin-top: 6px; opacity: .85; }

/* link lists, call-to-action box */
.linklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 24px; }
.linklist > a { display: flex; align-items: center; min-height: 56px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-s); font-weight: 600; font-size: 17px; line-height: 1.3; text-decoration: none !important; }
.sec .linklist > a { border-color: #2C4A5E; background: var(--bar); }
.linklist > a:hover { border-color: var(--accent); background: rgba(24, 61, 54, .06); }
.doc .linklist > a { color: var(--ink); }
.doc .linklist { grid-template-columns: minmax(0, 1fr); }
.ctabox { margin: 40px 0 0; padding: 32px 30px; border-radius: 22px; background: var(--navy); color: var(--cream); }
.ctabox > * + * { margin-top: 12px; }
.ctabox p, .doc .ctabox p { color: var(--muted); font-size: 18px; margin: 0; }
.ctabox > p:first-child, .doc .ctabox > p:first-child { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; color: var(--cream); }
.doc .ctabox .btn, .ctabox .btn { margin: 14px 0 0; background: var(--mint); color: var(--ink); text-decoration: none; }
.doc .label { margin-top: 44px; margin-bottom: 14px; }
.doc .wrap > .label:first-child, .doc .wrap > section:first-child > .label:first-child { margin-top: 0; }
@media (max-width: 760px) { .linklist { grid-template-columns: minmax(0, 1fr); } .ctabox { padding: 24px 20px; } }

.ctabox div > p:first-child { font-size: 28px; line-height: 1.15; letter-spacing: -.03em; color: var(--cream); }
.doc .ctabox div > p:first-child { color: var(--cream); font-size: 28px; }
.ctabox > div + a, .ctabox > a { margin-top: 14px; }

/* image links, small print, wrapping buttons */
.imglink { display: block; text-decoration: none; margin-top: 18px; max-width: 420px; font-size: 14px; color: var(--muted); }
.imglink img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 10px; border: 1px solid rgba(24, 61, 54, .2); }
.panel .imglink { color: var(--body); }
.blk small, .hero small { display: block; font-size: 15px; line-height: 1.45; margin-top: 10px; }
.card .num { margin-bottom: 8px; }
.hero-rest > div > .text-link { margin-bottom: 4px; }
@media (max-width: 760px) {
  .site-page main .btn { white-space: normal; text-align: center; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .site-page .actions { flex-direction: column; align-items: stretch; }
  .site-page .actions .btn { width: 100%; }
}

/* =====================================================================
   v3 (11/09): importance and spacing on the inner pages. The hero
   headline is the one loud thing; section heads step down; plain text
   sits on a rule instead of in a box; pictures fill their cards.
   ===================================================================== */
.site-page .hero { padding: var(--s7) 0 var(--s6); }
/* the headline starts right under the bar, whatever the length of the text beside it */
.site-page .hero-grid { align-items: start; gap: var(--s5) var(--s8); }
.site-page .hero .lede { margin-top: 30px; }
.blk h2 { font-size: 38px; }
.blk .wrap > * + * { margin-top: var(--s6); }
.blk .inner > * + * { margin-top: var(--s5); }

/* fewer boxes: text-only cards become plain columns on a top rule */
.blk .cards > li, .blk .cards > div, .blk .cards > article.card:not(:has(img)) {
  padding: var(--s5) 0 0; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0; background: none !important;
}
.panel.blk .cards > li, .panel.blk .cards > div, .panel.blk .cards > article.card:not(:has(img)) { border-top-color: var(--line-s) !important; }
.blk .cards:not(:has(img)) { gap: var(--s5) var(--s6); }

/* pictures fill their cards: the image runs edge to edge across the top of the card */
.card .imglink, .cards > .imglink, .split .imglink { max-width: none; }
.cards > article.card:has(img) { overflow: hidden; }
.cards > article.card > .imglink:first-child { margin: -26px -28px 20px; }
.cards > article.card > .imglink:first-child img { margin: 0; border: 0; border-radius: 0; aspect-ratio: 16 / 10; }
.cards > a.imglink { overflow: hidden; }
.cards > a.imglink > figure:first-child, .cards > a.imglink > div:first-child { margin: -26px -28px 18px; }
.cards > a.imglink > figure:first-child img, .cards > a.imglink > div:first-child img { margin: 0; border: 0; border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cards > a.imglink > figure:first-child figcaption { margin: 6px 28px 0; }
.split { align-items: start; }
.split figure .imglink { margin-top: 0; }

/* demo screens (example shop) sit whole on a soft ground instead of being cropped */
.compare.demo img, .cards .demo img, .work-cards .lead img, .cards > a.imglink[href="case-speedee.html"] img { object-fit: contain !important; object-position: center !important; background: #CED8CE; }
.compare.demo img { aspect-ratio: 16 / 10; }

/* work: SpeeDee Drains leads, full width, picture beside the text */
.work-cards .lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 var(--s6); align-items: center; padding: 0 var(--s6) 0 0; }
.work-cards > article.card.lead > .imglink:first-child { margin: 0; }
.work-cards .lead figure { margin: 0; }
.work-cards > article.card.lead > .imglink:first-child img { border-radius: 0; aspect-ratio: 7 / 5; margin: 0; }
.work-cards .lead figcaption { margin: 6px 0 10px 16px; }
.work-cards .lead > div { padding: var(--s6) 0; }
.work-cards .lead h3 { font-size: 34px; letter-spacing: -0.035em; margin-bottom: var(--s3); }
.work-cards .lead h3 a { text-decoration: none; }
.lead-quote { margin: var(--s4) 0 0; padding-left: var(--s4); border-left: 3px solid var(--mint); font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; color: var(--cream); }
.lead-quote span { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.work-cards .lead .text-link { margin-top: var(--s4); }

/* SpeeDee case: the owner's own words, big */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 48px !important; line-height: 1.1 !important; letter-spacing: -0.04em; color: var(--cream) !important; max-width: 20em; }
.quote figcaption { margin-top: var(--s3); font-size: 16px; color: var(--muted); }

/* about: the team first, one white circle for every photo, same size and crop */
.portrait { width: 168px; height: 168px; margin-bottom: var(--s5); border-radius: 50%; overflow: hidden; background: #FFFFFF; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border: 0; border-radius: 0; }
/* the source photo of Josh is already a circle on white; zoom it so its edge meets the frame like the others */
.portrait img[src$="josh.jpg"] { transform: scale(1.09); object-position: center; }
.team-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-cards > article.card { padding: 0 !important; border: 0 !important; background: none !important; }
.team-cards h3 { font-size: 26px; }
.team-cards p { color: var(--muted); }
.team-cards .card > div + p { margin-top: var(--s3); }
.why .cols { align-items: start; }

@media (max-width: 1240px) {
  .work-cards .lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .blk h2 { font-size: 32px; }
  .team-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .portrait { width: 136px; height: 136px; }
  .quote blockquote p { font-size: 38px !important; }
}
@media (max-width: 760px) {
  .site-page .hero { padding: 32px 0 24px; }
  .site-page .hero .lede { margin-top: 0; }
  .blk h2 { font-size: 29px; }
  .work-cards .lead { display: flex; flex-direction: column; padding: 0 20px 0; }
  .work-cards > article.card.lead > .imglink:first-child { margin: 0 -20px; }
  .work-cards .lead > div { padding: var(--s5) 0; }
  .work-cards .lead h3 { font-size: 28px; }
  .lead-quote { font-size: 21px; }
  .cards > article.card > .imglink:first-child { margin: -22px -20px 18px; }
  .cards > a.imglink > figure:first-child, .cards > a.imglink > div:first-child { margin: -22px -20px 16px; }
  .team-cards { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .team-cards > article.card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .team-cards .portrait { width: 112px; height: 112px; margin: 0; grid-row: span 3; }
  .quote blockquote p { font-size: 32px !important; }
}
/* v3: link list items with a name and a one line note */
.linklist.two-line > a { display: grid; gap: 4px; align-content: center; padding: 16px 20px; }
.linklist.two-line b { font-size: 19px; font-weight: 600; color: var(--cream); }
.linklist.two-line span { font-size: 16px; font-weight: 400; color: var(--muted); }
/* work: under the SpeeDee lead, the other four projects sit two by two with big pictures */
.work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
/* about: the same light circle behind all three photos (Josh's source photo has a light grey backdrop) */
.portrait { background: #F3F3F3; }
.portrait img[src$="ben.png"], .portrait img[src$="mikael.png"] { transform: scale(0.9) translateY(7%); }
@media (max-width: 760px) { .work-cards { grid-template-columns: minmax(0, 1fr) !important; } }
/* v3: resources, the guides inside each topic read as a list of rows, not a wall of narrow boxes */
.blk .card .cards { grid-template-columns: minmax(0, 1fr) !important; gap: 0; margin-top: var(--s3); }
.blk .card .cards > a.card { flex-direction: row; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: 14px 0; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0; background: none !important; }
.blk .card .cards > a.card:last-child { border-bottom: 1px solid var(--line) !important; }
.blk .card .cards > a.card h3 { margin: 0; font-size: 19px; font-weight: 400; line-height: 1.35; letter-spacing: -0.01em; }
.blk .card .cards > a.card .label { flex: none; margin: 0; white-space: nowrap; font-size: 14px; color: var(--mint); }
.blk .card .cards > a.card:hover { background: none !important; }
.blk .card .cards > a.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.blk .cards > .card > h2 { font-size: 30px; }
@media (max-width: 760px) { .blk .card .cards > a.card { flex-direction: column; gap: 4px; } }
/* v3: team cards never clip an email address on a narrow phone */
.team-cards > article.card { overflow: visible; }
.team-cards a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .team-cards > article.card { grid-template-columns: 96px minmax(0, 1fr); }
  .team-cards .portrait { width: 96px; height: 96px; }
  .team-cards a[href^="mailto:"] { font-size: 16px; overflow-wrap: normal; }
}
@media (max-width: 380px) {
  .team-cards > article.card { display: flex; flex-direction: column; }
  .team-cards .portrait { margin-bottom: var(--s4); }
}

/* v3 fix: j hook in email was clipped by card overflow */
.site-page .team-cards > article.card { overflow: visible !important; }
.team-cards a[href^="mailto:"] { padding-left: 2px; }

/* v3 review fixes */
.portrait img[src$="josh.jpg"] { mix-blend-mode: multiply; }
.hero .btn + a, .blk .btn + a, .btn + .go, a.go + .btn, .btn + .btn { margin-left: 0; }
.cta-row, .btn-row { gap: 16px; }
.text-link + .btn { margin-left: 16px; }
main a.text-link + a.btn { margin-left: 20px !important; }
@media (max-width: 760px) { main a.text-link + a.btn { margin-left: 0 !important; } }


/* ---------- v5 (11/10): one alignment system on the inner pages ----------
   One left edge, one content width, one 2-column split (heading | content,
   right column starts at the same x on every page), one section rhythm. */
.site-page { --g2: 64px; }
.site-page .hero { padding: 40px 0 32px; }
.site-page #operations, .site-page #customers, .site-page #care, .site-page #fit { scroll-margin-top: 96px; }

/* services: "start here" order cue as a compact row of anchor chips under the headline */
.site-page .sv-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.site-page .sv-jumps { counter-reset: svs; }
.site-page .sv-start { flex-basis: 100%; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--mint); }
.site-page .sv-jumps a { counter-increment: svs; min-height: 44px; padding: 0 12px 0 6px; gap: 7px; border: 1px solid #53737C; border-radius: 999px; color: var(--cream); text-decoration: none; font-size: 15px; line-height: 1.2; }
.site-page .sv-jumps a::before { content: counter(svs); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 14px; font-weight: 700; }
.site-page .sv-jumps a::after { display: none; }
.site-page .sv-jumps a:hover { border-color: var(--cream); color: var(--cream); }
.site-page .sv-jumps a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* whole card is the link (work, services) with a visible focus ring on the card */
.work-cards > article.card, .cards > article.card:has(> a.text-link) { position: relative; }
.work-cards > article.card h3 a::before, .cards > article.card > a.text-link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cards > article.card > a.text-link { transform: none; }
.work-cards > article.card h3 a:focus-visible, .cards > article.card > a.text-link:focus-visible { outline: none; }
.work-cards > article.card:has(h3 a:focus-visible), .cards > article.card:has(> a.text-link:focus-visible) { outline: 3px solid var(--mint); outline-offset: 3px; }
.work-cards > article.card:hover, .cards > article.card:has(> a.text-link):hover { border-color: var(--mint); }
.cards > a.imglink:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

@media (min-width: 961px) {
  .site-page .cols, .site-page .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--g2); }
  .site-page .cols .linklist { margin: 0; }
  .work-cards .lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; }
  .work-cards .lead > div { padding-left: 32px; }
  .blk .cards:has(> :nth-child(4)):not(:has(> :nth-child(5))), .blk .cards.two, .blk .cards:has(> :nth-child(2):last-child), .work-cards { column-gap: var(--g2); }

  /* services: operations, heading beside the picture, three definitions in one row below */
  #operations.split { align-items: center; row-gap: 0; }
  #operations .sv-ops-head { grid-column: 1; grid-row: 1; }
  #operations > figure { grid-column: 2; grid-row: 1; }
  #operations > .defs { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 0; margin-top: 40px !important; }
  #operations > .defs > div { display: block; padding: 20px 0 0; border-bottom: 0; border-top: 2px solid var(--muted); }
  #operations > .defs dt { margin-bottom: 8px; }
  #operations .sv-ops-head .text-link { margin-top: 20px; }

  /* heading left, lead paragraph right, content below at full width */
  #customers > header, #fit > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--g2); align-items: end; }
  #customers > header .label, #fit > div:first-child .label { grid-column: 1; grid-row: 1; }
  #customers > header h2, #fit > div:first-child h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  #customers > header p, #fit > div:first-child p { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: end; }

  /* services: ongoing care, heading and lead on top, three steps in one row */
  #care.cols { align-items: end; }
  #care > div:first-child { display: contents; }
  #care > div:first-child > .label { grid-column: 1; grid-row: 1; }
  #care > div:first-child > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  #care > div:first-child > p { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: end; }
  #care > div:last-child { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px !important; align-self: start; }
  #care > div:last-child > div { border-top: 2px solid var(--muted); padding-top: 20px; margin-top: 0 !important; }
  #care > div:last-child > div > * + * { margin-top: 0; }
  #care > div:last-child > .text-link { grid-column: 1 / -1; justify-self: start; margin-top: 28px; }
}

/* case-studies: the arrow line sits on one baseline across the row of cards */
.cards > a.imglink { display: flex; flex-direction: column; }
.cards > a.imglink > div:last-child { display: flex; flex-direction: column; flex: 1; }
.cards > a.imglink > div:last-child > strong { margin-top: auto; padding-top: 14px; }
