:root {
  --paper: #f6f5ef;
  --paper-bright: #ffffff;
  --ink: #121319;
  --muted: #666b7d;
  --muted-strong: #4f5364;
  --line: #a6abc2;
  --line-soft: #d8dbe7;
  --lavender: #9398b8;
  --lavender-deep: #767da2;
  --red: #ff3e21;
  --red-deep: #dc2d14;
  --button-blue: #9499ba;
  --button-blue-deep: #7a81a6;
  --shadow: 0 18px 45px rgba(102, 109, 138, 0.12);
  --node-xl: 172px;
  --node-lg: 128px;
  --node-sm: 106px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(147, 152, 184, 0.08), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(118, 125, 162, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 100%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.top-rails {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 38px;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.top-rails span {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--lavender);
}

.top-rails span:first-child {
  top: 0;
}

.top-rails span:last-child {
  top: 18px;
  background: var(--lavender-deep);
}

.page-shell {
  width: min(1240px, calc(100% - 42px));
  margin: 0 auto;
  padding: 92px 0 42px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.copy-column {
  position: sticky;
  top: 70px;
}

.eyebrow,
.stage-label,
.meta-label,
.active-slot {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-deep);
}

.copy-column h1,
.active-card h2 {
  margin: 0;
  font-family: "League Spartan", sans-serif;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.copy-column h1 {
  margin-top: 14px;
  font-size: clamp(4.2rem, 11vw, 7.4rem);
}

.intro-copy {
  margin: 16px 0 0;
  font-size: 1.28rem;
  color: var(--muted-strong);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.mini-stats article,
.active-card {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.mini-stats article {
  padding: 16px 18px;
}

.mini-stats strong {
  display: block;
  font-family: "League Spartan", sans-serif;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}

.mini-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-line {
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 1rem;
}

.active-card {
  margin-top: 24px;
  padding: 20px 22px 22px;
}

.active-card h2 {
  margin-top: 10px;
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.active-summary {
  margin: 12px 0 0;
  color: var(--muted-strong);
  line-height: 1.5;
  font-size: 1.03rem;
}

.active-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.active-meta strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.progress-rail {
  width: 100%;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #eff1f6;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--lavender-deep));
  transition: width 180ms linear;
}

.micro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
  align-items: center;
}

.micro-button,
.micro-link {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 20px rgba(118, 125, 162, 0.08);
}

.micro-button {
  cursor: pointer;
}

.network-column {
  min-width: 0;
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.stage-time {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-time strong {
  color: var(--ink);
  letter-spacing: 0.06em;
}

.network-board {
  position: relative;
  margin-top: 16px;
  aspect-ratio: 1.16 / 1;
  min-height: 720px;
}

.network-board::before {
  content: "";
  position: absolute;
  inset: 8% 10% 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(147, 152, 184, 0.08), transparent 60%);
  filter: blur(6px);
}

.network-lines,
.node-layer {
  position: absolute;
  inset: 0;
}

.network-lines line {
  stroke: var(--lavender-deep);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.84;
}

.network-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  transition: transform 140ms ease;
}

.network-node:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.network-node.is-active {
  z-index: 2;
}

.network-node--xl {
  width: var(--node-xl);
}

.network-node--lg {
  width: var(--node-lg);
}

.network-node--sm {
  width: var(--node-sm);
}

.node-ring {
  width: 100%;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #a7abc1, #7b82a5);
  box-shadow:
    0 12px 22px rgba(102, 109, 138, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.node-face {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(160deg, var(--a), var(--b));
}

.node-face::before {
  content: "";
  position: absolute;
  left: 19%;
  right: 19%;
  top: 18%;
  height: 44%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(10px);
}

.node-face::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 5%;
  height: 36%;
  border-radius: 42% 42% 22% 22% / 55% 55% 20% 20%;
  background: rgba(0, 0, 0, 0.18);
}

.node-monogram {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.node-caption {
  max-width: 122px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.network-node--sm .node-caption {
  max-width: 106px;
  font-size: 0.8rem;
}

.network-node.is-active .node-ring {
  padding: 7px;
  box-shadow:
    0 18px 34px rgba(102, 109, 138, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.network-node.is-active .node-caption {
  color: var(--ink);
}

body[data-live="on"] .network-node.is-active .node-ring {
  animation: pulse 1.8s ease-in-out infinite;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  min-height: 68px;
  padding: 0 22px;
  border: 4px solid #e1e4ee;
  box-shadow: 0 6px 0 rgba(148, 153, 186, 0.22);
  text-decoration: none;
  font-family: "League Spartan", sans-serif;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.action:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 0 rgba(148, 153, 186, 0.22);
}

.action-primary {
  background: linear-gradient(180deg, #ff532f, var(--red-deep));
  color: #ffffff;
}

.action-secondary {
  background: linear-gradient(180deg, #a3a8c2, var(--button-blue-deep));
  color: #ffffff;
}

@keyframes pulse {
  0% {
    box-shadow:
      0 18px 34px rgba(102, 109, 138, 0.26),
      0 0 0 0 rgba(255, 62, 33, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  }
  100% {
    box-shadow:
      0 18px 34px rgba(102, 109, 138, 0.26),
      0 0 0 18px rgba(255, 62, 33, 0),
      inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  }
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copy-column {
    position: static;
  }

  .network-board {
    min-height: 640px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    padding-top: 82px;
  }

  .copy-column h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .network-board {
    min-height: 520px;
  }

  .action-row {
    flex-direction: column;
    align-items: center;
  }

  .action {
    width: min(100%, 260px);
  }

  .stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .network-node--xl {
    width: 140px;
  }

  .network-node--lg {
    width: 102px;
  }

  .network-node--sm {
    width: 88px;
  }

  .node-caption {
    max-width: 94px;
    font-size: 0.76rem;
  }

  .network-lines line {
    stroke-width: 5;
  }
}
