/* Thruu: shared styles.
   Direction: an engineering drawing sheet. Cool drafting-film neutrals, graphite ink, hairline rules,
   mono annotations, crop marks on frames. Red is the brand and the primary action, used with intent.
   One supporting hue (teal) is kept for the technical diagrams. Type does the work. */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;

  /* surfaces, from the page outwards */
  --bg: #f2f4f6;          /* the sheet */
  --s-1: #ffffff;         /* raised: header, panels, cards */
  --s-2: #e8ecef;         /* inset: slots, footer */
  --s-3: #dde3e8;         /* deepest inset */

  /* ink */
  --ink: #11171c;
  --ink-2: #36424d;
  --ink-3: #55626e;       /* muted, still AA on every surface above */
  --line: rgba(17, 23, 28, 0.12);
  --line-2: rgba(17, 23, 28, 0.3);
  --grid: rgba(17, 23, 28, 0.16);

  /* red: the brand mark and the one primary action */
  --accent: #e52b35;
  --accent-fill: #d7222d;  /* button fill: white text passes AA */
  --on-accent: #ffffff;

  /* the single supporting hue, for diagrams and the odd state */
  --tech: #0d6b73;
  --tech-soft: rgba(13, 107, 115, 0.1);

  --focus: #11171c;
  --todo-bg: rgba(232, 155, 0, 0.18);
  --shadow: 0 1px 0 rgba(17, 23, 28, 0.04), 0 12px 32px -16px rgba(17, 23, 28, 0.28);
  --head-bg: rgba(242, 244, 246, 0.92);

  /* type */
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--2: 0.8125rem;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem);

  /* space (4px grid) */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s12: 3rem;
  --s16: 4rem;
  --s24: 6rem;

  --wrap: 74rem;
  --gutter: 1rem;
  --head-h: 3.75rem;
  --bar-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f13;
    --s-1: #121920;
    --s-2: #19222a;
    --s-3: #212c35;
    --ink: #e9eef2;
    --ink-2: #bcc6cf;
    --ink-3: #8f9ca8;
    --line: rgba(233, 238, 242, 0.12);
    --line-2: rgba(233, 238, 242, 0.3);
    --grid: rgba(233, 238, 242, 0.14);
    --accent: #ff5964;
    --accent-fill: #ff5964;
    --on-accent: #0b0f13;
    --tech: #52c7cf;
    --tech-soft: rgba(82, 199, 207, 0.12);
    --focus: #ff5964;
    --todo-bg: rgba(255, 195, 92, 0.18);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 36px -16px rgba(0, 0, 0, 0.7);
    --head-bg: rgba(11, 15, 19, 0.9);
  }
}

@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
}
@media (min-width: 56rem) {
  :root { --head-h: 4.5rem; }
}

/* A dark surface in either theme (closing band, intake header). Its own token set. */
.on-dark {
  --ink: #e9eef2;
  --ink-2: #bcc6cf;
  --ink-3: #9aa7b3;
  --line: rgba(233, 238, 242, 0.14);
  --line-2: rgba(233, 238, 242, 0.34);
  --grid: rgba(233, 238, 242, 0.16);
  --accent-fill: #ff5964;
  --on-accent: #0b0f13;
  --tech: #52c7cf;
  --focus: #ff7b84;
  background: #10171d;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .on-dark { background: #17212a; }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 1rem);
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
}

[id] { scroll-margin-top: calc(var(--head-h) + 1rem); }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--step-3); letter-spacing: -0.025em; }
h3 { font-size: var(--step-2); }

p { margin: 0 0 var(--s4); max-width: 62ch; }
ul, ol, dl { margin: 0; padding: 0; }

/* Text links: the text colour with a thin neutral underline. Navigation and card links have none at rest. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.15s;
}
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: var(--s4);
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s2) var(--s4);
  z-index: 100;
}
.skip:focus { top: var(--s2); }

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

/* mono annotation: labels, tags, small technical notes */
.tag { font-family: var(--mono); font-size: var(--step--2); line-height: 1.4; color: var(--ink-3); letter-spacing: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  background: var(--accent-fill);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.2;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--accent-fill);
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); background: var(--tech-soft); }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1rem; }
[data-booking][hidden] { display: none; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); margin-top: var(--s8); }
.actions a:not(.btn) { display: inline-block; padding-block: var(--s3); }

