@font-face {
  font-family: "Portfolio Inter";
  src: url("/fonts/inter-display-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 470;
  font-display: swap;
}

/* A quiet outline sits behind the grid; clipping keeps it out of the card gaps. */
.hero:not(.hero-compact) {
  height: clamp(172px, 20vh, 220px);
  padding: 0;
  z-index: 0;
  isolation: isolate;
  overflow: clip;
}
.hero .hero-wordmark {
  position: absolute;
  left: 50%;
  bottom: -.43em;
  width: max-content;
  max-width: none;
  font-family: "Portfolio Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(170px, 22vw, 340px);
  font-weight: 470;
  font-optical-sizing: auto;
  font-kerning: normal;
  letter-spacing: -.055em;
  line-height: 1;
  padding: 0 .055em 0 0;
  margin: 0;
  translate: -50% 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .9px #72726c;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.hero:not(.hero-compact) .hero-meta { top: 10px; z-index: 1; }
.hero:not(.hero-compact) .hero-edition { top: 12px; z-index: 1; }
.hero:not(.hero-compact) + .bento-grid {
  z-index: 1;
  margin-top: 0;
}

/* A temporary translucent skin on each card; it never intercepts input. */
.intro-playing .bento-grid:not(.is-expanded) > .tile::after,
.intro-playing .expanded-tile::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: -1px;
  pointer-events: none;
  border: 1px solid #ffffff24;
  border-radius: inherit;
  background: linear-gradient(145deg, #e4e4e416, #b3b3b30b 35%, #ffffff02 70%);
  box-shadow: inset 0 1px 0 #ffffff20;
  transform-origin: 50% 0;
  animation: glass-clear 760ms calc(var(--intro-order, 0) * 42ms) cubic-bezier(.16,1,.3,1) both;
}
@keyframes glass-clear {
  0% { opacity: 1; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(-8%) scaleY(.94); }
}
@media (max-width: 1100px) {
  .hero:not(.hero-compact) { height: 178px; }
}
@media (max-width: 760px) {
  .hero:not(.hero-compact) { height: 156px; }
}
@media (max-width: 520px) {
  .hero:not(.hero-compact) { height: 136px; }
  .hero .hero-wordmark {
    font-size: clamp(98px, 30vw, 170px);
    bottom: -.34em;
    -webkit-text-stroke-width: .8px;
  }
  .hero:not(.hero-compact) .hero-meta {
    top: 10px;
    bottom: auto;
    left: 0;
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 360px) {
  .hero:not(.hero-compact) { height: 122px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-playing .tile::after { display: none; animation: none; }
}
