/* Services hub layer (/services/). Loads after style.css.
   Service finder, working-paper signs, sticky illustration stage, close
   checklist. Patterns follow the homepage (home.css) but are copied, not
   imported, and every class is prefixed sv- so nothing collides. */

.sv-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sv-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); flex: none; }

/* ---------- Shared head variants ---------- */
.sv-head { max-width: 760px; margin-bottom: clamp(2rem, 4.5vw, 3rem); }
.sv-head h2 { font-size: var(--fs-h2); line-height: 1.02; max-width: 20ch; }
.sv-head .lead { max-width: 56ch; margin: 0; }
.sv-head--side { max-width: none; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.section--ink .sv-head .lead { color: #9DAAB9; }

/* ---------- App-window title bar (shared by finder, stage, checklist) ---------- */
.sv-bar { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #F8FAFB; }
.sv-bar__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--accent); flex: none; }
.sv-bar__ico .sv-ico { width: 17px; height: 17px; stroke-width: 2; }
.sv-bar__t { font: 600 .875rem/1.2 var(--sans); color: var(--ink); margin: 0; letter-spacing: 0; }
.sv-bar__n { margin-left: auto; font: 500 .8125rem/1 var(--sans); color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-bar__n b { color: var(--ink); }
.sv-live { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font: 600 .75rem/1 var(--sans); color: var(--accent-dark); }
.sv-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: svPulse 2s infinite; }
@keyframes svPulse { 0% { box-shadow: 0 0 0 0 rgba(0,168,114,.45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(0,168,114,0); } }

/* ---------- Hero + finder ---------- */
.sv-finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy fq" "copy res"; grid-template-rows: auto 1fr; gap: 14px clamp(2rem, 4vw, 3.5rem); align-items: start; scroll-margin-top: 90px; }
.sv-hero__copy { grid-area: copy; padding-top: 1rem; position: sticky; top: 100px; }
.sv-hero__copy h1 { font-size: var(--fs-h1) !important; margin-bottom: .45em; }
.sv-hero__copy .lead { max-width: 50ch; margin-bottom: 1.5rem; }
.sv-fq-wrap { grid-area: fq; }
.sv-fres { grid-area: res; }
.sv-fq-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -45px rgba(13,27,42,.35); }
.sv-track { display: block; height: 4px; background: var(--surface); }
.sv-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.sv-fq { list-style: none; margin: 0; padding: 0; counter-reset: fq; }
.sv-fq li { counter-increment: fq; position: relative; margin: 0; padding: 1.25rem 1.5rem 1.3rem 4.25rem; border-top: 1px solid var(--line); transition: background .25s; }
.sv-fq li:first-child { border-top: 0; }
.sv-fq li::before { content: counter(fq); position: absolute; left: 1.5rem; top: 1.2rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font: 600 .8125rem/1 var(--sans); color: var(--slate); transition: all .25s; }
.sv-fq li.is-set::before { content: '\2713'; background: var(--ink); border-color: var(--ink); color: var(--accent); }
.sv-fq__q { margin: .2rem 0 .8rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.sv-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-opts button { font: 600 .875rem/1.2 var(--sans); padding: .65rem .9rem; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--slate); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sv-opts button:hover { border-color: var(--ink); color: var(--ink); }
.sv-opts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.sv-fres { background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(1.5rem, 3vw, 2rem); }
.sv-fres__k { display: flex; align-items: center; gap: .6rem; font: 600 .875rem/1 var(--sans); color: #9DAAB9; margin: 0 0 1rem; }
.sv-fres__k::before { content: ''; width: 22px; height: 6px; border-block: 2px solid var(--accent); }
.sv-fres__h { font: 700 var(--fs-h3)/1.25 var(--display); letter-spacing: -.005em; margin: 0 0 1.25rem; color: #fff; }
.sv-short { list-style: none; margin: 0 0 1.1rem; padding: 0; counter-reset: sh; }
.sv-short li { counter-increment: sh; margin: 0; border-top: 1px solid #22364D; animation: svRise .35s ease both; }
.sv-short a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .15rem .75rem; padding: .85rem 0; text-decoration: none; color: #C3CCD8; font-size: .875rem; line-height: 1.5; }
.sv-short a::before { content: counter(sh); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); font: 700 .8125rem/1 var(--sans); }
.sv-short b { color: #fff; font-weight: 600; font-size: 1rem; }
.sv-short a:hover b { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.sv-short a:focus-visible { outline-color: var(--accent); }
.sv-fres__later { font-size: .875rem; color: #9DAAB9; border-top: 1px solid #22364D; padding-top: .9rem; margin: 0 0 1.25rem; }
.sv-fres__later a { color: #fff; }
.sv-fres__later a:hover { color: var(--accent); }
.sv-fres__fine { font-size: .8125rem; color: #9DAAB9; margin: .9rem 0 0; }
@keyframes svRise { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Working paper (signs) ---------- */
.sv-wp { background: #fff; border: 1px solid #22364D; border-radius: 14px; overflow: hidden; color: var(--ink); }
.sv-wp__head, .sv-wp__row { display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.3fr); gap: 1.5rem; padding: 1.3rem 1.5rem; align-items: start; }
.sv-wp__head { background: var(--ink-800); color: #9DAAB9; font: 500 .8125rem/1 var(--sans); padding-block: .9rem; }
.sv-wp__row { border-top: 1px solid var(--line); transition: background .2s; }
.sv-wp__row:hover { background: #F8FAFB; }
.sv-wp__ref { font: 600 .875rem/1.6 var(--sans); color: var(--negative); font-variant-numeric: tabular-nums; }
.sv-wp__row h3 { font: 700 var(--fs-h3)/1.25 var(--display); margin: 0; color: var(--ink); }
.sv-wp__row p { margin: 0; color: var(--slate); font-size: .9375rem; }
.sv-wp__after { margin: 1.5rem 0 0; font-weight: 600; }
.sv-wp__after a { color: #fff; }
.sv-wp__after a:hover { color: var(--accent); }

/* ---------- Six services: sticky stage + list ---------- */
.sv-side { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sv-side__stick { position: sticky; top: max(96px, calc(50vh - 220px)); }
.sv-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(13,27,42,.4); min-height: 440px; overflow: hidden; }
@media (min-width: 961px) and (max-height: 820px) { .sv-side .sv-stage { zoom: .85; } .sv-side__stick { top: max(84px, calc(50vh - 190px)); } }
@media (min-width: 961px) and (max-height: 660px) { .sv-side .sv-stage { zoom: .7; } }
.sv-stage__note { position: absolute; right: 1rem; bottom: .7rem; margin: 0; font-size: .75rem; color: var(--muted); }
.sv-ill { position: absolute; inset: 53px 0 0; padding: 1.25rem 1.25rem 2rem; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; pointer-events: none; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.sv-ill.is-on { opacity: 1; transform: none; }
.sv-ill__cap { margin: 0 0 .9rem; color: var(--slate); font-size: .8125rem; }
.sv-ill__foot { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; color: var(--positive); font-weight: 600; opacity: 0; }
.sv-ill.is-on .sv-ill__foot { animation: svFade .4s ease 1.5s both; }
@keyframes svFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes svDraw { to { stroke-dashoffset: 0; } }
@keyframes svPop { from { transform: scale(.6); opacity: 0; } }
.sv-ill .out { color: var(--negative); }

.sv-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 1rem; }
.sv-cal b { text-align: center; color: #8C98A8; font-weight: 500; font-size: .6875rem; }
.sv-cal span { display: grid; place-items: center; height: 26px; border-radius: 6px; background: var(--surface); color: var(--slate); }
.sv-cal__close { background: var(--ink) !important; color: #fff !important; line-height: 1; font-weight: 600; }
.sv-cal__close small { font-size: .5rem; color: var(--accent); }
.sv-ill.is-on .sv-cal__close { animation: svPop .5s cubic-bezier(.2,1.6,.4,1) .3s both; }
.sv-spark { margin: 0 0 .75rem; }
.sv-spark span { display: block; color: var(--slate); margin-bottom: .35rem; }
.sv-spark svg { width: 100%; height: auto; overflow: visible; }
.sv-spark__area { fill: var(--accent-soft); opacity: 0; }
.sv-spark__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.sv-spark__dot { fill: var(--ink); stroke: var(--accent); stroke-width: 3; opacity: 0; }
.sv-ill.is-on .sv-spark__line { animation: svDraw 1s cubic-bezier(.4,0,.2,1) .2s forwards; }
.sv-ill.is-on .sv-spark__area { animation: svFade .6s ease .9s forwards; }
.sv-ill.is-on .sv-spark__dot { animation: svFade .3s ease 1.1s forwards; }
.sv-pl div { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--slate); }
.sv-pl b { color: var(--ink); font-weight: 500; }
.sv-pl__tot { border-bottom: 3px double var(--ink) !important; }
.sv-pl__tot span, .sv-pl__tot b { color: var(--ink); font-weight: 700 !important; }

.sv-ringrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sv-ring { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.sv-ring circle { fill: none; stroke: var(--surface); stroke-width: 7; }
.sv-ring .sv-ring__fg { stroke: var(--positive); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sv-ill.is-on .sv-ring__fg { animation: svDraw 1.3s linear .1s forwards; }
.sv-ringrow b { display: block; font: 800 1.5rem/1 var(--display); color: var(--ink); }
.sv-ringrow span { color: var(--slate); }
.sv-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sv-months span { display: grid; place-items: center; height: 46px; border-radius: 8px; background: #FDEEE9; color: var(--negative); font-weight: 500; }
.sv-ill.is-on .sv-months span { animation: svMonth .35s ease both; }
@keyframes svMonth { to { background: #DDF3EA; color: var(--positive); } }
.sv-ill.is-on .sv-months span:nth-child(2) { animation-delay: .1s; }
.sv-ill.is-on .sv-months span:nth-child(3) { animation-delay: .2s; }
.sv-ill.is-on .sv-months span:nth-child(4) { animation-delay: .3s; }
.sv-ill.is-on .sv-months span:nth-child(5) { animation-delay: .4s; }
.sv-ill.is-on .sv-months span:nth-child(6) { animation-delay: .5s; }
.sv-ill.is-on .sv-months span:nth-child(7) { animation-delay: .6s; }
.sv-ill.is-on .sv-months span:nth-child(8) { animation-delay: .7s; }
.sv-ill.is-on .sv-months span:nth-child(9) { animation-delay: .8s; }
.sv-ill.is-on .sv-months span:nth-child(10) { animation-delay: .9s; }
.sv-ill.is-on .sv-months span:nth-child(11) { animation-delay: 1s; }
.sv-ill.is-on .sv-months span:nth-child(12) { animation-delay: 1.1s; }

.sv-post div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--slate); }
.sv-post em { font-style: normal; padding: .3rem .5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); opacity: 0; }
.sv-post em::before { content: '\2192  '; }
.sv-ill.is-on .sv-post em { animation: svFade .35s ease both; }
.sv-ill.is-on .sv-post div:nth-child(2) em { animation-delay: .3s; }
.sv-ill.is-on .sv-post div:nth-child(3) em { animation-delay: .6s; }
.sv-ill.is-on .sv-post div:nth-child(4) em { animation-delay: .9s; }

.sv-bills div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .75rem; padding: .6rem .5rem; border-bottom: 1px solid var(--line); color: var(--slate); }
.sv-bills b { color: var(--ink); font-weight: 500; }
.sv-bills em { position: absolute; right: 5.5rem; top: 50%; translate: 0 -50%; font-style: normal; font-size: .6875rem; padding: .25rem .45rem; border-radius: 4px; background: var(--negative); color: #fff; opacity: 0; }
.sv-ill.is-on .sv-bills .is-dup { animation: svDup .5s ease .6s both; }
.sv-ill.is-on .sv-bills .is-dup span, .sv-ill.is-on .sv-bills .is-dup b { animation: svStrike .4s ease 1s both; }
.sv-ill.is-on .sv-bills em { animation: svFade .3s ease .7s both; }
@keyframes svDup { to { background: #FDF0EC; } }
@keyframes svStrike { to { text-decoration: line-through; color: #8C98A8; } }

.sv-bars { width: 100%; height: auto; margin-bottom: .9rem; }
.sv-bars rect { fill: var(--surface-2); transform-box: fill-box; transform-origin: bottom; }
.sv-bars rect.is-now { fill: var(--accent); }
.sv-ill.is-on .sv-bars rect { animation: svGrow .6s cubic-bezier(.2,.8,.2,1) both; }
.sv-ill.is-on .sv-bars rect:nth-child(2) { animation-delay: .08s; }
.sv-ill.is-on .sv-bars rect:nth-child(3) { animation-delay: .16s; }
.sv-ill.is-on .sv-bars rect:nth-child(4) { animation-delay: .24s; }
.sv-ill.is-on .sv-bars rect:nth-child(5) { animation-delay: .32s; }
.sv-ill.is-on .sv-bars rect:nth-child(6) { animation-delay: .4s; }
@keyframes svGrow { from { transform: scaleY(0); } }
.sv-note { margin: .9rem 0 0; padding: .75rem .85rem; border-radius: 8px; background: var(--surface); color: var(--slate); line-height: 1.5; opacity: 0; }
.sv-note b { color: var(--ink); }
.sv-ill.is-on .sv-note { animation: svFade .4s ease 1s both; }

.sv-files { list-style: none; margin: 0; padding: 0; }
.sv-files li { position: relative; margin: 0; padding: .6rem 0 .6rem 1.75rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.sv-files li::before { content: ''; position: absolute; left: 0; top: .65rem; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line); box-sizing: border-box; }
.sv-ill.is-on .sv-files li::before { animation: svTick .3s ease both; }
.sv-ill.is-on .sv-files li:nth-child(2)::before { animation-delay: .2s; }
.sv-ill.is-on .sv-files li:nth-child(3)::before { animation-delay: .4s; }
.sv-ill.is-on .sv-files li:nth-child(4)::before { animation-delay: .6s; }
.sv-ill.is-on .sv-files li:nth-child(5)::before { animation-delay: .8s; }
@keyframes svTick { to { background: var(--positive); border-color: var(--positive); box-shadow: inset 0 0 0 3px #fff; } }

.sv-work { list-style: none; margin: 0; padding: 0; }
.sv-work > li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; transition: opacity .3s; }
.sv-work > li:first-child { padding-top: 0; }
.sv-work__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); transition: background .25s, color .25s; }
.sv-work h3 { font: 800 var(--fs-h3-lg)/1.1 var(--display); letter-spacing: -.01em; margin: 0 0 .75rem; }
.sv-work p { color: var(--slate); max-width: 64ch; }
.sv-work .ticks { margin-bottom: 1.1rem; }
.sv-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.sv-work.is-live > li { opacity: .42; }
.sv-work.is-live > li.is-on, .sv-work > li:focus-within { opacity: 1; }
.sv-work > li.is-on .sv-work__n { background: var(--ink); color: var(--accent); }
.sv-fit { display: none; margin: 0 0 .6rem !important; }
.sv-work > li.is-fit .sv-fit { display: inline-flex; align-items: center; gap: .4rem; font: 600 .8125rem/1 var(--sans); padding: .45rem .6rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); }
.sv-work > li.is-fit .sv-fit::before { content: '\2713'; }

/* ---------- Close checklist stage ---------- */
.sv-stage--list { min-height: 0; }
.sv-check { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.sv-check li { position: relative; margin: 0; padding: .6rem 0 .6rem 1.9rem; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--ink); line-height: 1.45; }
.sv-check li:last-child { border-bottom: 3px double var(--ink); }
.sv-check li::before { content: ''; position: absolute; left: 0; top: .7rem; width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid var(--line-strong); box-sizing: border-box; transition: background .3s, border-color .3s, box-shadow .3s; }
.sv-check li.is-done::before { background: var(--positive); border-color: var(--positive); box-shadow: inset 0 0 0 3px #fff; }
.sv-check__stamp { display: inline-block; margin: 0 1.25rem 1.25rem; font: 600 .8125rem/1 var(--sans); color: var(--positive); border: 2px solid var(--positive); border-radius: 6px; padding: .5rem .7rem; transform: rotate(-3deg); opacity: 0; transition: opacity .4s; }
.sv-stage--list.is-closed .sv-check__stamp { opacity: 1; }

/* ---------- FAQ: heading beside the questions ---------- */
.sv-faqwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sv-faqwrap h2 { font-size: var(--fs-h2); }
.sv-faqwrap .faq { margin: 0; max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sv-finder, .sv-side, .sv-head--side, .sv-faqwrap { grid-template-columns: minmax(0, 1fr); }
  .sv-finder { grid-template-areas: "copy" "fq" "res"; grid-template-rows: auto; }
  .sv-head--side { gap: 1rem; }
  .sv-fres, .sv-side__stick, .sv-hero__copy { position: static; }
  .sv-side__stick { display: none; }
  .sv-work.is-live > li { opacity: 1; }
  .sv-wp__head { display: none; }
  .sv-wp__row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .4rem 1rem; }
  .sv-wp__row p { grid-column: 2; }
}
@media (max-width: 560px) {
  .sv-fq li { padding: 1.1rem 1.1rem 1.2rem 3.4rem; }
  .sv-fq li::before { left: 1rem; }
  .sv-opts button { flex: 1 1 auto; }
  .sv-work > li { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .sv-bar__n { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-live::before { animation: none; }
  .sv-ill, .sv-ill *, .sv-ill *::before { animation-duration: .001ms !important; animation-delay: 0s !important; }
}