/* ---------- header (sticky) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: var(--s4); height: 100%; }
.brand { display: block; line-height: 0; text-decoration: none; margin-right: auto; }
.brand img {
  display: block;
  width: 6.5rem;
  height: auto;
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}
.is-scrolled .brand img { transform: scale(0.92); }
@media (min-width: 56rem) {
  .brand img { width: 7.75rem; }
}

.nav-links { display: flex; list-style: none; gap: var(--s1); }
.nav-links > li > a, .nav-top {
  display: block;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 3px;
  position: relative;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links > li > a:hover, .nav-top:hover { color: var(--ink); background: var(--tech-soft); }
.nav-links > li > a[aria-current="page"], .nav-top[aria-current="page"] { color: var(--ink); }
.nav-links > li > a[aria-current="page"]::before, .nav-top[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  border-bottom: 2px solid var(--accent);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: var(--s2);
  min-height: 2.75rem;
  padding: 0 0.85rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
}
.menu-btn .bars { width: 1rem; height: 0.6rem; border-block: 2px solid currentColor; position: relative; transition: transform 0.2s var(--ease); }
.menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); border-top: 2px solid currentColor; }
.menu-btn[aria-expanded="true"] .bars { transform: rotate(90deg); }

/* below 56rem the links move into a panel when JavaScript is available; without it they stay visible in a row */
@media (max-width: 55.99rem) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--s-1);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    padding: var(--s2) var(--gutter) var(--s4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
  }
  .js .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav { max-height: calc(100vh - var(--head-h)); max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain; }
  .js .nav-links { flex-direction: column; gap: 0; }
  .js .nav-links > li > a, .js .nav-top { padding: 0.9rem 0; font-size: var(--step-1); border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .js .nav-links > li > a[aria-current="page"]::before, .js .nav-top[aria-current="page"]::before { display: none; }
  .js .nav-links > li > a[aria-current="page"], .js .nav-top[aria-current="page"] { color: var(--tech); }
  /* the groups are listed in the menu itself, so a service is two taps away */
  .js .nav-panel { display: block; }
  .js .np-list { list-style: none; }
  .js .np-list a { display: block; padding: 0.7rem 0 0.7rem var(--s4); border-bottom: 1px solid var(--line); font-size: var(--step-0); color: var(--ink); text-decoration: none; }
  .js .np-list a[aria-current="page"] { color: var(--tech); font-weight: 600; }
  .js .np-line { display: none; }
  .js .np-h { margin: var(--s4) 0 0 var(--s4); font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
  .js .np-name { font-size: var(--step-0); font-weight: 500; }
  .js .np-all { display: none; }
  .js .np-foot { margin: 0; }
  .js .np-sure { display: block; padding: 0.7rem 0 0.7rem var(--s4); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--tech); font-weight: 500; }

  .no-js-bar { display: block; }
  html:not(.js) .site-header { position: static; height: auto; padding-block: var(--s3); }
  html:not(.js) .site-header .bar { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 3; flex-basis: 100%; }
  html:not(.js) .nav-links { flex-wrap: wrap; }
}
/* ---------- header panels: Products and Services (desktop). Markup is in every page; the script turns the link into a button. ---------- */
.nav-panel { display: none; }
.np-list { list-style: none; }
.np-h, .np-foot { margin: 0; max-width: none; }
.np-name { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.np-line { display: block; margin-top: 0.1rem; font-size: var(--step--2); line-height: 1.35; color: var(--ink-3); }
@media (min-width: 56rem) {
  .js .has-panel.is-open > .nav-panel { display: block; }
  .nav-panel {
    position: absolute;
    top: 100%;
    z-index: 60;
    background: var(--s-1);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
  }
  .has-panel > .nav-panel { left: 0; right: 0; border-width: 1px 0; }
  .np-inner { padding-block: var(--s6) var(--s4); }
  .np-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s8); }
  .np-h { padding: 0 0.75rem var(--s2); font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); border-bottom: 1px solid var(--line-2); margin-bottom: var(--s2); }
  .np-list a { display: block; padding: 0.55rem 0.75rem; border-radius: 3px; text-decoration: none; position: relative; transition: background-color 0.15s; }
  .np-list a:hover { background: var(--tech-soft); }
  .np-list a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; border-left: 2px solid var(--tech); }
  .np-foot { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s8); margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line); }
  .np-foot a { display: inline-block; padding: 0.55rem 0.75rem; font-size: var(--step--1); font-weight: 500; text-decoration: none; color: var(--ink); border-radius: 3px; }
  .np-foot a:hover { background: var(--tech-soft); }
  .np-sure { color: var(--tech) !important; }
  /* chevron: always drawn under .js, so converting the link to a button shifts nothing */
  .js .has-panel > .nav-top::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.5em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.18em) rotate(45deg);
    transition: transform 0.15s var(--ease);
  }
  .js .has-panel.is-open > .nav-top::after { transform: translateY(0.05em) rotate(-135deg); }
  .js .has-panel.is-open > .nav-top { color: var(--ink); background: var(--tech-soft); }
}
@media (max-width: 25rem) {
  .site-header .bar { gap: var(--s2); }
  .head-cta { padding-inline: 0.75rem; }
}

