/* 404 page */

body.page-not-found {
  display: block;
  width: 100%;
  overflow-x: clip;
  min-height: 100vh;
}

.page-not-found {
  overflow-x: clip;
}

.page-not-found .site-wrap {
  padding-top: 30px;
  overflow-x: clip;
  width: 100%;
}

/* Keep footer labels visible — scroll fade can leave them at opacity 0 on short pages */
.page-not-found .sx-footer-brand-sub,
.page-not-found .sx-btn-hint,
.page-not-found .sx-footer-brand-sub--col3 {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Desktop: premium in footer-top brand (like index); col3 shows contacts + start */
.page-not-found .sx-footer-brand-sub--col3 {
  display: none;
}

@media (min-width: 901px) {
  body.page-not-found,
  body.page-not-found .page,
  body.page-not-found .site-wrap,
  .page-not-found .sx-footer,
  .page-not-found .sx-footer-container,
  .page-not-found .sx-footer-top,
  .page-not-found .sx-footer-bottom {
    overflow: visible;
  }

  .page-not-found .sx-footer {
    overflow: visible !important;
    padding-bottom: 96px;
  }

  .page-not-found .sx-footer-bottom {
    overflow: visible;
    align-items: start;
  }

  .page-not-found .sx-footer-brand {
    top: 28em;
    width: 200px;
    text-align: right;
  }

  .page-not-found .sx-footer-brand-sub:not(.sx-footer-brand-sub--col3) {
    display: block !important;
    color: #fff;
    text-align: right;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .page-not-found .sx-col3 {
    top: -63%;
    position: relative;
    text-align: right;
    display: block;
    overflow: visible;
  }

  .page-not-found .sx-btn-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 50px;
    gap: 8px;
  }

  .page-not-found .sx-btn-hint {
    display: inline !important;
    color: #efefef;
    font-size: 15px;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* 404 content */
.sx-not-found {
  min-height: calc(100vh - 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 120px;
  background: #fff;
}

.sx-not-found__inner {
  max-width: 520px;
  text-align: center;
}

.sx-not-found__code {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: clamp(67px, calc(14vw + 3px), 115px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #111;
  margin: 0 0 12px;
}

.sx-not-found h1 {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: clamp(calc(1.5rem + 3px), calc(4vw + 3px), calc(2rem + 3px));
  font-weight: 700;
  letter-spacing: -0.35px;
  margin: 0 0 12px;
  color: #111;
}

.sx-not-found__lead {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: calc(1rem + 2px);
  line-height: 1.6;
  color: #555;
  margin: 0 0 28px;
  letter-spacing: -0.30px;
}

.sx-not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.sx-not-found__btn {
  display: inline-block;
  padding: 8px 16px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-family: "helvetica-neue-lt-pro", sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.30px;
  line-height: 1.15;
  border: 1px solid #111;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sx-not-found__btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.sx-not-found__btn:not(.sx-not-found__btn--ghost):hover {
  background: #fff;
  color: #111;
  border-color: #111;
}

.sx-not-found__btn--ghost:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Tablet / mobile */
@media (max-width: 900px) {
  .sx-not-found {
    padding: 51px 18px 59px;
    min-height: calc(100vh - 30px);
  }

  .sx-not-found__code {
    font-size: clamp(calc(3rem + 3px), calc(11vw + 3px), calc(5rem + 3px));
    margin-bottom: 8px;
  }

  .sx-not-found h1 {
    font-size: clamp(calc(1.1rem + 3px), calc(3.6vw + 3px), calc(1.45rem + 3px));
  }

  .sx-not-found__lead {
    font-size: calc(12px + 2px);
    margin-bottom: 20px;
  }

  .sx-not-found__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .sx-not-found__btn {
    font-size: 16px;
    padding: 7px 10px;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 1 auto;
    width: auto;
    max-width: none;
  }

  .page-not-found .sx-footer {
    padding: 32px 18px 28px !important;
  }

  .page-not-found .sx-footer-container {
    max-width: 100% !important;
  }

  .page-not-found .sx-footer-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
  }

  .page-not-found .sx-footer-about {
    display: none !important;
  }

  .page-not-found .sx-footer-brand {
    top: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }

  .page-not-found .sx-footer-logo {
    width: 130px !important;
  }

  .page-not-found .sx-footer-brand-sub:not(.sx-footer-brand-sub--col3) {
    display: none !important;
  }

  .page-not-found .sx-footer-brand-sub--col3 {
    display: block !important;
    font-size: 14px;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-style: italic;
    letter-spacing: -0.15px;
    color: #fff;
    line-height: 1;
    margin: 0 0 14px;
    text-align: left;
    left: 0;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .page-not-found .sx-footer-brand-sub--col3 em {
    font-style: italic;
  }

  .page-not-found .sx-footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .page-not-found .sx-col1,
  .page-not-found .sx-col2,
  .page-not-found .sx-col3 {
    top: 0 !important;
    position: relative !important;
    text-align: left !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .page-not-found .sx-col3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .page-not-found .sx-col3 ul {
    display: block !important;
  }

  .page-not-found .sx-col-heading {
    margin-bottom: 10px !important;
  }

  .page-not-found .sx-footer-about p,
  .page-not-found .sx-col-heading,
  .page-not-found .sx-footer li,
  .page-not-found .sx-footer a,
  .page-not-found .sx-note,
  .page-not-found .sx-meta {
    font-size: 11px !important;
    letter-spacing: -0.30px !important;
    line-height: 1.35 !important;
  }

  .page-not-found .sx-gap {
    margin-top: 12px !important;
  }

  .page-not-found .sx-meta {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    text-align: left !important;
  }

  .page-not-found .sx-meta-gap {
    margin-top: 8px !important;
  }

  .page-not-found .sx-btn-row {
    justify-content: flex-start !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    gap: 8px !important;
    width: 100%;
  }

  .page-not-found .sx-btn-start {
    left: 0 !important;
    position: relative !important;
    font-size: 21px !important;
    padding: 1px 2px !important;
  }

  .page-not-found .sx-btn-hint {
    display: inline !important;
    font-size: 11px !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #efefef;
  }
}

@media (max-width: 480px) {
  .sx-not-found__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .sx-not-found__btn {
    font-size: 14px;
    padding: 7px 8px;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .page-not-found .sx-btn-start {
    font-size: 19px !important;
  }

  .page-not-found .sx-btn-hint {
    font-size: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
