/* Full-bleed empty / 404 — full illustration, soft blend on all edges */

.empty-page {
  --empty-sky: #d0e2fc;
  --empty-mid: #e7f0fe;
  --empty-base: #f5f9ff;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    var(--empty-sky) 0%,
    var(--empty-mid) 38%,
    var(--empty-base) 72%,
    #f5fafd 100%
  );
}

.empty-page .site-footer {
  margin-top: 0;
  background: #fff;
}

.empty-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
}

.empty-hero__figure {
  position: relative;
  margin: 0;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: min(50vh, 440px);
  overflow: hidden;
}

/* Edge vignette — melts illustration into page on all sides */
.empty-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 92% 88% at 50% 44%,
      transparent 48%,
      rgba(231, 240, 254, 0.45) 72%,
      var(--empty-base) 100%
    ),
    linear-gradient(to right, var(--empty-sky) 0%, transparent 14%, transparent 86%, var(--empty-sky) 100%),
    linear-gradient(to bottom, var(--empty-sky) 0%, transparent 16%, transparent 84%, var(--empty-base) 100%);
  opacity: 0.95;
}

.empty-hero__figure img {
  width: min(100%, 980px);
  height: auto;
  max-height: min(calc(100svh - var(--nav-h) - 280px), 82vw);
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 0;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 86% at 50% 44%,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, 0.55) 76%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 90% 86% at 50% 44%,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, 0.55) 76%,
    transparent 100%
  );
}

.empty-hero__content {
  flex-shrink: 0;
  width: min(100% - 2rem, 480px);
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(2rem, 5vw, 2.75rem);
  text-align: center;
  position: relative;
  z-index: 1;
}

.empty-hero__content h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: #1e3a4f;
}

.empty-hero__content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.5;
}

.empty-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.empty-hero__actions .btn {
  min-height: 44px;
  min-width: 140px;
}

.empty-hero__link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--teal-deep);
}

.empty-hero__link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .empty-hero__figure {
    min-height: min(42vh, 340px);
  }

  .empty-hero__figure img {
    width: 108%;
    max-width: none;
    max-height: min(calc(100svh - var(--nav-h) - 260px), 92vw);
    -webkit-mask-image: radial-gradient(
      ellipse 94% 90% at 50% 44%,
      #000 0%,
      #000 50%,
      rgba(0, 0, 0, 0.5) 74%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 94% 90% at 50% 44%,
      #000 0%,
      #000 50%,
      rgba(0, 0, 0, 0.5) 74%,
      transparent 100%
    );
  }

  .empty-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .empty-hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .empty-hero__figure img {
    max-height: min(calc(100svh - var(--nav-h) - 260px), 660px);
  }
}
