:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f2f0eb;
  --text-muted: rgba(242, 240, 235, 0.58);
  --text-faint: rgba(242, 240, 235, 0.35);
  --line: rgba(242, 240, 235, 0.1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --page-x: clamp(1rem, 3.5vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

.page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--page-x) clamp(3rem, 8vw, 5rem);
}

.section + .section {
  margin-top: clamp(3rem, 8vw, 5.5rem);
}

.section__header {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

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

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.card__ratio {
  width: 100%;
  padding-top: 120%;
  pointer-events: none;
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media canvas[data-pixelate-canvas] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.3s ease;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.9rem;
}

.card__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.card__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.card__text {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

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

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card__ratio {
    padding-top: 110%;
  }
}
