:root {
    --bg: #0f1216;
    --panel: #161b22;
    --panel2: #11151b;
    --text: #e8eef6;
    --muted: #a6b2c2;
    --border: #2a3340;
    --chip: #1d2632;
    --chipHover: #243245;
    --btn: #233044;
    --btnHover: #2b3a52;
    --accent: #79b8ff; /* simple highlight, not neon */
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  }
  
  * {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    background: radial-gradient(1200px 800px at 20% -10%, #1a2330 0%, var(--bg) 60%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
      "Segoe UI Emoji";
    line-height: 1.5;
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  
  .container {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
  }
  
  .skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--panel);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  .skip-link:focus {
    left: 16px;
    z-index: 1000;
  }
  
  .site-header {
    padding: 32px 0 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent);
  }
  
  .header-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    align-items: center;
  }
  
  .headshot-wrap {
    display: flex;
    justify-content: center;
  }
  
  .headshot {
    width: 192px;
    height: 192px;
    border-radius: 999px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    object-fit: cover;
    background: var(--panel);
  }
  
  .header-text h1 {
    margin: 0 0 6px;
    font-size: 2rem;
    letter-spacing: 0.2px;
  }
  
  .subtitle {
    margin: 0 0 10px;
    color: var(--muted);
  }
  
  .meta {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
  }
  .meta li::before {
    content: "•";
    margin-right: 10px;
    color: #445166;
  }
  .meta li:first-child::before {
    content: "";
    margin-right: 0;
  }
  
  .link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: var(--chip);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
  }
  .chip:hover {
    background: var(--chipHover);
    text-decoration: none;
  }
  
  .section {
    padding: 22px 0 6px;
  }
  
  .section h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    letter-spacing: 0.2px;
  }
  
  .card {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .card-body {
    padding: 16px;
  }
  
  .project {
    margin: 14px 0;
  }
  
  .project-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  
  .project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(121, 184, 255, 0.15), rgba(121, 184, 255, 0.08));
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(121, 184, 255, 0.15);
    transition: all 0.2s ease;
  }
  .btn:hover {
    background: linear-gradient(135deg, rgba(121, 184, 255, 0.25), rgba(121, 184, 255, 0.15));
    border-color: #9bc5ff;
    box-shadow: 0 4px 12px rgba(121, 184, 255, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
  }
  
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  
  .media-grid {
    margin: 12px 0 10px;
  }
  
  .media {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0b0e12;
  }
  
  .media img,
  .media video {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .media figcaption {
    padding: 10px 10px;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
  }
  
  .bullets {
    margin: 10px 0 0;
    padding-left: 18px;
  }
  .bullets li {
    margin: 6px 0;
  }
  
  .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }
  
  .pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 0.92rem;
  }
  
  .techline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  
  .tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(121, 184, 255, 0.07);
    color: var(--text);
    font-size: 0.9rem;
  }
  
  .muted {
    color: var(--muted);
  }

  .shipped-badge {
    color: var(--accent);
    font-weight: 600;
    background: rgba(121, 184, 255, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(121, 184, 255, 0.3);
  }
  
  .tight {
    margin: 0;
  }
  
  .subhead {
    margin: 14px 0 6px;
    font-size: 1rem;
  }
  
  .split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .badge-col {
    display: flex;
    align-items: flex-start;
  }
  
  .mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 600;
  }
  
  .mini-icon {
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel);
  }
  
  .callout {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(121, 184, 255, 0.06);
  }
  
  .footnote {
    margin-top: 10px;
    font-size: 0.95rem;
  }
  
  .nowrap {
    white-space: nowrap;
  }
  
  .site-footer {
    padding: 18px 0 28px;
    border-top: 1px solid var(--border);
    margin-top: 22px;
  }
  
  @media (max-width: 820px) {
    .header-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .meta {
      justify-content: center;
    }
  
    .link-row {
      justify-content: center;
    }
  
    .grid-2 {
      grid-template-columns: 1fr;
    }
  
    .grid-3 {
      grid-template-columns: 1fr;
    }
  
    .project-header {
      align-items: flex-start;
    }
  }
  