/* ============== LOADER ============== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink-deep);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.8s var(--ease-cinematic), visibility 0s linear 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.45em;
  color: var(--white);
  padding-left: 0.45em;
  animation: pulse 2.4s ease-in-out infinite;
}
.loader-bar {
  width: 180px;
  height: 1px;
  background: var(--ink-elev-2);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: load-sweep 1.4s var(--ease-cinematic) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes load-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ============== HEADER ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 18px) 24px 18px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.42em;
  color: var(--white);
  padding-left: 0.42em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("../logo.png") center/contain no-repeat;
  display: inline-block;
  margin-left: -0.42em;
  filter: brightness(1.1) saturate(1.2);
}
.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 200;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease-cinematic), opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); background: var(--gold); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); background: var(--gold); }

/* ============== FULL MENU ============== */
.full-menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: var(--ink-deep);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--safe-top) + 84px) 32px calc(var(--safe-bottom) + 32px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.5s var(--ease-cinematic), transform 0.6s var(--ease-cinematic), visibility 0s linear 0.5s;
}
.full-menu > ul { align-self: center; }
.full-menu .menu-foot { align-self: end; padding-top: 32px; }
.full-menu.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.5s var(--ease-cinematic), transform 0.6s var(--ease-cinematic);
}
.full-menu::before {
  content: "";
  position: absolute;
  top: -10vh; right: -10vh;
  width: 60vh; height: 60vh;
  background: radial-gradient(circle, var(--gold-glow), transparent 60%);
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
}
.full-menu ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.full-menu a {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 6.8vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  transition: color 0.3s, transform 0.3s var(--ease-cinematic);
  padding: 2px 0;
}
.full-menu a .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  align-self: flex-start;
  margin-top: 14px;
}
.full-menu a:hover, .full-menu a:focus {
  color: var(--gold);
  transform: translateX(8px);
}
.full-menu .menu-foot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.full-menu .menu-foot a { font-size: 12px; font-family: inherit; letter-spacing: inherit; font-weight: 400; padding: 0; }
