* {
  box-sizing: border-box;
}

:root {
  --bg: #030303;
  --panel: #0b0b0d;
  --text: #f4f4f5;
  --muted: #9b9ba3;
  --line: rgba(255, 255, 255, 0.11);
  --glow: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 1;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 72px);
  background: rgba(3, 3, 3, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #151515, #050505);
  box-shadow: 0 0 40px var(--glow);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}

.nav a:hover {
  color: var(--text);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
}

.section {
  position: relative;
  z-index: 2;
  padding: 110px clamp(20px, 5vw, 72px);
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(54px, 9vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.085em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(36px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}

h3 {
  letter-spacing: -0.03em;
}

.hero-text,
.section-title p,
.project-card p,
.contact-card p,
.music-row p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #050505;
  background: var(--accent);
}

.ghost {
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card,
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.orb {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  top: 42px;
  right: -52px;
  background: transparent;
  box-shadow: none;
  display: none;
}

.card-label {
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-title {
  margin-bottom: 38px;
}

.grid {
  display: grid;
  gap: 18px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  min-height: 430px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  transition: transform .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.28);
}

.placeholder,
.art-tile {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-bottom: 20px;
  border-radius: 20px;
  color: rgba(255,255,255,.35);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(145deg, #17171a, #050505);
  font-size: 12px;
  letter-spacing: .16em;
}

.text-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}

.art-tile {
  min-height: auto;
  height: 100%;
  margin: 0;
}

.art-tile.tall {
  grid-row: span 2;
}

.art-tile.wide {
  grid-column: span 2;
}

.music-list {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.music-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.music-row:last-child {
  border-bottom: 0;
}

.music-row span {
  color: var(--muted);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.album-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  transition: transform .25s ease, border-color .25s ease;
}

.album-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.28);
}

.album-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #080808;
}

.album-info {
  padding: 16px;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.album-info h3 {
  margin-bottom: 6px;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.album-info p {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .04em;
}

.album-info span {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-card {
  min-height: auto;
  text-align: center;
}

.contact-card p {
  margin-left: auto;
  margin-right: auto;
}

.email {
  display: inline-block;
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(24px, 5vw, 56px);
  letter-spacing: -0.05em;
  text-decoration: none;
}

footer {
  position: relative;
  z-index: 2;
  padding: 30px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8,8,9,.96);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 74px;
  }

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

  .art-tile.tall,
  .art-tile.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .music-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 84px 20px;
  }

  .hero-card {
    min-height: 350px;
  }
}

.game-image-link {
  display: block;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #050505;
}

.game-image {
  display: block;
  width: 100%;
  min-height: 230px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .25s ease;
}

.game-image-link:hover .game-image {
  transform: scale(1.035);
}

.icon-image {
  padding: 18px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.12), transparent 34%),
    linear-gradient(145deg, #17171a, #050505);
}

.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}

.store-badge span {
  font-size: 15px;
  line-height: 1;
}

.store-badge.google {
  border-color: rgba(255,255,255,.24);
}

.store-badge.steam {
  border-color: rgba(255,255,255,.24);
}


.gallery-note {
  padding: 22px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  line-height: 1.7;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.photo-gallery button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #050505;
}

.photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s ease;
}

.photo-gallery button:hover img {
  transform: scale(1.04);
}

.gallery-empty {
  color: var(--muted);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0,0,0,.88);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 30px;
  line-height: 1;
}


.game-meta {
  margin: 0 0 10px;
  color: #f4c45f;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.game-genre {
  color: var(--text) !important;
  font-weight: 700;
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}


.button.donate {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}

.paypal-link {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255,255,255,.06);
}

.paypal-link:hover {
  border-color: rgba(255,255,255,.3);
}

.album-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
  color: var(--text);
  font-weight: 800;
  text-align: center;
  border-bottom: 1px solid var(--line);
}


.logo-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 28px var(--glow);
}

.hero-profile-photo {
  width: min(210px, 70vw);
  height: min(210px, 70vw);
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 42px var(--glow);
  margin-bottom: 28px;
}


.store-badge.itch {
  border-color: rgba(255,255,255,.24);
}

.text-icon {
  width: auto;
  min-width: 26px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.math-image {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 230px;
  aspect-ratio: 16 / 9;
  color: #050505;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.9), transparent 22%),
    linear-gradient(135deg, #ffffff, #bcbcbc);
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 950;
  line-height: .82;
  letter-spacing: -0.08em;
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  font-weight: 750;
}

.social-links a:hover {
  border-color: rgba(255,255,255,.3);
}


.nav .nav-donate {
  border: 1px solid rgba(150, 255, 110, 0.55);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #a7ff6a;
  background: rgba(120, 255, 80, 0.08);
}

.nav .nav-donate:hover {
  background: rgba(120, 255, 80, 0.16);
}
