/* Generated by build.mjs */
@font-face{font-family:"Soehne";font-weight:400;font-style:normal;font-display:swap;src:local("Söhne Buch"),local("Söhne-Buch"),local("Soehne-Buch"),local("Söhne"),url("/assets/fonts/soehne-buch.woff2") format("woff2")}
@font-face{font-family:"Soehne";font-weight:600;font-style:normal;font-display:swap;src:local("Söhne Halbfett"),local("Söhne-Halbfett"),local("Soehne-Halbfett"),url("/assets/fonts/soehne-halbfett.woff2") format("woff2")}
@font-face{font-family:"Soehne Mono";font-weight:400;font-style:normal;font-display:swap;src:local("Söhne Mono Buch"),local("Söhne Mono"),local("SöhneMono-Buch"),local("SoehneMono-Buch"),url("/assets/fonts/soehne-mono-buch.woff2") format("woff2")}
/*
  Ryzilient site. Layout and colour follow the "Beautiful and Bright UI/UX" images (Brand/MoodBoard/index.md, B01 to B27):
  a light canvas, grey tiles, one saturated blue, black panels, a boxed highlight in headlines, big numerals,
  numbered //01 sections, hatched bars and hairlines.
  Kept from the design plan: Ink and Ice grounds, Söhne (Buch 400, Halbfett 600, Mono for buttons), logotype top-left,
  three-dot mark bottom-left, 12-column grid read as four quarters, 4px spacing, pill ends on buttons and tags only.
  See Website/NOTES.md for every place this departs from Brand/MoodBoard/design-plan.md.
*/

:root {
  color-scheme: light;

  /* Grounds and text: DESIGN-SOURCE-OF-TRUTH.md */
  --ink: #01020F;
  --ice: #F2F6FF;
  --white: #FFFFFF;

  /* Accent sampled from the B images (#0230D9) and tints derived from the grounds */
  --blue: #0230D9;
  --blue-tint: #E4EAFD;   /* blue at 6% over Ice: fill behind the highlighted phrase */
  --blue-on-ink: #8FA3FF; /* the blue is too dark for text on Ink, so a lighter tint is used there */
  --tile: #E8ECF5;        /* grey tile: Ice with 3.5% Ink (the images use #EFEFEF on #F5F5F5) */
  --muted: #454756;       /* secondary text on Ice and tiles */
  --faint: rgba(1, 2, 15, .45);       /* //01 markers: 3:1 or better, as large text */
  --line: rgba(1, 2, 15, .18);        /* hairlines on Ice */
  --line-on-ink: rgba(255, 255, 255, .24);
  --error: #B3261E;

  --font: "Soehne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Soehne Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1440px;
  --gutter: 32px;
  --col-gap: 16px;
  --footer-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font: 400 18px/28px var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
strong, b { font-weight: 600; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--white); }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.small { font: 400 12px/18px var(--font); letter-spacing: .02em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tile--blue :focus-visible, .tile--ink :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--ink); color: var(--white); font: 400 16px/24px var(--mono);
}
.skip:focus { top: 16px; }
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Body links: underline always visible, in the accent */
.link { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }
.tile--ink .link, .tile--blue .link { text-decoration-color: currentColor; }

/* ------------------------------------------------------------ header */
.site-header { position: relative; padding-top: 32px; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; color: var(--ink); }
.logotype { width: 105px; height: auto; }
.nav-panel { display: flex; align-items: center; gap: 40px; }
.nav { display: flex; gap: 32px; font: 400 16px/24px var(--font); }
.nav a { position: relative; display: inline-block; padding-block: 4px; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--blue);
}
.btn.nav-toggle { display: none; }

/* page strip: where you are, above a hairline (as in the B images) */
.strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 32px; padding-block: 16px; border-bottom: 1px solid var(--line);
}
.strip__path > * { display: inline-block; vertical-align: baseline; }
.strip__path > * + * { margin-left: 8px; }
.strip__last { white-space: nowrap; }
.strip__sep { color: var(--muted); }
.strip__path a { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.sq { display: inline-block; width: 6px; height: 6px; margin-left: 8px; background: var(--blue); }

/* ------------------------------------------------------------ tags and buttons (the only pill shapes) */
.tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 2px 12px; border-radius: 999px; background: var(--ink); color: var(--white);
  font: 400 12px/18px var(--font); letter-spacing: .02em; white-space: nowrap;
}
.tag i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--blue { background: var(--blue); }
.tag--line { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.tile--ink .tag, .tile--blue .tag, .svc--grey a:hover .tag { background: var(--white); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 400 16px/24px var(--mono); transition: background-color .15s, color .15s, border-color .15s;
}
.btn .arrow { flex: none; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--ink); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--ink); color: var(--white); }
.btn--line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--small { padding: 4px 16px; }
button.btn { appearance: none; }

