/* A small 3D playground to close the portfolio. */
.sneak {
  --sneak-canvas-height: clamp(280px, 48svh, 470px);
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  color: #000;
  padding: 48px 0 24px;
}
.sneak__label { margin: 0; }
.sneak__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--sneak-canvas-height);
  overflow: visible;
  color: inherit;
  touch-action: pan-y;
}
.sneak__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(36px, 12vw, 190px);
  line-height: .85;
  text-align: center;
  transform: rotate(-20deg) scaleY(.65);
  white-space: nowrap;
  user-select: none;
}
.sneak__title a { color: inherit; text-decoration: none; cursor: pointer; }
.sneak__title a:hover { opacity: 1; }
.sneak__title a:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.sneak__canvas {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: var(--sneak-canvas-height);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.sneak__item.is-ready .sneak__canvas { opacity: 1; }
.sneak__item.is-ready .sneak__title {
  position: absolute;
  inset: 0;
  transform: none;
  pointer-events: none;
}
.sneak__item.is-ready .sneak__separator { visibility: hidden; }
.sneak__item.is-ready .sneak__title a {
  position: absolute;
  left: var(--hit-x);
  top: var(--hit-y);
  width: var(--hit-w);
  height: var(--hit-h);
  clip-path: var(--hit-shape);
  color: transparent;
  font-size: 0;
  pointer-events: auto;
}
.sneak__item.is-ready .sneak__title a:focus-visible {
  background: #00000018;
  outline: 2px solid #000;
}
.site-footer {
  margin: 0;
  padding: 20px var(--gutter) 40px;
  border-top: 1px solid var(--black);
}
.site-footer nav a { position: relative; }
.site-footer nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 6.8 C21 2.1 35 8.2 55 5.4 S93 3.1 118 6.3' fill='none' stroke='%23000000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .3s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.site-footer nav a:hover::after,.site-footer nav a:focus-visible::after { clip-path: inset(0); }
@media (max-width: 600px) {
  .sneak { --sneak-canvas-height: clamp(220px, 35svh, 320px); padding: 32px 0 16px; }
  .site-footer { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sneak__title { transform: none; }
  .sneak__item.is-ready .sneak__canvas { opacity: 0; }
  .site-footer nav a::after { transition: none; }
}
