:root {
  --bg: #F4F6FB;
  --ink: #12141A;
  --indigo: #3D4FFF;
  --muted: #5C6475;
  --card: #ffffff;
  --line: #E4E8F0;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

.hero,
.crew,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 4.2rem 0 2.6rem;
}

.hero-inner {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.kicker {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--indigo);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

h1 {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 6.4vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 16ch;
  color: var(--ink);
}

.sub {
  margin-top: 1.05rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 42ch;
}

.lede {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-visual {
  margin: 0;
}

.hero-art {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 20, 26, 0.06);
  overflow: hidden;
}

.spin,
.spin-slow,
.orbit {
  transform-origin: 280px 160px;
}

.spin { animation: orbit 16s linear infinite; }
.spin-slow { animation: orbit 36s linear infinite reverse; }
.orbit { animation: orbit 28s linear infinite; }
.core { animation: pulse 2.2s ease-in-out infinite; }
.n1 { animation: pulse 2.4s ease-in-out infinite; }
.n2 { animation: pulse 2.4s ease-in-out 0.4s infinite; }
.n3 { animation: pulse 2.4s ease-in-out 0.8s infinite; }
.n4 { animation: pulse 2.4s ease-in-out 1.2s infinite; }

.crew {
  padding-bottom: 4.5rem;
}

.section-label {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
  .hero { padding-top: 5.2rem; }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

.card article {
  height: 100%;
  padding: 1.3rem 1.2rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 20, 26, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:focus-within article {
  transform: translateY(-4px);
  border-color: var(--indigo);
  box-shadow: 0 10px 28px rgba(18, 20, 26, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover article {
    transform: translateY(-4px);
    border-color: var(--indigo);
    box-shadow: 0 10px 28px rgba(18, 20, 26, 0.08);
  }
}

.mark {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  margin-bottom: 1.05rem;
}

.avatar {
  position: relative;
}

.avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.5rem 0.22rem 0.42rem;
  border: 1px solid var(--line);
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.is-idle {
  color: #6B7280;
  background: #EEF1F6;
}

.is-idle i { background: #9CA3AF; }

.is-online {
  color: #3F4A5A;
  background: #EEF1F6;
}

.is-online i { background: #5C6475; }

.is-working {
  color: var(--indigo);
  background: #EEF1FF;
  border-color: #D9DEFF;
}

.is-working i {
  background: var(--indigo);
  animation: pulse 1.6s ease-in-out infinite;
}

h3 {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.role {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--indigo);
  margin: 0.32rem 0 0.65rem;
}

.blurb {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 400;
  max-width: 28ch;
}

footer {
  padding: 0 0 2.2rem;
}

footer p {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.fade-up {
  animation: fade-up 0.4s ease both;
}

.d1 { animation-delay: 0.04s; }
.d2 { animation-delay: 0.08s; }
.d3 { animation-delay: 0.12s; }
.d4 { animation-delay: 0.16s; }
.d5 { animation-delay: 0.20s; }
.d6 { animation-delay: 0.24s; }
.d7 { animation-delay: 0.28s; }
.d8 { animation-delay: 0.32s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .spin,
  .spin-slow,
  .orbit,
  .core,
  .n1, .n2, .n3, .n4,
  .is-working i {
    animation: none !important;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
  .card article { transition: none; }
  .card:hover article,
  .card:focus-within article { transform: none; }
}

.hero,
.crew,
.about,
.bench,
footer {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.section-head .section-label { margin-bottom: 0; }

.live-stamp {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}

.live-stamp::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--indigo);
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}

.activity {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink);
  min-height: 1.2em;
}

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.skills li {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #F4F6FB;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
}

.status.just-changed {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.about,
.bench {
  padding-bottom: 2.4rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 20, 26, 0.06);
  padding: 1.45rem 1.4rem 1.5rem;
}

.panel .section-label { margin-bottom: 0.85rem; }

.about-lede,
.bench-note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.1rem;
}

.facts {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.facts li {
  padding: 0.85rem 0.9rem;
  background: #F8F9FD;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.facts strong {
  display: block;
  font-family: Syne, sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.facts span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.bars {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 12rem) 1fr 2rem;
  gap: 0.7rem;
  align-items: center;
}

.bar-name {
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
}

.bar-name em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
}

.bar-track {
  height: 8px;
  background: #EEF1F6;
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--score) / 66 * 100%);
  background: #C5CAF5;
  border-radius: 99px;
  transform-origin: left center;
  animation: bar-in 0.7s ease both;
}

.bars .is-ours .bar-fill { background: var(--indigo); }
.bars .is-ours .bar-name { color: var(--indigo); }

.bar-score {
  font-family: Syne, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

@keyframes bar-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sources {
  margin-top: 1.05rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.sources a {
  color: var(--indigo);
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .live-stamp::before,
  .bar-fill { animation: none !important; }
}
