/* Homepage "04 / How we work": always a horizontal row of steps. Wide screens show all five;
   narrower screens scroll sideways with snap. Layout only — text, fonts and colours unchanged. */
.connected-home .work-timeline-heading { gap: clamp(20px, 3vw, 48px); }
.connected-home .work-timeline .work-timeline-steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: column;
  margin-top: clamp(36px, 4vw, 56px);
}
.connected-home .work-timeline .work-timeline-steps li {
  display: block; border-left: 0; border-top: 1px solid #857280; padding: 26px clamp(14px, 1.8vw, 26px) 0 0;
}
.connected-home .work-timeline .work-timeline-steps li::before { top: -4px; left: 0; width: 2px; height: 7px; }
.connected-home .work-timeline .work-timeline-steps h3 { margin: 18px 0 10px; font-size: clamp(1.1rem, 1.5vw, 1.5rem); }
.connected-home .work-timeline .work-timeline-steps p { max-width: 30ch; font-size: .86rem; line-height: 1.7; }
.connected-home .work-timeline .work-timeline-note { margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; }

/* below laptop width: same row, swipe / scroll sideways, next step peeks in */
@media (max-width: 1100px) {
  .connected-home .work-timeline .work-timeline-steps {
    grid-template-columns: none; grid-auto-columns: minmax(240px, 34%);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter, 24px)); padding: 4px var(--gutter, 24px) 18px;
    scroll-padding-inline: var(--gutter, 24px); scrollbar-width: thin; scrollbar-color: #857280 transparent;
  }
  .connected-home .work-timeline .work-timeline-steps li { scroll-snap-align: start; }
}
@media (max-width: 620px) {
  .connected-home .work-timeline .work-timeline-steps { grid-auto-columns: 78%; margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
  .connected-home .work-timeline .work-timeline-steps h3 { font-size: 1.25rem; }
}
.connected-home .work-timeline .work-timeline-steps:focus-visible { outline: 2px solid #c9a3bd; outline-offset: 4px; }

/* ---------- smooth: reveal, controls, edge fade ---------- */
.connected-home .work-timeline .work-timeline-steps { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.connected-home .work-timeline .work-timeline-steps li { transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.connected-home .work-timeline.wt-ready:not(.wt-in) .work-timeline-steps li { opacity: 0; transform: translateY(18px); }
.connected-home .work-timeline .work-timeline-steps li::before { transition: height .4s, background .4s; }
.connected-home .work-timeline .work-timeline-steps li.is-current::before { height: 11px; top: -6px; background: #e7c9dc; }
.connected-home .work-timeline .work-timeline-steps.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.wt-controls { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; position: relative; z-index: 1; }
.wt-dots { display: flex; gap: 8px; }
.wt-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #85728066; cursor: pointer; transition: width .35s cubic-bezier(.2, .8, .2, 1), background .35s; }
.wt-dots button[aria-current="true"] { width: 26px; background: #d3bdcd; }
.wt-arrows { display: flex; gap: 10px; }
.wt-arrows button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #857280; background: transparent; color: #f4eee6; cursor: pointer; transition: background .25s, opacity .25s, transform .25s; }
.wt-arrows button:hover:not(:disabled) { background: #ffffff10; transform: translateY(-1px); }
.wt-arrows button:disabled { opacity: .3; cursor: default; }
.wt-arrows svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wt-controls button:focus-visible { outline: 2px solid #c9a3bd; outline-offset: 3px; }
html[data-theme="inverted"] .wt-dots button { background: #60435b40; }
html[data-theme="inverted"] .wt-dots button[aria-current="true"] { background: #60435b; }
html[data-theme="inverted"] .wt-arrows button { border-color: #60435b66; color: #211d1b; }
html[data-theme="inverted"] .wt-arrows button:hover:not(:disabled) { background: #60435b12; }
html[data-theme="inverted"] .connected-home .work-timeline .work-timeline-steps li.is-current::before { background: #60435b; }
@media (max-width: 1100px) {
  .wt-controls { display: flex; }
  .connected-home .work-timeline .work-timeline-steps { cursor: grab; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .connected-home .work-timeline .work-timeline-steps.at-end { -webkit-mask: none; mask: none; }
  .connected-home .work-timeline .work-timeline-steps::-webkit-scrollbar { display: none; }
  .connected-home .work-timeline .work-timeline-steps { scrollbar-width: none; padding-bottom: 4px; }
}
@media (max-width: 620px) { .wt-arrows button { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .connected-home .work-timeline .work-timeline-steps { scroll-behavior: auto; }
  .connected-home .work-timeline .work-timeline-steps li, .wt-dots button, .wt-arrows button { transition: none; }
  .connected-home .work-timeline.wt-ready:not(.wt-in) .work-timeline-steps li { opacity: 1; transform: none; }
}
.connected-home .wt-dots button { min-height: 0 !important; min-width: 0 !important; height: 8px !important; flex: none; }
.connected-home .wt-dots { align-items: center; }
