/* Base theme: structure only. No colours beyond currentColor, no fonts.
   Site styles load after this file in @layer site and win over @layer engine. */
@layer engine, site;

@layer engine {
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; line-height: 1.6; }
  img, video, svg { max-width: 100%; height: auto; }

  .skip-link { position: absolute; left: -9999px; top: 0; }
  .skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }
  :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

  .site-header, .site-footer, main { padding-inline: 1rem; }
  .site-header { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; justify-content: space-between; padding-block: 1rem; }
  .site-header__nav, .site-footer__nav { display: flex; flex-wrap: wrap; gap: 1rem; }
  .site-footer { padding-block: 2rem; }

  .article, .post-index { max-width: 72rem; margin-inline: auto; }
  .article__main, .post-index { max-width: 42rem; min-width: 0; }
  .prose { overflow-wrap: break-word; }
  .article--toc { display: grid; gap: 2rem; }
  @media (min-width: 64rem) {
    .article--toc { grid-template-columns: minmax(0, 42rem) 16rem; }
    .toc-rail { position: sticky; top: 1rem; align-self: start; }
  }

  .breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
  .breadcrumb li + li::before { content: "/"; margin-inline-end: 0.5rem; }

  .table-scroll { overflow-x: auto; }
  .table-scroll table { border-collapse: collapse; }
  .table-scroll th, .table-scroll td { border: 1px solid currentColor; padding: 0.25rem 0.5rem; text-align: left; }

  figure { margin-inline: 0; }
  .diagram { margin-block: 1.5rem; }
  .diagram img, .diagram svg { display: block; width: 100%; }

  .post-list, .related__list { list-style: none; padding: 0; }
  .post-list__item, .related__item { margin-block: 1rem; }
}

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

/* tokens.css */
@layer site {
/* Chance Ecom design tokens: the DM-thread direction (homepage-redesign/tuO3eVIpxBhx).
   Colours and type exist only here; site.css reads them as custom properties. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/public-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/young-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Reenie Beanie";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/reenie-beanie.woff2") format("woff2");
}

:root {
  /* palette */
  --bg: #F3F5FA;          /* timeline background */
  --bg-deep: #E6EAF2;     /* alternate band */
  --ink: #1B1E28;         /* text, borders, dark bands */
  --ink-2: #262A37;       /* raised surface on ink */
  --ink-line: #3A3F50;    /* rule on ink */
  --ink-soft: #C9CEDB;    /* secondary text on ink */
  --muted: #545A6D;       /* secondary text on light */
  --line: #D9DEEA;        /* hairlines and card borders on light */
  --white: #FFFFFF;
  --bubble-them: #E9EDF5; /* their message bubble */
  --marker: #FF7A59;      /* primary action, hand marks */
  --hot: #2BB3A3;         /* your message bubble, focus ring */
  --note: #F6C343;        /* sticky-note highlight */
  --link: #1D6F66;        /* in-prose links (AA on white and --bg) */

  /* type */
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Reenie Beanie", "Comic Sans MS", cursive;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* shape and rhythm */
  --gutter: 20px;
  --maxw: 1240px;
  --measure: 700px;
  --r-bubble: 20px;
  --r-card: 20px;
  --shadow-hard: 3px 3px 0 var(--ink);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}
}

/* site.css */
@layer site {
/* Chance Ecom site styles (@layer site). Homepage from the DM-thread mockup
   (homepage-redesign/tuO3eVIpxBhx), plus the post, blog index and author chrome
   in the same system. Every colour and face comes from tokens.css.
   Mobile first: base rules target ~375px; min-width queries go up. */

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
main { padding-inline: 0; }
img, video, svg { display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--marker); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: var(--gutter); top: 10px; }

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

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
figure { margin: 0; }

