/* ============================================================
   LOADING SCREEN + TOP HEADER / MENU
   ============================================================ */
/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--maroon-3);
  display: grid;
  place-items: center;
  transition:
    opacity 0.9s ease,
    visibility 0.9s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.loader .mono {
  width: 74px;
  height: 74px;
}
.loader-bar {
  width: 160px;
  height: 1px;
  background: rgba(232, 207, 142, 0.18);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold-2);
  animation: load 1.3s ease-in-out infinite;
}
.loader small {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold-2);
  opacity: 0.7;
}
@keyframes load {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background 0.5s,
    box-shadow 0.5s,
    color 0.5s;
  color: var(--cream);
}
.ticker {
  height: 30px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(232, 207, 142, 0.14);
  transition: height 0.5s;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: tick 42s linear infinite;
  line-height: 30px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.ticker-track span::before {
  content: "✦";
  margin-right: 48px;
  opacity: 0.6;
}
@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 var(--pad);
  transition: height 0.5s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .logo {
  height: 44px;
  width: auto;
  flex: none;
}
.loader-logo {
  width: 120px;
  height: auto;
}
.brand b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav .btn {
  padding: 12px 20px;
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  place-items: center;
  opacity: 0.8;
}
.burger span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  box-shadow:
    0 5px 0 currentColor,
    0 -5px 0 currentColor;
}
.site-head.solid {
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--maroon);
  box-shadow: 0 1px 0 var(--line);
}
.site-head.solid .ticker {
  height: 0;
  border: 0;
}
.site-head.solid .nav {
  height: 68px;
}
.site-head.solid .btn.ghost {
  --fg: var(--maroon);
  border-color: var(--maroon);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--maroon-3);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
}
.mobile-menu .close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 207, 142, 0.4);
  background: none;
  color: var(--gold-2);
  font-size: 22px;
  cursor: pointer;
}
