/* ── Next-project peek ─────────────────────────────────────────────
   Clean, minimal "next project" section at the bottom of each project
   page. Eyebrow + index counter on top, big title, category tag,
   then a clean thumbnail. Click anywhere → navigate.

   Aesthetic matches the rest of the site: Instrument Sans, sharp edges,
   ink on bg, generous whitespace. No gimmicks. */

.next-peek {
  display: block;
  position: relative;
  width: 100%;
  margin-top: 120px;
  padding: 80px 0 120px;
  text-decoration: none;
  color: var(--color-ink, #1a1a1a);
  cursor: pointer;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
  background: var(--color-bg, #F1F1F1);
}

.next-peek__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Top row — eyebrow on left, counter on right */
.next-peek__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  font-family: var(--font-sans, "Instrument Sans", sans-serif);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted, #6b6b6b);
}

.next-peek__counter {
  font-variant-numeric: tabular-nums;
  color: var(--color-muted, #6b6b6b);
}

/* Title — confident, ties to the hero scale on the homepage */
.next-peek__title {
  display: block;
  font-family: var(--font-sans, "Instrument Sans", sans-serif);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-ink, #1a1a1a);
  margin-bottom: 18px;
  transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.next-peek__tag {
  display: block;
  font-family: var(--font-sans, "Instrument Sans", sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted, #6b6b6b);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 56px;
}

/* Thumbnail — clean 3:2 rectangle, full content width, no bleed */
.next-peek__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-box-dark, #cfcfcf);
}

.next-peek__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* CTA row — arrow + "Enter project" label, sits below the thumb */
.next-peek__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--font-sans, "Instrument Sans", sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted, #6b6b6b);
  transition: color 220ms ease, gap 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.next-peek__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover — title turns accent, thumbnail nudges up, arrow nudges right */
.next-peek:hover .next-peek__title {
  color: var(--color-accent, #FF383C);
}
.next-peek:hover .next-peek__img {
  transform: scale(1.03);
}
.next-peek:hover .next-peek__cta {
  color: var(--color-ink, #1a1a1a);
  gap: 14px;
}
.next-peek:hover .next-peek__cta svg {
  transform: translateX(4px);
}

/* Reduced motion — strip transforms */
@media (prefers-reduced-motion: reduce) {
  .next-peek__img,
  .next-peek__title,
  .next-peek__cta,
  .next-peek__cta svg { transition: none; }
  .next-peek:hover .next-peek__img,
  .next-peek:hover .next-peek__cta svg { transform: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .next-peek {
    margin-top: 80px;
    padding: 56px 0 80px;
  }
  .next-peek__inner { padding: 0 20px; }
  .next-peek__head { margin-bottom: 20px; font-size: 10px; }
  .next-peek__tag  { margin-bottom: 36px; font-size: 11px; }
}