.hand { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1.2 var(--f-body);
  text-decoration: none; color: var(--ink);
  background: var(--marker);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 18px;
  min-height: 44px;
  box-shadow: var(--shadow-hard);
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--big { font-size: 1.06rem; padding: 17px 16px; gap: 8px; width: 100%; }
.btn--small { padding: 9px 12px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; flex: none; }
.btn svg { flex: none; }

/* ---------- header ---------- */
.site-head { padding-block: 14px; container: head / inline-size; }
.site-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.site-head__end { display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
/* The nav shows once the header itself is 768px wide (a container query, so a
   scrollbar or page zoom can't push it past the right edge). The homepage row
   (five links, FR toggle, CTA) needs about 900px: between 768 and 960 its nav
   drops to a second row that starts at the same gutter as the logo. */
@container head (min-width: 768px) {
  .nav { display: block; }
}
@container head (min-width: 768px) and (max-width: 959.98px) {
  .site-head--home .nav { order: 3; flex-basis: 100%; }
  .site-head--home .nav ul { gap: 22px; margin-inline: -2px; }
}

.lang-toggle {
  font: 700 .8rem/1 var(--f-body); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--ink); border-radius: 999px;
  min-width: 36px; min-height: 36px; padding: 0 8px; cursor: pointer; flex: none;
}
.lang-toggle:hover { background: var(--note); }

/* ---------- hero ---------- */
.hero { padding-block: 18px 40px; }
.hero__grid { display: grid; gap: 34px; }
.hero h1 { font-size: clamp(2.45rem, 1.5rem + 5vw, 4.9rem); line-height: 1.16; max-width: 13ch; }
.hero__kicker { display: block; width: fit-content; background: var(--note); color: var(--ink); font-family: var(--f-body); font-weight: 700; font-size: .9rem; line-height: 1.3; letter-spacing: 0; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.mark-word { position: relative; display: inline-block; white-space: nowrap; }
.mark-word > svg { position: absolute; pointer-events: none; overflow: visible; max-width: none; }
.mark-word--circle { padding-inline: .1em; margin-inline: -.02em; }
.mark-word--circle > svg { left: -.14em; right: -.16em; top: -.04em; bottom: -.12em; width: calc(100% + .3em); height: calc(100% + .16em); }
.mark-word--under > svg { left: -.04em; bottom: -.2em; width: calc(100% + .08em); height: .3em; }
.mark-word path { fill: none; stroke: var(--marker); stroke-linecap: round; stroke-linejoin: round; }
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.6,.1,.3,1) forwards; }
.draw--late path { animation-delay: .55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__sub { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 40ch; }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta { margin-top: 24px; display: grid; gap: 12px; max-width: 460px; }
.hero__alt { font-size: .95rem; color: var(--muted); }
.hero__alt a { color: var(--ink); font-weight: 600; }

/* ---------- the thread ---------- */
.thread { background: var(--white); border: 1.5px solid var(--line); border-radius: 26px; padding: 0 10px 14px; position: relative; }
.thread__head { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; border: 1.5px solid var(--line); }
.avatar svg { width: 24px; height: 24px; }
.thread__who { line-height: 1.25; }
.thread__who b { display: block; font-size: .98rem; }
.thread__who span { font-size: .8rem; color: var(--muted); }
.thread__time { text-align: center; font-size: .78rem; color: var(--muted); margin: 6px 0 4px; }
.thread ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; }
.msg--you { align-items: flex-end; }
.msg__who { font-size: .78rem; font-weight: 600; color: var(--muted); margin: 8px 8px 3px; display: flex; align-items: flex-end; gap: 10px; }
.msg__who .hand { font-size: 1.45rem; font-weight: 400; color: var(--ink); display: inline-flex; align-items: flex-end; gap: 2px; }
.msg__who .hand svg { width: 34px; height: 18px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: var(--r-bubble); font-size: .98rem; line-height: 1.45; }
.msg--you .bubble { background: var(--hot); color: var(--ink); border-bottom-right-radius: 6px; }
.msg--them .bubble { background: var(--bubble-them); color: var(--ink); border-bottom-left-radius: 6px; }
.seen { font-size: .74rem; color: var(--muted); margin: 3px 8px 0; }
.typing { display: inline-flex; gap: 5px; padding: 12px 14px; background: var(--bubble-them); border-radius: var(--r-bubble); border-bottom-left-radius: 6px; margin-top: 8px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s ease-in-out 4; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.chips { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.chips__label { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 4px 8px; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px;
  border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white);
  font-weight: 600; font-size: .9rem; line-height: 1.2; text-decoration: none;
  transition: background .12s ease;
}
.chip:hover { background: var(--note); text-decoration: none; }
.chip--go { background: var(--marker); }
.chip--go:hover { background: var(--note); }

/* ---------- homepage sections ---------- */
main > section { padding-block: 52px; scroll-margin-top: 12px; }
.svc-core, .svc-list li { scroll-margin-top: 16px; }
.band { background: var(--bg-deep); }
.ask { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 14px; }
.ask .msg__who { margin-top: 0; }
.ask .bubble { background: var(--hot); border-bottom-right-radius: 6px; font-weight: 600; max-width: none; }
.lead { margin-top: 14px; font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.lead strong { color: var(--ink); }
.lead a { color: var(--ink); font-weight: 600; }
.lead--flush { margin-top: 0; }

/* reels */
.reels-sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.reels {
  list-style: none; margin: 26px 0 0; padding: 4px 2px 14px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--muted) transparent;
}
.reel { flex: 0 0 64%; max-width: 250px; scroll-snap-align: start; }
.reel__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); }
.reel__frame video { width: 100%; height: 100%; max-width: none; object-fit: contain; background: var(--ink); }
.reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; pointer-events: none; }
.reel__frame.is-started .reel__poster { display: none; }
.reel__btn {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px 8px 10px;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font: 700 .88rem/1 var(--f-body); cursor: pointer;
}
.reel__btn:hover { background: var(--note); }
.reel__btn:focus-visible { outline-color: var(--note); }
.reel__btn .i-pause { display: none; }
.reel__btn[aria-pressed="true"] .i-play { display: none; }
.reel__btn[aria-pressed="true"] .i-pause { display: block; }
.reel figcaption { margin-top: 10px; font-size: .92rem; line-height: 1.4; }
.reel figcaption b { display: block; }
.reel figcaption span { color: var(--muted); }
.reels-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 10px; }
.reels-foot .hand { font-size: 1.55rem; }

