:root {
  --bg: #ffffff; --surface: #fff; --alt: #f5f5f7; --text: #1d1d1f; --muted: #6e6e73;
  --line: #d2d2d7; --btn: #1d1d1f; --btn-text: #fff; --stage: #0b0b0f;
  /* Each track: the bright colour (-b) for bars, dots, buttons and chips; a deeper one for text on white. */
  --linux-b: #f2b33d; --linux: #8a5700; --shell-b: #7bd64a; --shell: #41831e; --python-b: #9c9aff; --python: #605dff; --docker-b: #3cc8e0; --docker: #178092;
  --kubernetes-b: #2997ff; --kubernetes: #0073e1; --ansible-b: #ff6b7f; --ansible: #ea0020; --terraform-b: #b294ff; --terraform: #804fff;
  --aws-b: #ff9f40; --aws: #b85b00; --actions-b: #ff7ac6; --actions: #e00080; --devsecops-b: #3ddc97; --devsecops: #188455;
  /* The edge light: a saturated shade that still shows on white. */
  --linux-e: #c38004; --shell-e: #4ca21d; --python-e: #8380ff; --docker-e: #149cb4; --kubernetes-e: #1c91ff;
  --ansible-e: #ff4c65; --terraform-e: #9c75ff; --aws-e: #e17000; --actions-e: #ff3dac; --devsecops-e: #16a265;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --surface: #161618; --alt: #0d0d0f; --text: #f5f5f7; --muted: #a1a1a6;
    --line: #2c2c2e; --btn: #f5f5f7; --btn-text: #000; --stage: #111114;
    --linux-b: #f2b33d; --linux: #f2b33d; --shell-b: #7bd64a; --shell: #7bd64a; --python-b: #9c9aff; --python: #9c9aff; --docker-b: #3cc8e0; --docker: #3cc8e0;
    --kubernetes-b: #2997ff; --kubernetes: #2997ff; --ansible-b: #ff6b7f; --ansible: #ff6b7f; --terraform-b: #b294ff; --terraform: #b294ff;
    --aws-b: #ff9f40; --aws: #ff9f40; --actions-b: #ff7ac6; --actions: #ff7ac6; --devsecops-b: #3ddc97; --devsecops: #3ddc97;
    --linux-e: var(--linux-b); --shell-e: var(--shell-b); --python-e: var(--python-b); --docker-e: var(--docker-b); --kubernetes-e: var(--kubernetes-b);
    --ansible-e: var(--ansible-b); --terraform-e: var(--terraform-b); --aws-e: var(--aws-b); --actions-e: var(--actions-b); --devsecops-e: var(--devsecops-b);
  }
}
/* The journey is always dark, so it uses the dark-mode track colours. */
.journey {
  --linux-b: #f2b33d; --shell-b: #7bd64a; --python-b: #9c9aff; --docker-b: #3cc8e0; --kubernetes-b: #2997ff;
  --ansible-b: #ff6b7f; --terraform-b: #b294ff; --aws-b: #ff9f40; --actions-b: #ff7ac6; --devsecops-b: #3ddc97; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5;
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.nimbus { --nimbus-body-a: #2f9bff; --nimbus-body-b: #62d84a; }
/* The header's loop: a light travels round it without end, like work flowing through a pipeline. */
.top .loop-mark { width: 37px; height: auto; }
.top .loop-mark-light { animation: loop-flow 3.6s linear infinite, loop-colours 36s linear infinite; } /* loop-flow: nimbus.css */
/* One lap in each track's colour, in the order of the journey: Linux, Bash, Python, Docker,
   Kubernetes, Ansible, Terraform, AWS, GitHub Actions, DevSecOps. */
@keyframes loop-colours {
  0%, 100% { stroke: #f2b33d; } 10% { stroke: #7bd64a; } 20% { stroke: #9c9aff; } 30% { stroke: #3cc8e0; } 40% { stroke: #2997ff; }
  50% { stroke: #ff6b7f; } 60% { stroke: #b294ff; } 70% { stroke: #ff9f40; } 80% { stroke: #ff7ac6; } 90% { stroke: #3ddc97; }
}
@media (prefers-reduced-motion: reduce) { .top .loop-mark-light { animation: none; opacity: 0; } }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--text); }
.pill { font-size: 14px; padding: 6px 14px; border-radius: 980px; background: var(--btn); color: var(--btn-text); text-decoration: none; }

.hero { padding: 88px 0 72px; text-align: center; }
.eyebrow { margin: 0 0 8px; font-weight: 600; color: var(--muted); }
h1 { margin: 0; font-size: clamp(44px, 8vw, 88px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; font-optical-sizing: auto; }
.sub { max-width: 640px; margin: 22px auto 0; font-size: 21px; line-height: 1.45; letter-spacing: -0.01em; color: var(--muted); }
.cta { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 980px; background: var(--btn); color: var(--btn-text); text-decoration: none; font-weight: 500; }
.link { text-decoration: none; font-weight: 500; }
.btn:hover, .pill:hover { opacity: .86; }
.pill-gh { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 13px; font-weight: 600; }
.pill-gh svg { flex: none; }
.btn, .pill, .card { transition: transform .1s ease-out; }
.btn:active, .pill:active { transform: scale(.97); }
.card:active { transform: scale(.99); }
.link:hover, .go:hover { text-decoration: underline; }

.journey { margin: 56px auto 0; padding: 40px 32px 28px; border-radius: 28px; background: var(--stage); color: #f5f5f7;
  position: relative; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
/* The first column of the line is empty: Nimbus's perch until a track is picked. */
.stage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: .9fr repeat(10, 1fr); gap: 8px; position: relative; --col: calc((100% - 80px) / 10.9); }
/* The line is measured from the markers themselves: it leaves the Start ring with the same small gap every dot has
   round it, and ends at the middle of the last dot. Its height is the ring's stroke. */
.stage::after { content: ""; position: absolute; top: 7px; height: 2px; left: calc(var(--col) * .45 + 12px); right: calc(var(--col) * .5); border-radius: 1px;
  background: linear-gradient(90deg, var(--linux-b), var(--shell-b), var(--python-b), var(--docker-b), var(--kubernetes-b),
    var(--ansible-b), var(--terraform-b), var(--aws-b), var(--actions-b), var(--devsecops-b)); opacity: .55; pointer-events: none; }
/* Back to front: the line, the dots on it, then Nimbus, which walks over both. */
.stop { position: relative; z-index: 1; }
.ring { z-index: 2; }
.stop:first-child { grid-column: 2; }
/* The perch has its own mark, a ring named Start, the size of the dots and drawn as a true circle, so the line never
   ends on nothing. Its label sits where the tracks' names do. */
.stage::before { content: "Start"; grid-column: 1; grid-row: 1; padding-top: 28px; text-align: center; font-size: 13px; color: #8e8e93;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%238e8e93' stroke-width='2'/%3E%3C/svg%3E") 50% 0 / 16px 16px no-repeat; }
/* While Nimbus is forming on the header's loop (hub.js) the loop has no light on it. The light sets off round the loop,
   from its start, at the moment Nimbus lets go and begins to come down. */
.loop-mark-light { transition: opacity .35s ease; }
.arriving .loop-mark-light { animation: none; opacity: 0; }
/* The chameleon that forms on the header's loop and falls, turning once, to its perch (hub.js). */
.nimbus.flyer { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; opacity: 0; overflow: visible; shape-rendering: geometricPrecision; transform-origin: 50% 50%; will-change: transform, opacity; --nimbus-halo: transparent; --nimbus-iris: #2a7df0;
  --nimbus-body-a: #2997ff; --nimbus-body-b: oklch(from #2997ff calc(l - .04) c calc(h + 70)); }
.stop a { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; color: #c7c7cc; text-decoration: none; position: relative; }
.stop a:hover, .stop.on a { color: #fff; }
.stop.on a { font-weight: 600; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--cb); box-shadow: 0 0 0 4px var(--stage); }

/* The ring marks the chosen stop; drag it along the line. hub.js moves it with a spring. */
.ring { position: absolute; top: 34px; left: -14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cb, #f5f5f7);
  box-sizing: border-box; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: scale .1s ease-out, border-color .2s ease; }
.ring::before { content: ""; position: absolute; inset: -10px; }
.ring.held { cursor: grabbing; scale: 1.15; }
/* Nimbus rides in the ring's place, wearing the chosen track's colour (hub.js, nimbus.js). */
.ring:has(.nimbus) { width: 56px; height: 36px; left: -28px; top: 30px; border: 0; border-radius: 0; }
/* Where Nimbus stands it is the marker: the dot under it steps aside, so nothing shows through its loops. */
@media (min-width: 761px) { .journey.landed:has(.ring .nimbus) .stop.on .dot { opacity: 0; transition: opacity .2s ease var(--arrives, .9s); } } /* it goes as Nimbus gets there (hub.js), not before */
.journey .nimbus { display: block; width: 100%; --nimbus-ink: var(--cb, #f5f5f7); --nimbus-halo: var(--stage); --nimbus-iris: var(--cb, #2a7df0);
  --nimbus-body-a: var(--cb, #2997ff); --nimbus-body-b: oklch(from var(--cb, #2997ff) calc(l - .04) c calc(h + 70)); }
.journey-detail .nimbus { display: none; }
.journey-detail { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 20px; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12); text-align: left; }
.journey-detail:empty { display: none; }
.journey-detail .cmd { grid-row: span 2; background: #2c2c2e; }
.journey-detail h3 { margin: 0; font-size: 17px; }
.journey-detail p { margin: 0; color: #a1a1a6; font-size: 14px; }
.journey-detail .go { grid-row: 1 / span 2; grid-column: 3; color: var(--cb); white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; border: 1px solid var(--line);
  border-radius: 18px; background: var(--surface); text-align: left; }
.stats div { padding: 22px 24px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.band { padding: 80px 0; }
.band.alt { background: var(--alt); }
h2 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1.1; }
.lead { max-width: 680px; margin: 14px 0 0; color: var(--muted); font-size: 19px; }

.tracks { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; counter-reset: track; }
.card { counter-increment: track; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .25); }
.card::after { content: counter(track, decimal-leading-zero); position: absolute; top: 22px; right: 24px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cmd { align-self: flex-start; margin: 0; padding: 8px 11px; border-radius: 10px; background: #1d1d1f; color: #f5f5f7;
  font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.cmd span { color: var(--cb); }
/* A short light in the track colour travels round each card's edge, each card at its own point. */
@property --edge { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card::before { content: ""; position: absolute; inset: -3px -1px -1px; border-radius: inherit; padding: 2.5px; pointer-events: none;
  background: conic-gradient(from var(--edge), transparent 0 64%, color-mix(in srgb, var(--ce) 55%, transparent) 80%, var(--ce) 90%, var(--ce) 97%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: edge 7s linear infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
@keyframes edge { to { --edge: 360deg; } }
.card:nth-child(2) { --i: 1; } .card:nth-child(3) { --i: 2; } .card:nth-child(4) { --i: 3; } .card:nth-child(5) { --i: 4; }
.card:nth-child(6) { --i: 5; } .card:nth-child(7) { --i: 6; } .card:nth-child(8) { --i: 7; } .card:nth-child(9) { --i: 8; } .card:nth-child(10) { --i: 9; }
.card h3 { margin: 10px 0 0; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .meta { margin-top: auto; padding-top: 12px; color: var(--text); font-size: 14px; font-weight: 500; }
.go { color: var(--c); font-weight: 600; text-decoration: none; font-size: 15px; }
/* Ten cards in three columns leave one over: it sits in the middle column, not alone at the left. */
@media (min-width: 1000px) { .tracks .card:last-child:nth-child(3n + 1) { grid-column: 2; } }
.go::after { content: " ›"; }

.t-linux { --c: var(--linux); --cb: var(--linux-b); --ce: var(--linux-e); } .t-shell { --c: var(--shell); --cb: var(--shell-b); --ce: var(--shell-e); } .t-python { --c: var(--python); --cb: var(--python-b); --ce: var(--python-e); }
.t-docker { --c: var(--docker); --cb: var(--docker-b); --ce: var(--docker-e); } .t-kubernetes { --c: var(--kubernetes); --cb: var(--kubernetes-b); --ce: var(--kubernetes-e); } .t-ansible { --c: var(--ansible); --cb: var(--ansible-b); --ce: var(--ansible-e); }
.t-terraform { --c: var(--terraform); --cb: var(--terraform-b); --ce: var(--terraform-e); } .t-aws { --c: var(--aws); --cb: var(--aws-b); --ce: var(--aws-e); } .t-actions { --c: var(--actions); --cb: var(--actions-b); --ce: var(--actions-e); }
.t-devsecops { --c: var(--devsecops); --cb: var(--devsecops-b); --ce: var(--devsecops-e); }

.fixes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fixes a { display: block; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.fixes a::after { content: " ›"; color: var(--muted); }
.fixes a:hover { border-color: var(--muted); }

.how { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 32px; }
.how h3 { margin: 0; font-size: 19px; }
.how p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.note { margin: 40px 0 0; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }

.foot { background: var(--alt); border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.foot .wrap > p { margin: 0 0 12px; max-width: 880px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot .tm { font-size: 12px; }
.foot .foot-line { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; max-width: none; }
.foot .foot-more p { margin: 10px 0 0; max-width: 880px; }

/* In the Ask button and the conversation Nimbus wears its own colours: blue running into violet. */
.ask-open .nimbus, .ask .nimbus, .sheet-top .nimbus { --nimbus-body-a: #2997ff; --nimbus-body-b: oklch(from #2997ff calc(l - .04) c calc(h + 70)); --nimbus-iris: #2a7df0; }
/* ...until the Nimbus on the line takes a track's colour (hub.js): then these two wear it too, blending as it does. */
:is(.ask-open, .ask-top, .sheet-top)[class*=" t-"] .nimbus { --nimbus-body-a: var(--cb); --nimbus-body-b: oklch(from var(--cb) calc(l - .04) c calc(h + 70)); }
:is(.ask-open, .ask-top, .sheet-top) .nimbus :is(.nimbus-paint-a, .nimbus-paint-b) { transition: stop-color 1.4s ease; }
/* Ask Nimbus on a phone (ask.js, nimbus.css): the way in is a line in the tracks' panel, where a corner button would cover the tracks. */
.ask-inline { display: none; }
@media (max-width: 760px) {
  .top .ask-open { display: none; }
  .ask-inline { display: block; margin: 16px auto 0; padding: 9px 16px; border-radius: 980px; border: 1px solid rgb(255 255 255 / .22); background: none; color: #f5f5f7; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
}

/* "Fix an error now" sheet. hub.js slides the panel and sets --shade from 0 (closed) to 1 (open). */
html:has(.sheet[open]) { overflow: hidden; }
.sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text); overflow: hidden; }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet::backdrop { background: rgb(0 0 0 / calc(var(--shade, 1) * .32)); }
.sheet-panel { width: min(640px, 100% - 32px); margin-bottom: 16px; padding: 10px 24px 24px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 -8px 40px rgba(0, 0, 0, .18), 0 24px 60px -20px rgba(0, 0, 0, .35); max-height: calc(100% - 48px); overflow: auto; }
.sheet-top { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-top: 18px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; }
.sheet-grip { position: absolute; top: 0; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
.sheet-top h2 { font-size: 24px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.sheet-top .nimbus { width: 44px; flex: none; --nimbus-halo: transparent; }
.sheet-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--alt); color: var(--muted); font: 22px/1 inherit; cursor: pointer; }
.sheet-close:active { transform: scale(.94); }
.sheet-lead { margin: 6px 0 16px; color: var(--muted); font-size: 15px; }
.sheet-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--alt); color: var(--text); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sheet textarea:focus { outline: 2px solid var(--kubernetes); outline-offset: 1px; border-color: transparent; }
.sheet-results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.sheet-results:empty { display: none; }
.sheet-result { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--cb); text-decoration: none; transition: transform .1s ease-out; }
.sheet-result:hover { background: var(--alt); }
.sheet-result:active { transform: scale(.98); }
.sheet-result .cmd { grid-row: span 2; }
.sheet-result strong { color: var(--c); }
.sheet-result span { font-size: 13px; color: var(--muted); }
.sheet-results li:first-child .sheet-result strong::after { content: " · best match"; font-weight: 500; color: var(--muted); }
.sheet-results li:only-child .sheet-result strong::after { content: ""; }
.has-results .sheet-results::after { content: "Opening a track searches its Fix answers for your error."; font-size: 13px; color: var(--muted); }
.sheet-none { padding: 12px 14px; border-radius: 14px; background: var(--alt); color: var(--muted); font-size: 14px; }

a:focus-visible { outline: 2px solid var(--kubernetes); outline-offset: 3px; border-radius: 6px; }
.stop a:focus-visible { outline-color: #f5f5f7; }

@media (max-width: 760px) {
  .top-nav { display: none; }
  .pill { margin-left: auto; }
  .hero { padding: 56px 0 48px; }
  .sub { font-size: 18px; }
  .journey { padding: 28px 16px 22px; }
  .stage::after, .ring { display: none; }
  .journey-detail .nimbus { display: block; width: 96px; margin: 18px 0 10px; } /* room above for its speech bubble, clear of the track names */
  .stage { grid-template-columns: repeat(5, 1fr); row-gap: 28px; }
  .stop:first-child { grid-column: auto; }
  .stage::before { content: none; }
  .stop.on .dot { box-shadow: 0 0 0 3px var(--stage), 0 0 0 5px var(--cb); }
  .journey-detail { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .journey-detail .cmd, .journey-detail .go { grid-row: auto; grid-column: auto; }
  .sheet-panel { width: 100%; margin-bottom: 0; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .band { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card::before { animation: none; display: none; }
  .card:hover { transform: none; }
  .btn, .pill, .card, .ring, .top, .sheet-result { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .top { background: var(--bg); border-bottom-color: var(--text); }
  .stage::after { opacity: 1; }
}

/* The narrowest phones (320px wide): everything keeps inside the screen. */
@media (max-width: 350px) {
  h1 { font-size: 38px; white-space: nowrap; }
  .brand { white-space: nowrap; font-size: 15px; }
  .pill-gh { padding: 8px 10px; font-size: 14px; }
  .tracks, .how { grid-template-columns: minmax(0, 1fr); }
  /* Five names in a row would have to be tiny: here the tracks are a list in two columns, each a full row to tap. */
  .journey { padding: 20px 14px 22px; }
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
  .stop a { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 9px 8px; font-size: 14px; }
}
