/* 404 — centered editorial composition */

.sc-notfound-main {
  --nf-pad-top: 14rem;
  --nf-pad-bot: 12rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--nf-pad-top) 0 var(--nf-pad-bot);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 162, 39, 0.08) 0%, transparent 62%),
    var(--cl-bg, #121212);
}

.sc-notfound-main > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.notfound-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.notfound-bg-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(72rem, 70vw);
  height: min(72rem, 70vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.14) 0%, transparent 68%);
  filter: blur(8px);
}

.notfound-bg-compass {
  position: absolute;
  /* Sit below the fixed header so the top of the dial is not clipped */
  top: calc(50% + 6rem);
  left: 50%;
  width: auto;
  height: min(72vh, 88rem);
  max-width: 88vw;
  aspect-ratio: 1200 / 900;
  transform: translate(-50%, -42%);
  pointer-events: none;
  overflow: visible;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 62%, transparent 88%);
  mask-image: radial-gradient(circle at center, #000 0%, #000 62%, transparent 88%);
}

.notfound-bg-compass .home-process-steps-bg__spin {
  width: 100%;
  height: 100%;
}

.notfound-bg-compass-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.42;
  transform-origin: 50% 50%;
  pointer-events: none;
  animation: notfound-compass-spin 48s linear infinite;
}

@keyframes notfound-compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .notfound-bg-compass-img {
    animation: none;
  }
}

.notfound-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.notfound-label {
  color: var(--cl-primary, #c9a227);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.notfound-code {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(9rem, 22vw, 18rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  font-weight: 400;
}

.notfound-title {
  margin: 2.4rem 0 0;
  color: #fff;
}

.notfound-sub-txt {
  max-width: 38rem;
  margin: 1.8rem auto 0;
  color: rgba(255, 255, 255, 0.68);
}

.notfound-actions {
  display: flex;
  justify-content: center;
  margin-top: 3.6rem;
}

.notfound-actions .btn {
  min-width: 18rem;
}

/* Keep label readable on gold fill / expanding hover dot */
.sc-notfound-main .notfound-actions .btn.btn-md,
.sc-notfound-main .notfound-actions .btn.btn-md:hover,
.sc-notfound-main .notfound-actions .btn.btn-md.btn-hover-v2:hover {
  color: var(--cl-bg, #121212);
  background-color: var(--cl-primary, #fbc30f);
  border-color: var(--cl-primary, #fbc30f);
}

.sc-notfound-main .notfound-actions .btn.btn-md .txt,
.sc-notfound-main .notfound-actions .btn.btn-md:hover .txt {
  color: var(--cl-bg, #121212);
  position: relative;
  z-index: 3;
}

/* Keep fixed header above 404 content */
body.error404 .header-wrap,
.header-wrap {
  z-index: 100;
}

@media screen and (max-width: 991px) {
  .sc-notfound-main {
    --nf-pad-top: 12rem;
    --nf-pad-bot: 10rem;
  }

  .notfound-bg-compass {
    top: calc(50% + 4rem);
    height: min(64vh, 72rem);
    transform: translate(-50%, -40%);
  }

  .notfound-title {
    font-size: clamp(2.8rem, 6vw, 4rem);
  }
}

@media screen and (max-width: 767px) {
  .sc-notfound-main {
    --nf-pad-top: 11rem;
    --nf-pad-bot: 9rem;
  }

  .notfound-content {
    padding: 0 2rem;
  }

  .notfound-label {
    margin-bottom: 1.4rem;
  }

  .notfound-actions {
    margin-top: 2.8rem;
    width: 100%;
  }

  .notfound-actions .btn {
    width: 100%;
    max-width: 28rem;
  }
}