/* services */
.svc { display: grid; gap: 22px; margin-top: 34px; }
.svc-core { background: var(--ink); color: var(--white); border-radius: 24px; padding: 26px 22px 28px; position: relative; }
.svc-core :is(h2, h3) { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.svc-core .tag { display: inline-block; background: var(--note); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.svc-core > p { margin-top: 12px; color: var(--ink-soft); max-width: 46ch; }
.svc-core dl { margin: 22px 0 0; display: grid; gap: 14px; }
.svc-core dl div { border-top: 1px solid var(--ink-line); padding-top: 12px; }
.svc-core dt { font-family: var(--f-display); font-size: 1.2rem; color: var(--white); }
.svc-core dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .97rem; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list__note { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.svc-list__note svg { width: 40px; height: 30px; flex: none; }
.svc-list li { padding: 18px 0; border-bottom: 1.5px solid var(--line); display: grid; gap: 4px 18px; }
.svc-list li:first-child { border-top: 1.5px solid var(--line); }
.svc-list :is(h2, h3) { font-size: 1.35rem; }
.svc-list p { color: var(--muted); }
.use { font-size: .85rem; font-weight: 600; color: var(--ink); }
.use mark { background: var(--note); color: var(--ink); padding: 1px 6px; border-radius: 4px; }
.use a { color: var(--ink); }

/* process */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.step { background: var(--white); border: 1.5px solid var(--line); border-radius: 22px; padding: 22px 20px 24px; position: relative; }
.step__n { display: inline-grid; place-items: center; width: 52px; height: 52px; position: relative; font-family: var(--f-display); font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.step__n svg { position: absolute; inset: -4px; width: 60px; height: 60px; max-width: none; }
.step__n svg path { fill: none; stroke: var(--hot); stroke-width: 3; stroke-linecap: round; }
.step h3 { font-size: 1.4rem; }
.step p { margin-top: 8px; color: var(--muted); }
.step ul { margin: 12px 0 0; padding-left: 1.1em; font-size: .95rem; }
.step ul li + li { margin-top: 4px; }
.loop-note { margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.loop-note svg { width: 54px; height: 40px; flex: none; }
.loop-note svg path { fill: none; stroke: var(--marker); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* research (ink band) */
.research { background: var(--ink); color: var(--white); }
.research .ask .msg__who { color: var(--ink-soft); }
.research .ask .bubble { color: var(--ink); }
.research .lead { color: var(--ink-soft); }
.research .lead strong { color: var(--white); }
.research__grid { display: grid; gap: 34px; margin-top: 30px; }
.finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.finds li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.finds b { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; color: var(--note); line-height: 1; min-width: 3.6ch; }
.finds span { color: var(--ink-soft); }
.finds span strong { color: var(--white); font-weight: 600; }
.our-read { margin-top: 24px; background: var(--ink-2); border-radius: 16px; padding: 16px 18px; color: var(--white); }
.our-read .hand { color: var(--note); font-size: 1.7rem; display: block; margin-bottom: 4px; }
.research__cite { margin-top: 16px; font-size: .86rem; color: var(--ink-soft); }
.research__cta { margin-top: 20px; }
.research__cta a { color: var(--white); font-weight: 700; }
.research :focus-visible, .svc-core :focus-visible, .site-foot :focus-visible { outline-color: var(--note); }
.charts { display: grid; gap: 18px; }
.chart { background: #F7F8FC; color: var(--ink); border-radius: 20px; padding: 18px 16px 12px; }
.chart h3 { font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.35; }
.chart .chart__sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.chart svg { width: 100%; height: auto; margin-top: 8px; }
.chart .bar { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart .axis { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.chart .val { font: 700 15px var(--f-body); fill: var(--ink); }
.chart .lab { font: 600 14px var(--f-body); fill: var(--ink); }
.chart .note { font: 24px var(--f-hand); fill: var(--ink); }
.chart .arrow { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* reads */
.reads { display: grid; gap: 26px; margin-top: 34px; }
.reads__group { position: relative; z-index: 0; }
.reads__group h3 { font-family: var(--f-hand); font-size: 1.9rem; line-height: 1; margin-bottom: 10px; display: inline-block; position: relative; }
.reads__group h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 8px; background: var(--note); z-index: -1; border-radius: 4px; transform: rotate(-1deg); }
.reads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.post {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 16px; text-decoration: none; min-height: 44px;
  transition: border-color .12s ease;
}
.post:hover { border-color: var(--ink); text-decoration: none; }
.post:hover .post__t { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; }
.post__t { font-weight: 600; line-height: 1.35; }
.post__d { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; margin-top: 3px; }
.post svg { width: 22px; height: 22px; }
.post--feature { background: var(--note); border-color: var(--ink); padding: 18px; }
.post--feature .post__t { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.post--feature .post__d { color: var(--ink); }
.post--held { grid-template-columns: 1fr; color: var(--muted); }
.reads-foot { margin-top: 28px; display: grid; gap: 18px; }
.reads-foot__all { font-weight: 700; justify-self: start; }
.fresh__label .hand { font-size: 1.7rem; }
.fresh ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fresh li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.fresh a { font-weight: 600; }
.fresh time { font-size: .85rem; color: var(--muted); }

/* about */
.about__grid { display: grid; gap: 26px; margin-top: 28px; }
.about__text { font-size: 1.05rem; max-width: 58ch; }
.about__text p + p { margin-top: 14px; }
.about__text a { font-weight: 600; }
.split { display: grid; gap: 12px; }
.split > div { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; }
.split h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.split .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--marker); border: 2px solid var(--ink); flex: none; }
.split .dot--ai { background: var(--hot); }
.split ul { margin: 10px 0 0; padding-left: 1.1em; }
.split li + li { margin-top: 4px; }

/* faq */
.faq { margin-top: 30px; border-top: 1.5px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1.5px solid var(--line); scroll-margin-top: 12px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; min-height: 44px;
  font-family: var(--f-display); font-size: 1.2rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .15s ease, background .15s ease; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--note); }
.faq details > div { padding: 0 2px 20px; color: var(--muted); max-width: 64ch; }
.faq details > div p + p { margin-top: 10px; }
.faq details > div a { color: var(--ink); font-weight: 600; }

/* contact */
.contact { background: var(--white); border-top: 1.5px solid var(--line); }
.contact__grid { display: grid; gap: 30px; margin-top: 26px; }
.mini-thread { display: grid; gap: 4px; max-width: 460px; list-style: none; margin: 24px 0 0; padding: 0; }
.mini-thread .bubble { max-width: 90%; }
.fit { margin-top: 28px; max-width: 460px; border: 1.5px dashed var(--muted); border-radius: 18px; padding: 18px 20px; }
.fit h3 { font-size: 1.2rem; }
.fit ul { margin: 10px 0 0; padding-left: 1.1em; }
.fit li + li { margin-top: 4px; }
.fit p { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.fit a { color: var(--ink); font-weight: 600; }
.form { display: grid; gap: 16px; background: var(--bg); border: 2px solid var(--ink); border-radius: 24px; padding: 22px 18px; position: relative; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--muted); border-radius: 12px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.row2 { display: grid; gap: 16px; }
.form .btn { width: 100%; font-size: 1.1rem; padding: 16px 22px; }
.form__status { font-weight: 600; min-height: 1.6em; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--link); }
.form__status.is-err { color: #A1321A; }
.form__fine { font-size: .86rem; color: var(--muted); }
.form__fine a { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
/* U16: brand + CTA, then Services and Company side by side, legal in a thin bar. */
.site-foot { background: var(--ink); color: var(--white); padding-block: 44px 22px; }
.site-foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
.site-foot__brand { grid-column: 1 / -1; }
.site-foot .brand svg { width: 32px; height: 32px; }
.site-foot p { color: var(--ink-soft); font-size: .92rem; max-width: 40ch; margin-top: 10px; }
.site-foot__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 8px 16px; border: 1.5px solid var(--white); border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.site-foot__cta svg { flex: none; }
.site-foot__cta:hover { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.site-foot__h { font-family: var(--f-body); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); max-width: none; margin-bottom: 6px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--white); }
.site-foot__col a { display: inline-block; padding: 7px 0; min-height: 24px; font-size: .95rem; text-decoration: none; overflow-wrap: anywhere; }
.site-foot__col a:hover, .site-foot__bar a:hover { text-decoration: underline; text-decoration-color: var(--marker); text-underline-offset: 3px; }
.site-foot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--ink-line); font-size: .85rem; color: var(--ink-soft); }
.site-foot__bar .copy { font-size: .85rem; margin: 0; }
.site-foot__bar ul { display: flex; flex-wrap: wrap; }
.site-foot__bar li + li::before { content: "\00B7"; padding-inline: 8px; color: var(--ink-soft); }
.site-foot__bar a { display: inline-block; padding: 6px 0; color: var(--ink-soft); text-decoration: none; }

/* ---------- posts, pages, author pages ---------- */
.article { max-width: var(--maxw); margin-inline: auto; padding: 18px var(--gutter) 64px; }
.article--toc { display: block; }
.article__main { max-width: var(--measure); min-width: 0; margin-inline: 0; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb ol { gap: 6px; }
.breadcrumb li + li::before { color: var(--muted); margin-inline-end: 6px; }
.breadcrumb a { color: var(--ink); }
.breadcrumb [aria-current="page"] { color: var(--muted); }
.article__head { margin-bottom: 30px; }
.article__head h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.3rem); line-height: 1.14; max-width: 22ch; }
.byline { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.byline a { color: var(--ink); font-weight: 600; }
.author-page__role { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }

.hero--post, .article .hero { margin: 0 0 30px; }
.article .hero img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-card); border: 1.5px solid var(--line); }

.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.05rem); line-height: 1.2; margin-top: 1.9em; max-width: none; scroll-margin-top: 16px; }
.prose h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.18rem; line-height: 1.35; margin-top: 1.6em; scroll-margin-top: 16px; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 0; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--marker); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--marker); font-weight: 700; }
.prose blockquote {
  margin-inline: 0; padding: 14px 18px;
  background: var(--bubble-them); border-radius: var(--r-bubble); border-bottom-left-radius: 6px;
}
.prose blockquote > * + * { margin-top: .8em; }
.prose hr { border: 0; border-top: 1.5px dashed var(--line); margin-block: 2.2em; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--bubble-them); border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--ink); color: var(--white); border-radius: 16px; padding: 18px 20px; overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.5; background: var(--white); }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; background: var(--bg-deep); }
.prose .table-scroll { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 16px; }
.prose .table-scroll table { border: 0; }
.prose .table-scroll th, .prose .table-scroll td { border: 0; border-bottom: 1px solid var(--line); }
.prose .table-scroll tr:last-child td { border-bottom: 0; }
.prose > table { display: block; overflow-x: auto; border: 1.5px solid var(--line); border-radius: 16px; }
.page-form { margin-top: 36px; }
#contact-form { scroll-margin-top: 16px; }
/* /contact/ leads with the form: intro, form, then the steps (beside the form from 1100px) */
.article--contact .article__head { margin-bottom: 14px; }
.contact-lead { display: grid; gap: 32px; margin-top: 26px; }
.contact-lead .page-form { margin-top: 0; }
.contact-steps { border: 1.5px dashed var(--muted); border-radius: 18px; padding: 18px 20px; font-size: 1rem; line-height: 1.65; }
.contact-steps > h2:first-child { margin-top: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
/* diagrams scale to the column; on phones the labels get small, so site.js links
   each one to its full-size SVG (opens in a new tab, pinch to zoom) */
.diagram { margin-block: 1.8em; }
.diagram img, .diagram svg { width: 100%; max-width: 100%; height: auto; border-radius: 14px; }
.diagram__zoom { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.diagram__hint { display: block; margin-top: 4px; font-size: .84rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .diagram__hint { display: none; } }
.diagram figcaption { margin-top: 8px; font-size: .86rem; line-height: 1.5; color: var(--muted); }

/* calculators (the /tools/ pages; behaviour in tools.js) */
.tool { display: grid; gap: 18px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 20px 16px; box-shadow: var(--shadow-hard); font-size: 1rem; line-height: 1.5; }
.prose > .tool { margin-block: 1.6em 2em; }
.tool__group { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.tool__group + .tool__group { border-top: 1.5px dashed var(--line); padding-top: 16px; }
.tool__group legend { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.3; padding: 0; margin-bottom: 12px; }
.tool__field { display: grid; gap: 5px; min-width: 0; margin: 0; }
.tool__field label { font-weight: 600; font-size: .95rem; }
.tool__hint { font-size: .86rem; color: var(--muted); }
.tool__field input {
  box-sizing: border-box; width: 100%; min-width: 0; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--muted); border-radius: 12px;
  padding: 11px 14px; min-height: 48px;
}
.tool__field input::placeholder { color: var(--muted); opacity: .75; }
.tool__field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.tool__field input[aria-invalid="true"] { border-color: #A1321A; border-width: 2px; }
.tool__err { font-size: .88rem; font-weight: 600; color: #A1321A; }
.tool__err:empty { display: none; }
.tool__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.tool__actions .btn { flex: 1 1 160px; }
.tool__reset { font: 600 .95rem/1.2 var(--f-body); color: var(--ink); background: none; border: 0; padding: 10px 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tool__reset:hover { text-decoration-color: var(--marker); }
.tool__results { display: grid; gap: 12px; background: var(--bg); border-radius: 16px; padding: 16px 14px; min-width: 0; }
.tool__status { font-weight: 600; }
.tool__notes { font-size: .92rem; color: var(--muted); }
.tool__notes:empty { display: none; }
.tool .tool__table { width: 100%; border-collapse: collapse; background: none; font-size: .96rem; }
.tool__table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool .tool__table th, .tool .tool__table td { padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: baseline; background: none; }
.tool .tool__table th { font-weight: 600; padding-right: 12px; }
.tool .tool__table td { text-align: right; }
.tool .tool__table tr:last-child th, .tool .tool__table tr:last-child td { border-bottom: 0; }
.tool__table output { font-weight: 700; font-variant-numeric: tabular-nums; }
.prose a.btn { color: var(--ink); text-decoration: none; }

/* /tools/ index: each card is a small .tool panel. Live = one link with the
   hard shadow; held = dashed, muted, no link. Intro and closing prose keep the
   measure; the grid takes the wider column. From 768px the header spans the
   grid too: the h1 drops the 22ch cap and takes an index-page size, so the
   title sits in two lines above the cards. */
.article--tools .article__main { max-width: 1080px; }
.article--tools .prose { max-width: var(--measure); }
@media (min-width: 768px) {
  .article--tools .article__head h1 { max-width: none; font-size: clamp(2.2rem, 1.2rem + 2.2vw, 2.85rem); }
  .article--tools .prose { max-width: 68ch; }
}
.tool-cards { list-style: none; margin: 30px 0 48px; padding: 0; display: grid; gap: 18px; }
.tool-cards > li { display: grid; min-width: 0; }
.tool-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--white); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-hard);
  padding: 20px 18px; font-size: 1rem; line-height: 1.5;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.tool-card:hover, a.tool-card:focus-visible { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
a.tool-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
a.tool-card:focus-visible { outline-offset: 4px; border-radius: var(--r-card); }
.tool-card__name { font-size: 1.5rem; max-width: none; }
.tool-card__q { font-weight: 600; }
.tool-card__io { margin: 2px 0 0; display: grid; gap: 8px; align-content: start; background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: .94rem; }
.tool-card__io dt { font-size: .8rem; font-weight: 700; color: var(--muted); }
.tool-card__io dd { margin: 0; }
.tool-card__f { display: inline-block; font-family: var(--f-mono); font-size: .86rem; line-height: 1.45; background: var(--white); border: 1.5px solid var(--line); border-radius: 6px; padding: 2px 8px; margin-top: 2px; }
/* flex column (one column) and grid subgrid (two) both pin the action bottom right */
.tool-card__go, .tool-card__soon { align-self: flex-end; justify-self: end; margin-top: auto; }
.tool-card__go {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; min-height: 44px; padding: 9px 14px;
  background: var(--marker); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink);
}
.tool-card__soon { font-weight: 700; font-size: .88rem; color: var(--muted); border: 1.5px solid var(--muted); border-radius: 999px; padding: 5px 12px; }
.tool-card--held { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--muted); box-shadow: none; }
.tool-card--held .tool-card__io { background: var(--bg-deep); }
.tool-card--held .tool-card__f { background: var(--bg); }

/* table of contents: a sticky rail from 1100px; the prose leads below that */
.toc-rail { display: none; }
.toc { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 16px 18px 18px; }
.toc__title { font-family: var(--f-body); font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0 0 12px; } /* regular font on posts; the hand font is reserved for service pages (operator 2026-10-04) */
.toc__list, .toc__sublist { list-style: none; margin: 0; padding: 0; }
.toc__list > li + li { margin-top: 8px; }
.toc__sublist { padding-left: 12px; margin-top: 6px; }
.toc a { color: var(--muted); font-size: .92rem; line-height: 1.4; text-decoration: none; display: inline-block; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marker); }

/* author box */
.author-box { margin-top: 48px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; }
.author-box__name { font-family: var(--f-display); font-size: 1.2rem; }
.author-box__name a { text-decoration: none; }
.author-box__name a:hover { text-decoration: underline; text-decoration-color: var(--marker); }
.author-box__role { display: block; font-family: var(--f-body); font-size: .88rem; color: var(--muted); margin-top: 2px; }
.author-box__bio { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* end-of-post call to action */
.post-cta { margin-top: 40px; background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 22px 20px 24px; box-shadow: 5px 5px 0 var(--ink); }
.post-cta h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); max-width: 20ch; }
.post-cta > p { margin-top: 12px; color: var(--muted); max-width: 54ch; }
.post-cta .btn { margin-top: 20px; }
.post-cta .post-cta__fine { font-size: .88rem; }

