/* Savyly status page: the look of savyly.com (dark glass, the violet-to-cyan gradient, the logo hub), with a light
   version for devices set to light. No scripts: everything that moves is CSS, and it stops for reduced motion. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-v20-latin-core.woff2) format("woff2");
  unicode-range: U+000A, U+0020-007E, U+00A0, U+00A9, U+00B2, U+00B7, U+00D7, U+2013-2014, U+2019, U+201C-201D, U+2022, U+2026, U+2039-203A, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-v22-latin-core.woff2) format("woff2");
  unicode-range: U+000A, U+0020-007E, U+00A0, U+00A9, U+00B2, U+00B7, U+00D7, U+2013-2014, U+2019, U+201C-201D, U+2022, U+2026, U+2039-203A, U+2191, U+2193, U+2212;
}

/* ---------- colours: dark is Savyly's own look ---------- */
:root {
  color-scheme: dark;
  --bg: #06060a;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  --glass-solid: rgba(14, 14, 22, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededf5;
  --muted: #a8a8bc;
  --dim: #8585a0;
  --violet: #a78bfa;
  --link: #c4b5fd;
  --grad: linear-gradient(115deg, #c4b5fd 0%, #818cf8 42%, #22d3ee 100%);
  --grad-warn: linear-gradient(115deg, #fde68a 0%, #fbbf24 50%, #fb923c 100%);
  --grad-bad: linear-gradient(115deg, #fecaca 0%, #f87171 50%, #fb923c 100%);
  --grad-dim: linear-gradient(115deg, #e4e4f0 0%, #a8a8bc 100%);
  --good: #22c55e;
  --good-2: #15a34a;
  --warn: #fbbf24;
  --warn-2: #f59e0b;
  --bad: #f05252;
  --bad-2: #d42f2f;
  --none: rgba(255, 255, 255, 0.07);
  --tip-bg: #f4f3ff;
  --tip-fg: #0b0a14;
  --blob-1: #7c3aed;
  --blob-2: #0891b2;
  --blob-3: #4338ca;
  --blob-opacity: 0.42;
  --grid-line: rgba(255, 255, 255, 0.045);
  --icon-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(6, 182, 212, 0.18));
  --icon-ink: #ddd6fe;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f4fe;
    --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
    --glass-solid: rgba(255, 255, 255, 0.86);
    --line: rgba(60, 40, 140, 0.1);
    --line-2: rgba(60, 40, 140, 0.18);
    --text: #14121f;
    --muted: #4c4a60;
    --dim: #6a6882;
    --violet: #6d28d9;
    --link: #5b21b6;
    --grad: linear-gradient(115deg, #7c3aed 0%, #4f46e5 45%, #0e7490 100%);
    --grad-warn: linear-gradient(115deg, #b45309 0%, #d97706 55%, #ea580c 100%);
    --grad-bad: linear-gradient(115deg, #b91c1c 0%, #dc2626 55%, #ea580c 100%);
    --grad-dim: linear-gradient(115deg, #3f3d52 0%, #6a6882 100%);
    --good: #22c55e;
    --good-2: #16a34a;
    --none: rgba(60, 40, 140, 0.09);
    --tip-bg: #14121f;
    --tip-fg: #ffffff;
    --blob-1: #a78bfa;
    --blob-2: #67e8f9;
    --blob-3: #818cf8;
    --blob-opacity: 0.32;
    --grid-line: rgba(60, 40, 140, 0.05);
    --icon-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.12));
    --icon-ink: #5b21b6;
    --shadow: 0 24px 60px -36px rgba(60, 40, 140, 0.35);
    --now: #b45309;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(129, 140, 248, 0.35);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- the sky: drifting aurora and a fading grid, like the top of savyly.com ---------- */
.sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 1250px;
  overflow: hidden;
  pointer-events: none;
  /* fades out softly below the hero, so there's never an edge */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.sky span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: var(--blob-opacity);
  animation: drift 20s ease-in-out infinite alternate;
}

.sky span:nth-child(1) {
  width: 640px;
  height: 640px;
  left: -8%;
  top: -260px;
  background: var(--blob-1);
}

.sky span:nth-child(2) {
  width: 560px;
  height: 560px;
  right: -10%;
  top: -160px;
  background: var(--blob-2);
  animation-delay: -7s;
}

.sky span:nth-child(3) {
  width: 520px;
  height: 520px;
  left: 30%;
  top: 340px;
  background: var(--blob-3);
  opacity: calc(var(--blob-opacity) * 0.55);
  animation-delay: -13s;
}

.sky .grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(70px, 40px) scale(1.08);
  }
  100% {
    transform: translate(-50px, 70px) scale(0.94);
  }
}

/* ---------- top bar ---------- */
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.tag {
  padding: 3px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.back:hover {
  border-color: var(--violet);
}

/* ---------- state colours ---------- */
.s-ok {
  --state: var(--good);
  --state-2: var(--good-2);
}
.s-slow {
  --state: var(--warn);
  --state-2: var(--warn-2);
}
.s-down {
  --state: var(--bad);
  --state-2: var(--bad-2);
}
.s-unknown {
  --state: var(--dim);
  --state-2: var(--dim);
}

.si {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.si circle {
  fill: var(--state);
  stroke: none;
}

.si path {
  stroke: #fff;
}

.s-slow .si path {
  stroke: #1a1405;
}

.pi {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--state, var(--good));
  box-shadow: 0 0 12px var(--state, var(--good));
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--state, var(--good));
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 48px;
  padding: 36px 0 56px;
}

.hero-copy {
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 .grad {
  background-size: 200% 100%;
  animation: sheen 9s ease-in-out infinite alternate;
}

@keyframes sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 5.8vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero.s-slow h1 .grad {
  background-image: var(--grad-warn);
}

.hero.s-down h1 .grad {
  background-image: var(--grad-bad);
}

.hero.s-unknown h1 .grad {
  background-image: var(--grad-dim);
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.6vw, 19px);
  text-wrap: pretty;
}

.lead a {
  color: var(--link);
}

/* the three numbers */
.stats {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.stat b {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat b small {
  color: var(--dim);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0;
}

.stat.big b {
  font-size: clamp(40px, 4.6vw, 54px);
  letter-spacing: -0.045em;
}

.stat span {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.35;
}

/* the logo hub with the seven parts circling it */
.orbit {
  --R: 150px;
  --R2: 196px;
  --S: 48px;
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  animation: fade 1.2s ease 0.15s both;
}

.orbit-glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), rgba(34, 211, 238, 0.14) 45%, transparent 70%);
  filter: blur(20px);
  animation: breathe 5s ease-in-out infinite;
}

.track {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(167, 139, 250, 0.3);
}

.track.t1 {
  width: calc(var(--R) * 2);
  height: calc(var(--R) * 2);
}

.track.t2 {
  width: calc(var(--R2) * 2);
  height: calc(var(--R2) * 2);
  border-style: solid;
  border-color: rgba(34, 211, 238, 0.12);
}

.ring {
  position: absolute;
  inset: 0;
  animation: spin 80s linear infinite;
}

.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--S);
  height: var(--S);
  margin: calc(var(--S) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1));
}

