/* The link to the next project at the end of every project page, and the picture that grows into the page it opens.
   Generated and hand-made pages both load this, so it relies only on variables they share. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
}
.next-project { box-sizing: border-box; width: min(1400px, calc(100% - 2 * clamp(16px, 3.6vw, 64px))); margin: clamp(64px, 11vh, 120px) auto; padding-top: clamp(24px, 4vh, 40px); border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.next-link { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 48px); align-items: end; color: inherit; text-decoration: none; }
.next-image { overflow: hidden; aspect-ratio: 16 / 9; }
.next-project .next-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.next-copy { display: grid; gap: 8px; }
.next-copy span { font: 400 1rem/1.4 var(--sans); color: var(--ink-2); }
.next-copy strong { font: 500 clamp(2rem, 4.4vw, 4rem)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; text-decoration: underline transparent 2px; text-underline-offset: .14em; transition: text-decoration-color .24s; }
.next-link:hover strong { text-decoration-color: currentColor; }
.next-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; color: inherit; font: 400 1rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: 5px; }
.next-project a:focus-visible { outline: 2px solid var(--focus, #315694); outline-offset: 4px; }
@media (max-width: 800px) { .next-link { grid-template-columns: 1fr; } }
