/* Riverwend styles, version 3 (refined 16 Nov 2026: white and blue only, medium-weight type, hairline rules,
   the diagram drawn fine in a soft panel; set beside the quiet, exact sites that lead this field).
   Riverwend styles, version 3.
   Riverwend is a boutique AI services firm: "Few clients. Well served." The page shows how a client is
   looked after and what the work is, with real things on every screen.
   - The opening carries the care line: one job drawn to scale in days, a ring for each time the client hears from us.
   - "What we do" holds four working miniatures, one per kind of work.
   Sections: fonts, tokens, base, buttons, header, hero (white, first-job promise) + care line, honest, what + bench, creed (every job),
   care, offer (prices), about (with what we run ourselves), partners, contact, footer, motion, small screens. */

/* ---- Fonts (self-hosted Instrument Sans) ---- */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/InstrumentSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/InstrumentSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/InstrumentSans-SemiBold.woff2") format("woff2"); }

/* ---- Tokens ---- */
:root {
  --ink: #0F1720; --slate: #46566A; --line: #D9E0E7; --mist: #EEF2F5; --white: #FFFFFF;
  --river: #2456D6; --river-tint: #E4ECFB; --reed: #1E7F5C;
  /* Pen: the one colour added in version 3. An editor's mark has to sit outside the palette
     to read as a mark on the work. Used for pen marks and failed rules only. 5.5 to 1 on white. */
  --pen: #C4321F;
  --on-ink-soft: #C9D3DE; --rule-on-ink: rgba(255, 255, 255, 0.16);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1360px;
  --gutter: clamp(20px, 5.333vw, 72px);
  --band: clamp(72px, 10vw, 150px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--white); overflow-x: clip; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--river); color: var(--white); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }
html:not(.js) .js-only { display: none; }
h2 { font-size: clamp(1.9rem, 2.4vw + 0.7rem, 3.25rem); line-height: 1.08; letter-spacing: -0.028em; }
.quiet { color: var(--slate); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn::after { content: "\2192"; transition: transform 0.35s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn-down::after { content: "\2193"; }
.btn-down:hover::after { transform: translateY(3px); }
.btn-river { background: var(--river); color: var(--white); }
.btn-river:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--river); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }
.btn-sm::after, button.btn::after { content: none; }
button.btn:disabled { opacity: 0.4; cursor: default; }
button.btn:disabled:hover { background: var(--ink); }
.btn-text { background: none; border: 0; padding: 6px 2px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--slate); }
.btn-text:hover { color: var(--ink); }