.o1 { --a: 0deg; }
.o2 { --a: 51.43deg; }
.o3 { --a: 102.86deg; }
.o4 { --a: 154.29deg; }
.o5 { --a: 205.71deg; }
.o6 { --a: 257.14deg; }
.o7 { --a: 308.57deg; }

.orb i {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: var(--glass-solid);
  color: var(--icon-ink);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: spin 80s linear infinite reverse;
}

.orb b {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 10px var(--state);
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: -60px;
}

.hub img {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 19px;
  box-shadow: 0 0 70px -6px rgba(139, 92, 246, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ping {
  position: absolute;
  inset: 18px;
  border: 2px solid var(--state);
  border-radius: 19px;
  opacity: 0;
  animation: hub-ping 3.2s ease-out infinite;
}

.ping.p2 {
  animation-delay: 1.6s;
}

.orbit.s-unknown .ping {
  border-color: rgba(167, 139, 250, 0.7);
}

@keyframes hub-ping {
  from {
    transform: scale(0.95);
    opacity: 0.85;
  }
  to {
    transform: scale(2.3);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 4px 18px;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hint {
  color: var(--dim);
  font-size: 13px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 8px;
  height: 16px;
  border-radius: 4px;
}

.legend .d-none {
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---------- the parts ---------- */
.parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.part {
  position: relative;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: border-color 0.25s ease;
}

/* a soft light in the part's state colour, top left */
.part::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at 0% 0%, color-mix(in srgb, var(--state) 13%, transparent), transparent 60%);
  pointer-events: none;
}

.part > * {
  position: relative; /* above the light */
}

.part:hover {
  border-color: var(--line-2);
}

.part:first-child {
  grid-column: 1 / -1;
}

.part:nth-child(2) { animation-delay: 0.06s; }
.part:nth-child(3) { animation-delay: 0.12s; }
.part:nth-child(4) { animation-delay: 0.18s; }
.part:nth-child(5) { animation-delay: 0.24s; }
.part:nth-child(6) { animation-delay: 0.3s; }
.part:nth-child(7) { animation-delay: 0.36s; }

.part-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.part-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--icon-ink);
}

.part-name {
  flex: 1;
  min-width: 0;
}

.part h3 {
  font-size: 18px;
  font-weight: 600;
}

.about {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.since {
  margin-top: 4px;
  color: var(--dim);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border: 1px solid color-mix(in srgb, var(--state) 38%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--state) 12%, transparent);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* the 30 days */
.bars {
  position: relative;
  display: flex;
  gap: 4px;
  height: 46px;
  margin-top: 20px;
  /* the strip grows in as a whole: a bar itself never carries a transform, so its hover note is never squeezed */
  animation: grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
  transform-origin: 50% 100%;
}

.bars i {
  position: relative; /* its hover note is placed from the bar itself */
  flex: 1 1 0;
  min-width: 0;
  border-radius: 6px;
}

.d-ok {
  background: linear-gradient(180deg, var(--good), var(--good-2));
}
.d-minor {
  background: linear-gradient(180deg, var(--warn), var(--warn-2));
}
.d-major {
  background: linear-gradient(180deg, var(--bad), var(--bad-2));
}
.d-none {
  background: var(--none);
}

/* today: a slow shimmer and a soft glow */
.bars i.today {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, var(--good), var(--good-2));
  background-size: 100% 300%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--good) 70%, transparent);
  animation: shimmer 2.8s ease-in-out 1.2s infinite;
}

