  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #0d0f0e; --bg2: #131614; --bg3: #1a1d1b;
    --border: rgba(255,255,255,0.07);
    --accent: #39ff8a; --accent-dim: rgba(57,255,138,0.12); --accent-glow: rgba(57,255,138,0.25);
    --text: #e8ede9; --muted: #7a8c7e;
    --mono: 'JetBrains Mono', monospace; --sans: 'DM Sans', sans-serif;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
  body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  }
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 3rem; border-bottom: 1px solid var(--border);
    background: rgba(13,15,14,0.85); backdrop-filter: blur(12px);
  }
  .nav-logo { font-family: var(--mono); font-size: 0.9rem; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
  .nav-logo::before { content: '>'; opacity: 0.5; animation: blink 1.2s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
  .nav-links a:hover { color: var(--accent); }

  #hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 3rem 4rem; position: relative; overflow: hidden; }
  .hero-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(57,255,138,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,138,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
  }
  .hero-inner { max-width: 900px; position: relative; z-index: 1; }
  .hero-tag { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.6s ease forwards; }
  .hero-tag::before { content: '// '; opacity: 0.5; }
  h1 { font-family: var(--mono); font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.6s 0.15s ease forwards; }
  h1 .accent { color: var(--accent); }
  .hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.8; opacity: 0; animation: fadeUp 0.6s 0.3s ease forwards; }
  .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s 0.45s ease forwards; }
  .btn-primary { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.75rem 1.75rem; background: var(--accent); color: #0d0f0e; border: none; cursor: pointer; text-decoration: none; text-transform: uppercase; transition: opacity 0.2s, transform 0.15s; display: inline-block; }
  .btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
  .btn-ghost { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.75rem 1.75rem; background: transparent; color: var(--muted); border: 1px solid var(--border); cursor: pointer; text-decoration: none; text-transform: uppercase; transition: color 0.2s, border-color 0.2s; display: inline-block; }
  .btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
  .hero-stat-row { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); opacity: 0; animation: fadeUp 0.6s 0.6s ease forwards; }
  .hero-stat span { display: block; font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
  .hero-stat p { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.2rem; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

  section { padding: 5rem 3rem; position: relative; z-index: 1; }
  .section-label { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
  .section-label::before { content: '/* '; }
  .section-label::after { content: ' */'; }
  h2 { font-family: var(--mono); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; line-height: 1.1; }
  .section-desc { color: var(--muted); max-width: 500px; margin-bottom: 3rem; }

  #games { background: var(--bg2); border-top: 1px solid var(--border); }
  .games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5px; }
  .game-card { background: var(--bg); padding: 2rem; border: 1px solid var(--border); transition: border-color 0.2s, background 0.2s; cursor: pointer; position: relative; overflow: hidden; }
  .game-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
  .game-card:hover { background: var(--bg3); border-color: rgba(57,255,138,0.2); }
  .game-card:hover::after { transform: scaleX(1); }
  .game-thumb { width: 100%; aspect-ratio: 16/9; background: var(--bg3); border: 1px solid var(--border); margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; }
  .game-thumb-inner { font-family: var(--mono); font-size: 2.5rem; opacity: 0.2; }
  .game-thumb-1 { background: linear-gradient(135deg, #0d1f1a 0%, #1a3d2e 100%); }
  .game-thumb-2 { background: linear-gradient(135deg, #1a1020 0%, #2d1840 100%); }
  .game-thumb-3 { background: linear-gradient(135deg, #0d1520 0%, #1a2e4a 100%); }
  .game-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-glow); padding: 0.2rem 0.6rem; display: inline-block; margin-bottom: 0.75rem; background: var(--accent-dim); }
  .game-title { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
  .game-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
  .game-link { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
  .game-link::after { content: '->'; transition: transform 0.2s; }
  .game-link:hover::after { transform: translateX(4px); }

  #about { border-top: 1px solid var(--border); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .about-text p { color: var(--muted); margin-bottom: 1.25rem; }
  .terminal-block { background: var(--bg2); border: 1px solid var(--border); padding: 1.5rem; font-family: var(--mono); font-size: 0.8rem; line-height: 1.9; }
  .terminal-block .line { display: flex; gap: 12px; }
  .terminal-block .prompt { color: var(--accent); }
  .terminal-block .cmd { color: var(--text); }
  .terminal-block .out { color: var(--muted); padding-left: 24px; }
  .terminal-header { display: flex; gap: 6px; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }

  #devlog { background: var(--bg2); border-top: 1px solid var(--border); }
  .devlog-list { display: flex; flex-direction: column; }
  .devlog-item { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: padding-left 0.2s; }
  .devlog-item:hover { padding-left: 0.75rem; }
  .devlog-item:hover .devlog-title { color: var(--accent); }
  .devlog-date { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em; }
  .devlog-title { font-weight: 500; transition: color 0.2s; }
  .devlog-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 0.2rem 0.6rem; white-space: nowrap; }

  footer { border-top: 1px solid var(--border); padding: 3rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
  .footer-logo { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--accent); }
  .footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
  .footer-links a { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
  .footer-links a:hover { color: var(--accent); }
  .footer-copy { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }

  .reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
  .js-loaded .reveal { opacity: 0; transform: translateY(24px); }
  .reveal.visible { opacity: 1 !important; transform: none !important; }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 3.5rem 1.5rem; }
    #hero { padding: 7rem 1.5rem 3rem; }
    .hero-stat-row { gap: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
    footer { padding: 2rem 1.5rem; }
    .devlog-item { grid-template-columns: 1fr; gap: 0.35rem; }
    .devlog-tag { display: none; }
  }


/* 2026 portfolio refresh */
.games-grid-released { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.games-grid-wip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.game-card-featured { padding: 1.4rem; }
.game-card-wip { padding: 1.4rem; }
.image-thumb { position: relative; overflow: hidden; background: #111; }
.image-thumb > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-app-icon {
  position: absolute; width: 58px !important; height: 58px !important; object-fit: cover !important;
  right: 12px; bottom: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.wip-heading { margin-top: 3.2rem; margin-bottom: 1rem; }
.wip-heading .section-label { margin-bottom: 0; display: inline-block; }
.game-link-muted { color: var(--muted); cursor: default; }
.game-link-muted::after { content: ''; }

.idle-rpg-teaser {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(57,255,138,0.13), transparent 45%),
    linear-gradient(135deg, #101612 0%, #17251b 54%, #0d0f0e 100%);
}
.idle-rpg-teaser::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(57,255,138,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,138,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}
.wip-badge {
  position: absolute; z-index: 4; top: 12px; left: 12px; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.14em; color: var(--accent); background: rgba(13,15,14,0.88); border: 1px solid var(--accent-glow); padding: 0.3rem 0.55rem;
}
.godot-teaser {
  position: relative; justify-content: flex-start; gap: 1.2rem; padding: 1.7rem;
  background: linear-gradient(135deg, #111314, #1a1d1b);
}
.godot-teaser::before {
  content: ''; position: absolute; inset: 0; opacity: 0.28;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}
.classified-mark {
  position: relative; z-index: 1; width: 82px; height: 82px; flex: 0 0 82px; display: grid; place-items: center;
  border: 1px solid rgba(57,255,138,0.28); color: var(--accent); background: var(--accent-dim);
  font-family: var(--mono); font-weight: 700; font-size: 2.4rem;
}
.classified-copy { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.classified-copy span { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.15em; }
.classified-copy strong { font-family: var(--mono); font-size: clamp(0.9rem, 2vw, 1.25rem); line-height: 1.2; color: var(--text); margin-top: 0.35rem; }
.devlog-empty { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.25rem 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.8rem; }
.devlog-empty .prompt { color: var(--accent); }
.cursor { animation: blink 1.2s step-end infinite; color: var(--accent); }

@media (max-width: 900px) {
  .games-grid-released, .games-grid-wip { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .game-card-featured, .game-card-wip { padding: 1rem; }
  .game-app-icon { width: 46px !important; height: 46px !important; border-radius: 11px; }
  .godot-teaser { padding: 1.1rem; gap: 0.85rem; }
  .classified-mark { width: 64px; height: 64px; flex-basis: 64px; font-size: 2rem; }
}

.untitled-discord-teaser {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(57,255,138,0.08), transparent 32%),
    linear-gradient(135deg, #101613 0%, #0c0f0d 70%);
}
.untitled-discord-teaser::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(57,255,138,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,138,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}
.untitled-teaser-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.45rem; text-align: center;
}
.untitled-kicker, .untitled-note {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
}
.untitled-kicker { color: var(--accent); font-size: 0.68rem; }
.untitled-note { color: var(--muted); font-size: 0.58rem; }
.untitled-mark {
  font-family: var(--mono); font-size: clamp(3.8rem, 9vw, 6.2rem); line-height: 0.95;
  color: rgba(255,255,255,0.12); font-weight: 700;
}

/* Security-hardening refactor: replaces inline style attributes. */
.btn-contact {
  margin-top: 1rem;
  font-size: 0.75rem;
}

.terminal-delay {
  transition-delay: 0.15s;
}

.terminal-cursor {
  animation: blink 1.2s step-end infinite;
  color: var(--accent);
}