/* ------------------------------------------------------------ headings */
/* The main heading of every page is this size (Paul, November 16, 2026: the large one pushed too much of the page below the fold on most screens).
   Only the Home page keeps the large one, with .display--hero. */
.display {
  grid-column: 1 / span 9;
  font: 400 clamp(34px, 4.6vw, 64px) / 1.08 var(--font);
  letter-spacing: -.02em;
}
.display--hero { font-size: clamp(40px, 6.2vw, 88px); line-height: 1.04; letter-spacing: -.025em; }
.lede { max-width: 34ch; }
.marker { font: 400 clamp(32px, 3.6vw, 52px) / 1 var(--font); letter-spacing: -.03em; color: var(--faint); }

/* The boxed phrase from the B images: blue text, faint blue fill, thin rules with a small handle at each end */
mark { background: none; color: inherit; }
.hl {
  --box: .96em; /* height of the box: less than the line height, so a box never covers the line above */
  color: var(--blue);
  padding: 0 .1em;
  margin: 0 -.02em;
  background:
    linear-gradient(var(--blue), var(--blue)) left 0 top calc(50% - var(--box) / 2 + 2.5px) / 5px 5px no-repeat,
    linear-gradient(var(--blue), var(--blue)) left 2px center / 1px var(--box) no-repeat,
    linear-gradient(var(--blue), var(--blue)) right 0 top calc(50% + var(--box) / 2 - 2.5px) / 5px 5px no-repeat,
    linear-gradient(var(--blue), var(--blue)) right 2px center / 1px var(--box) no-repeat,
    linear-gradient(var(--blue-tint), var(--blue-tint)) center / 100% var(--box) no-repeat;
}

/* ------------------------------------------------------------ page head */
.page-head { padding-block: 72px 24px; }
.page-head__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: end;
}
.page-head__side { grid-column: 10 / span 3; }
.page-head__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.page-head__mark { grid-column: 1 / -1; margin-top: 32px; }
.mark { display: block; color: var(--ink); line-height: 0; }
.mark-svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ tiles */
.tile { position: relative; padding: 24px; }
.tile--grey { background: var(--tile); }
.tile--blue { background: var(--blue); color: var(--white); }
.tile--ink { background: var(--ink); color: var(--white); }
.tile--line { border: 1px solid var(--line); }

.stats { padding-top: 24px; }
.stats__grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--col-gap); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 340px; padding: 24px 24px 32px; }
.stat__num { font: 400 clamp(64px, 7.2vw, 104px) / .9 var(--font); letter-spacing: -.04em; }
.stat__num--word { font-size: clamp(44px, 5.2vw, 76px); letter-spacing: -.03em; }
.stat__big { font: 400 30px / 36px var(--font); max-width: 24ch; }
.stat__cap { max-width: 30ch; margin-top: 24px; }
.stats__grid .stat__cap { min-height: 84px; } /* three lines, so the numerals line up across the row */
.stat__big + .stat__cap { margin-top: 16px; }

/* ------------------------------------------------------------ sections */
.section { padding-top: 96px; }
main > .section:last-child { padding-bottom: 96px; }
.section__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start;
  margin-bottom: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}
.section__head .marker { grid-column: 1 / span 3; }
.section__head h2 { grid-column: 4 / span 8; font: 400 30px / 36px var(--font); }

/* content = quarters 2 to 4 */
.content-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.content-cols > * { grid-column: 4 / -1; }
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 64ch; }
.intro { max-width: 64ch; margin-bottom: 24px; }
.note { max-width: 64ch; margin-top: 32px; color: var(--muted); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--col-gap); }
.cols2 h3, .cols2 h4 { margin-bottom: 16px; }
.role { padding: 32px 0; border-top: 1px solid var(--line); }
.role > p { max-width: 62ch; margin: 12px 0 24px; }
.role > .btn { margin-top: 24px; }
.price-table { width: 100%; max-width: 720px; border-collapse: collapse; margin: 24px 0; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 12px 16px 12px 0; text-align: right; border-top: 1px solid var(--line); font-weight: inherit; }
.price-table thead th { text-align: right; color: var(--muted, inherit); border-top: 0; border-bottom: 1px solid var(--line); }
.price-table th:first-child { text-align: left; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.plain-list { border-bottom: 1px solid var(--line); }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--line); }
h3 { font: 600 18px / 28px var(--font); }