/* ---------- layout blocks ---------- */

.band { padding-block: var(--s16); position: relative; }
.band + .band { border-top: 1px solid var(--line); }
.band-head { margin-bottom: var(--s8); }
.band-head p { margin: var(--s3) 0 0; color: var(--ink-2); }

.split { display: grid; gap: var(--s12); }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s16); align-items: center; }
  .split-text { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
}

/* the dot grid: a faint blueprint behind hero and dark bands */
.gridded { position: relative; isolation: isolate; }
.gridded::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, var(--grid) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 98%);
  pointer-events: none;
}

.hero { padding-block: var(--s8) var(--s16); margin-top: calc(-1 * var(--head-h)); padding-top: calc(var(--head-h) + var(--s12)); }
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.75rem); max-width: 20ch; }
.hero h1.h1-lg { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem); max-width: none; }
.hero .lede { margin-top: var(--s6); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 38rem; }
.status { margin-top: var(--s6); color: var(--ink-3); font-size: var(--step--1); }
.crumb { margin: 0 0 var(--s4); color: var(--ink-3); font-family: var(--mono); font-size: var(--step--2); }
.crumb a { display: inline-block; padding-block: var(--s2); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 56rem) {
  .hero-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* a text link that ends a block */
.more { display: inline-block; font-weight: 500; }

/* ---------- home: statement, index, product cards ---------- */

.statement { font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: 34ch; margin-bottom: var(--s6); }
@media (min-width: 56rem) { .statement { font-size: 2rem; } }

.index { list-style: none; border-top: 1px solid var(--line-2); }
.index li { position: relative; border-bottom: 1px solid var(--line); transition: background-color 0.18s; }
.index li:hover { background: var(--tech-soft); }
.index .row { display: grid; gap: var(--s1) var(--s8); padding: var(--s6) var(--s2); align-items: baseline; }
.index h3, .index h4 { font-size: var(--step-1); letter-spacing: -0.015em; }
.index h3 a, .index h4 a { text-decoration: none; }
.index h3 a::after, .index h4 a::after { content: ""; position: absolute; inset: 0; }
.group + .group { margin-top: var(--s12); }
.group-head { display: grid; gap: var(--s1) var(--s8); margin-bottom: var(--s4); }
.group-head h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
.group-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
@media (min-width: 56rem) { .group-head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; } }
.index p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.index .pain { color: var(--ink-3); }
@media (min-width: 48rem) {
  .index .row { grid-template-columns: 4fr 4fr 4fr; padding-inline: var(--s4); }
}

.cards { display: grid; gap: var(--s8); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.card { display: flex; flex-direction: column; gap: var(--s4); }
.card h3 { font-size: var(--step-2); }
.card p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.card .more { margin-top: auto; padding-top: var(--s2); }

/* products page: wide rows */
.product { display: grid; gap: var(--s6); padding-block: var(--s8); border-top: 1px solid var(--line-2); }
.product h3 { font-size: var(--step-3); }
.product p { margin-bottom: var(--s3); }
@media (min-width: 56rem) {
  .product { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s16); align-items: center; }
  .product:nth-of-type(even) .slot { order: -1; }
}

/* ---------- image slots: an on-brand frame where a real picture goes ---------- */