.bars i.today.d-minor {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, var(--warn), var(--warn-2));
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--warn) 70%, transparent);
}

.bars i.today.d-major {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, var(--bad), var(--bad-2));
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--bad) 70%, transparent);
}

.bars i.today.d-none {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, var(--none), var(--none));
  box-shadow: none;
}

@keyframes shimmer {
  0% {
    background-position: 0 100%, 0 0;
  }
  60%,
  100% {
    background-position: 0 -100%, 0 0;
  }
}

@keyframes grow {
  from {
    opacity: 0;
    transform: scaleY(0.25);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bars i:hover {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.bars i:hover::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(320px, calc(100vw - 48px));
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--tip-bg);
  color: var(--tip-fg);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

/* near the edges the note opens inwards, so it always stays on the card */
.bars i:nth-child(-n + 10):hover::after {
  left: 0;
  transform: none;
}

.bars i:nth-child(n + 21):hover::after {
  left: auto;
  right: 0;
  transform: none;
}

.scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--dim);
  font-size: 12.5px;
}

.pct {
  color: var(--text);
  font-weight: 600;
}

.earlier {
  margin-top: 6px;
  color: var(--dim);
  font-size: 12.5px;
  text-align: center;
}

/* ---------- incidents ---------- */
.ongoing {
  display: grid;
  gap: 16px;
  margin: -8px 0 48px;
}

