/* Service families (audit 2, 2026-11-13): lead blocks and card treatments per family, markup in
   includes/family-blocks.php and pages/expanded.php. Nothing here is clickable except the work example link
   (styled in v2.css), so no hover effects. Plain hex/rgba only. */

/* ---------- Build: "What you get" board ---------- */
.v-lead .v-head { margin-bottom: 32px; }
.v-lead__main > .v-head:last-child { margin-bottom: 0; }
.v-board__panel { border: 1px solid #e2e8f0; border-radius: 18px; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.08); overflow: hidden; }
.v-board__bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #0b1220; }
.v-board__dots { display: inline-flex; gap: 6px; }
.v-board__dots i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.v-board__dots i:first-child { background: #f5b82e; }
.v-board__dots i:nth-child(2) { background: #2dd4bf; }
.v-board__name { font: 600 12px/1.2 var(--v-mono); letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1; }
.v-board__items { margin: 0; padding: 6px 22px; list-style: none; }
.v-board__item { display: grid; grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid #eef2f6; }
.v-board__item:first-child { border-top: 0; }
.v-board__item:not(:has(.v-lic)) { grid-template-columns: minmax(0, 1fr) 22px; }
.v-board__text { font: 500 16.5px/1.5 var(--v-sans); color: var(--v-text); }
.v-board__tick { width: 22px; height: 22px; fill: #e6f4f1; stroke: #0d9488; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v-board__tick path { fill: none; stroke-width: 2; }
.v-lead--build .v-workex { margin: 0; }
@media (min-width: 1001px) {
  /* No work example: heading left, board right. */
  .v-lead__grid:not(.v-lead__grid--work) .v-lead__main { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
  .v-lead__grid:not(.v-lead__grid--work) .v-head { margin: 0; }
}
@media (min-width: 1100px) {
  /* With a work example: heading + board left, the labelled shot right. */
  .v-lead__grid--work { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .v-lead__grid--work .v-workex { padding-top: 6px; }
  .v-lead__grid--work .v-workex__link { margin-left: auto; margin-right: auto; }
}
@media (max-width: 1099px) {
  .v-lead__grid--work .v-workex { margin-top: 40px; }
}

/* ---------- Build cards: one spec sheet, a row per card ---------- */
.v-spec { border: 1px solid #e2e8f0; border-radius: 22px; background: #ffffff; }
.v-spec__item { display: grid; grid-template-columns: 36px minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 24px; align-items: start; padding: 28px 32px; border-top: 1px solid #e2e8f0; }
.v-spec__item:first-child { border-top: 0; }
.v-spec__item h3 { padding-top: 5px; font: 600 19px/1.35 var(--v-sans); }
.v-spec__item p { padding-top: 5px; font: 400 16px/1.6 var(--v-sans); color: var(--v-slate); }
.v-section--soft .v-spec .v-lic { background: #e6f4f1; }
@media (max-width: 760px) {
  .v-spec__item { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 14px; padding: 22px 20px; }
  .v-spec__item p { grid-column: 2; padding-top: 0; }
}

/* ---------- Grow cards: three levers, open columns under a teal rule ---------- */
.v-levers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.v-levers__item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding-top: 24px; border-top: 3px solid #0d9488; }
.v-levers__item h3 { font: 600 19px/1.3 var(--v-sans); }
.v-levers__item p { grid-column: 1 / -1; font: 400 16px/1.6 var(--v-sans); color: var(--v-slate); }
@media (max-width: 900px) {
  .v-levers { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Grow: baseline-to-report track ---------- */
.v-track { --pad: 40px; --gap: 32px; position: relative; padding: 76px var(--pad) 40px; border: 1px solid #e2e8f0; border-radius: 22px;
  background-color: #ffffff;
  background-image: repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0 1px, rgba(255, 255, 255, 0) 1px 48px), repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, rgba(255, 255, 255, 0) 1px 48px); }
.v-track__steps { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.v-track__steps::before { content: ""; position: absolute; left: 10px; width: calc((100% + var(--gap)) / var(--n) * (var(--n) - 1)); top: 9px; height: 2px; background: #99e1d6; }
.v-track__step { position: relative; }
.v-track__dot { position: relative; display: block; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; border: 2px solid #0d9488; box-shadow: 0 0 0 5px #ffffff; }
.v-track__step--start .v-track__dot { background: #f5b82e; border-color: #f5b82e; box-shadow: 0 0 0 5px #ffffff, 0 0 0 7px rgba(245, 184, 46, 0.35); }
.v-track__step--end .v-track__dot { background: #0d9488; }
.v-track__step h3 { margin-top: 22px; font: 600 19px/1.3 var(--v-sans); }
.v-track__step p { margin-top: 8px; font: 400 15.5px/1.6 var(--v-sans); color: var(--v-slate); }
/* Dashed loop from the last station back to the second: the cycle repeats after each report. */
.v-track__loop { position: absolute; top: 30px; height: 46px; overflow: visible;
  left: calc(var(--pad) + (100% - 2 * var(--pad) + var(--gap)) / var(--n) + 10px);
  width: calc((100% - 2 * var(--pad) + var(--gap)) / var(--n) * (var(--n) - 2)); }
.v-track__loop path { fill: none; stroke: #0d9488; stroke-width: 1.6; stroke-dasharray: 5 5; }
.v-track--loop::after { content: ""; position: absolute; top: 69px; left: calc(var(--pad) + (100% - 2 * var(--pad) + var(--gap)) / var(--n) + 10px); width: 0; height: 0; margin-left: -5px;
  border-left: 5px solid rgba(13, 148, 136, 0); border-right: 5px solid rgba(13, 148, 136, 0); border-top: 7px solid #0d9488; }
@media (max-width: 1000px) {
  .v-track { --pad: 28px; }
}
@media (max-width: 760px) {
  /* Phones: one column, the line runs down through the dots; no loop. */
  .v-track { padding: 28px 22px 8px 22px; }
  .v-track__loop, .v-track--loop::after { display: none; }
  .v-track__steps { grid-template-columns: 1fr; gap: 0; }
  .v-track__steps::before { display: none; }
  .v-track__step:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: -10px; width: 2px; background: #99e1d6; }
  .v-track__step { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 18px; padding-bottom: 24px; }
  .v-track__dot { grid-row: 1 / span 2; }
  .v-track__step h3 { margin-top: 0; }
}

/* ---------- Solutions: annotated wireframe (includes/wireframes.php) ---------- */
.v-wf { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.v-wf__stage { padding: 40px; border-radius: 24px; background-color: #f6f1e7;
  background-image: radial-gradient(circle at 88% 12%, rgba(245, 184, 46, 0.28) 0 70px, rgba(245, 184, 46, 0) 71px), radial-gradient(circle at 6% 96%, rgba(13, 148, 136, 0.22) 0 110px, rgba(13, 148, 136, 0) 111px); }
.v-wf__screen { position: relative; }
.v-wf__svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(11, 18, 32, 0.16)); }
.v-wf__mark, .v-wf__num { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f5b82e; color: #0b1220; font: 700 15px/1 var(--v-sans); }
.v-wf__mark { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px #ffffff, 0 3px 10px rgba(11, 18, 32, 0.35); }
.v-wf__notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.v-wf__notes li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: start; font: 400 17px/1.55 var(--v-sans); color: var(--v-slate); }
.v-wf__notes li > span:last-child { padding-top: 4px; }
.v-wf__notes strong { display: block; margin-bottom: 2px; color: var(--v-text); font-weight: 600; }
@media (max-width: 1000px) {
  .v-wf { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .v-wf__stage { margin: 0 -8px; padding: 18px 14px; border-radius: 18px; }
  .v-wf__mark, .v-wf__num { width: 26px; height: 26px; font-size: 14px; }
  .v-wf__mark { box-shadow: 0 0 0 3px #ffffff, 0 2px 6px rgba(11, 18, 32, 0.35); }
  .v-wf__notes li { grid-template-columns: 26px minmax(0, 1fr); gap: 14px; font-size: 16px; }
  .v-wf__notes li > span:last-child { padding-top: 2px; }
}

/* ---------- Page endings (audit 3): build = recent builds, grow = report card, solution = CTA recap ---------- */
/* Build: three portfolio screens, each a real link to /portfolio. */
.v-recent__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.v-recent__head h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--v-sans); letter-spacing: -0.03em; }
.v-page a.v-recent__all { color: var(--v-teal-d); font: 600 16px/1.4 var(--v-sans); text-decoration: none; }
.v-page a.v-recent__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.v-recent__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.v-page a.v-recent__item { display: block; color: var(--v-text); text-decoration: none; border-radius: 16px; }
.v-recent__shot { display: block; aspect-ratio: 8 / 5; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #f1f5f9; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.v-recent__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v-recent__cat { display: block; margin-top: 14px; font: 600 12px/1.3 var(--v-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--v-slate); }
.v-recent__item strong { display: block; margin-top: 4px; font: 600 17px/1.35 var(--v-sans); }
.v-page a.v-recent__item:hover .v-recent__shot { border-color: #5eead4; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); }
.v-page a.v-recent__item:hover strong { color: var(--v-teal-d); }
.v-page a.v-recent__item:focus-visible { outline: 2px solid var(--v-teal); outline-offset: 4px; }
@media (max-width: 760px) {
  .v-recent__list { grid-template-columns: 1fr; gap: 20px; }
  .v-page a.v-recent__item { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .v-recent__shot { grid-row: 1 / span 2; border-radius: 10px; }
  .v-recent__cat { margin-top: 0; align-self: end; }
  .v-recent__item strong { align-self: start; }
}

/* Grow: deliverables as a report card. Nothing clickable. */
.v-report-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.v-report-wrap .v-head { margin: 0; }
.v-report { border: 1px solid #e2e8f0; border-radius: 18px; background: #ffffff; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07); overflow: hidden; }
.v-report__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 3px solid #0d9488; background: #f8fafc; }
.v-report__label { font: 600 15px/1.3 var(--v-sans); color: var(--v-text); }
.v-report__kind { font: 600 12px/1.2 var(--v-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--v-slate); }
.v-report__rows { margin: 0; padding: 4px 22px; list-style: none; }
.v-report__rows li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px dashed #e2e8f0; }
.v-report__rows li:first-child { border-top: 0; }
.v-report__rows li:not(:has(.v-lic)) { grid-template-columns: minmax(0, 1fr) auto; }
.v-report__text { font: 500 16px/1.5 var(--v-sans); color: var(--v-text); }
.v-report__tick { width: 20px; height: 20px; fill: none; stroke: #0d9488; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) {
  .v-report-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .v-report__top, .v-report__rows { padding-left: 16px; padding-right: 16px; }
  .v-report__rows li { gap: 12px; }
}

/* Solution: the wireframe's numbered items beside the CTA. */
.v-cta--recap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.v-cta--recap .v-cta__actions { margin-top: 28px; }
.v-recap { padding: 24px 26px; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 18px; background: rgba(15, 23, 42, 0.55); }
.v-recap__title { font: 600 12px/1.2 var(--v-mono); letter-spacing: .08em; text-transform: uppercase; color: #2dd4bf; }
.v-recap__list { display: grid; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.v-recap__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; font: 400 16px/1.5 var(--v-sans); color: #e2e8f0; }
.v-recap__list .v-wf__num { width: 28px; height: 28px; font-size: 14px; }
.v-recap__list li > span:last-child { padding-top: 3px; }
@media (max-width: 1000px) {
  .v-cta--recap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .v-recap { padding: 20px 18px; }
}

/* Related services, one compact row style per family (all real links). */
.v-rel { margin: 0; padding: 0; list-style: none; }
.v-page a.v-rel__a { color: var(--v-text); text-decoration: none; }
.v-rel__a strong { font: 600 16px/1.35 var(--v-sans); }
.v-rel__a span { display: block; margin-top: 4px; font: 400 14px/1.5 var(--v-sans); color: var(--v-slate); }
.v-page a.v-rel__a:focus-visible { outline: 2px solid var(--v-teal); outline-offset: 3px; border-radius: 8px; }
/* build: an index row, columns divided by hairlines, arrow after the name */
.v-rel--index { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-top: 2px solid #0b1220; }
.v-rel--index li + li { border-left: 1px solid #e2e8f0; }
.v-rel--index .v-rel__a { display: block; height: 100%; padding: 18px 20px 6px; }
.v-rel--index li:first-child .v-rel__a { padding-left: 0; }
.v-rel--index strong::after { content: " →"; color: var(--v-teal-d); }
.v-page .v-rel--index a.v-rel__a:hover strong { color: var(--v-teal-d); text-decoration: underline; text-underline-offset: 3px; }
/* grow: arrow pills in one line */
.v-rel--pills { display: flex; flex-wrap: wrap; gap: 10px; }
.v-rel--pills .v-rel__a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 20px; border-radius: 999px; background: #0b1220; }
.v-page .v-rel--pills a.v-rel__a { color: #ffffff; }
.v-rel--pills strong { font-size: 15px; }
.v-rel--pills strong::after { content: "→"; margin-left: 10px; color: #2dd4bf; }
.v-page .v-rel--pills a.v-rel__a:hover { background: #0f766e; }
.v-page .v-rel--pills a.v-rel__a:hover strong::after { color: #ffffff; }
/* solution: a ruled two-column list, teal bar on the left of each link */
.v-rel--ruled { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.v-rel--ruled li { border-bottom: 1px solid #e2e8f0; }
.v-rel--ruled .v-rel__a { display: block; margin: 14px 0; padding-left: 14px; border-left: 3px solid #99e1d6; }
.v-page .v-rel--ruled a.v-rel__a:hover { border-left-color: #0d9488; }
.v-page .v-rel--ruled a.v-rel__a:hover strong { color: var(--v-teal-d); }
@media (max-width: 1000px) {
  .v-rel--index { grid-template-columns: 1fr 1fr; }
  .v-rel--index li + li { border-left: 0; }
  .v-rel--index li { border-bottom: 1px solid #e2e8f0; }
  .v-rel--index .v-rel__a, .v-rel--index li:first-child .v-rel__a { padding: 16px 16px 14px 0; }
}
@media (max-width: 600px) {
  .v-rel--index, .v-rel--ruled { grid-template-columns: 1fr; }
}