.slot {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--s-2);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.slot-wide { aspect-ratio: 5 / 2; max-height: 24rem; width: 100%; }
.slot-tall { aspect-ratio: 4 / 5; }
.slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the wireframe: window chrome and a faint layout, drawn with gradients only */
.slot-art {
  flex: 1;
  background:
    radial-gradient(circle at 12px 12px, var(--line-2) 3px, transparent 3.5px) 0 0 / 56px 24px no-repeat,
    linear-gradient(var(--line) 1px, transparent 1px) 0 24px / 100% 100% no-repeat,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 22% 24px / 100% 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 22px, var(--line) 22px 23px) 22% 24px / 100% 100% no-repeat,
    radial-gradient(circle at 1px 1px, var(--grid) 1px, transparent 1.4px) 0 0 / 20px 20px;
  position: relative;
}
.slot-art::after {
  content: "";
  position: absolute;
  left: 5%;
  top: 22%;
  width: 12%;
  height: 4px;
  background: var(--tech);
  opacity: 0.7;
  box-shadow: 0 16px 0 var(--line-2), 0 32px 0 var(--line-2), 0 48px 0 var(--line-2);
}
.slot figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  max-width: none;
  padding: 0.4rem 0.7rem;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--ink-2);
}
/* crop marks outside two corners */
.slot::before, .slot::after { content: none; }
.slot-frame { position: relative; margin: 0; }
.slot-frame::before, .slot-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--ink-3);
  pointer-events: none;
}
.slot-frame::before { top: -7px; left: -7px; border-top-width: 1px; border-left-width: 1px; }
.slot-frame::after { bottom: -7px; right: -7px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- services: problems, facts, depth, reasons ---------- */

.problems { display: grid; gap: var(--s8); }
.problems article { border-top: 1px solid var(--line-2); padding-top: var(--s4); position: relative; }
.problems article::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; border-top: 2px solid var(--accent); }
.problems h3, .depth h3 { font-size: var(--step-1); margin-bottom: var(--s3); letter-spacing: -0.015em; }
.gets-h { margin: var(--s4) 0 var(--s2); font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.gets { list-style: none; }
.gets li { padding: var(--s2) 0 var(--s2) var(--s6); position: relative; border-top: 1px solid var(--line); }
.gets li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.7rem; border-top: 1px solid var(--tech); }
@media (min-width: 48rem) {
  .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.depth { display: grid; gap: var(--s4); }
.depth article { padding: var(--s6); border: 1px solid var(--line-2); background: var(--s-1); }
.depth article + article { background: var(--s-2); border-style: dashed; }
.depth p { margin: 0; color: var(--ink-2); }
.depth + p { margin-top: var(--s8); }
@media (min-width: 48rem) { .depth { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }

.why { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.why li { padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.why h3 { font-size: var(--step-1); margin-bottom: var(--s2); letter-spacing: -0.015em; }
.why p { margin: 0; color: var(--ink-2); }
@media (min-width: 48rem) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s12); }
}

.facts { border-top: 1px solid var(--line-2); }
.facts > div { display: grid; gap: var(--s2); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; max-width: 62ch; color: var(--ink-2); }
@media (min-width: 48rem) {
  .facts > div { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s8); }
}

.plain-list { list-style: none; max-width: 62ch; }
.plain-list li { padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.plain-list li:first-child { border-top: 1px solid var(--line-2); }

/* ---------- sequences ---------- */

.steps { list-style: none; counter-reset: step; max-width: 34rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--s6) var(--s12); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--tech);
  color: var(--tech);
  background: var(--tech-soft);
  font-family: var(--mono);
  font-size: var(--step--2);
}
.steps li::after { content: ""; position: absolute; left: calc(1.125rem - 0.5px); top: 2.1rem; bottom: 0.35rem; border-left: 1px solid var(--line-2); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps strong { display: block; font-weight: 600; line-height: 1.3; margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }

.queue { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--s3); }
.queue span { width: 1.1rem; height: 1.4rem; background: var(--s-1); border: 1px solid var(--line-2); border-bottom: 3px solid var(--tech); }

/* ---------- diagrams: one line style ---------- */

figure { margin: 0; }
figcaption { margin-top: var(--s3); color: var(--ink-3); font-size: var(--step--1); max-width: 44ch; }
.diagram-frame { position: relative; padding: var(--s6) var(--s4) var(--s4); background: var(--s-1); border: 1px solid var(--line-2); }
.diagram-frame::before, .diagram-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--ink-3);
}
.diagram-frame::before { top: -7px; left: -7px; border-top-width: 1px; border-left-width: 1px; }
.diagram-frame::after { bottom: -7px; right: -7px; border-bottom-width: 1px; border-right-width: 1px; }
.diagram-frame figcaption { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--step--2); line-height: 1.5; max-width: none; }

