/* Featured event */

#events {
  position: relative;
  padding: 16vh 6vw 12vh;
  overflow-x: clip;
}

.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 5vh;
}

.feat-copy .h-serif {
  margin: 1rem 0 1.4rem;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
}

.feat-copy p {
  line-height: 1.7;
  max-width: 52ch;
  color: var(--text);
  font-size: 1.1rem;
}

.feat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 30px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.feat-meta span b {
  display: block;
  margin-bottom: 4px;
  text-transform: none;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--text);
}

.feat-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.feat-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--w10);
  cursor: none;
  transform-style: preserve-3d;
  transition:
    transform 0.8s var(--ease),
    border-color 0.6s;
}

/*
 * The card's drop shadow, baked into a soft gradient. A 90px box-shadow blur
 * here was redrawn by Firefox on every frame of the animated scene behind it.
 */
.feat-visual {
  position: relative;
  isolation: isolate;
}

.feat-shadow {
  position: absolute;
  inset: 34px -48px -96px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.32) 58%, transparent);
  pointer-events: none;
}

.feat-card:hover {
  border-color: var(--accent-50);
}

.feat-card .art {
  position: absolute;
  inset: 0;
  transition: transform 1.4s var(--ease);
}

.feat-card:hover .art {
  transform: scale(1.05);
}

.feat-card .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%);
}

.feat-card .in {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.7) 100%);
}

.feat-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feat-card .type {
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid var(--cool-25);
  color: #fff;
  border-color: var(--w30);
  background: rgba(5, 5, 5, 0.7);
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 11.5px;
}

.feat-card .live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #fff;
  font-family: var(--ui);
  font-weight: 500;
}

.feat-card .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: blink 1.6s infinite;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.feat-card .shards {
  justify-content: flex-start;
}

.feat-card .open-hint {
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--w18);
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(16px);
  font-size: 20px;
  transition: all 0.6s var(--ease);
}

.feat-card:hover .open-hint {
  background: #fff;
  color: #050505;
  transform: rotate(45deg);
  border-color: #fff;
}

.feat-card .title {
  line-height: 1.05;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  letter-spacing: -0.01em;
}

.feat .shards {
  margin: 6px 0 8px;
}

.feat .shard {
  flex-basis: 84px;
  width: 84px;
  height: 96px;
  border-radius: 12px;
}

.feat .shard .v {
  font-size: 1.9rem;
}

.feat-copy .feat-tagline {
  max-width: 34ch;
  margin: -0.5rem 0 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--accent-pale);
}

.feat-card.has-image .grid-lines {
  opacity: 0.3;
}

@media (max-width: 900px) {
  .feat {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feat-card {
    aspect-ratio: 4/3.4;
  }
}

@media (max-width: 600px) {
  #events {
    padding: 12vh 20px 10vh;
  }

  .feat {
    gap: 26px;
    margin-top: 3vh;
  }

  .feat-copy .h-serif {
    font-size: 2.5rem;
  }

  .feat-copy p {
    font-size: 1rem;
  }

  .feat-meta {
    gap: 8px 20px;
    margin: 20px 0 20px;
  }

  .feat-meta span b {
    font-size: 14px;
  }

  .feat .shards {
    width: 100%;
    gap: 8px;
  }

  .feat .shard {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 84px;
  }

  .feat .shard .v {
    font-size: 1.45rem;
  }

  .feat-cta {
    margin-top: 24px;
    width: 100%;
  }

  .feat-cta .btn-main,
  .feat-cta .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .feat-card {
    aspect-ratio: 1/1;
    border-radius: 22px;
  }

  .feat-card .in {
    padding: 20px;
  }

  .feat-card .title {
    font-size: 1.5rem;
  }

  .feat-card .open-hint {
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
  }
}
