/* Services page: sticky index, eight services, two tools, the web of connections */

.svx { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.svx__index { position: sticky; top: 100px; display: grid; gap: 16px; align-content: start; }
.svx__ring { position: relative; width: 108px; height: 108px; }
.svx__ring svg { width: 100%; height: 100%; overflow: visible; }
.svx__ring circle { fill: none; stroke: var(--line-2); stroke-width: 1; transition: stroke .5s, stroke-width .5s, opacity .5s; stroke-dasharray: 1.5 3; }
.svx__ring circle.on { stroke: color-mix(in srgb, var(--fg) 50%, transparent); stroke-dasharray: none; }
.svx__ring circle.now { stroke: var(--accent); stroke-width: 2; stroke-dasharray: none; }
.svx__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 300; font-size: 30px; letter-spacing: -.03em; }
#svxNav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
#svxNav a { position: relative; display: flex; gap: 12px; align-items: baseline; padding: 8px 0 8px 16px; font-size: 14.5px; color: var(--muted); transition: color .3s; }
#svxNav a span { font-family: var(--mono); font-size: 11px; color: var(--faint); transition: color .3s; }
#svxNav a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .5s var(--ease); }
#svxNav a:hover { color: var(--fg); }
#svxNav a.is-on { color: var(--fg); }
#svxNav a.is-on span { color: var(--accent); }
#svxNav a.is-on::before { transform: none; }

.sv { padding-block: clamp(40px, 6vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.sv:first-child { padding-top: 0; border-top: 0; }
.sv__n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sv__t { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.2vw, 68px); line-height: 1; letter-spacing: -.035em; max-width: 18ch; }
.sv__t em { color: var(--accent); }
.sv__lede { margin-top: 20px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.sv__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(28px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--line); }
.sv__grid .ins__k { margin-bottom: 12px; }
.sv__grid p:not(.ins__k) { font-size: 15px; line-height: 1.6; color: var(--muted); }
.sv__list { display: grid; gap: 8px; }
.sv__list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.sv__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }
.sv__grid .sv__worth { font-family: var(--serif); font-size: 19px !important; line-height: 1.4 !important; color: var(--fg) !important; letter-spacing: -.01em; }
.sv__worth b { font-weight: 500; color: var(--accent); }

/* tools */
.svtool { margin-top: clamp(28px, 3vw, 44px); padding: clamp(20px, 2.6vw, 34px); display: grid; gap: 22px; }
.svtool__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; }
.svtool__head h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; margin-top: 6px; }
.svtool__body { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 52px); align-items: start; }
.svtool__in { display: grid; gap: 20px; }
.svtool__out { display: grid; gap: 18px; min-width: 0; }
.svtool__verdict { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.025em; }
.svtool__verdict em { color: var(--accent); }
.svtool__why { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.svtool__why b { color: var(--fg); font-weight: 500; }
.svtool__fine { margin-top: -4px; }

.rt-bars { display: grid; gap: 14px; }
.rt-bar { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.rt-bar span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rt-bar b { font-family: var(--mono); font-weight: 500; font-size: 15px; white-space: nowrap; }
.rt-track { position: relative; height: 34px; border-radius: 10px; background: var(--card-2); overflow: hidden; }
.rt-fill { position: absolute; inset: 0 auto 0 0; border-radius: 10px; background: color-mix(in srgb, var(--fg) 30%, transparent); transition: width .7s var(--ease); }
.rt-tax { position: absolute; top: 0; bottom: 0; border-radius: 0 10px 10px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--down) 45%, transparent) 0 5px, transparent 5px 9px); transition: left .7s var(--ease), width .7s var(--ease); }
.rt-bar.is-win .rt-fill { background: var(--accent); }
.rt-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.rt-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

.cp-chart { height: clamp(240px, 24vw, 320px); }
.cp-kpis { grid-template-columns: 1fr 1fr; }
.cp-kpis .kpi b { font-size: clamp(26px, 2.2vw, 34px); }

/* the web */
.web { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: clamp(20px, 3vw, 48px); padding: clamp(18px, 2.6vw, 36px); align-items: center; }
.web__vis svg { width: 100%; height: auto; overflow: visible; display: block; }
.web__vis .edge { fill: none; stroke: var(--line-2); stroke-width: 1; transition: stroke .4s, stroke-width .4s, opacity .4s; }
.web__vis .edge.is-on { stroke: var(--accent); stroke-width: 1.8; }
.web__vis.has-focus .edge:not(.is-on) { opacity: .25; }
.web__vis .spoke { stroke: var(--line); stroke-dasharray: 2 4; }
.web__vis .node { cursor: pointer; }
.web__vis .node circle { fill: var(--bg); stroke: var(--line-2); stroke-width: 1; transition: fill .4s, stroke .4s; }
.web__vis .node text { fill: var(--fg); font-family: var(--sans); font-size: 13px; transition: fill .4s, opacity .4s; }
.web__vis .node .nn { font-family: var(--mono); font-size: 10px; fill: var(--faint); }
.web__vis .node.is-on circle { fill: var(--accent); stroke: var(--accent); }
.web__vis .node.is-near circle { stroke: var(--accent); }
.web__vis.has-focus .node:not(.is-on):not(.is-near):not(.hub) text { opacity: .35; }
.web__vis .hub circle { fill: var(--fg); }
.web__vis .hub text { fill: var(--bg); font-family: var(--serif); font-size: 17px; }
.web__say h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 16px; }
.web__say ul { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.web__say li { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.web__say li b { color: var(--fg); font-weight: 500; }

@media (max-width: 1100px) { .sv__grid { grid-template-columns: 1fr 1fr; } .sv__grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 960px) {
  .svx { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .svx > * { min-width: 0; }
  .svx__index { position: sticky; top: 76px; z-index: 5; display: block; padding: 8px 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .svx__ring, .svx__index > .ins__k, .svx__index > .btn { display: none; }
  #svxNav { display: flex; gap: 6px; border-left: 0; overflow-x: auto; scrollbar-width: none; }
  #svxNav::-webkit-scrollbar { display: none; }
  #svxNav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; }
  #svxNav a::before { display: none; }
  #svxNav a.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  #svxNav a.is-on span { color: var(--accent); }
  .svtool__body { grid-template-columns: 1fr; }
  .web { grid-template-columns: 1fr; }
  .web__vis { width: 100%; max-width: 640px; margin-inline: auto; }
  .sv { scroll-margin-top: 140px; }
}
@media (max-width: 560px) { .sv__grid { grid-template-columns: 1fr; } .rt-bar { grid-template-columns: 54px minmax(0, 1fr); } .rt-bar b { grid-column: 2; } }