.diagram, .dg { display: block; width: 100%; height: auto; max-width: 32rem; margin-inline: auto; font-family: var(--sans); overflow: visible; }
.dg text { fill: var(--ink); font-size: 15px; }
.dg .t-b { font-weight: 600; }
.dg .t-m { font-family: var(--mono); font-size: 13px; fill: var(--ink-3); }
.dg .t-tech { fill: var(--tech); }
.dg .n { fill: var(--s-1); stroke: var(--line-2); stroke-width: 1.25; }
.dg .n-in { fill: var(--s-2); stroke: var(--line); stroke-width: 1; }
.dg .n-tech { fill: var(--tech-soft); stroke: var(--tech); stroke-width: 1.5; }
.dg .n-dash { fill: none; stroke: var(--line-2); stroke-width: 1.25; stroke-dasharray: 4 4; }
.dg .n-ink { fill: var(--ink); stroke: none; }
.dg .n-ink text, .dg .on-ink { fill: var(--bg); }
.dg .ln { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.dg .ln-tech { fill: none; stroke: var(--tech); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dg .ln-dash { stroke-dasharray: 4 4; }
.dg .ahead { fill: var(--ink-3); stroke: none; }
.dg .ahead-tech { fill: var(--tech); stroke: none; }
.dg .acc { fill: var(--accent); stroke: none; }
.dg .acc-ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }

/* the older product diagram classes, restyled to the same line style */
.diagram text { fill: var(--ink); font-size: 14px; }
.diagram .t-strong { font-weight: 600; font-size: 15px; }
.diagram .t-muted { fill: var(--ink-3); font-size: 12.5px; }
.diagram .box { fill: var(--s-1); stroke: var(--line-2); stroke-width: 1.25; }
.diagram .box text, .diagram .box-text { fill: var(--ink); }
.diagram .box-muted { fill: var(--ink-3); font-size: 12.5px; }
.diagram .bar { fill: var(--tech-soft); stroke: var(--tech); stroke-width: 1.5; }
.diagram .bar-text { fill: var(--ink); }
.diagram .link { stroke: var(--tech); stroke-width: 2; fill: none; }
.diagram .rule { stroke: var(--ink-3); stroke-width: 1.25; fill: none; }
.diagram .arrow { fill: var(--ink-3); }

/* ---------- contact (closing band, dark) ---------- */

.contact { padding-block: var(--s16); border-top: 0 !important; }
.contact .wrap { display: grid; gap: var(--s6); }
.contact h2 { max-width: 12ch; }
.contact p { color: var(--ink-2); }
.contact .actions { margin-top: var(--s6); }
.contact .contact-alt { margin: var(--s6) 0 0; font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.contact .contact-alt:empty { display: none; }
.contact .btn-line { color: var(--ink); }
.contact noscript p { margin-top: var(--s4); }
html:not(.js) .contact .actions { display: none; }
.interview-note { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); max-width: 46ch; margin: var(--s4) 0 0; border-left: 2px solid var(--tech); padding-left: var(--s3); }
@media (min-width: 56rem) {
  .contact .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s16); align-items: start; }
}

.todo { background: var(--todo-bg); outline: 1px dashed var(--line-2); padding: 0.1rem 0.4rem; font-family: var(--mono); font-size: var(--step--2); color: var(--ink); }

/* ---------- footer: one even grid. Phone: stacked groups; tablet: three columns; desktop: brand + five columns ---------- */
.site-footer { background: var(--s-2); border-top: 1px solid var(--line-2); padding-block: var(--s8) var(--s6); font-size: var(--step--1); }
.site-footer .wrap { display: grid; gap: var(--s8); }
.foot-brand img { display: block; width: 8.5rem; height: auto; }
.foot-brand p { margin: var(--s3) 0 0; color: var(--ink-2); max-width: 28ch; }
.foot-nav { display: grid; gap: var(--s6) var(--s6); }
.foot-nav .foot-h { margin: 0 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.foot-nav ul { list-style: none; }
.foot-nav a { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--ink-2); transition: color 0.15s; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s8); padding-top: var(--s4); border-top: 1px solid var(--line-2); }
.foot-legal p { margin: 0; max-width: none; color: var(--ink-3); font-size: var(--step--2); }
@media (min-width: 40rem) {
  .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .fc-products { grid-column: 1; grid-row: 1 / span 2; }
  .fc-advise { grid-column: 2; grid-row: 1; }
  .fc-run { grid-column: 2; grid-row: 2; }
  .fc-build { grid-column: 3; grid-row: 1; }
  .fc-company { grid-column: 3; grid-row: 2; }
  .foot-nav a { min-height: 0; padding-block: 0.3rem; }
}
@media (min-width: 64rem) {
  .site-footer .wrap { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s8) var(--s12); }
  .foot-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4) var(--s6); }
  .fc-products, .fc-advise, .fc-build, .fc-run, .fc-company { grid-column: auto; grid-row: auto; }
  .foot-nav a { padding-block: 0.2rem; line-height: 1.35; }
}
/* narrow desktop: the three service headings drop the "Services" prefix so they stay on one line */
@media (min-width: 64rem) and (max-width: 79.99rem) { .foot-pre { display: none; } }
/* pages with the action bar keep room for it, always, so nothing shifts when it appears */
.has-bar .site-footer { padding-bottom: calc(var(--s8) + var(--bar-h)); }
html:not(.js) .has-bar .site-footer { padding-bottom: var(--s8); }

