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

body {
  margin: 0;
  font-family: monospace;
  background: #fff;
  color: #222;
}

nav {
  font-family: monospace;
  font-size: 0.85em;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
}

nav a {
  color: inherit;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #222;
  z-index: 1000;
  transition: width 0.05s linear;
}

/* ---- Main ---- */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1 {
  font-size: 1.4em;
  font-weight: normal;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.desc {
  font-size: 0.85em;
  color: #aaa;
  margin: 0 0 60px;
}

h2 {
  font-size: 0.95em;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 24px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
}

.section-stats {
  margin-bottom: 80px;
}

/* ---- Stats grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 28px 20px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: 2em;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75em;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Image section ---- */
.section-images {
  margin-bottom: 80px;
}

.section-desc {
  font-size: 0.85em;
  color: #aaa;
  margin: -12px 0 24px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lazy-image {
  height: 200px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.lazy-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #e0e0e0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.lazy-image.loaded::before {
  transform: scaleX(1);
}

.lazy-label {
  position: relative;
  z-index: 1;
  font-size: 0.8em;
  color: #aaa;
  transition: color 0.4s 0.5s;
}

.lazy-image.loaded .lazy-label {
  color: #555;
}

/* ---- Spacer ---- */
.spacer {
  height: 40vh;
}
