/* Hero capability rail: Service desk, Workspace and Connected hang from one
   hairline bus, each list on its own spine with a tick out to every item.
   js/home-rail.js draws the lines from the list's own boxes and runs a packet
   of light along them, lighting one capability at a time; hover takes over.
   Every vertical metric matches the plain three-column list this replaced,
   so the rail keeps its footprint at each breakpoint. Placement (grid cell,
   outer padding, top rule, column gap) stays in homepage-v2.css. */
/* The landing colour is the site's purple: the Build lilac on the dark ground,
   and the same hue deep enough to read on the paper. */
.hero__side-rail { --rail-indent: 12px; --rail-hot: #bdacf3; --rail-hot-rgb: 184 167 227; --rail-sheen: #f4efff; position: relative; isolation: isolate; }
[data-theme='light'] .hero__side-rail { --rail-hot: #665796; --rail-hot-rgb: 112 87 153; --rail-sheen: #fff; }
.hero__side-rail aside { position: relative; min-width: 0; }
/* Group headings: the site's tracked mono eyebrow. Line heights are set in px
   to hold the heights of the larger headings this replaced. */
.hero__side-rail aside > p { position: relative; margin-bottom: 12px; font: 500 11px/18px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .35s ease; }
/* The active group's mark: out of flow, so it never moves the heading. */
.hero__side-rail aside > p::after { content: ''; position: absolute; width: 4px; height: 4px; margin: .58em 0 0 8px; background: var(--accent); opacity: 0; transform: scale(.2); transition: opacity .35s ease, transform .5s var(--ease); }
.hero__side-rail ol { padding: 0 0 0 var(--rail-indent); margin: 0; list-style: none; }
.hero__side-rail li { position: relative; display: flex; align-items: center; gap: 7px; padding-block: 4px; font-size: 11px; line-height: 1.4; color: var(--muted); transition: color .35s ease, opacity .35s ease, transform .5s var(--ease); }
.hero__side-rail li > a { display: flex; align-items: center; gap: inherit; min-width: 0; width: 100%; color: inherit; text-decoration: none; }
.hero__side-rail li > a:hover, .hero__side-rail li > a:focus-visible { color: inherit; }
.hero__side-rail li > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hero__side-rail li::before { content: ''; position: absolute; inset: 1px -6px 1px -5px; z-index: -1; border-radius: 4px; background: linear-gradient(90deg, rgb(var(--signal-rgb) / .15), rgb(var(--signal-rgb) / .04) 60%, transparent); opacity: 0; transform: scaleX(.35); transform-origin: left; transition: opacity .4s ease, transform .6s var(--ease); pointer-events: none; }
.hero__side-rail .rail-icon { width: 13px; height: 13px; color: var(--accent); opacity: .8; transition: color .35s ease, opacity .35s ease, filter .45s ease; }
.home-intro-flow .hero__side-rail li { color: var(--text); }
.home-intro-flow .hero__side-rail .rail-icon { color: var(--text); }


/* Lines, drawn by js/home-rail.js. Out of flow, so the grid never places it. */
.rail-trace { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke-linecap: round; }
.rail-trace__base { stroke: var(--line-2); stroke-width: 1; }
.rail-trace__base path { transition: stroke .35s ease; }
.rail-trace__base path.is-lit { stroke: var(--rail-hot); }
.rail-trace__lit { stroke: var(--accent); stroke-width: 1; opacity: 0; transition: opacity .45s ease; }
.hero__side-rail.is-pointer .rail-trace__lit { opacity: .9; }
.rail-trace__node { fill: var(--line-2); stroke: none; transition: fill .35s ease; }
.rail-trace__node.is-on { fill: var(--accent); }
.rail-trace__ring { fill: none; stroke: var(--accent); stroke-width: 1; }
.rail-trace__comet { stroke: var(--accent); }
.rail-trace__comet path:last-child { filter: drop-shadow(0 0 3px rgb(var(--signal-rgb) / .9)); }

@media (min-width: 961px) {
  .hero__side-rail aside { display: flex; flex-direction: column; min-height: 0; }
  .hero__side-rail aside > p { margin-bottom: 14px; font-size: 11px; line-height: 19.5px; letter-spacing: .16em; }
  .hero__side-rail ol { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 0; }
  .hero__side-rail li { gap: 10px; padding-block: 3px; font-size: 14px; letter-spacing: -.011em; }
  .hero__side-rail .rail-icon { width: 17px; height: 17px; flex-shrink: 0; }
  .home-intro-flow .hero__side-rail li { color: var(--muted); }
  .home-intro-flow .hero__side-rail .rail-icon { color: var(--accent); }
}
@media (min-width: 1100px) {
  .hero__side-rail { --rail-indent: 16px; }
}
@media (min-width: 961px) and (max-height: 820px) {
  .hero__side-rail li { padding-block: 1px; font-size: 13px; }
}
@media (max-width: 700px) {
  .hero__side-rail { --rail-indent: 8px; }
  .hero__side-rail li { font-size: 11px; line-height: 14px; gap: 4px; }
  .hero__side-rail .rail-icon { width: 11px; height: 11px; }
  .hero__side-rail aside > p { font-size: 11px; line-height: 16.5px; letter-spacing: .12em; }
}

/* States, last so they win over the breakpoint colours above. The landed label
   holds the purple; the group titles stay in the ink. A light crosses the
   label once, then the colour stays. */
.hero__side-rail aside.is-active > p { color: var(--text); }
.hero__side-rail aside.is-active > p::after { opacity: 1; transform: none; }
.hero__side-rail li.is-lit .rail-label, .hero__side-rail li.is-boot .rail-label { color: var(--rail-hot); background: linear-gradient(100deg, var(--rail-hot) 0 46%, var(--rail-sheen) 50%, var(--rail-hot) 54% 100%) 0 0 / 280% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rail-sheen .85s var(--ease) both; }
@keyframes rail-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero__side-rail li.is-lit, .home-intro-flow .hero__side-rail li.is-lit,
.hero__side-rail li.is-boot, .home-intro-flow .hero__side-rail li.is-boot { color: var(--rail-hot); }
.hero__side-rail li.is-lit { transform: translateX(3px); }
.hero__side-rail li.is-lit::before { opacity: 1; transform: none; }
.hero__side-rail li.is-lit .rail-icon, .home-intro-flow .hero__side-rail li.is-lit .rail-icon,
.hero__side-rail li.is-boot .rail-icon, .home-intro-flow .hero__side-rail li.is-boot .rail-icon { color: var(--rail-hot); opacity: 1; filter: drop-shadow(0 0 5px rgb(var(--rail-hot-rgb) / .5)); }
.hero__side-rail.is-focus li:not(.is-lit) { opacity: .5; }
[data-theme='light'] .hero__side-rail li.is-lit .rail-icon, [data-theme='light'] .hero__side-rail li.is-boot .rail-icon { filter: drop-shadow(0 0 4px rgb(var(--rail-hot-rgb) / .35)); }
[data-theme='light'] .rail-trace__comet path:last-child { filter: drop-shadow(0 0 2px rgb(var(--signal-rgb) / .6)); }
