/* ==========================================================================
   crown-emblem.css — isolated component: reunion hero crown + overlaid name
   --------------------------------------------------------------------------
   DEPENDENCY: requires style.css loaded FIRST (uses :root theme variables:
   --serif, --gold-hi, --paper, --shadow, --shadow-deep, --glow).
   Do not edit crown keyframes or positioning anywhere else — this file is
   the single source of truth for the crown bob animation and name overlay.
   Registered in state map: AGENTS.md > Williams reunion site directive.
   ========================================================================== */

/* Positioning mechanics: relative stage; name overlays crown via z-index */
.crown-emblem{position:relative;width:min(340px,74vw);margin:0 auto}

/* Keyframe application: smooth floating bob on the crown element only */
.crown-bob{
  display:block;width:100%;height:auto;
  animation:crownBob 4.5s ease-in-out infinite;
  filter:drop-shadow(0 16px 44px var(--shadow)) drop-shadow(0 0 42px var(--glow));
}
@keyframes crownBob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-12px)}
}

/* Name layer: absolutely positioned exactly over the top of the crown */
.crown-name{
  position:absolute;z-index:2;
  top:33%;left:0;right:0;
  text-align:center;
  font-family:var(--serif);font-weight:bold;
  font-size:clamp(14px,4vw,20px);letter-spacing:.1em;
  color:var(--gold-hi);
  text-shadow:0 2px 12px var(--shadow-deep),0 0 24px var(--shadow);
}

/* Accessibility: honor reduced-motion preference */
@media (prefers-reduced-motion:reduce){
  .crown-bob{animation:none}
}
