.system-credit {
  display: grid;
  gap: .28rem;
  justify-items: center;
  width: fit-content;
  margin: clamp(1.75rem, 4vw, 3.35rem) auto 0;
  text-align: center;
}
.system-credit::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  margin-bottom: .42rem;
  background: var(--orange);
}
.system-credit dt { color: #dfbebf; font: 600 .8rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.system-credit dd { font: 400 clamp(1.2rem, 2.5vw, 1.7rem)/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }

.system-not-found {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(ellipse at 75% 50%, #24151b, #100d11 62%);
}
.system-error-header { padding-block: clamp(.8rem, 2vw, 1.6rem); }
.system-error-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 5rem);
  padding-block: clamp(1.35rem, 4vw, 3.65rem);
}
.system-error-copy { min-width: 0; }
.system-error-status { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; color: #e2c6c9; }
.system-error-status span { padding: .3rem .58rem; border: 1px solid #a75b44; color: #ff926b; }
.system-error-copy h1 {
  margin-block: clamp(1rem, 2.6vw, 2.6rem) clamp(.8rem, 1.9vw, 1.55rem);
  font-size: clamp(3.8rem, 7.35vw, 9rem);
  line-height: .94;
  letter-spacing: -.036em;
  color: #f4e9e4;
}
.system-error-title-end { display: block; }
.system-error-copy .hero-period { color: #ff7448; }
.system-error-note { max-width: 34ch; color: #e3d1d7; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.system-error-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem clamp(1rem, 2vw, 2.15rem);
  margin-top: clamp(.95rem, 2.4vw, 2rem);
}
.system-error-actions > a { min-height: 48px; }
.system-error-frame { --screen-height: clamp(18rem, 37vw, 34rem); min-width: 0; }
.system-error-screen {
  position: relative;
  isolation: isolate;
  height: var(--screen-height);
  overflow: hidden;
  border: 1px solid #6f524f;
  border-bottom: 0;
  background: #170e12;
}
.system-error-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.system-error-still { object-position: 50% 52%; }
.system-error-next {
  object-position: center;
  visibility: hidden;
  clip-path: inset(0 0 100%);
  transform: translateY(-5%);
}
.system-error-frame:has(.system-error-reveal[open]) .system-error-next {
  visibility: visible;
  clip-path: inset(0);
  transform: none;
}
.system-error-frame:has(.system-error-reveal[open]) .system-error-still { visibility: hidden; }
.system-error-screen::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, #100a1020 65%, #0c090de1);
  pointer-events: none;
}
.system-error-screen .viewfinder { inset: clamp(.75rem, 1.6vw, 1.45rem); }
.system-error-screen .viewfinder i { color: #fae7d2b3; }
.system-error-timecode {
  position: absolute;
  z-index: 2;
  inset: auto auto clamp(1.3rem, 2.35vw, 2.1rem) clamp(1.3rem, 2.35vw, 2.1rem);
  font: 600 .8rem/1 var(--mono);
  letter-spacing: .1em;
  color: #ffe8d6;
}
.system-error-reveal { border: 1px solid #6f524f; background: #181114; }
.system-error-reveal > summary {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 56px;
  padding: .8rem clamp(.85rem, 2vw, 1.35rem);
  color: #fff0e8;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
}
.system-error-reveal > summary::-webkit-details-marker { display: none; }
.system-error-reveal > summary:hover { background: #2a1a21; }
.system-error-reveal > summary:focus-visible { outline-offset: -4px; }
.system-error-play { width: 0; height: 0; border: .33rem solid transparent; border-left: .52rem solid #ff875d; }
.system-error-reveal[open] .system-error-play { width: .65rem; height: 2px; border: 0; background: #ff875d; }
.system-error-back-label, .system-error-reveal[open] .system-error-reveal-label { display: none; }
.system-error-reveal[open] .system-error-back-label { display: inline; }
.system-error-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .1rem 1rem;
  padding: .35rem clamp(.85rem, 2vw, 1.35rem);
  border-top: 1px solid #4a343b;
}
.system-error-preview p { color: #f2ded6; font: 400 1.45rem/1.2 var(--display); text-transform: uppercase; }
.system-footer {
  padding-block: .3rem;
  border-top: 1px solid #49363e;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}
.system-footer :is(.legal-identity, .legal-links) { gap: 0 .75rem; }
.system-error-footer, .system-legal-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .9rem;
}
.system-error-contact { display: inline-flex; align-items: center; min-height: 44px; }
:is(.system-error-footer, .system-legal-footer) .website-credit { margin-inline-start: auto; }

@media (min-width: 52.01rem) {
  .system-error-frame { min-block-size: calc(var(--screen-height) + 116px); }
}

.legal-credits-intro {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(2.8rem, 8vw, 7rem) clamp(.9rem, 4vw, 4rem);
  border-block: 1px solid #55414f;
  background: radial-gradient(ellipse at 50% 24%, #31202b, #171119 70%);
  text-align: center;
}
.legal-credits-intro::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  margin: clamp(1.2rem, 3vw, 2.6rem) auto 0;
  background: var(--orange);
}
.legal-credits-intro .wp-block-post-title { margin: 0; font-size: clamp(2.45rem, 7.6vw, 6.9rem); text-wrap: balance; }
.legal-page > .wp-block-post-content { margin-block-start: clamp(1rem, 3vw, 2.25rem); }
.system-legal-details { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 0 .9rem; }
.system-legal-contact { display: flex; flex-wrap: wrap; column-gap: .75rem; }
.system-legal-contact a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 52rem) {
  .system-error-stage { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .system-error-copy h1 { font-size: clamp(3rem, 13.5vw, 6.25rem); }
  .system-error-screen { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 38rem) {
  :is(.system-error-footer, .system-legal-footer) .legal-links { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .system-error-frame { animation: system-error-cut .65s var(--ease) both; }
  .system-error-still { animation: system-error-drift 1.2s var(--ease) both; }
  .system-error-frame:has(.system-error-reveal[open]) .system-error-still { transition: visibility 0s .45s; }
  .system-error-next { transition: clip-path .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
  .system-error-frame:has(.system-error-reveal[open]) .system-error-next { transition-delay: 0s; }
  @keyframes system-error-cut {
    from { clip-path: inset(2% 0 29%); opacity: .45; }
    to { clip-path: inset(0); opacity: 1; }
  }
  @keyframes system-error-drift {
    from { transform: scale(1.065) translateY(.6%); }
    to { transform: none; }
  }
  .credits-rise, .legal-credits-intro .wp-block-post-title { animation: credits-rise .72s var(--ease) both; }
  .credits-rise .system-credit { animation: credits-rise .75s .14s var(--ease) both; }
  @keyframes credits-rise {
    from { opacity: 0; transform: translateY(1.2rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
