/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Tokens ──────────────────────────────────────────── */
:root {
  --bg:    #040408;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --font:  'Cormorant Garant', 'Garamond', 'Times New Roman', Georgia, serif;
}

/* ─── Base ────────────────────────────────────────────── */
html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Aurora container ────────────────────────────────── */
/* Moved as a whole by JS parallax; blobs animate independently inside */
.aurora {
  position: fixed;
  inset: -8%;           /* oversized so blob edges never clip during parallax */
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ─── Aurora blobs ────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
}

/* Deep cobalt — upper left quadrant */
.b1 {
  width: 110vmax;
  height: 90vmax;
  background: radial-gradient(ellipse at center,
    rgba(18, 18, 100, 0.70) 0%,
    transparent 68%);
  top: -20%;
  left: -15%;
  filter: blur(130px);
  animation: drift-b1 32s ease-in-out infinite alternate;
}

/* Deep violet — lower right quadrant */
.b2 {
  width: 95vmax;
  height: 95vmax;
  background: radial-gradient(ellipse at center,
    rgba(58, 10, 80, 0.62) 0%,
    transparent 68%);
  bottom: -25%;
  right: -12%;
  filter: blur(150px);
  animation: drift-b2 38s ease-in-out infinite alternate;
}

/* Midnight teal — lower center */
.b3 {
  width: 80vmax;
  height: 65vmax;
  background: radial-gradient(ellipse at center,
    rgba(0, 38, 72, 0.50) 0%,
    transparent 68%);
  bottom: 0%;
  left: 18%;
  filter: blur(120px);
  animation: drift-b3 26s ease-in-out infinite alternate;
}

@keyframes drift-b1 {
  0%   { transform: translate(0, 0)      scale(1);    }
  40%  { transform: translate(5%, 9%)    scale(1.06); }
  100% { transform: translate(2%, 4%)    scale(0.96); }
}
@keyframes drift-b2 {
  0%   { transform: translate(0, 0)      scale(1);    }
  40%  { transform: translate(-7%, -5%)  scale(1.09); }
  100% { transform: translate(-3%, -9%)  scale(0.94); }
}
@keyframes drift-b3 {
  0%   { transform: translate(0, 0)      scale(1);    }
  40%  { transform: translate(9%, -7%)   scale(1.07); }
  100% { transform: translate(4%, -2%)   scale(0.97); }
}

/* ─── Vignette ────────────────────────────────────────── */
/* Classic lens vignette — pulls focus to the center */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 75% at 50% 50%,
    transparent 25%,
    rgba(4, 4, 8, 0.45) 58%,
    rgba(4, 4, 8, 0.88) 100%
  );
}

/* ─── Main ────────────────────────────────────────────── */
main {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Entrance wrapper ────────────────────────────────── */
/* Handles the cinematic blur-in; isolated so it doesn't disturb
   the drop-shadow filter on the inner .plate element.          */
.plate-outer {
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.96);
  animation: plate-enter 2.6s var(--ease) 0.35s forwards;
}

@keyframes plate-enter {
  to {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
}

/* ─── Nameplate ───────────────────────────────────────── */
/* Persistent ambient glow; brightens on hover */
.plate {
  text-align: center;
  filter: drop-shadow(0 0 55px rgba(160, 155, 220, 0.08));
  transition: filter 0.7s ease;
  will-change: transform;    /* GPU-composited for smooth parallax */
  cursor: default;
  user-select: none;
}

.plate:hover {
  filter: drop-shadow(0 0 80px rgba(170, 160, 235, 0.18));
}

/* ─── Heading ─────────────────────────────────────────── */
h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-style: normal;
}

/* ─── Primary mark: AMGD ──────────────────────────────── */
.n-primary {
  display: block;
  font-family: var(--font);
  font-size: clamp(5.5rem, 16vw, 17rem);
  font-weight: 300;
  letter-spacing: 0.32em;
  margin-right: -0.32em;      /* cancel trailing tracking gap for true centering */
  line-height: 1;

  /* Gradient light: warmly neutral center fading to cooler silver at edges */
  background: linear-gradient(
    160deg,
    rgba(185, 183, 212, 0.88)  0%,
    rgba(255, 255, 255, 1.00) 28%,
    rgba(230, 228, 248, 0.96) 50%,
    rgba(255, 255, 255, 1.00) 72%,
    rgba(185, 183, 210, 0.88) 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* Ambient shimmer: very slow, barely perceptible */
  animation: shimmer 20s ease-in-out 4s infinite;
}

/* ─── Secondary mark: Holdings ────────────────────────── */
.n-secondary {
  display: block;
  font-family: var(--font);
  font-size: clamp(1rem, 3vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.72em;
  margin-right: -0.72em;      /* cancel trailing tracking gap */
  text-transform: uppercase;
  line-height: 1;
  margin-top: 0.18em;

  /* Recedes behind AMGD — dimmer, desaturated */
  color: rgba(118, 114, 148, 0.68);
}

/* ─── Shimmer ─────────────────────────────────────────── */
@keyframes shimmer {
  0%, 100% { background-position: 100% 50%; }
  50%       { background-position:   0% 50%; }
}

/* ─── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .plate-outer {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .n-primary {
    animation: none;
    background-position: 50% 50%;
  }
  .b1, .b2, .b3 {
    animation: none;
  }
}