.history {
  margin-top: 64px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a78bfa, #22d3ee 60%, transparent);
  opacity: 0.6;
}

.timeline > li {
  position: relative;
}

.timeline > li + li {
  margin-top: 16px;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 26px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 12px var(--warn);
}

.timeline > li:has(.is-long)::before {
  background: var(--bad);
  box-shadow: 0 0 12px var(--bad);
}

.incident {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.incident.is-ongoing {
  --state: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 50%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 14%, transparent), transparent 60%), var(--glass);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 20%, transparent), 0 20px 60px -30px color-mix(in srgb, var(--warn) 60%, transparent);
}

.now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--now, var(--warn));
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.incident h3 {
  font-size: 19px;
  font-weight: 600;
}

.when {
  margin-top: 4px;
  color: var(--dim);
  font-size: 13.5px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
}

.chips li {
  padding: 3px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.story p {
  color: var(--muted);
  font-size: 15px;
}

.story p + p {
  margin-top: 8px;
}

.empty {
  padding: 26px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

/* ---------- footer ---------- */
.foot {
  margin-top: 72px;
  padding: 0 0 56px;
  color: var(--dim);
  font-size: 13.5px;
  text-align: center;
}

.foot .wrap {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.foot img {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  opacity: 0.9;
}

.foot p {
  max-width: 640px;
  margin: 0 auto;
}

.foot p + p {
  margin-top: 8px;
}

.lost {
  grid-template-columns: 1fr;
  padding-top: 80px;
}

/* ---------- tablets ---------- */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 8px;
    text-align: center;
  }

  .orbit {
    order: -1;
    --R: 124px;
    --R2: 160px;
    --S: 42px;
    width: min(350px, 100%);
  }

  .lead {
    margin: 0 auto;
  }

  .stats {
    text-align: left;
  }

  .parts {
    grid-template-columns: 1fr;
  }
}

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .sky {
    height: 1150px;
  }

  .sky span:nth-child(1) {
    width: 420px;
    height: 420px;
  }

  .sky span:nth-child(2) {
    width: 380px;
    height: 380px;
    top: 120px;
  }

  .sky span:nth-child(3) {
    width: 360px;
    height: 360px;
    left: 10%;
    top: 520px;
  }

  .top-in {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .back {
    padding: 6px 12px;
    font-size: 13px;
  }

  .orbit {
    --R: 96px;
    --R2: 124px;
    --S: 36px;
    width: min(286px, 100%);
  }

  .orb i {
    border-radius: 12px;
  }

  .orb .pi {
    width: 18px;
    height: 18px;
  }

  .orb b {
    width: 10px;
    height: 10px;
  }

  .hub {
    width: 84px;
    height: 84px;
    margin: -42px;
  }

  .hub img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .ping {
    inset: 12px;
    border-radius: 14px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(34px, 10vw, 44px);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 26px;
  }

  .stat.big {
    grid-column: 1 / -1;
  }

  .stat {
    padding: 16px;
  }

  .stat b {
    font-size: 24px;
  }

  .stat.big b {
    font-size: 46px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .part {
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .part-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .part-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .part-name {
    flex-basis: calc(100% - 52px);
  }

  .badge {
    margin-left: 52px;
  }

  .bars {
    gap: 3px;
    height: 40px;
    margin-top: 16px;
  }

  .bars i {
    position: static; /* on a phone the note spans the whole strip, so even a long one is never cut off */
    border-radius: 4px;
  }

  .bars i:nth-child(n):hover::after {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline > li::before {
    left: -24px;
  }

  .incident {
    padding: 18px 16px;
  }
}

@media (max-width: 360px) {
  .back {
    display: none;
  }
}

/* ---------- comfort and accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .bars i,
  .legend i,
  .orb b {
    forced-color-adjust: none;
  }

  .grad {
    background: none;
    color: CanvasText;
  }
}
