/* Services block (sv-): cards, list, steps. Tokens only; phone breakpoint 720. */
.sv { --sv-lap: 24px; --sv-gap: 20px; padding-top: var(--section); padding-bottom: var(--section); }
.sv-head { display: flex; flex-direction: column; gap: 12px; max-width: var(--w-prose); margin-bottom: 40px; }
.sv-head:empty { display: none; }
.sv-text { color: var(--muted); overflow-wrap: anywhere; }
.sv-empty { color: var(--muted); }
.sv-cta { margin-top: 40px; }
.sv-go { color: var(--brand); display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.sv-price { font-size: 15px; font-weight: 500; color: var(--muted); }
.sv-amt { font-size: 17px; font-weight: 700; color: var(--ink); }
.sv-name { font-size: var(--t-h3); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sv-link { color: inherit; text-decoration: none; }
.sv-link:focus-visible { outline: none; }
.sv-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* ---- cards: a wide lead, a tall companion, then rows of three; sheet over stage ---- */
.sv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sv-gap); }
.sv-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; --sv-ar: 4 / 3; }
.sv-card[data-span="2"] { grid-column: span 2; }
.sv-card[data-span="3"] { grid-column: span 3; --sv-ar: 3 / 2; }
.sv-card[data-span="4"] { grid-column: span 4; --sv-ar: 16 / 9; }
.sv-card[data-span="6"] { grid-column: span 6; flex-direction: row; }
.sv-card:has(.sv-link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.sv-stage { position: relative; flex: 1 1 auto; aspect-ratio: var(--sv-ar); overflow: hidden; background: var(--placeholder); }
.sv-stage > .k-photo, .sv-stage > .sv-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-ph { text-align: center; padding: 12px; }
.sv-sheet { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; background: var(--surface); }
.sv-card[data-kind="photo"] .sv-sheet, .sv-card[data-kind="ph"] .sv-sheet { margin-top: calc(var(--sv-lap) * -1); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
.sv-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.sv-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.sv-lead .sv-sheet { padding: 28px 30px 30px; }
.sv-lead .sv-name { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.02em; }
.sv-lead .sv-text { font-size: var(--t-lead); max-width: 52ch; }
.sv-lead .sv-icon { width: 64px; height: 64px; }
/* a lone wide card: stage left, sheet slides over its edge */
.sv-card[data-span="6"] .sv-stage { flex: 0 0 44%; aspect-ratio: auto; min-height: 280px; }
.sv-card[data-span="6"] .sv-sheet { flex: 1; justify-content: center; margin-top: 0 !important; margin-left: calc(var(--sv-lap) * -1); border-radius: var(--radius-sheet) 0 0 var(--radius-sheet) !important; padding: 32px 36px; }
.sv-card[data-span="6"][data-kind="icon"] .sv-sheet { margin-left: 0; border-radius: 0 !important; flex-direction: row; align-items: flex-start; gap: 22px; }

/* ---- list: dense rows with hairlines; the heading stays beside them ---- */
.sv[data-variant="list"] .sv-head { margin-bottom: 24px; }
.sv-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.sv-aside { position: sticky; top: 24px; }
.sv-aside .sv-cta { margin-top: 0; }
.sv-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) max-content 24px; column-gap: 32px; border-bottom: 1px solid var(--line); }
.sv-row { position: relative; display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.sv-row .sv-name { font-size: 19px; }
.sv-row .sv-cell { text-align: right; }
.sv-row .sv-go { align-self: center; }

/* ---- steps: numbered nodes joined by a line that draws in once ---- */
.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--sv-n), minmax(0, 1fr)); column-gap: 28px; }
.sv-step { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sv-node { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--ink); display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.sv-step-body { display: flex; flex-direction: column; gap: 8px; padding-right: 8px; }
.sv-step-title { display: flex; align-items: flex-start; gap: 8px; font-size: 20px; }
.sv-step-icon { color: var(--brand); display: grid; height: 24px; align-items: center; flex: none; }
.sv-step .sv-text { font-size: 16px; max-width: 34ch; }
.sv-seg { position: absolute; z-index: 0; overflow: visible; }
.sv-seg-h { left: 22px; top: 21px; width: calc(100% + 28px); height: 2px; }
.sv-seg-v { display: none; }
.sv-track, .sv-draw { fill: none; stroke-width: 2; }
.sv-track { stroke: var(--line); }
.sv-draw { stroke: var(--brand); stroke-dasharray: 1; stroke-dashoffset: 0; }
/* armed by mount(): hidden until the list scrolls into view, then the line leads and the steps follow */
.sv[data-armed]:not([data-drawn]) .sv-draw { stroke-dashoffset: 1; }
.sv[data-armed]:not([data-drawn]) .sv-step { opacity: 0; transform: translateY(10px); }
.sv[data-drawn] .sv-draw { transition: stroke-dashoffset 700ms calc(var(--i) * 280ms) var(--ease); }
.sv[data-drawn] .sv-step { transition: opacity var(--d-enter) calc(var(--i) * 280ms + 120ms) var(--ease), transform var(--d-enter) calc(var(--i) * 280ms + 120ms) var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .sv-card .k-photo { transition: transform .6s var(--ease); }
  .sv-card:has(.sv-link):hover .k-photo { transform: scale(1.04); }
  .sv-go svg { transition: transform var(--d) var(--ease); }
  .sv-card:has(.sv-link):hover .sv-go svg, .sv-row:has(.sv-link):hover .sv-go svg { transform: translateX(4px); }
  .sv-row:has(.sv-link):hover .sv-name { color: var(--brand); }
  .sv-name { transition: color var(--d-fast) ease; }
}

/* tablet: the six columns get too narrow, so two columns with a full-width lead */
@media (max-width: 960px) {
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-card, .sv-card[data-span] { grid-column: auto; --sv-ar: 4 / 3; }
  .sv-card.sv-lead, .sv-card[data-span="6"] { grid-column: 1 / -1; }
  .sv-card:last-child:nth-child(even) { grid-column: 1 / -1; }
  .sv-split { grid-template-columns: 1fr; gap: 8px; }
  .sv-aside { position: static; }
  .sv-aside .sv-cta { margin-top: 28px; margin-bottom: 8px; }
}
/* steps go vertical below 900 so six of them never squeeze into narrow columns */
@media (max-width: 900px) {
  .sv-steps { grid-template-columns: 1fr; }
  .sv-step { display: block; padding-left: 64px; padding-bottom: 32px; min-height: 44px; }
  .sv-step:last-child { padding-bottom: 0; }
  .sv-node { position: absolute; left: 0; top: 0; }
  .sv-seg-h { display: none; }
  .sv-seg-v { display: block; left: 21px; top: 22px; width: 2px; height: 100%; }
  .sv-step-body { padding-top: 8px; }
}

/* phone: the lead keeps its stage; the rest become compact rows */
@media (max-width: 720px) {
  .sv-head { margin-bottom: 28px; }
  .sv-cta { margin-top: 28px; }
  .sv-cta .k-btn { width: 100%; }
  .sv-grid { grid-template-columns: 1fr; gap: 12px; }
  .sv-card.sv-lead, .sv-card.sv-lead[data-span] { flex-direction: column; --sv-ar: 5 / 4; }
  .sv-card.sv-lead .sv-stage { flex: 0 0 auto; aspect-ratio: 5 / 4; min-height: 0; }
  .sv-card.sv-lead .sv-sheet { margin: calc(var(--sv-lap) * -1) 0 0 !important; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0 !important; padding: 24px 20px 24px; flex-direction: column; gap: 14px; }
  .sv-card.sv-lead[data-kind="icon"] .sv-sheet { margin: 0 !important; border-radius: 0 !important; }
  .sv-card:not(.sv-lead), .sv-card:not(.sv-lead)[data-span] { flex-direction: row; align-items: flex-start; }
  .sv-card:not(.sv-lead) .sv-stage { flex: 0 0 84px; width: 84px; aspect-ratio: 1; min-height: 0; margin: 14px 0 14px 14px; border-radius: var(--radius-sm); }
  .sv-card:not(.sv-lead) .sv-sheet { flex: 1; min-width: 0; margin: 0 !important; border-radius: 0 !important; padding: 14px 16px 14px 14px; background: transparent; flex-direction: row; gap: 12px; }
  .sv-card:not(.sv-lead) .sv-name { font-size: 18px; }
  .sv-card:not(.sv-lead) .sv-text { font-size: 15px; }
  .sv-card:not(.sv-lead) .sv-icon { width: 44px; height: 44px; }
  .sv-card:not(.sv-lead) .sv-ph { font-size: 11px; line-height: 1.25; padding: 6px; }
  .sv-card:not(.sv-lead) .sv-foot { padding-top: 4px; }
  .sv-body { min-width: 0; }
  /* list rows stack: name and arrow, text, price */
  .sv-rows { display: block; }
  .sv-row { grid-template-columns: minmax(0, 1fr) 24px; column-gap: 12px; row-gap: 6px; padding: 18px 0; align-items: start; }
  .sv-row .sv-name { grid-column: 1; grid-row: 1; }
  .sv-row .sv-go { grid-column: 2; grid-row: 1; align-self: start; padding-top: 2px; }
  .sv-row .sv-text { grid-column: 1 / -1; grid-row: 2; }
  .sv-row .sv-cell { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .sv-row .sv-cell:empty, .sv-row .sv-text:empty { display: none; }
  .sv-step .sv-text { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sv[data-armed]:not([data-drawn]) .sv-draw { stroke-dashoffset: 0; }
  .sv[data-armed]:not([data-drawn]) .sv-step { opacity: 0; transform: none; }
  .sv[data-drawn] .sv-draw { transition: none; }
  .sv[data-drawn] .sv-step { transition: opacity .3s ease; transition-delay: 0s; }
  .sv-card .k-photo, .sv-go svg { transition: none !important; transform: none !important; }
}