/* ---- Header ---- */
.site-header { position: relative; z-index: 5; background: var(--white); }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 20px; }
.logo { display: inline-flex; }
.logo img { display: block; height: 36px; width: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 30px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.nav-links a:hover { border-bottom-color: currentColor; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }


/* ---- Opening: who it suits, the motto, one sentence and one button, the lead engineer's years,
   then one example job drawn as a fine line in a soft panel ---- */
.hero { padding-block: clamp(36px, 5vw, 80px) clamp(56px, 6vw, 96px); }
.hero-for { font-size: 1rem; color: var(--slate); }
h1 { margin-top: clamp(12px, 1.2vw, 18px); font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.h1-turn { color: var(--river); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 6vw, 120px); align-items: end; margin-top: clamp(26px, 2.8vw, 40px); }
.hero-lede { max-width: 31em; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.45; color: var(--slate); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.2vw, 30px); }
.hero-first { display: grid; padding-top: 16px; border-top: 1px solid var(--line); }
.hf-label { font-size: 0.92rem; color: var(--slate); }
.hf-num { margin-top: 10px; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.hf-text { margin-top: 8px; max-width: 20em; font-size: 1rem; line-height: 1.4; color: var(--slate); text-wrap: balance; }

/* the labelled line, under "What you hear from us" */
.care-fig { margin-top: clamp(48px, 5vw, 80px); padding: clamp(22px, 3vw, 44px) clamp(18px, 3.4vw, 52px) clamp(18px, 2.4vw, 34px); background: var(--mist); border-radius: 6px; }
.care-fig figcaption { margin-bottom: clamp(18px, 2.2vw, 32px); font-size: 0.95rem; color: var(--slate); }
.care-line { display: block; width: 100%; height: auto; overflow: visible; }
.care-phone { display: none; }
.care-line text { font-family: var(--font); }
.cl-wait { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.cl-job { fill: none; stroke: var(--river); stroke-width: 5; stroke-linecap: round; }
.cl-fix { fill: none; stroke: var(--river); stroke-opacity: 0.3; stroke-width: 5; }
.cl-after { fill: none; stroke: var(--river); stroke-width: 1.5; }
.cl-care { fill: none; stroke: var(--river); stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }
.cl-you { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.cl-us { fill: var(--white); stroke: var(--river); stroke-width: 2.5; }
.cl-small-ring { stroke-width: 2; }
.cl-small { font-size: 14px; font-weight: 400; letter-spacing: 0; fill: var(--slate); }
.cl-big { font-size: 17px; font-weight: 500; fill: var(--ink); letter-spacing: -0.01em; }
.care-phone .cl-small { font-size: 12.5px; }
.care-phone .cl-big { font-size: 15.5px; }

/* ---- You could do this yourself ---- */
.honest { padding-block: 0 var(--band); }
.honest-grid { padding-top: var(--band); border-top: 1px solid var(--line); }
.honest-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 92px); align-items: start; }
.honest-copy p { margin-top: 24px; max-width: 30em; font-size: 1.16rem; color: var(--slate); }
.spares { width: 100%; border-collapse: collapse; }
.spares thead th { padding: 0 0 12px; text-align: left; font-size: 0.92rem; font-weight: 500; color: var(--slate); }
.spares tbody th, .spares td { padding: 20px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.spares tbody tr:last-child th, .spares tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.spares tbody th { width: 38%; padding-right: 20px; font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.spares td { position: relative; padding-left: 38px; font-size: 1.1rem; line-height: 1.4; }
.pen-tick { position: absolute; left: 0; top: 18px; width: 26px; height: 26px; overflow: visible; }
.pen-tick path { fill: none; stroke: var(--river); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the bench: four working miniatures */
.what { background: var(--river); color: var(--white); padding-block: var(--band); }
.what :focus-visible { outline-color: var(--white); }
.what-lede { margin-top: 20px; max-width: 34em; font-size: 1.16rem; color: rgba(255, 255, 255, 0.94); }
.bench { container-type: inline-size; margin-top: clamp(28px, 3.4vw, 48px); }
.bench .paper :focus-visible { outline-color: var(--river); }
.bench-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bench-tabs button { padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; background: transparent; color: var(--white);
  font-weight: 500; font-size: 0.95rem; line-height: 1.2; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.bench-tabs button:hover { border-color: var(--white); }
.bench-tabs button[aria-selected="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.bench-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4.4fr) minmax(0, 4.4fr); gap: 16px; margin-top: 22px; align-items: start; }
.kind { padding: 4px clamp(8px, 2vw, 36px) 0 0; }
.kind h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.08; }
.kind p { margin-top: 10px; font-size: 1.12rem; color: rgba(255, 255, 255, 0.96); }
.gets { margin-top: 16px; display: grid; gap: 6px; font-size: 1rem; }
.gets li { position: relative; padding-left: 24px; }
.gets li::before { content: ""; position: absolute; left: 1px; top: 0.48em; width: 11px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg); }
.js .bench-panel:not(.is-on) { display: none; }
html:not(.js) .bench-panel + .bench-panel { margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.34); }
.paper { background: var(--white); color: var(--ink); padding: 20px 20px 22px; border-radius: 6px; min-width: 0; }
.paper-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-weight: 600; font-size: 1.02rem; }
.tag { flex: none; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.74rem; font-weight: 500; color: var(--slate); }
.paper-hint { margin-top: 12px; font-size: 0.84rem; color: var(--slate); }
.bench-note { margin-top: 14px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.92); }
.grid { width: 100%; border-collapse: collapse; font-size: 0.94rem; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 7px 0; text-align: left; border-top: 1px solid var(--line); font-weight: 400; }
.grid thead th { padding-top: 0; border-top: 0; font-size: 0.8rem; color: var(--slate); }
.grid .num { text-align: right; }
.paper input { width: 5.4em; padding: 5px 7px; font: inherit; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink);
  background: var(--mist); border: 1.5px solid transparent; border-radius: 3px; }
