:root {
  --bg: #050505;
  --bg-lift: #0c0c0c;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --line: #ffffff;
  --shell: 42rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1a1a 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, var(--bg) 40%, #000 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--shell));
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 6.5rem) 0 4rem;
  animation: rise 0.9s var(--ease) both;
}

.hero {
  margin-bottom: 2.75rem;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3.75rem, 14vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.tagline {
  margin-top: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.directory {
  margin-bottom: 2.75rem;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-lift) 88%, transparent);
  cursor: default;
  user-select: none;
  overflow: hidden;
  transition: background 0.25s var(--ease);
}

.tile:has(.tile-link) {
  cursor: pointer;
}

.tile:hover {
  background: color-mix(in srgb, #fff 4%, transparent);
}

.tile-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.tile-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #111;
  overflow: hidden;
}

.tile-media img,
.tile-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-meta {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem 0.85rem;
  min-height: 4.1rem;
}

.item-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.item-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem 1.25rem;
  align-items: start;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-lift) 88%, transparent);
  animation: rise 0.9s var(--ease) 0.24s both;
}

.pfp {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #111;
  flex-shrink: 0;
}

.about-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.about-copy p {
  font-size: 0.92rem;
  color: #d4d4d4;
  max-width: 36ch;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1.5rem, var(--shell));
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .tile-meta {
    min-height: 0;
    padding: 0.55rem 0.6rem 0.7rem;
  }

  .item-name {
    font-size: 0.76rem;
  }

  .item-desc {
    font-size: 0.68rem;
  }

  .about {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .pfp {
    width: 80px;
    height: 80px;
  }

  .about-copy p {
    max-width: none;
  }
}

/* â€”â€” project pages â€”â€” */

.shell-page {
  max-width: 52rem;
  width: min(100% - 2.5rem, 52rem);
  animation: rise 0.7s var(--ease) both;
}

.back {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.back:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.page-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.page-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #111;
}

.page-icon-pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.page-icon-gif {
  width: 48px;
  height: 48px;
  image-rendering: auto;
}

.page-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-lead {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.page-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #e03333;
  margin-bottom: 1.75rem;
}

.page-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cfcfcf;
  margin-bottom: 1.75rem;
  max-width: 58ch;
}

.video-wrap {
  border: 1px solid var(--line);
  background: #000;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.video {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.download {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.download:hover {
  background: color-mix(in srgb, #fff 6%, transparent);
}

@media (max-width: 560px) {
  .shell-page {
    width: min(100% - 1.5rem, 52rem);
  }

  .video {
    min-height: 200px;
  }
}