/* ---------- sticky action bar ---------- */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--s-1);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -8px 24px -16px rgba(17, 23, 28, 0.35);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s 0.3s;
}
.action-bar.show { transform: none; visibility: visible; transition-delay: 0s; }
.action-bar .wrap { display: flex; align-items: center; gap: var(--s4); min-height: var(--bar-h); padding-block: var(--s2); }
.action-bar p { margin: 0; flex: 1; font-size: var(--step--1); color: var(--ink-2); max-width: none; }
.action-bar .close {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.action-bar .close:hover { color: var(--ink); }
@media (max-width: 39.99rem) { .action-bar p { font-size: var(--step--2); line-height: 1.35; } }

/* ---------- motion: only where it explains, and never when the visitor asks for less ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* diagrams: the lines draw in once; boxes and labels come in behind them */
  .js .dg .ln, .js .dg .ln-tech, .js .dg .acc-ln { stroke-dasharray: 1.02; stroke-dashoffset: 1.02; transition: stroke-dashoffset 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 150ms); }
  .js .dg.in .ln, .js .dg.in .ln-tech, .js .dg.in .acc-ln { stroke-dashoffset: 0; }
  .js .dg .ln-dash { stroke-dasharray: 4 4; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 300ms); }
  .js .dg.in .ln-dash { opacity: 1; }
  .js .dg .part { opacity: 0; transform: translateY(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .dg.in .part { opacity: 1; transform: none; }

  /* the one loop: a pulse travelling along a connection */
  .dg .pulse { offset-rotate: 0deg; opacity: 0; animation: travel 5s linear infinite; animation-delay: calc(var(--delay, 0s) + 1.6s); }
  @keyframes travel {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
  }
  .dg .slide { animation: slide 4.5s var(--ease) infinite; animation-delay: 1.4s; opacity: 0; }
  @keyframes slide {
    0% { transform: translateX(0); opacity: 0; }
    12% { opacity: 1; }
    70% { transform: translateX(var(--dx, 100px)); opacity: 1; }
    100% { transform: translateX(var(--dx, 100px)); opacity: 0; }
  }
  .card, .index li { transition: background-color 0.18s, transform 0.18s var(--ease); }
}

/* diagram parts that only animate keep a sensible resting place with reduced motion or no JS */
@media (prefers-reduced-motion: reduce) {
  .dg .pulse, .dg .slide { display: none; }
  * { scroll-behavior: auto !important; }
}
html:not(.js) .dg .pulse, html:not(.js) .dg .slide { display: none; }

/* ---------- the intake (a native dialog, built by site.js) ---------- */

dialog.intake {
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100dvh;
  background: var(--s-1);
  color: var(--ink);
  overflow: hidden;
}
dialog.intake[open] { display: flex; flex-direction: column; animation: sheet-in 0.3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
dialog.intake::backdrop { background: rgba(6, 10, 14, 0.6); }
@media (min-width: 40rem) {
  dialog.intake { width: min(36rem, 100%); margin-left: auto; border-left: 1px solid var(--line-2); }
  dialog.intake[open] { animation-name: panel-in; }
  @keyframes panel-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  dialog.intake[open] { animation: none; }
}

.intake-head { flex: none; padding: var(--s4) var(--s6) var(--s3); border-bottom: 1px solid var(--line); background: var(--bg); }
.intake-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.intake-top img { display: block; width: 5.5rem; height: auto; }
.intake-close { min-height: 2.75rem; padding: 0 var(--s3); background: none; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink); font: inherit; font-size: var(--step--1); cursor: pointer; }
.intake-close:hover { border-color: var(--ink); }
.progress { margin-top: var(--s3); display: flex; align-items: center; gap: var(--s3); }
.progress-bar { flex: 1; height: 3px; background: var(--line); position: relative; }
.progress-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tech); width: var(--p, 0%); transition: width 0.35s var(--ease); }
.progress .tag { white-space: nowrap; }