.paper input:hover { border-color: var(--line); }
.paper input:focus { background: var(--white); border-color: var(--river); outline: 0; }
.paper input.is-off { border-color: var(--pen); background: var(--white); }
.asks { display: grid; gap: 6px; }
.ask { padding: 9px 12px; text-align: left; border: 1.5px solid var(--line); border-radius: 3px; background: var(--white); font-weight: 500; font-size: 0.94rem; line-height: 1.25;
  cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.ask:hover { border-color: var(--ink); }
.ask[aria-pressed="true"] { border-color: var(--river); background: var(--river-tint); }
.answer { margin-top: 14px; font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.answer.is-held { color: var(--pen); }
.answer + .ask { margin-top: 14px; }
.log { margin-top: 10px; display: grid; gap: 3px; font-size: 0.84rem; color: var(--slate); }
.log li { padding-left: 14px; position: relative; }
.log li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1.5px; background: var(--slate); }
.rules { margin-top: 14px; display: grid; gap: 6px; font-size: 0.92rem; }
.paper-head + .rules { margin-top: 0; }
.rules li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.rules svg { width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--reed); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rules li.bad { color: var(--pen); font-weight: 600; }
.rules li.bad::before { content: ""; grid-column: 1; grid-row: 1; width: 12px; height: 12px; margin: 5px 0 0 2px;
  border: 2.4px solid var(--pen); border-radius: 50%; }
.rules li.bad svg { display: none; }
.jobs { display: grid; }
.jobs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.jobs li:first-child { border-top: 0; padding-top: 0; }
.job-name { font-weight: 600; font-size: 0.96rem; }
.job-when { grid-column: 1; font-size: 0.84rem; color: var(--slate); }
.flip { grid-column: 2; grid-row: 1; justify-self: end; padding: 4px 10px; white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.flip:hover { border-color: var(--ink); }
.flip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
html:not(.js) .flip, html:not(.js) .ask { pointer-events: none; }
.job-how { grid-column: 2; grid-row: 2; justify-self: end; font-size: 0.84rem; font-weight: 500; color: var(--slate); white-space: nowrap; }
.jobs li[data-sends="true"] .job-how { color: var(--river); }
.plan { display: grid; gap: 7px; }
.plan li { display: grid; grid-template-columns: 4.8em minmax(0, 1fr) 3.9em 5.2em; gap: 8px; align-items: center; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.plan-track { position: relative; display: block; height: 12px; }
.plan-track::after { content: ""; position: absolute; left: 31.1%; top: -4px; bottom: -4px; width: 1.5px; background: var(--ink); }
.plan-bar { position: absolute; inset-block: 0; left: 0; background: rgba(70, 86, 106, 0.34); border-radius: 1px; }
.plan .act .plan-bar { background: var(--river); }
.plan-days { font-weight: 500; }
.plan-order { font-weight: 600; font-size: 0.82rem; color: var(--river); }
.inv > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.inv > div:first-child { border-top: 0; padding-top: 0; }
.inv dt { color: var(--ink); }
.inv .inv-total { font-weight: 600; border-top: 1.5px solid var(--ink); }
.inv .inv-total input { font-weight: 600; }
@container (max-width: 940px) {
  .bench-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kind { grid-column: 1 / -1; padding-bottom: 6px; }
}
@container (max-width: 600px) {
  .bench-panel { grid-template-columns: minmax(0, 1fr); }
}

/* ---- What you hear from us: four sample papers on the same day line as the opening ---- */
.care { background: var(--river-tint); padding-block: var(--band); }
.care-lede { margin-top: clamp(36px, 4.4vw, 60px); max-width: 34em; font-size: 1.16rem; color: var(--slate); }
.notes { position: relative; display: grid; grid-template-columns: 4.4fr 3.2fr 4.6fr 3.2fr; gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.note { position: relative; min-width: 0; }
.note-day { position: relative; padding-left: 30px; margin-bottom: 14px; font-weight: 600; font-size: 1.06rem; }
.note-day::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3.5px solid var(--river); }
.note-day span { display: block; font-size: 0.86rem; font-weight: 500; color: var(--slate); }
.letter { padding: 22px 22px 24px; font-size: 0.96rem; line-height: 1.45; box-shadow: 0 1px 2px rgba(15, 23, 32, 0.06), 0 12px 28px -20px rgba(15, 23, 32, 0.35); }
.letter > p + p { margin-top: 10px; }
.letter-job { font-size: 1.14rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.letter-label { margin-top: 16px; margin-bottom: 6px; font-size: 0.8rem; font-weight: 500; color: var(--slate); }
.letter .rules { margin-top: 0; }
.letter-foot { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; }
.letter-foot span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.letter-rows > div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.letter-rows > div:first-child { border-top: 0; padding-top: 0; }
.letter-rows dt { font-size: 0.82rem; font-weight: 500; color: var(--slate); padding-top: 2px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-bottom: 14px; font-size: 0.82rem; font-weight: 600; }
.chain span { padding: 5px 9px; border: 1.5px solid var(--ink); border-radius: 3px; }
.chain span:nth-child(2) { border-color: var(--river); background: var(--river); color: var(--white); }
.chain span + span { margin-left: 22px; position: relative; }
.chain span + span::before { content: "\2192"; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); color: var(--ink); font-weight: 400; }
.care-own { margin-top: clamp(36px, 4.4vw, 64px); max-width: 28em; font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.care-full { margin-top: clamp(28px, 3.4vw, 48px); max-width: 30em; font-size: 1.16rem; color: var(--slate); }

/* ---- Start small, then stay: the first job, then two monthly levels drawn on one scale ---- */
.offer { padding-block: 0 var(--band); }
.offer > .wrap > h2 { padding-top: var(--band); border-top: 1px solid var(--line); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(32px, 5vw, 92px); margin-top: clamp(36px, 4.4vw, 64px); align-items: start; }
.offer h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: 0; color: var(--slate); }
.first-price { margin-top: 8px; font-size: clamp(2.6rem, 4.4vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.first > p { max-width: 24em; }
.first-price + p { margin-top: 14px; font-size: 1.16rem; }
.first-line { position: relative; height: 30px; margin-top: 28px; margin-right: 15px; }
.first-band { position: absolute; inset: 0; background: var(--river-tint); border: 1.5px solid var(--river); border-right: 0; }
.first-ring { position: absolute; right: -15px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 5px solid var(--river); }
.first > .first-pay { display: flex; justify-content: space-between; gap: 12px; max-width: none; margin-top: 10px; font-size: 0.88rem; font-weight: 600; }
.first-pay span:first-child { font-weight: 500; color: var(--slate); }
.first-pay + p { margin-top: 18px; font-size: 1.16rem; }
.monthly > h3 + p { margin-top: 8px; font-size: 1.16rem; }
.levels { margin-top: 26px; }
.levels-head, .level { display: grid; grid-template-columns: 8.4rem minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 0 clamp(14px, 1.8vw, 28px); }
.levels-head { padding-bottom: 10px; font-size: 0.86rem; font-weight: 500; color: var(--slate); }
.level { padding-block: 22px 24px; border-top: 1px solid var(--line); align-items: baseline; }
.level:last-of-type { border-bottom: 1px solid var(--line); }
.level h4 { margin: 0; font-size: clamp(1.3rem, 1.75vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.level p { font-size: 1.04rem; line-height: 1.3; font-weight: 500; }
.lv-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lanes { display: grid; gap: 5px; margin-top: 12px; }
.lane { display: flex; gap: 5px; }
.lane i, .levels-key i { display: block; height: 16px; width: 22px; border: 1.5px solid var(--river); background: var(--river-tint); }
.lane i.on, .levels-key i.on { width: 58px; background: var(--river); }
.lv-price p { font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lv-bar { display: block; height: 16px; margin-top: 12px; background: var(--river); }
.b-steady { width: 53.57%; } .b-close { width: 100%; }   /* 1,500 and 2,800 on one scale */
.levels-key { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.84rem; color: var(--slate); }
.levels-key i { height: 12px; width: 16px; }
.levels-key i.on { width: 30px; }
.levels-key i + i, .levels-key i:not(.on) { margin-left: 10px; }
.levels-both { margin-top: 22px; font-size: 1.16rem; font-weight: 500; letter-spacing: -0.01em; }
.levels-stop { margin-top: 8px; max-width: 34em; color: var(--slate); }

/* ---- What comes with every job ---- */
.creed { background: var(--white); color: var(--ink); padding-block: clamp(56px, 7vw, 104px); }
.creed h2 { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--slate); }
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 48px); margin-top: clamp(28px, 3vw, 44px); }
.kit li { display: grid; gap: 18px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.kit-mark { width: clamp(40px, 3.6vw, 50px); height: auto; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kit-mark .km-fill { fill: var(--river-tint); stroke: none; }
.kit-mark .km-hole { fill: var(--white); }
.kit-mark .km-tick { stroke: var(--river); stroke-width: 2.2; }
.kit-mark .km-play { fill: var(--river); stroke: none; }
.kit-mark .km-dot { fill: var(--river); stroke: var(--white); stroke-width: 3; }
.kit p { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.02em; }
.kit strong { display: block; font-weight: 500; color: var(--ink); }
.kit span { display: block; color: var(--slate); }
.kit .nb { font-style: normal; white-space: nowrap; }

.own-list li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); font-size: 1.08rem; color: var(--slate); }
.own-list li:last-child { border-bottom: 1px solid var(--line); }
.own-list strong { font-weight: 500; color: var(--ink); }
.own-list li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 13px; height: 7px; border-left: 2px solid var(--river); border-bottom: 2px solid var(--river); transform: rotate(-45deg); }

/* ---- For partner firms ---- */
.partners { background: var(--mist); padding-block: var(--band); }
.partners-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 92px); align-items: start; }
.partners h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 3.3rem); }
.partners-copy p { margin-bottom: 28px; max-width: 32em; font-size: 1.2rem; line-height: 1.5; }

