/* services.css: styles used only by this part of the site, loaded after site.css (inc/layout.php). Split from site.css in v61.
   Tokens, base and shared parts stay in site.css. DESIGN.md describes them. */
/* ===== Services page, since v51 =====
   The eight services stand as eight modules in one rack, between two rails with screw holes. Each module has a faceplate in a tone colour
   with its number and a jack, the title and a paragraph. One column on phones, two from 600 px, four from 1100 px.
   When the rack comes into view (services.js adds .is-on), the faceplates switch on one after another. Without that, they are lit from the start. */
.svc-intro, .svc-close { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4) var(--space-6); }
@media (min-width: 900px) { .svc-intro, .svc-close { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } .svc-intro h2, .svc-close h2 { font-size: var(--step-2); } }
.svc-intro p { font-size: var(--step-1); line-height: 1.4; text-wrap: pretty; }
.svc-close-text { display: grid; gap: var(--space-3); }
.svc-close-text p { text-wrap: pretty; }
.svc-close-text a:not([class]) { text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.on-paper .svc-close-text a:not([class]) { color: var(--link); }
.svc-rack { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.svc-rail { display: block; height: 1.5rem; margin-left: var(--drop); background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-s);
  background-image: radial-gradient(circle at 50% 50%, var(--ink) 0 3px, transparent 3.5px); background-size: 3rem 100%; background-position: 1.5rem 0; background-repeat: repeat-x; }
.svc-modules { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-left: var(--drop); padding-bottom: var(--drop); }
@media (min-width: 600px) { .svc-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-modules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-module { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-4); background: var(--white); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--radius-m); box-shadow: calc(var(--drop) * -1) var(--drop) 0 var(--drop-color); min-width: 0; }
.svc-module:target { box-shadow: inset 0 0 0 var(--line) var(--ink), calc(var(--drop) * -1) var(--drop) 0 var(--drop-color); }
.svc-plate { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; padding: var(--space-2) var(--space-3); border: var(--line) solid var(--ink); border-radius: var(--radius-s); }
.svc-no { font-family: var(--font-display); font-weight: 800; font-stretch: 100%; font-size: var(--step-1); color: var(--ink); }
.svc-jack { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 6px var(--ink); }
.svc-module h3 { margin: var(--space-2) var(--space-2) 0; font-size: var(--step-1); text-wrap: balance; }
.svc-module p { margin-inline: var(--space-2); font-size: var(--step--1); line-height: 1.55; text-wrap: pretty; }
.svc-module a { color: var(--link); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
/* Switching on: the faceplate starts white and takes its tone, one module after the other, 140 ms apart */
.svc-rack.is-ready:not(.is-on) .svc-plate { background: var(--white); }
.svc-rack.is-on .svc-plate { animation: svc-on 420ms var(--ease-press) calc(var(--i, 0) * 140ms) both; }
.svc-rack.is-on .svc-module { animation: svc-press 420ms var(--ease-bounce) calc(var(--i, 0) * 140ms) both; }
@keyframes svc-on { from { background: var(--white); } }
@keyframes svc-press { 0% { transform: none; } 35% { transform: translate(calc(var(--drop) * -0.5), calc(var(--drop) * 0.5)); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-rack.is-on .svc-plate, .svc-rack.is-on .svc-module { animation: none; } }
@media (max-width: 599.98px) { .svc-module p { font-size: var(--step-0); } }