/* related reading */
.related { margin-top: 48px; }
.related h2 { font-size: 1.6rem; }
.related__list { display: grid; gap: 10px; margin: 16px 0 0; }
.related__item, .post-list__item {
  position: relative; margin: 0;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px;
  transition: border-color .12s ease;
}
.related__item:hover, .post-list__item:hover { border-color: var(--ink); }
.related__item a, .post-list__item a { font-weight: 600; text-decoration: none; line-height: 1.35; }
.related__item a::after, .post-list__item a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.related__item:hover a, .post-list__item:hover a { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; }
.related__item p, .post-list__item p { margin-top: 4px; font-size: .92rem; color: var(--muted); }

/* blog index and author post lists */
.post-index { max-width: var(--maxw); margin-inline: auto; padding: 18px var(--gutter) 64px; }
.post-index > * { max-width: 820px; }
.post-index__head { margin-bottom: 28px; }
.post-index__head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); }
.post-index__head p { margin-top: 12px; font-size: 1.08rem; color: var(--muted); max-width: 56ch; }
.post-list { display: grid; gap: 10px; margin: 0; }
.post-list__item time { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 2px; }
.post-list__item h2 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; max-width: none; }
.post-list__item h2 a { font-weight: 400; }
.author-page__posts { margin-top: 40px; }
.author-page__posts h2 { font-size: 1.6rem; margin-bottom: 14px; }

