:root {
      --primary: #0EA5E9;
      --secondary: #0284C7;
      --background: #0B1220;
      --surface: #111827;
      --border: #1F2937;
      --text-primary: #E5E7EB;
      --text-secondary: #9CA3AF;
      --hover-accent: #22D3EE;
      --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.32);
      --shadow-hover: 0 14px 36px rgba(14, 165, 233, 0.18);
      --radius: 14px;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      padding: 0;
      background: radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.08), transparent 28%),
        radial-gradient(circle at 90% 100%, rgba(2, 132, 199, 0.08), transparent 30%),
        var(--background);
      color: var(--text-primary);
      font-family: Inter, "Noto Sans", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .container {
      width: min(1120px, calc(100% - 2rem));
      margin: 0 auto;
    }

    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      gap: 2rem;
      padding: 1rem 0 2.5rem;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(8px);
      background: color-mix(in srgb, var(--background) 88%, black 12%);
      border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent 15%);
    }

    .header-inner {
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .brand-mark {
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.2));
    }

    .brand-mark svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      background: rgba(17, 24, 39, 0.6);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.25rem;
    }

    .nav a {
      text-decoration: none;
      color: var(--text-secondary);
      padding: 0.45rem 0.8rem;
      border-radius: 999px;
      font-size: 0.92rem;
      transition: all 0.2s ease;
    }

    .nav a:hover {
      color: var(--text-primary);
      background: rgba(14, 165, 233, 0.14);
    }

    .nav a.active {
      color: #fff;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .panel {
      background: color-mix(in srgb, var(--surface) 96%, black 4%);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow-soft);
    }

    .hero {
      padding: 1.2rem 1.25rem;
    }

    .eyebrow {
      color: var(--primary);
      font-size: 0.78rem;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 0.4rem;
    }

    .title {
      margin: 0 0 0.5rem;
      font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
      line-height: 1.2;
    }

    .subtitle {
      margin: 0;
      color: var(--text-secondary);
      max-width: 76ch;
      line-height: 1.62;
    }

    .roles {
      padding: 1rem;
    }

    .section-title {
      margin: 0 0 0.8rem;
      font-size: 1.05rem;
      font-weight: 600;
    }

    .role-cards {
      display: grid;
      grid-template-columns: repeat(5, minmax(150px, 1fr));
      gap: 0.65rem;
    }

    .role-card {
      border: 1px solid var(--border);
      background: rgba(15, 23, 42, 0.55);
      border-radius: 12px;
      padding: 0.75rem;
    }

    .role-head {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      margin-bottom: 0.35rem;
      font-weight: 600;
      font-size: 0.94rem;
    }

    .role-icon {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      font-size: 0.78rem;
      background: rgba(255, 255, 255, 0.06);
    }

    .role-desc {
      color: var(--text-secondary);
      margin: 0;
      font-size: 0.86rem;
      line-height: 1.42;
    }

    .contributors {
      padding: 1rem;
      display: grid;
      gap: 0.95rem;
    }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.65rem;
      align-items: center;
    }

    .filters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .filter-btn,
    .sort-select {
      border: 1px solid var(--border);
      background: #0f172a;
      color: var(--text-secondary);
      border-radius: 999px;
      font-size: 0.84rem;
      font-weight: 600;
      padding: 0.45rem 0.75rem;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .filter-btn.active,
    .filter-btn:hover,
    .sort-select:hover,
    .sort-select:focus {
      color: #fff;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
      outline: none;
    }

    .sort-select {
      border-radius: 10px;
      background: #0e1728;
    }

    .grid {
      display: grid;
      gap: 0.85rem;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .contributor-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.9));
      padding: 0.8rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .contributor-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-hover);
      border-color: color-mix(in srgb, var(--hover-accent) 55%, var(--border) 45%);
    }

    .identity {
      display: flex;
      gap: 0.65rem;
      align-items: center;
      margin-bottom: 0.65rem;
    }

    .avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 2px solid rgba(34, 211, 238, 0.35);
      display: grid;
      place-items: center;
      font-weight: 700;
      background: radial-gradient(circle at 35% 25%, rgba(34, 211, 238, 0.22), rgba(2, 132, 199, 0.24));
      color: #cffafe;
      flex: 0 0 auto;
      overflow: hidden;
    }

    .avatar-image {
      background: #0f172a;
    }

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .name {
      margin: 0;
      font-size: 0.98rem;
      font-weight: 600;
    }

    .activity {
      margin: 0.1rem 0 0;
      color: var(--text-secondary);
      font-size: 0.77rem;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-bottom: 0.6rem;
    }

    .role-tag {
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0.24rem 0.48rem;
      border-radius: 999px;
      border: 1px solid transparent;
      letter-spacing: 0.01em;
    }

    .expand-btn {
      width: 100%;
      border: 1px solid color-mix(in srgb, var(--secondary) 55%, var(--border) 45%);
      background: rgba(2, 132, 199, 0.12);
      color: #bae6fd;
      border-radius: 9px;
      padding: 0.45rem 0.6rem;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .expand-btn:hover {
      border-color: var(--hover-accent);
      background: rgba(34, 211, 238, 0.12);
      color: #ecfeff;
    }

    .details {
      margin-top: 0.75rem;
      border-top: 1px dashed color-mix(in srgb, var(--border) 80%, transparent 20%);
      padding-top: 0.7rem;
      display: none;
      gap: 0.5rem;
    }

    .details.open {
      display: grid;
    }

    .details-title {
      margin: 0;
      font-size: 0.8rem;
      color: #bfdbfe;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .list {
      margin: 0;
      padding-left: 1.05rem;
      color: var(--text-secondary);
      font-size: 0.8rem;
      line-height: 1.45;
    }

    .list li {
      margin-bottom: 0.22rem;
    }

    .empty {
      padding: 1.4rem;
      text-align: center;
      border: 1px dashed var(--border);
      border-radius: 12px;
      color: var(--text-secondary);
      background: rgba(15, 23, 42, 0.55);
    }

    .footer {
      margin-top: auto;
      text-align: center;
      color: #cbd5e1;
      font-size: 0.78rem;
      padding-top: 0.5rem;
    }

    .footer a {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px solid rgba(203, 213, 225, 0.28);
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    .footer a:hover,
    .footer a:focus {
      color: #e0f2fe;
      border-color: rgba(224, 242, 254, 0.65);
      outline: none;
    }

    @media (max-width: 1024px) {
      .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .role-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .header-inner {
        height: auto;
        padding: 0.55rem 0;
        flex-wrap: wrap;
      }

      .grid,
      .role-cards {
        grid-template-columns: 1fr;
      }

      .toolbar {
        align-items: stretch;
      }

      .sort-select {
        width: 100%;
      }
    }
