/* "Next project" entry at the bottom of every case page.
   Reads the page's own tokens (--ink, --muted, --pad, --content-max) so it follows the light / dark theme of each page;
   the fallbacks only matter if a page does not define them. */
.np{
  --np-line:rgba(128,128,128,.4);
  --np-radius:12px;
  padding-bottom:var(--section-gap, 120px);
  color:var(--ink, #0e0e0e);
}
.np-inner{
  width:100%;
  max-width:var(--content-max, 1280px);
  margin-inline:auto;
  padding-inline:var(--pad, 32px);
}
.np-inner::before{
  content:"";
  display:block;
  border-top:1px solid var(--np-line);
  margin-bottom:32px;
}
.np-label{
  margin:0 0 32px;
  font:500 24px/1.2 "Inter Tight", "Inter", sans-serif;
  letter-spacing:-0.01em;
  color:var(--ink, #0e0e0e);
}
.np-link{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:inherit;
  text-decoration:none;
}
.np-head{
  display:flex;
  align-items:center;
  gap:12px;
}
.np-title{
  font:500 36px/1.2 "Inter Tight", "Inter", sans-serif;
  letter-spacing:-0.01em;
  color:var(--ink, #0e0e0e);
}
.np-chev{
  flex:none;
  width:28px;
  height:28px;
  color:var(--ink, #0e0e0e);
  transition:transform .3s ease;
}
.np-sub{
  font:400 20px/1.4 "Inter", sans-serif;
  color:var(--muted, #6d6d6d);
}
.np-media{
  display:block;
  margin-top:24px;
  height:clamp(200px, 30vw, 450px);
  overflow:hidden;
  border-radius:var(--np-radius);
  background:rgba(128,128,128,.15);
}
.np-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  transition:transform .6s ease;
}
.np-link:hover .np-chev,
.np-link:focus-visible .np-chev{ transform:translateX(6px); }
.np-link:hover .np-media img,
.np-link:focus-visible .np-media img{ transform:scale(1.03); }
.np-link:focus-visible{ outline:2px solid currentColor; outline-offset:8px; border-radius:4px; }
@media (prefers-reduced-motion:reduce){
  .np-chev, .np-media img{ transition:none; }
  .np-link:hover .np-chev, .np-link:focus-visible .np-chev,
  .np-link:hover .np-media img, .np-link:focus-visible .np-media img{ transform:none; }
}
@media (max-width:767px){
  .np-inner::before{ margin-bottom:24px; }
  .np-label{ font-size:20px; margin-bottom:24px; }
  .np-title{ font-size:28px; }
  .np-chev{ width:22px; height:22px; }
  .np-sub{ font-size:16px; }
  .np-media{ margin-top:16px; }
}