/* ---- About ---- */
.about { padding-block: 0 var(--band); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 92px); align-items: start; padding-top: var(--band); border-top: 1px solid var(--line); }
.about-copy { margin-top: 22px; }
.about-own { padding-top: 6px; }
.about-own h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.15; }
.about-own > p { margin-top: 8px; font-size: 1.06rem; color: var(--slate); }
.about-own .own-list { margin-top: 16px; }
.about h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 3.3rem); }
.about-copy { max-width: 34em; font-size: 1.16rem; }
.about-lead { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.about-copy p:not(.about-lead) { color: var(--slate); }
.about-copy p + p { margin-top: 1em; }
.closing { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 96px); max-width: 17em; font-size: clamp(1.8rem, 3.6vw, 3.4rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.closing-turn { color: var(--river); }

/* ---- Contact ---- */
.contact { position: relative; background: var(--river); color: var(--white); padding-block: clamp(84px, 12vw, 180px); overflow: hidden; }
.contact-inner { position: relative; }
.contact h2 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); letter-spacing: -0.035em; line-height: 1.02; }
.contact-inner > p { margin: 24px 0 32px; max-width: 30em; font-size: clamp(1.08rem, 1.4vw, 1.3rem); color: rgba(255, 255, 255, 0.94); }
.contact-lines { position: absolute; top: calc(-1 * clamp(84px, 12vw, 180px)); left: 0; width: 100%; height: calc(100% + 2 * clamp(84px, 12vw, 180px)); max-width: none; pointer-events: none; }
.contact-lines path { fill: none; stroke: var(--white); stroke-opacity: 0.5; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.contact .btn, .contact h2, .contact-inner > p, .noscript-line { position: relative; }
.noscript-line { margin-top: 18px; font-weight: 500; }
.next { position: relative; margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.4); max-width: 58em; }
.next-head { font-weight: 500; font-size: 1.06rem; }
.next-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px clamp(18px, 2.4vw, 40px); margin-top: 14px; font-size: 1rem; line-height: 1.4; color: rgba(255, 255, 255, 0.96); }
.next-steps span { display: block; margin-bottom: 4px; font-size: 0.84rem; font-weight: 500; color: var(--white); }

