/* Concept 10: Services without clip-art, plus the "From mandate to delivery" timeline. */

/* ---------- Services: a typographic list ---------- */
html.mt-on #services { background: hsl(var(--background)); padding-bottom: 112px; }
html.mt-on #services > div > div.grid { counter-reset: svc; }
#services div.group.mt-svc-off { display: none; }
@media (min-width: 1024px) { html.mt-on #services > div > div.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html.mt-on #services div.group { counter-increment: svc; padding-top: 22px; border-top: 1px solid hsl(var(--foreground)); }
html.mt-on #services div.group > div.mb-6, html.mt-on #services div.group > div.h-px { display: none; }
html.mt-on #services div.group::before {
  content: counter(svc, decimal-leading-zero); display: block; margin-bottom: 18px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--mf-brass, #a88f5c);
}
html.mt-on #services div.group h3 { font-family: var(--mf-serif, serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 12px; }

/* ---------- Timeline ---------- */
.mt { --mt-y: 74px; --mt-a: 0px; --mt-len: 0px; --mt-p: 0; margin-top: 120px; padding-top: 72px; border-top: 1px solid hsl(var(--border)); }
.mt-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 64px; align-items: end; }
.mt-eyebrow {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mf-brass, #a88f5c);
}
.mt-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.mt h3 { margin: 0; font-family: var(--mf-serif, serif); font-weight: 500; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.008em; }
.mt-intro > p:last-child { margin: 0 0 6px; max-width: 34em; font-size: 16px; font-weight: 300; line-height: 1.7; color: hsl(var(--muted-foreground)); }

.mt-track { position: relative; margin-top: 56px; }
.mt-line { position: absolute; top: var(--mt-y); left: var(--mt-a); width: var(--mt-len); height: 1px; background: hsl(var(--border)); }
.mt-line-done { position: absolute; left: 0; top: 0; height: 1px; width: calc(100% * var(--mt-p)); background: hsl(var(--foreground)); }
.mt-ship {
  position: absolute; top: var(--mt-y); left: calc(var(--mt-a) + var(--mt-len) * var(--mt-p));
  width: 92px; transform: translate(-58%, -86%); color: hsl(var(--foreground)); pointer-events: none;
}
.mt-ship svg { display: block; width: 100%; height: auto; fill: currentColor; }

.mt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.mt-step { position: relative; padding-top: calc(var(--mt-y) + 26px); }
.mt-node {
  position: absolute; left: 0; top: calc(var(--mt-y) - 4px); width: 9px; height: 9px; border-radius: 50%;
  background: hsl(var(--background)); border: 1px solid hsl(var(--muted-foreground) / 0.6); transition: background 0.3s, border-color 0.3s;
}
.mt-num { display: block; margin-bottom: 12px; font: 200 30px/1 "DM Sans", system-ui, sans-serif; letter-spacing: -0.02em; color: hsl(var(--muted-foreground) / 0.55); transition: color 0.4s; }
.mt-step h4 { margin: 0 0 10px; font-family: var(--mf-serif, serif); font-weight: 500; font-size: 21px; line-height: 1.15; color: hsl(var(--muted-foreground)); transition: color 0.4s; }
.mt-step p { margin: 0; font-size: 13.5px; line-height: 1.65; color: hsl(var(--muted-foreground) / 0.75); transition: color 0.4s; }
.mt-step.is-passed .mt-node { background: hsl(var(--foreground)); border-color: hsl(var(--foreground)); }
.mt-step.is-passed .mt-num { color: var(--mf-brass, #a88f5c); }
.mt-step.is-passed h4 { color: hsl(var(--foreground)); }
.mt-step.is-passed p { color: hsl(var(--muted-foreground)); }

.mt-cta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 64px; padding-top: 28px; border-top: 1px solid hsl(var(--border)); }
.mt-cta a { font-size: 15px; color: hsl(var(--foreground)); text-decoration: none; border-bottom: 1px solid hsl(var(--foreground) / 0.3); padding-bottom: 4px; transition: border-color 0.2s; }
.mt-cta a:hover { border-bottom-color: hsl(var(--foreground)); }

@media (max-width: 1180px) {
  .mt-steps { gap: 18px; }
  .mt-step h4 { font-size: 19px; }
}

/* Narrow screens: the timeline runs down the page; the filled line follows your scroll. */
@media (max-width: 899px) {
  .mt { margin-top: 80px; padding-top: 56px; }
  .mt-intro { grid-template-columns: 1fr; }
  .mt-track { margin-top: 40px; }
  .mt-ship { display: none; }
  .mt-line { top: var(--mt-a); left: 4px; width: 1px; height: var(--mt-len); }
  .mt-line-done { width: 1px; height: calc(100% * var(--mt-p)); }
  .mt-steps { grid-template-columns: 1fr; gap: 34px; }
  .mt-step { padding: 0 0 0 36px; }
  .mt-node { top: 10px; }
  .mt-num { font-size: 24px; margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .mt-node, .mt-num, .mt-step h4, .mt-step p { transition: none; }
}