/* ------------------------------------------------------------ service tiles (home, services, related) */
.grid-svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.grid-svc--1 { grid-template-columns: 1fr; }
.grid-svc--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-svc--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-svc--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.svc--wide { grid-column: span 2; }
.svc--wide3 { grid-column: span 3; } /* the add-ons tile: with the two-wide "not sure?" tile it fills the second row of five */
.svc--wide3 .svc__d { max-width: 52ch; }
.svc a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px; height: 100%; min-height: 320px; padding: 24px;
  text-decoration: none; transition: background-color .2s, color .2s;
}
.grid-svc--2 .svc a { min-height: 400px; }
/* Core services are grey, add-ons are blue, and both turn black on hover. */
.svc--grey a { background: var(--tile); }
.svc--grey a:hover { background: var(--ink); color: var(--white); }
.svc--blue a { background: var(--blue); color: var(--white); }
.svc--blue a:hover { background: var(--ink); }
.svc--line a { border: 1px solid var(--line); }
.svc--line a:hover { background: var(--ink); color: var(--white); }
.svc--blue .tag, .svc--line a:hover .tag { background: var(--white); color: var(--ink); }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc__bottom { display: flex; flex-direction: column; gap: 8px; }
.svc__d { display: block; max-width: 34ch; }
@media (min-width: 1101px) { .svc__d { min-height: 84px; } } /* titles line up across a row of tiles */
@media (min-width: 1280px) { .grid-svc--5 .svc__d { min-height: 112px; } .grid-svc--5 .svc h3 { min-height: 56px; } }
.svc__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 400 16px/24px var(--mono); }
.svc--grey .svc__go .arrow, .svc--line .svc__go .arrow { color: var(--blue); }
.svc--grey a:hover .arrow, .svc--line a:hover .arrow { color: var(--white); }
.svc a:hover .arrow { transform: translateX(3px); }
.arrow { transition: transform .15s; }

/* ------------------------------------------------------------ index rows: name | description | arrow */
.index { border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center;
  padding-block: 28px; text-decoration: none;
}
.index__t { grid-column: 1 / span 3; }
.index__d { grid-column: 4 / span 8; }
.index__cov { display: block; margin-top: 4px; color: var(--muted); } /* what a service area covers, under what the client would say */
.index__a { grid-column: 12; justify-self: end; color: var(--blue); }
.index__row:hover .index__t { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 6px; }
.index__row:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------ hairline grids: steps and principles */
.hair { overflow: hidden; }
.hair > ol {
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  margin: -1px 0 0 -25px; width: calc(100% + 25px);
}
.hair li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 24px 24px 32px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.hair p { max-width: 36ch; }
.step__n {
  display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 8px;
  background: var(--blue); color: var(--white); font: 400 12px/18px var(--mono);
}
/* Each item is three rows of the grid it sits in (the blue square, the heading, the text), not a column of its own. A heading that runs to two
   lines then makes the heading row of its whole row taller, so every text in the row starts at one height and the hairlines end at one. A browser
   without subgrid keeps the columns above. */
@supports (grid-template-rows: subgrid) {
  .hair li { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 3; gap: 0; }
  .hair li > .step__n { justify-self: start; }
  .hair li > h3, .hair li > p { margin-top: 16px; }
}

/* add-ons: the blue square says what each is priced by; on the Services page they are grouped under their service area */
.addon .step__n { white-space: nowrap; }
.addon-group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 1px solid var(--line); }
.addon-group:last-child { padding-bottom: 8px; }
.addon-group__t { grid-column: 1 / span 3; padding-top: 24px; }
.addon-group > .hair { grid-column: 4 / -1; }
.content-cols + .addon-group { margin-top: 32px; }

/* ------------------------------------------------------------ a page that opens with something to do (the Pricing page's calculator) */
.page-head--compact { padding-block: 32px 0; }
.page-head--compact .page-head__grid { row-gap: 16px; }
.calc--lead > .section:first-child { padding-top: 24px; }   /* the questions sit on the first screen */
.calc--lead > .section:first-child .section__head { margin-bottom: 32px; }
@media (min-width: 1101px) {
  /* a wider introduction beside a headline that fits on one line: fewer lines above the calculator */
  .page-head--compact .display { grid-column: 1 / span 8; }
  .page-head--compact .page-head__side { grid-column: 9 / span 4; }
  .page-head--compact .lede { max-width: none; }
}