/* ---- Footer ---- */
.site-footer { background: var(--white); color: var(--ink); padding-block: 44px 34px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer .logo img { height: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { text-decoration: none; font-size: 0.95rem; color: var(--slate); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--slate); }

/* ---- Not found page ---- */
.lost { padding-block: clamp(72px, 12vw, 170px); }
.lost h1 { font-size: clamp(2.5rem, 7vw, 5.4rem); max-width: 12em; }
.lost p { margin: 22px 0 30px; font-size: 1.2rem; color: var(--slate); }
.lost-line { display: block; width: 100%; height: clamp(70px, 9vw, 130px); max-width: none; margin-top: clamp(40px, 6vw, 84px); overflow: visible; }
.lost-line path { fill: none; stroke: var(--river); stroke-width: 6px; vector-effect: non-scaling-stroke; stroke-linecap: round; }

/* ---- Motion: the opening settles once; nothing loops; everything else answers what the reader does ---- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .bench-panel.is-on { animation: settle 0.4s var(--ease) both; }
  .js .hero .wrap > * { animation: rise 0.8s var(--ease) both; }
  .js .hero .wrap > :nth-child(2) { animation-delay: 0.06s; }
  .js .hero .wrap > :nth-child(3) { animation-delay: 0.14s; }
  .js .hero .wrap > :nth-child(4) { animation-delay: 0.24s; }
  .js .care-line .cl-stop { transform-box: fill-box; transform-origin: center; animation: pop 0.45s var(--ease) both; }
  .js .care-line .s1 { animation-delay: 0.5s; } .js .care-line .s2 { animation-delay: 0.6s; }
  .js .care-line .s3 { animation-delay: 0.7s; } .js .care-line .s4 { animation-delay: 0.75s; }
  .js .care-line .s5 { animation-delay: 0.8s; } .js .care-line .s6 { animation-delay: 0.9s; }
  .js .care-line .s7 { animation-delay: 1s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Small screens ---- */
@media (max-width: 899px) {
  .care-desk { display: none; }
  .care-phone { display: block; max-width: 420px; }
  .honest-grid, .partners-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .levels-head { display: none; }
  .level { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
  .level { align-items: start; }
  .level h4 { grid-column: 1 / -1; }
  .lv-label { position: static; display: block; width: auto; height: auto; clip-path: none; margin-bottom: 2px; font-size: 0.82rem; font-weight: 500; color: var(--slate); }
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .next-steps { grid-template-columns: minmax(0, 1fr); }
  .spares tbody th { width: 34%; font-size: 1.2rem; }
  .spares td { font-size: 1rem; padding-left: 32px; }
  .bench-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bench-tabs button { padding: 11px 8px; font-size: 0.9rem; }

  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0 12px; }
  .js .nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }


  .contact-lines { display: none; }
}
@media (max-width: 699px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
  .btn-sm { width: auto; }
}
