 :root {
    --bg: #14181C;
    --surface: #1B2027;
    --surface-hover: #212832;
    --border: #2A313B;
    --border-strong: #3A4351;
    --text: #E9E7E1;
    --text-secondary: #8B92A0;
    --accent: #5FD1A0;
    --accent-dark: #14181C;
    --max-width: 880px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Pixelify Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: 500;
    line-height: 1.2;
  }

  a { color: inherit; text-decoration: none; }

  .wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
  }

  section { padding: 80px 0; }

  /* ---------- Nav ---------- */
  nav {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
  }
  nav .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
  }
  .logo span { color: var(--accent); }
  nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  nav a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.15s ease;
  }
  nav a:hover { color: var(--text); }

  /* ---------- Hero ---------- */
  .hero {
    padding: 96px 0 88px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 56px;
    align-items: center;
  }
  .hero-eyebrow {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 48px;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
  }
  .hero p.lede {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 46ch;
    margin-bottom: 28px;
  }
  .hero-links {
    display: flex;
    gap: 12px;
  }
  .btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-strong);
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .btn-primary {
    background: var(--accent);
    color: var(--accent-dark);
    border-color: var(--accent);
  }
  .btn-primary:hover { background: #74d9ac; }
  .btn-ghost:hover { border-color: var(--text-secondary); }

  .hero-photo {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .hero-photo .placeholder {
    width: 100%;
    height: 100%;
    padding: 0;
  }

  /* ---------- Section headers ---------- */
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
    border-top: 1px solid var(--border);
    padding-top: 80px;
  }
  section:first-of-type .section-head,
  .hero + section .section-head { padding-top: 0; border-top: none; }
  .section-head h2 { font-size: 28px; }
  .section-head .count {
    font-size: 14px;
    color: var(--text-secondary);
  }

  /* ---------- Games ---------- */
  .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* grid-template-columns: repeat(4,1fr); */
    gap: 20px;
  }
  .game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: block;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }
  .game-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
  }
  .game-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #232A34, #1B2027);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    border-bottom: 1px solid var(--border);
  }
  .game-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .game-info { padding: 16px 18px 18px; }
  .game-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .game-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
  }
  .game-cta {
    font-size: 13px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* ---------- Experience ---------- */
  .exp-list {
    display: flex;
    flex-direction: column;
  }
  .exp-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
  }
  .exp-highlights {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 5px;
    padding-left: 20px;
  }
  .exp-row:last-child { border-bottom: none; }
  .exp-period {
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 2px;
  }
  .exp-role {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .exp-org { color: var(--accent); }
  .exp-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-top: 6px;
    max-width: 60ch;
  }
  .exp-stack {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .exp-stack span {
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
  }
  .yt {
    color: var(--accent);
    padding: 1px 4px;
    border-radius: 3px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .yt:hover{
    background: var(--accent);
    color: var(--accent-dark);
  }
  /* ---------- Contact ---------- */
  .contact-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }
  .contact-copy h2 { font-size: 26px; margin-bottom: 12px; }
  .contact-copy p {
    font-size: 14.5px;
    color: var(--text-secondary);
    max-width: 32ch;
  }
  form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .field-row { display: flex; gap: 14px; }
  label {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
  }
  input, textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
  }
  input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
  }
  textarea { resize: vertical; min-height: 90px; }
  .field { flex: 1; }
  button[type="submit"] {
    align-self: flex-start;
    background: var(--accent);
    color: var(--accent-dark);
    border: none;
    border-radius: 6px;
    padding: 11px 22px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  button[type="submit"]:hover { background: #74d9ac; }
  .form-note {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    min-height: 16px;
  }

  footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
  }

  @media (max-width: 720px) {
    .hero { grid-template-columns: 1fr; }
    .hero-photo { max-width: 280px; }
    .hero h1 { font-size: 36px; }
    .contact-inner { grid-template-columns: 1fr; padding: 28px; }
    .exp-row { grid-template-columns: 1fr; gap: 6px; }
    .field-row { flex-direction: column; }
  }