/* the Contact page: the calculator tile beside the steps to a quote */
.quote-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: start; }
.quote-grid > .calc-tile { grid-column: 1 / span 5; }
.quote-grid > .quote-steps { grid-column: 6 / -1; }

.calc-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 420px; padding: 24px 24px 32px; }
.calc-tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.calc-tile__t { font: 400 30px / 36px var(--font); max-width: 16ch; }
.calc-tile p { max-width: 34ch; }

/* ------------------------------------------------------------ service page: in short */
.glance { padding-top: 24px; }
.glance__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); }
.glance .tile { grid-column: 1 / -1; }
.glance .stat { min-height: 260px; }
.glance .stat__body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.glance .stat__big + .stat__cap, .glance .stat__num + .stat__cap { margin-top: 0; }

/* ------------------------------------------------------------ blog */

/* the filter: topic buttons and a search box. Hidden until blog.js shows them. */
.blog { padding-top: 48px; }
.blog__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.blog__bar[hidden] { display: none; }
.blog__label { margin-bottom: 8px; font-weight: 600; }
.blog__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font: 400 14px/20px var(--mono); letter-spacing: 0; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--white); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.chip[aria-pressed="true"]::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip__n { font-style: normal; opacity: .6; }
.blog__search { flex: 0 1 360px; min-width: 220px; }
.blog__search input { padding-block: 8px; }
.blog__count { margin-block: 16px 24px; color: var(--muted); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.post[hidden] { display: none; }
.post a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px; height: 100%; min-height: 360px; padding: 24px;
  background: var(--tile); text-decoration: none; transition: background-color .2s, color .2s;
}
.post a:hover { background: var(--ink); color: var(--white); }
.post a:hover .tag { background: var(--white); color: var(--ink); }
.post a:hover .arrow { color: var(--white); transform: translateX(3px); }
.post__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post__min { color: var(--muted); white-space: nowrap; }
.post a:hover .post__min, .post a:hover .post__topics { color: rgba(255, 255, 255, .72); }
.post__bottom { display: flex; flex-direction: column; gap: 12px; }
.post__t { font: 400 24px/30px var(--font); letter-spacing: -.01em; }
.post__d { display: block; max-width: 44ch; }
.post__topics { color: var(--muted); }
.post .svc__go { margin-top: 8px; }
.post .svc__go .arrow { color: var(--blue); }
.blog__none { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 0; }
.blog__none[hidden] { display: none; }
.blog__none-t, .blog__empty-t { font: 400 30px/36px var(--font); }
.blog__none .btn { margin-top: 12px; }
.blog__empty { display: flex; flex-direction: column; gap: 12px; max-width: 760px; min-height: 240px; justify-content: flex-end; }