.intake-body { flex: 1; overflow-y: auto; padding: var(--s8) var(--s6) var(--s6); }
.intake-body h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.12; margin-bottom: var(--s3); }
.intake-body h2:focus { outline: none; }
.intake-body .hint { color: var(--ink-3); font-size: var(--step--1); margin-bottom: var(--s6); }
.intake-body .pre-note { font-family: var(--mono); font-size: var(--step--2); color: var(--tech); border-left: 2px solid var(--tech); padding-left: var(--s3); margin: 0 0 var(--s4); }
.intake-body .anim { animation: q-in 0.35s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intake-body .anim { animation: none; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; margin: 0 0 var(--s6); padding: 0; min-width: 0; }
.chips legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--bg);
  font-size: var(--step--1);
  font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s, transform 0.12s var(--ease);
}
.chip:hover span { border-color: var(--ink); }
.chip input:active + span { transform: translateY(1px); }
.chip input:checked + span { border-color: var(--tech); background: var(--tech-soft); box-shadow: inset 0 0 0 1px var(--tech); }
.chip input:checked + span::before { content: ""; width: 0.65rem; height: 0.35rem; border-left: 2px solid var(--tech); border-bottom: 2px solid var(--tech); transform: rotate(-45deg) translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 39.99rem) { .chips { flex-direction: column; } .chip span { width: 100%; } }

.field { display: block; margin: 0 0 var(--s4); }
.field > span { display: block; font-size: var(--step--1); font-weight: 500; margin-bottom: var(--s1); }
.field > span em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font: inherit;
  font-size: 1.0625rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--tech); outline: 3px solid var(--focus); outline-offset: 1px; }
.field .err { display: block; margin-top: var(--s1); font-size: var(--step--1); color: var(--accent-fill); }
@media (prefers-color-scheme: dark) { .field .err { color: var(--accent); } }
.field .soft { display: block; margin-top: var(--s1); font-size: var(--step--1); color: var(--ink-3); }
.field input[aria-invalid="true"] { border-color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.intake-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s6) calc(var(--s3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--s-1); }
.intake-foot .btn[hidden], .intake-foot .btn-line[hidden] { display: none; }
.intake-foot .privacy { margin: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); max-width: none; flex: 1; line-height: 1.4; }

.brief { list-style: none; border-top: 1px solid var(--line-2); margin: 0 0 var(--s6); }
.brief li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.brief li span { flex: 1; }
.brief button { flex: none; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: var(--step--2); text-decoration: underline; text-decoration-color: var(--line-2); cursor: pointer; padding: var(--s2); min-height: 2.5rem; }
.brief button:hover { color: var(--ink); }
.consent { font-size: var(--step--1); color: var(--ink-2); border: 1px solid var(--line-2); background: var(--s-2); padding: var(--s4); margin: 0 0 var(--s4); max-width: none; }
.brief-text { width: 100%; min-height: 11rem; padding: var(--s3); background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 3px; font-family: var(--mono); font-size: var(--step--2); line-height: 1.5; resize: vertical; }
.done-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0; }
.done-note { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); margin: var(--s2) 0 0; min-height: 1.4em; }
.sending { display: flex; align-items: center; gap: var(--s3); color: var(--ink-2); }
.sending::before { content: ""; width: 1rem; height: 1rem; border: 2px solid var(--line-2); border-top-color: var(--tech); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sending::before { animation: none; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media print {
  .site-header, .skip, .actions, .action-bar, dialog { display: none !important; }
  .on-dark { background: none; color: #000; }
}

/* ---------- small layout helpers added with the pages ---------- */
.more-row { margin-top: var(--s8); }
.slot-band { padding-block: 0 var(--s16); border-top: 0 !important; }
.about-slots { display: grid; gap: var(--s8); }
@media (min-width: 48rem) { .about-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s12); } }
html:not(.js) .interview-note { display: none; }

.stack { display: grid; gap: var(--s8); }
.stack .diagram-frame { max-width: 34rem; }

/* ---------- case study: screenshot slots and the small print ---------- */
.slots { display: grid; gap: var(--s8); }
@media (min-width: 48rem) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s12) var(--s12); } }
.fine { margin-top: var(--s4); color: var(--ink-3); font-size: var(--step--1); max-width: 62ch; }
.slots + .fine { margin-top: var(--s8); }


/* ---------- finding a service: home finder, services index, other-services strip ---------- */

.finder { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 40rem) { .finder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .finder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.find {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s3);
  height: 100%;
  min-height: 6rem;
  padding: var(--s4) var(--s4) var(--s3);
  background: var(--s-1);
  border: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s, background-color 0.15s;
}
.find::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 1.5px solid var(--ink-3);
  border-right: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.15s var(--ease), border-color 0.15s;
}
.find:hover { border-color: var(--tech); background: var(--tech-soft); }
.find:hover::after { border-color: var(--tech); transform: translateX(2px) rotate(45deg); }
.find-q { font-size: var(--step-1); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; padding-right: 1.25rem; }
.find-svc { font-family: var(--mono); font-size: var(--step--2); line-height: 1.4; color: var(--ink-3); }
.find:hover .find-svc { color: var(--tech); }
.finder-more { margin: var(--s6) 0 0; color: var(--ink-2); }
@media (max-width: 39.99rem) {
  .finder-band { padding-block: var(--s12); }
  .find { min-height: 0; }
}

