/* Decorative Chimera boot treatment. Authority and application status remain in the app shell. */

.chimera-brand-boot {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  overflow: hidden;
  place-items: center;
  contain: layout paint style;
  pointer-events: none;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(201, 162, 74, 0.1), transparent 34rem),
    #0a0a0c;
  color: #f4f2ec;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.skip-link:focus {
  z-index: 50;
}

.chimera-brand-boot[data-state="visible"],
.chimera-brand-boot[data-state="dismissing"] {
  display: grid;
  visibility: visible;
}

.chimera-brand-boot[data-state="visible"] {
  opacity: 1;
}

.chimera-brand-boot[data-state="dismissing"] {
  opacity: 0;
}

.chimera-brand-boot[hidden] {
  display: none;
}

.chimera-brand-boot__beasts {
  position: absolute;
  width: min(52rem, 94vw);
  max-width: 94vw;
  height: min(70vh, 42rem);
  object-fit: contain;
  opacity: 0.11;
  transform: scale(1.015);
}

.chimera-brand-boot__lockup {
  position: relative;
  display: grid;
  width: min(24rem, calc(100vw - 3rem));
  place-items: center;
  gap: 0.8rem;
  text-align: center;
}

.chimera-brand-boot__crest {
  width: clamp(6.5rem, 17vw, 9rem);
  height: clamp(6.5rem, 17vw, 9rem);
  object-fit: contain;
  transform: translateY(0.25rem) scale(0.985);
}

.chimera-brand-boot__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 5vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  text-indent: 0.24em;
  text-transform: uppercase;
}

.chimera-brand-boot__message {
  color: #b8b2a6;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  .chimera-brand-boot[data-state="visible"] .chimera-brand-boot__beasts {
    animation: chimera-brand-beasts-arrive 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .chimera-brand-boot[data-state="visible"] .chimera-brand-boot__crest {
    animation: chimera-brand-crest-arrive 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .chimera-brand-boot[data-state="visible"] .chimera-brand-boot__name,
  .chimera-brand-boot[data-state="visible"] .chimera-brand-boot__message {
    animation: chimera-brand-copy-arrive 520ms 90ms ease-out both;
  }
}

@keyframes chimera-brand-beasts-arrive {
  from {
    opacity: 0;
    transform: scale(1.035);
  }
  to {
    opacity: 0.11;
    transform: scale(1.015);
  }
}

@keyframes chimera-brand-crest-arrive {
  from {
    opacity: 0;
    transform: translateY(0.65rem) scale(0.965);
  }
  to {
    opacity: 1;
    transform: translateY(0.25rem) scale(0.985);
  }
}

@keyframes chimera-brand-copy-arrive {
  from {
    opacity: 0;
    transform: translateY(0.3rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chimera-brand-boot,
  .chimera-brand-boot__beasts,
  .chimera-brand-boot__crest,
  .chimera-brand-boot__name,
  .chimera-brand-boot__message {
    animation: none;
    transition: none;
  }

  .chimera-brand-boot__beasts,
  .chimera-brand-boot__crest {
    transform: none;
  }
}

@media (forced-colors: active) {
  .chimera-brand-boot {
    background: Canvas;
    color: CanvasText;
  }

  .chimera-brand-boot__beasts,
  .chimera-brand-boot__crest {
    display: none;
  }

  .chimera-brand-boot__message {
    color: CanvasText;
  }
}