/* blog pager (/blog/ and /blog/page/N/, markup from the engine's base index):
   chip-style links with 44px tap targets; the current page is filled ink. */
.post-index :is(.pager, .pagination, nav[aria-label*="agination" i], nav[aria-label*="pages" i]) { margin-top: 36px; }
.post-index :is(.pager, .pagination, nav[aria-label*="agination" i], nav[aria-label*="pages" i]) :is(ul, ol) {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.post-index :is(.pager, .pagination, nav[aria-label*="agination" i], nav[aria-label*="pages" i]) :is(a, [aria-current="page"]) {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; transition: border-color .12s ease, background-color .12s ease;
}
.post-index :is(.pager, .pagination, nav[aria-label*="agination" i], nav[aria-label*="pages" i]) a:hover { border-color: var(--ink); background: var(--note); }
.post-index :is(.pager, .pagination, nav[aria-label*="agination" i], nav[aria-label*="pages" i]) [aria-current="page"],
.post-index :is(.pager, .pagination, nav[aria-label*="agination" i], nav[aria-label*="pages" i]) [aria-current="page"]:hover {
  background: var(--ink); border-color: var(--ink); color: var(--white); cursor: default;
}

/* 404 */
.prose .notfound__links { list-style: none; padding-left: 0; margin-left: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prose .notfound__links li { padding-left: 0; }
.prose .notfound__links li::before { content: none; }
.article--404 { min-height: calc(100vh - 460px); }
.prose .notfound__links li + li { margin-top: 0; }
.prose .notfound__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.prose .notfound__links a:hover { background: var(--note); }

/* ================= breakpoints ================= */
@media (max-width: 399.98px) {
  .brand { font-size: .95rem; gap: 6px; }
  .brand svg { width: 28px; height: 28px; }
  .site-head__end { gap: 6px; }
  .btn--small { padding: 8px 10px; font-size: .86rem; }
}
@media (min-width: 400px) {
  .site-head__end { gap: 10px; }
}

@media (min-width: 560px) {
  .reel { flex-basis: 42%; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .btn--big { width: auto; }
  .post-cta { padding: 28px 30px 30px; }
  .tool { padding: 26px 26px 24px; }
  .tool__group { grid-template-columns: 1fr 1fr; gap: 16px 18px; align-items: end; }
  /* U16: each field spans four shared rows (label, hint, input, error), so two
     inputs side by side line up even when only one field has a hint or an error. */
  @supports (grid-template-rows: subgrid) {
    .tool__group { align-items: start; row-gap: 0; }
    .tool__field { grid-row: span 4; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 16px; }
    .tool__field:nth-last-child(-n+2) { margin-bottom: 0; }
    .tool__field > label { grid-row: 1; }
    .tool__field > .tool__hint { grid-row: 2; margin-top: 5px; }
    .tool__field > input { grid-row: 3; margin-top: 5px; align-self: start; }
    .tool__field > .tool__err { grid-row: 4; margin-top: 5px; }
  }
  .tool__results { padding: 18px 20px; }
}

@media (min-width: 768px) {
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .btn--small { padding: 9px 14px; font-size: .92rem; }
  main > section { padding-block: 72px; }
  .hero { padding-block: 22px 48px; }
  .reel { flex-basis: 30%; }
  .svc-list li { grid-template-columns: 1fr 1.25fr; align-items: baseline; }
  .svc-list .use { grid-column: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .charts { grid-template-columns: 1fr 1fr; }
  .reads { grid-template-columns: 1fr 1fr; }
  .reads__group--wide { grid-column: 1 / -1; }
  .reads__group--wide ul { grid-template-columns: 1fr 1fr; }
  .reads-foot { grid-template-columns: 1fr auto; align-items: end; }
  .split { grid-template-columns: 1fr 1fr; }
  .form { padding: 28px 26px; }
  .site-foot { padding-block: 56px 24px; }
  .site-foot__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; align-items: start; }
  .site-foot__brand { grid-column: auto; }
  .site-foot__bar { margin-top: 44px; }
  .article, .post-index { padding-top: 26px; }
  .related__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  /* cards in a row share row tracks, so name, question, the enter/get box and
     the button line up across the pair */
  @supports (grid-template-rows: subgrid) {
    .tool-cards { row-gap: 0; }
    .tool-cards > li { grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; margin-bottom: 22px; }
    .tool-cards > li:nth-last-child(-n+2) { margin-bottom: 0; }
    .tool-card { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; }
  }
  .tool-card { padding: 22px; }
}

@media (min-width: 1100px) {
  body { font-size: 1.0625rem; }
  .hero { padding-block: 16px 40px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
  .hero h1 { font-size: 4.35rem; }
  /* Six-turn thread (U10c) must still end inside a 900px-tall viewport: tighter
     rhythm and wider bubbles here only; phones keep the roomier spacing. */
  .msg__who { margin: 4px 8px 1px; }
  .thread__head { padding: 8px 4px; margin-bottom: 4px; }
  .thread__time { margin: 4px 0 2px; }
  .thread ol { gap: 2px; }
  .chips { margin-top: 8px; padding-top: 8px; }
  .chips__label { margin-bottom: 6px; }
  .typing { padding: 10px 14px; margin-top: 6px; }
  .hero__sub { font-size: 1.22rem; }
  .hero__cta { margin-top: 30px; }
  .thread { padding: 0 20px 16px; }
  .bubble { font-size: .94rem; max-width: 90%; padding: 9px 13px; }
  .ask { margin-bottom: 4px; }
  .reels { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; gap: 18px; padding-inline: 0; }
  .reel { max-width: none; }
  .svc { grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
  .svc-core { padding: 34px 32px 36px; }
  .research__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
  .charts { grid-template-columns: 1fr; }
  .chart { padding: 20px 24px 14px; }
  .chart svg { max-width: 330px; margin-inline: auto; }
  .reads { grid-template-columns: 1.15fr 1fr 1fr; gap: 28px; }
  .reads__group--wide { grid-column: auto; }
  .reads__group--wide ul { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .about-faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .about-faq .faq { margin-top: 0; }
  .about-faq > .ask { grid-column: 1 / -1; }
  .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
  .article--contact .article__main { max-width: 1080px; }
  .article--contact .contact-intro, .article--contact .contact-more { max-width: var(--measure); }
  .contact-lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: start; }
  
  .article--toc { display: grid; grid-template-columns: minmax(0, var(--measure)) 260px; justify-content: space-between; gap: 56px; align-items: start; }
  .toc-rail { display: block; position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: none; }
  .toc-rail::-webkit-scrollbar { display: none; }
  /* desktop rail lists H2s only (operator 2026-10-04): subheadings made it overflow into a scrollbar */
  .toc-rail .toc__sublist { display: none; }
}

/* ---------- service landing pages (V1 "the conversation") ----------
   service.html: the homepage hero, thread and section language re-cut per
   service; every section opens with a "You" ask. All widths share .wrap with
   the header, so the breadcrumb sits under the logo. */
.hero--lp h1 { font-size: clamp(2.3rem, 1.35rem + 4.2vw, 4rem); max-width: 15ch; }
.lp-crumb { margin-bottom: 16px; }
.diag { display: grid; gap: 22px; }
.diag__list li:first-child { border-top: 1.5px solid var(--ink); }
.diag__list h3 { font-size: 1.3rem; }
.diag__more { margin-top: 20px; }
.svc-core dd a { color: var(--white); font-weight: 600; }
.steps--n4 .step p, .steps--n6 .step p { margin-top: 6px; }
.lp-diagram { margin: 34px 0 0; max-width: 620px; }
.lp-diagram img { width: 100%; height: auto; background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; }
.lp-diagram figcaption { margin-top: 8px; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.needs { list-style: none; margin: 26px 0 0; padding: 18px 18px; display: grid; gap: 14px 36px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-card); }
.needs li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.needs svg { width: 22px; height: 22px; margin-top: 2px; }
.needs path { fill: none; stroke: var(--hot); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.needs__never { margin-top: 14px; font-size: .95rem; color: var(--muted); max-width: 70ch; }
.finds--terms li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.finds--terms b { font-size: 1.45rem; min-width: 0; }
.judge-card { background: var(--white); color: var(--ink); border-radius: var(--r-card); padding: 20px 20px 22px; }
.judge-card h3 { font-size: 1.3rem; }
.judge-card ul { margin: 12px 0 0; padding-left: 1.1em; }
.judge-card li + li { margin-top: 6px; }
.judge-card li::marker { color: var(--marker); }
.judge-card__more { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.judge-card__more a { color: var(--ink); font-weight: 600; }
.research .judge-card :focus-visible { outline-color: var(--ink); }
.fit-split { margin-top: 26px; }
.fit-split li b { display: block; }
.fit-split li + li { margin-top: 10px; }
#fit .use { margin-top: 18px; }
.faq details > div .use { margin-top: 10px; }
.fit .fit__lead { margin-top: 6px; color: var(--ink); font-size: 1rem; }
/* /services/ index: equal-height service cards, the core card dark and two wide */
.svc-cards { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.svc-cards > li { display: grid; min-width: 0; scroll-margin-top: 16px; }
.svc-card {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: var(--white); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-hard);
  padding: 22px 20px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.svc-card h3 { font-size: 1.35rem; }
.svc-card p { color: var(--muted); margin-bottom: 8px; }
a.svc-card:hover, a.svc-card:focus-visible { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; }
a.svc-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
a.svc-card:focus-visible { outline-offset: 4px; }
.svc-card--held { border-color: var(--line); box-shadow: none; }
.svc-card__go, .svc-card__soon { align-self: flex-start; margin-top: auto; font-weight: 700; }
.svc-card__go {
  display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; padding: 6px 12px;
  background: var(--marker); border: 2px solid var(--ink); border-radius: 999px;
}
.svc-card__soon { font-size: .82rem; color: var(--muted); border: 1.5px solid var(--muted); border-radius: 999px; padding: 4px 11px; }
.svc-cards__core .svc-card { background: var(--ink); color: var(--white); border-color: var(--ink); }
.svc-cards__core .svc-card h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); color: var(--white); }
.svc-cards__core .svc-card p { color: var(--ink-soft); max-width: 46ch; font-size: 1.05rem; }
.svc-cards__core .tag { align-self: flex-start; background: var(--note); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 4px; }
.svc-cards__core .svc-card__soon { color: var(--ink-soft); border-color: var(--ink-soft); }
.svc-cards__core a.svc-card:focus-visible { outline-color: var(--ink); }
@media (min-width: 640px) {
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-cards__core { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .svc-card { padding: 26px 24px; }
  .svc-cards__core .svc-card { padding: 30px 30px 28px; }
}
@media (min-width: 768px) {
  .steps--n4, .steps--n6 { grid-template-columns: repeat(2, 1fr); }
  .needs { grid-template-columns: 1fr 1fr; padding: 24px 28px; }
  .fit-split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .hero--lp h1 { font-size: 4rem; }
  .diag { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .steps--n4 { grid-template-columns: repeat(4, 1fr); }
  .steps--n6 { grid-template-columns: repeat(3, 1fr); }
  /* a page with a process diagram: steps stacked left, the diagram beside them */
  .lp-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 34px; }
  .lp-flow .steps { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lp-flow .lp-diagram { margin-top: 0; max-width: none; position: sticky; top: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .draw path { animation: none; stroke-dashoffset: 0; }
  .typing i { animation: none; opacity: .7; }
  .btn, .chip, .post, .faq summary .pm, .related__item, .post-list__item, .tool-card { transition: none; }
  a.tool-card:hover, a.tool-card:active { transform: none; }
}
}