.svc-tools { display: grid; gap: var(--s6); margin-bottom: var(--s8); }
@media (min-width: 56rem) { .svc-tools { grid-template-columns: auto minmax(0, 26rem); justify-content: space-between; align-items: end; } }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.jump-l { font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); margin-right: var(--s2); }
.jump a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-size: var(--step--1); font-weight: 500; color: var(--ink); transition: border-color 0.15s, background-color 0.15s; }
.jump a:hover { border-color: var(--tech); background: var(--tech-soft); }
.svc-filter label { display: block; margin-bottom: var(--s2); font-weight: 600; font-size: var(--step--1); }
.svc-filter input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  background: var(--s-1);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font: inherit;
  font-size: var(--step-0);
}
.svc-filter input::placeholder { color: var(--ink-3); }
.svc-count { margin: var(--s2) 0 0; min-height: 1.4em; font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.svc-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--s4); }
.svc-card { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s6) var(--s6) var(--s4); background: var(--s-1); border: 1px solid var(--line-2); transition: border-color 0.15s, background-color 0.15s; }
.svc-card:hover { border-color: var(--tech); background: var(--tech-soft); }
.svc-card[hidden], .group[hidden], .svc-empty[hidden] { display: none; }
.svc-card h4 { margin: 0; font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.2; }
.svc-card h4 a { text-decoration: none; }
.svc-card h4 a::after { content: ""; position: absolute; inset: 0; }
.svc-card p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.svc-card .pain { color: var(--ink-3); }
.svc-card .go { margin-top: auto; padding-top: var(--s3); font-family: var(--mono); font-size: var(--step--2); color: var(--tech); }
.svc-empty { margin-top: var(--s8); padding: var(--s6); border: 1px dashed var(--line-2); background: var(--s-1); }
.svc-empty p { margin-bottom: var(--s3); }
.svc-empty p:last-child { margin-bottom: 0; }

.other-band { padding-block: var(--s12); }
.other-h { font-size: var(--step-1); letter-spacing: -0.015em; margin-bottom: var(--s6); }
.os { display: grid; gap: var(--s6); }
@media (min-width: 48rem) { .os { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s8); } }
.os-h { margin: 0 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: var(--step--2); color: var(--ink-3); }
.os ul { list-style: none; }
.os li > a, .os-here { display: block; padding: 0.4rem 0; font-size: var(--step--1); }
.os li > a { text-decoration: none; color: var(--ink-2); }
.os li > a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.os-here { font-weight: 600; color: var(--ink); border-left: 2px solid var(--tech); padding-left: var(--s3); margin-left: calc(-1 * var(--s3) - 2px); }
.os-note { font-family: var(--mono); font-size: var(--step--2); font-weight: 400; color: var(--ink-3); }
.os-all { margin: var(--s6) 0 0; }

/* ---------- real screenshots: a neutral frame, never recoloured ---------- */
.shots { display: grid; gap: var(--s12) var(--s8); }
@media (min-width: 56rem) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shot-wide { grid-column: 1 / -1; } }
.shot { margin: 0; }
.shot .slot-frame { background: var(--s-2); border: 1px solid var(--line-2); padding: var(--s2); }
.shot img { display: block; width: 100%; height: auto; background: #ffffff; }
.shot figcaption { margin: var(--s3) 0 0; max-width: none; font-family: var(--mono); font-size: var(--step--2); color: var(--ink-2); }
.shot-phone { max-width: 20rem; }

/* ---------- product screenshots (stand-in captures) ---------- */
.shots.look { align-items: start; }
.look .shot-wide { grid-column: 1 / -1; }
/* one frame shape for same-size captures, so rows line up and nothing shifts; the whole capture shows */
.card .shot img, .product .shot img, .look .shot:not(.shot-wide) img { aspect-ratio: 16 / 10; object-fit: contain; background: var(--s-2); }
.look .shot-wide img { background: var(--s-2); }
.card .shot figcaption, .product .shot figcaption { margin-top: var(--s2); }
/* four product cards: two by two */
@media (min-width: 48rem) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) var(--s6); } }

/* Line breaking: keep word spacing even (no justification) and let the browser pick better breaks. Ignored where unsupported. */
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