/* one post: the facts about it beside the text */
.post-wrap { padding-top: 48px; }
.post-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; }
.post-meta { grid-column: 1 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; align-self: start; }
@media (min-width: 1101px) { .post-meta { position: sticky; top: 24px; } }
.post-meta__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 400 16px/24px var(--mono); text-decoration: none; }
.post-meta__back:hover { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 6px; }
.post-meta__arrow { display: inline-flex; color: var(--blue); transform: scaleX(-1); }
.post-meta__h { margin-top: 24px; font-weight: 600; }
.post-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.post-topics .tag { text-decoration: none; }
.post-topics .tag:hover { background: var(--ink); color: var(--white); }
.article { grid-column: 4 / -1; max-width: 68ch; gap: 24px; }
.article h2 { margin-top: 24px; font: 400 30px/36px var(--font); }
.article h3 { margin-top: 8px; }
.article ul, .article ol { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li > ul, .article li > ol { margin-top: 8px; }
.article blockquote { margin: 0; padding-left: 24px; border-left: 4px solid var(--blue); font-size: 22px; line-height: 32px; }

/* ------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px;
  cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover span { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 6px; }
.plus { position: relative; flex: none; width: 16px; height: 16px; color: var(--blue); }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; }
.plus::before { left: 0; right: 0; top: 7.25px; height: 1.5px; }
.plus::after { top: 0; bottom: 0; left: 7.25px; width: 1.5px; }
.faq details[open] .plus::after { display: none; }
.faq__a { max-width: 64ch; padding: 0 48px 24px 0; }

/* ------------------------------------------------------------ careers rows */
.rows { border-top: 1px solid var(--line); }
.rows li { display: flex; align-items: baseline; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.rows .step__n { flex: none; }

/* ------------------------------------------------------------ call to action */
.cta-wrap { padding-block: 96px; }
.cta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: end;
  min-height: 360px; padding: 48px 32px;
}
.cta__t { grid-column: 1 / span 7; font: 400 clamp(32px, 4.4vw, 64px) / 1.08 var(--font); letter-spacing: -.02em; }
.cta__r { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; }
.contact-grid__form { grid-column: 1 / span 7; }
.contact-grid__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.contact-grid__side h3:not(:first-child) { margin-top: 24px; }
.mini-steps { display: flex; flex-direction: column; gap: 12px; }
.mini-steps li { display: flex; align-items: baseline; gap: 16px; }
.direct li { display: flex; flex-direction: column; padding-block: 8px; }

.form { display: grid; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-weight: 600; }
.req { font-weight: 400; color: var(--muted); }
.hint { font: 400 12px/18px var(--font); letter-spacing: .02em; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: var(--tile); color: var(--ink); font: 400 18px/28px var(--font);
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: inset 0 -1px 0 var(--error); }
.error { font: 400 12px/18px var(--font); letter-spacing: .02em; color: var(--error); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.field .check { display: flex; align-items: center; gap: 12px; padding-block: 4px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.form__actions { display: flex; }
.form__status { min-height: 28px; }
.form__status.is-error { color: var(--error); }
.form__privacy { color: var(--muted); }
/* the numbers the request for quotation offers to send (shown only when there are some), and the field only a bot fills in */
/* a policy written as a document (src/legal.mjs): readable headings and bullets, and a clear mark on a draft and on what is still to fill in */
.legal { max-width: 72ch; gap: 16px; }
.legal h2 { font: 600 24px/32px var(--font); margin-top: 24px; }
.legal h3 { margin-top: 8px; }
.legal ul { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; list-style: disc; }
.legal__draft { padding: 16px 20px; border: 2px solid var(--ink); background: var(--tile); }
.legal__todo { background: var(--tile); outline: 1px dashed var(--ink); outline-offset: 1px; }
.calc-offer { padding: 16px 20px; background: var(--tile); gap: 4px; }
.calc-offer[hidden] { display: none; }
.calc-offer__t { font-weight: 600; }
.calc-offer__text { color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ footer */
.site-footer { padding-block: 64px 32px; background: var(--ink); color: var(--white); }
.site-footer a { text-decoration: underline; text-decoration-color: var(--blue-on-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-thickness: 2px; }
/* Two rows: the headings of the columns, then the lead and the lists. They are separate grid items so that the first line of the lead can sit on the
   same baseline as the first link of each column (align-items: baseline). Children, in order: the lead, then a heading and its list for each column. */
.footer__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  padding-top: 24px; border-top: 1px solid var(--line-on-ink);
  align-items: baseline;
}
.footer__lead { grid-column: 1 / span 3; grid-row: 2; max-width: 22ch; }
.footer__h { grid-row: 1; margin-bottom: 16px; color: rgba(255, 255, 255, .72); }
.footer__col { grid-row: 2; }
.footer__grid > :nth-child(2), .footer__grid > :nth-child(3) { grid-column: 4 / span 3; }
.footer__grid > :nth-child(4), .footer__grid > :nth-child(5) { grid-column: 7 / span 3; }
.footer__grid > :nth-child(6), .footer__grid > :nth-child(7) { grid-column: 10 / span 3; }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__base {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; margin-top: 96px;
}
.footer__base .mark { grid-column: 1 / span 3; color: var(--white); }
.footer__base p { grid-column: 4 / span 9; max-width: 90ch; color: rgba(255, 255, 255, .72); }

/* Scroll-reveal footer (design plan, decision 10). Turned on by site.js; off with reduced motion or a tall footer. */
.reveal .page { position: relative; z-index: 1; margin-bottom: var(--footer-h); min-height: calc(100vh - var(--footer-h)); background: var(--ice); }
.reveal .site-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 0; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__grid .stat { min-height: 260px; }
  .stats__grid .stat__cap { min-height: 0; }
}

@media (max-width: 1279px) {
  .grid-svc--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--wide3 { grid-column: auto; }
}

@media (max-width: 1100px) {
  .display { grid-column: 1 / -1; }
  .page-head__side { grid-column: 1 / span 8; }
  .grid-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-svc--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-meta, .article { grid-column: 1 / -1; }
  .hair > ol { --cols: 2 !important; }
  .index__t { grid-column: 1 / span 5; }
  .index__d { grid-column: 6 / span 7; }
  .index__a { display: none; }
  .addon-group__t, .addon-group > .hair { grid-column: 1 / -1; }
  .addon-group__t { padding-top: 0; margin-bottom: 16px; }
  .quote-grid > .calc-tile, .quote-grid > .quote-steps { grid-column: 1 / -1; }
  .contact-grid__form { grid-column: 1 / -1; }
  .contact-grid__side { grid-column: 1 / -1; }
  .cta__t { grid-column: 1 / -1; }
  .cta__r { grid-column: 1 / -1; }
  .footer__lead { grid-column: 1 / -1; grid-row: 1; max-width: none; margin-bottom: 40px; }
  .footer__grid > :nth-child(2), .footer__grid > :nth-child(3) { grid-column: 1 / span 6; }
  .footer__grid > :nth-child(4), .footer__grid > :nth-child(5) { grid-column: 7 / span 6; }
  .footer__grid > :nth-child(6), .footer__grid > :nth-child(7) { grid-column: 1 / -1; }
  .footer__grid > :nth-child(2), .footer__grid > :nth-child(4) { grid-row: 2; }
  .footer__grid > :nth-child(3), .footer__grid > :nth-child(5) { grid-row: 3; margin-bottom: 40px; }
  .footer__grid > :nth-child(6) { grid-row: 4; }
  .footer__grid > :nth-child(7) { grid-row: 5; }
}

@media (max-width: 860px) {
  .js .btn.nav-toggle { display: inline-flex; }
  .js .nav-panel {
    display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: 20; flex-direction: column; align-items: stretch;
    gap: 24px; padding: 24px var(--gutter) 32px; background: var(--ice); border-bottom: 1px solid var(--line);
  }
  .js .nav-panel.is-open { display: flex; }
  .nav-panel { width: 100%; justify-content: space-between; }
  .js .nav { flex-direction: column; gap: 8px; font-size: 30px; line-height: 36px; }
  .js .nav a[aria-current="page"] { padding-left: 20px; }
  .js .nav a[aria-current="page"]::before { left: 0; width: 8px; height: 8px; margin-top: -4px; }
  .js .nav-panel .btn { align-self: flex-start; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .page-head { padding-block: 48px 16px; }
  .page-head--compact { padding-block: 24px 0; }
  .calc--lead > .section:first-child { padding-top: 24px; }
  .page-head__side { grid-column: 1 / -1; }
  .section { padding-top: 64px; }
  .section__head { grid-template-columns: 1fr; row-gap: 16px; margin-bottom: 32px; }
  .section__head .marker, .section__head h2 { grid-column: 1 / -1; }
  .content-cols { display: block; }
  .stats__grid, .glance__grid { grid-template-columns: 1fr; }
  .glance .tile:first-child, .glance .tile:last-child { grid-column: auto; }
  .stat { min-height: 260px; }
  .grid-svc, .grid-svc--2, .grid-svc--3, .grid-svc--5, .posts { grid-template-columns: 1fr; }
  .post a { min-height: 280px; }
  .blog { padding-top: 32px; }
  .blog__search { flex-basis: 100%; }
  .article blockquote { padding-left: 16px; font-size: 20px; line-height: 30px; }
  .svc--wide { grid-column: auto; }
  .svc a, .grid-svc--2 .svc a { min-height: 260px; }
  .hair > ol { --cols: 1 !important; }
  .index__row { grid-template-columns: 1fr; row-gap: 8px; padding-block: 20px; }
  .index__t, .index__d { grid-column: 1 / -1; }
  .cols2 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; min-height: 0; }
  .cta-wrap { padding-block: 64px; }
  .footer__grid > :nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
  .footer__base { grid-template-columns: 1fr; row-gap: 24px; margin-top: 64px; }
  .footer__base .mark, .footer__base p { grid-column: 1 / -1; }
  .faq__a { padding-right: 0; }
}

/* Touch screens: the smaller controls grow to a 44px target (the desktop look is unchanged). */
@media (pointer: coarse) {
  .btn--small, .chip { min-height: 44px; }
  .nav a { padding-block: 10px; }
  .footer__col a, .post-meta__back, .strip__path a { display: inline-block; padding-block: 10px; }
  .footer__col ul { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
